/* Unregistry design system — u.cash family (BLACK + GOLD, square law; ds/88 reference) */


/* ===== Fonts (u.cash family: Inter + JetBrains Mono, cdn.u.cash/fonts/2, immutable) ===== */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url('https://cdn.u.cash/fonts/2/inter-latin-var.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url('https://cdn.u.cash/fonts/2/inter-latin-ext-var.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C6, U+02D0-02D1, U+02D6-02DD, U+02E0-02E4, U+1D00-1DFF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url('https://cdn.u.cash/fonts/2/jetbrains-mono-latin-var.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url('https://cdn.u.cash/fonts/2/jetbrains-mono-latin-ext-var.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C6, U+02D0-02D1, U+02D6-02DD, U+02E0-02E4, U+1D00-1DFF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    color-scheme: dark;
    /* ===== u.cash family tokens (ds/88 hub reference) ===== */
    --bg:        #000000;
    --bg-1:      #060606;
    --bg-2:      #0d0d0d;
    --bg-3:      #141414;
    --panel:     rgba(255,255,255,.035);
    --panel-2:   rgba(255,255,255,.06);
    --gold:      #cc9933;
    --gold-2:    #e6b347;
    --gold-3:    #b38829;
    --gold-glow: rgba(204,153,51,.35);
    --line:      rgba(255,255,255,.16);
    --line-gold: rgba(204,153,51,.40);
    --text:      #ffffff;
    --text-2:    rgba(255,255,255,.74);
    --text-3:    rgba(255,255,255,.46);
    --positive:  #3fa66a;
    --glow:      0 0 38px rgba(204,153,51,.20);
    --shadow:    0 24px 60px -24px rgba(0,0,0,.85);
    --radius:    0;
    --radius-lg: 0;
    --ease:      cubic-bezier(.4,0,.2,1);
    --container: 1180px;
    --font:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: var(--font);
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* ===== legacy aliases (page sheets keep working; auto theme-flip via the vars above) ===== */
    --color-black: #0A0A0A;
    --color-rich-black: #000000;
    --color-gold: var(--gold);
    --color-gold-light: var(--gold-2);
    --color-gold-dark: var(--gold-3);
    --color-gray-900: #1A1A1A;
    --color-gray-800: #333333;
    --color-gray-600: #666666;
    --color-gray-300: #CCCCCC;
    --color-gray-100: #F5F5F5;
    --color-white: #FFFFFF;
    --accent-color: var(--gold);
    --bg-primary: var(--bg);
    --bg-secondary: var(--bg-2);
    --bg-tertiary: var(--bg-3);
    --text-primary: var(--text);
    --text-secondary: var(--text-2);
    --text-muted: var(--text-3);
    --border-color: var(--line);
    --container-max: var(--container);
    --border-radius: 0;
    --border-width: 1px;
    --transition-speed: 0.2s;

    /* ===== spacing + z (page sheets depend on these) ===== */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-mobile-menu: 99999998;
    --z-mobile-menu-active: 99999999;
}


/* Light Theme */
[data-theme="light"] {
    color-scheme: light;
    /* family light (ds/88): light gold #a37a29 */
    --bg:        #ffffff;
    --bg-1:      #faf7f2;
    --bg-2:      #f4efe6;
    --bg-3:      #ece4d6;
    --panel:     rgba(0,0,0,.025);
    --panel-2:   rgba(0,0,0,.04);
    --gold:      #a37a29;
    --gold-2:    #b38829;
    --gold-3:    #7a5e1f;
    --gold-glow: rgba(153,114,38,.25);
    --line:      rgba(0,0,0,.22);
    --line-gold: rgba(153,114,38,.55);
    --text:      #0a0a0a;
    --text-2:    rgba(0,0,0,.72);
    --text-3:    rgba(0,0,0,.48);
    --positive:  #1f9d55;
    --glow:      0 0 30px rgba(153,114,38,.15);
    --shadow:    0 24px 50px -28px rgba(0,0,0,.30);
}


/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-weight: 400;
    font-size: 16.5px;
}
::selection { background: var(--gold); color: #000; }


/* Ensure main content is not cut off */
.main-content {
    min-height: auto;
    overflow: visible;
    padding-bottom: 2rem; /* Add space before footer */
    margin-top: 56px; /* Default spacing from fixed header (reduced 30% from 80px) */
}

/* Responsive top margins for different screen sizes */
@media (max-width: 991.98px) { /* Tablet and below */
    .main-content {
        margin-top: 70px; /* More space for mobile header (reduced 30% from 100px) */
    }
}

@media (max-width: 767.98px) { /* Mobile Large and below */
    .main-content {
        margin-top: 84px; /* Even more space for smaller screens (reduced 30% from 120px) */
    }
}

@media (max-width: 575.98px) { /* Mobile and below */
    .main-content {
        margin-top: 98px; /* Maximum space for smallest screens (reduced 30% from 140px) */
    }
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: 2.5rem;
    font-weight: 700;
}

h2 { 
    font-size: 2rem;
    font-weight: 600;
}

h3 { 
    font-size: 1.5rem;
    font-weight: 600;
}

h4 { 
    font-size: 1.25rem;
    font-weight: 500;
}

h5 { 
    font-size: 1.125rem;
    font-weight: 500;
}

h6 { 
    font-size: 1rem;
    font-weight: 500;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-gold-light);
}

/* ===== Container ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow { max-width: 880px; }


/* ===== Page Layout ===== */
/* Page Header Spacing */

/* First content after navigation needs top spacing */
.section:first-of-type,

/* ===== Grid System ===== */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}
@media (min-width: 860px) and (max-width: 1199px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .grid-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 610px) and (max-width: 859px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 609px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* ===== Buttons ===== */
.btn, .btn-primary {
    --b: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 15px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--b);
    background: transparent;
    color: var(--b);
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
    min-height: 44px;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
}

.btn:hover, .btn-primary:hover,
.btn:focus-visible {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    box-shadow: var(--glow);
}

.btn-secondary, .btn-ghost, .btn-outline {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
}
.btn-secondary:hover, .btn-ghost:hover, .btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: transparent;
    box-shadow: none;
}

.btn-solid {
    background: var(--gold);
    color: #000;
    border: 1px solid var(--gold);
    font-weight: 700;
}
.btn-solid:hover {
    background: var(--gold-2);
    box-shadow: var(--glow);
}

.btn-large {
    padding: 17px 34px;
    font-size: 15px;
    min-height: 52px;
}

.btn-sm {
    padding: 9px 16px;
    font-size: 12px;
    min-height: 36px;
}



/* Remove outline from btn-outline-info buttons */
.btn-outline-info,
.btn.btn-outline-info,
.btn.btn-outline-info.btn-icon,
a.btn-outline-info,
a.btn.btn-outline-info,
a.btn.btn-outline-info.btn-icon {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--accent-color) !important;
    text-decoration: none !important;
}

.btn-outline-info:hover,
.btn.btn-outline-info:hover,
.btn.btn-outline-info.btn-icon:hover,
a.btn-outline-info:hover,
a.btn.btn-outline-info:hover,
a.btn.btn-outline-info.btn-icon:hover {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: rgba(204, 153, 51, 0.1) !important;
    color: var(--accent-color) !important;
    text-decoration: none !important;
}

/* Also target any potential framework overrides */
[class*="btn-outline-info"] {
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

[class*="btn-outline-info"]:hover {
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}


/* ===== Cards (family: gold hairline, square, glow hover) ===== */
.card {
    background: var(--panel);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--glow), var(--shadow);
}

.card-header {
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: 21px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-xs);
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--text-3);
}

/* ===== Navigation - Glassmorphism ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-gold);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    height: 40px;
}

.nav-logo {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-speed) ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Logo and icon rules moved to logo-rules.css for better organization */

/* ===== Mobile Navigation ===== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 10002;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.3s ease;
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

.mobile-menu-toggle:focus {
    outline: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 1px;
}

/* Active state animation for hamburger */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Show mobile menu toggle on small screens */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Logo responsive rules moved to logo-rules.css */

/* ===== Hero Section ===== */
.hero {
    padding: calc(64px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Sections ===== */
.section {
    padding-block: clamp(64px, 9vw, 112px);
    position: relative;
}
.section--line { border-top: 1px solid var(--line); }

.section-header {
    max-width: 760px;
    margin-bottom: clamp(40px, 6vw, 56px);
}
.section-header.text-center, .section-header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.2vw, 50px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: var(--spacing-md);
}

.section-subtitle, .lead {
    font-size: clamp(17px, 1.6vw, 20px);
    color: var(--text-2);
    line-height: 1.6;
    max-width: 60ch;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-2);
    border: 1px solid var(--line-gold);
    background: var(--panel);
    padding: 7px 14px;
    border-radius: var(--radius);
    margin-bottom: var(--spacing-lg);
}
.eyebrow .dot {
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: var(--radius);
    animation: eyebrow-pulse 2.2s var(--ease) infinite;
}
@keyframes eyebrow-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--gold-glow); }
    50% { opacity: 0.55; box-shadow: 0 0 12px 2px var(--gold-glow); }
}
@media (prefers-reduced-motion: reduce) {
    .eyebrow .dot { animation: none; }
}

/* ===== Page hero primitive (one skeleton sitewide) ===== */
.page-hero {
    padding-block: clamp(56px, 8vw, 96px);
    border-bottom: 1px solid var(--line);
}
.page-hero--gold {
    background: linear-gradient(135deg, var(--gold-glow) 0%, transparent 60%);
    border-bottom: 1px solid var(--line-gold);
}
.page-hero--center { text-align: center; }
.page-hero--center .section-subtitle { margin-left: auto; margin-right: auto; }
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.4vw, 64px);
    font-weight: 700;
    line-height: 1.08;
    color: var(--text);
    margin-bottom: var(--spacing-lg);
}

/* ===== Stat + alert primitives ===== */
.stat {
    border: 1px solid var(--line);
    border-left: 2px solid var(--gold);
    padding: var(--spacing-lg);
    background: var(--panel);
}
.stat .stat-value {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-2);
}
.stat .stat-label {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-top: 6px;
}
.alert {
    border: 1px solid var(--line);
    border-left: 2px solid var(--gold);
    background: var(--panel);
    padding: var(--spacing-lg);
    color: var(--text-2);
}

.section-subtitle-centered {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* ===== Domain Cards ===== */
.domain-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: all var(--transition-speed) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.domain-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.domain-extension {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.domain-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.domain-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.domain-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.domain-price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Web3 Badge ===== */
.web3-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background-color: var(--accent-color);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius);
}

/* ===== Partner Cards ===== */
.partner-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-2xl);
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.partner-card:hover {
    border-color: var(--accent-color);
}
[data-theme="light"] .partner-logo {
    filter: none;
    opacity: 1;
}

.partner-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.partner-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.partner-link {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== Footer (u.cash family: brand + 4 columns + bottom bar) ===== */
.footer {
    background-color: var(--bg-1);
    border-top: 1px solid var(--line-gold);
    padding: 70px 0 40px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(4, 1fr);
    gap: 40px;
}

.footer-brand .footer-logo-img {
    height: 28px;
    width: auto;
}

.footer-blurb {
    margin-top: 16px;
    color: var(--text-3);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 30ch;
}

.footer-powered-text {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-3);
}

.footer-powered-text a {
    color: var(--gold-2);
    font-weight: 700;
    text-decoration: none;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-bottom: 6px;
}

.footer-col a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s var(--ease);
}

.footer-col a:hover {
    color: var(--gold-2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--text-3);
    font-size: 0.85rem;
}

.footer-mono {
    font-family: var(--font-mono);
    color: var(--gold);
}

[data-theme="light"] .footer-blurb,
[data-theme="light"] .footer-bottom {
    color: var(--text-3);
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer { padding: 48px 0 32px; }
}

/* ===== Icons (Heroicons Integration) ===== */
.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }

/* ===== Theme Toggle ===== */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.theme-toggle:hover {
    border-color: var(--accent-color);
}

/* Theme Icon Styling */
.theme-icon-light,
.theme-icon-dark,
.theme-icon-auto {
    width: 20px;
    height: 20px;
    transition: color var(--transition-speed) ease;
}

/* Default (Dark Mode) - Show sun icon, hide moon */
.theme-icon-light {
    color: #CC9933;
    display: block !important;
}

.theme-icon-dark,
.theme-icon-auto {
    color: #CC9933;
    display: none !important;
}

/* Light Mode - Show moon icon, hide sun */
[data-theme="light"] .theme-icon-light {
    color: #000000;
    display: none !important;
}

[data-theme="light"] .theme-icon-dark {
    color: #000000;
    display: block !important;
}

/* 3-state mode icons (navigation.js sets data-theme-mode on <html>;
 * the active mode's icon wins over the dark/light defaults above) */
html[data-theme-mode] .theme-icon-light,
html[data-theme-mode] .theme-icon-dark,
html[data-theme-mode] .theme-icon-auto {
    display: none !important;
}

html[data-theme-mode="dark"] .theme-icon-light,
html[data-theme-mode="light"] .theme-icon-dark,
html[data-theme-mode="system"] .theme-icon-auto {
    display: block !important;
}

html[data-theme-mode="light"] .theme-icon-auto,
html[data-theme-mode="system"] .theme-icon-light,
html[data-theme-mode="system"] .theme-icon-dark,
html[data-theme-mode="dark"] .theme-icon-auto,
html[data-theme-mode="dark"] .theme-icon-dark,
html[data-theme-mode="light"] .theme-icon-light {
    color: #CC9933;
}

html[data-theme="light"][data-theme-mode="dark"] .theme-icon-light,
html[data-theme="light"][data-theme-mode="system"] .theme-icon-auto {
    color: #000000;
}

/* ===== Volume Discount Table ===== */

@media (max-width: 768px) {
    .volume-table,
    .volume-table thead,
    .volume-table tbody,
    .volume-table th,
    .volume-table td,
    .volume-table tr {
        display: block;
    }
    
    .volume-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .volume-table tr {
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-md);
        background-color: var(--bg-secondary);
    }
    
    .volume-table td {
        border: none;
        border-bottom: 1px solid var(--border-color);
        position: relative;
        padding-left: 50%;
        padding-top: var(--spacing-sm);
        padding-bottom: var(--spacing-sm);
    }
    
    .volume-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--text-primary);
    }
    
    .volume-table td:last-child {
        border-bottom: none;
    }
}

/* ===== Utilities ===== */
.modal-content {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(204, 153, 51, 0.3);
    border-radius: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(204, 153, 51, 0.1),
        inset 0 0 30px rgba(204, 153, 51, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

[data-theme="light"] .modal-content {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 100px rgba(204, 153, 51, 0.1);
}

.modal-header {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
    border-bottom: 1px solid rgba(204, 153, 51, 0.2);
    background: linear-gradient(135deg, 
        rgba(204, 153, 51, 0.05) 0%, 
        transparent 100%);
    position: relative;
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gold);
    padding-right: var(--spacing-xl);
}

.modal-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 32px;
    height: 32px;
    background: rgba(204, 153, 51, 0.1);
    border: 1px solid rgba(204, 153, 51, 0.3);
    border-radius: 50%;
    color: var(--color-gold);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(204, 153, 51, 0.2);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(204, 153, 51, 0.4);
}

@keyframes modal-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes modal-success-pulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes modal-error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@media (max-width: 768px) {
    .unregistry-modal {
        padding: var(--spacing-md);
    }
    
    .modal-dialog {
        max-width: 100%;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-header {
        padding: var(--spacing-lg);
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: var(--spacing-lg);
    }
    
    .modal-footer {
        padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

/* ===== Accessibility =====*/
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
    .navbar, .footer, .theme-toggle, .nav-toggle {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* ===== CAPTCHA Styles ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Login Security Styles */
.security-notice {
    background: rgba(204, 153, 51, 0.1);
    border: 1px solid rgba(204, 153, 51, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #cc9933;
    font-size: 0.9rem;
}

.security-notice.warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.security-notice.error {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.attempts-remaining {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.attempts-remaining.low {
    color: #ffc107;
    font-weight: 600;
}

.attempts-remaining.critical {
    color: #f87171;
    font-weight: 600;
}

/* Honeypot field (invisible) */
input[name="website"] {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Loading spinner for CAPTCHA */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive CAPTCHA */
@media (max-width: 768px) {
    .captcha-container {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .captcha-header {
        font-size: 0.8rem;
    }
    
    .captcha-status {
        font-size: 0.875rem;
        padding: 0.625rem;
    }
    
    .captcha-stats {
        font-size: 0.75rem;
    }
}


