/* Unregistry Corporate Design System */

/* ===== Design Tokens ===== */
:root {
    /* Colors - Corporate Palette */
    --color-black: #0A0A0A;
    --color-rich-black: #000000;
    --color-gold: #CC9933;
    --color-gold-light: #E6B347;
    --color-gold-dark: #B38829;
    
    /* Grayscale */
    --color-gray-900: #1A1A1A;
    --color-gray-800: #333333;
    --color-gray-700: #4D4D4D;
    --color-gray-600: #666666;
    --color-gray-500: #888888;
    --color-gray-400: #AAAAAA;
    --color-gray-300: #CCCCCC;
    --color-gray-200: #E5E5E5;
    --color-gray-100: #F5F5F5;
    --color-white: #FFFFFF;
    
    /* Semantic Colors - Improved for WCAG AA Compliance */
    --bg-primary: var(--color-black);
    --bg-secondary: var(--color-gray-900);
    --bg-tertiary: var(--color-gray-800);
    --text-primary: var(--color-white);
    --text-secondary: #E5E5E5; /* Improved from #CCCCCC for better contrast */
    --text-muted: #AAAAAA; /* Improved from #888888 for better contrast */
    --border-color: var(--color-gray-800);
    --accent-color: var(--color-gold);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Inconsolata', 'Fira Code', monospace;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* Z-Index Architecture */
    --z-index-base: 1;
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
    --z-index-mobile-menu-overlay: 99999998;
    --z-index-mobile-menu: 99999999;
    
    /* Layout */
    --container-max: 1280px;
    --border-radius: 50px;
    --border-width: 1px;
    --transition-speed: 0.2s;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: var(--color-white);
    --bg-secondary: var(--color-gray-100);
    --bg-tertiary: var(--color-gray-200);
    --text-primary: var(--color-black);
    --text-secondary: var(--color-gray-700);
    --text-muted: var(--color-gray-600);
    --border-color: var(--color-gray-300);
}

/* ===== 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-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    transition: background-color var(--transition-speed) ease,
                color var(--transition-speed) ease;
    /* Ensure proper stacking context for mobile positioning */
    position: relative;
    min-height: 100vh;
}

/* 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-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===== 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 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    min-height: 44px;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-gold-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-color);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
    min-height: 52px;
}

/* Dark mode button text fix - gold buttons should have black text */
.btn-primary {
    color: var(--color-black) !important;
}

.btn-primary:hover {
    color: var(--color-black) !important;
}

/* ===== Cards ===== */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(204, 153, 51, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    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);
}

/* iOS Menu Overlay */
.ios-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.ios-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* iOS Bottom Sheet Menu */
.ios-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(100%) translateZ(0);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
}

.ios-bottom-sheet.show {
    transform: translateY(0) translateZ(0);
    opacity: 1;
    pointer-events: auto;
}

/* Drag Handle */
.ios-drag-handle {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    flex-shrink: 0;
}

.ios-drag-handle::after {
    content: '';
    width: 36px;
    height: 5px;
    background: var(--color-gray-600);
    border-radius: 100px;
}

/* Sheet Content */
.ios-sheet-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 env(safe-area-inset-bottom);
}

/* Menu Sections */
.ios-menu-section {
    margin-bottom: 8px;
}

.ios-menu-header {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Menu Items */
.ios-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
}

.ios-menu-item:active {
    background: var(--bg-tertiary);
}

.ios-menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.ios-menu-text {
    flex: 1;
    font-weight: 400;
}

.ios-menu-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Theme Toggle in Mobile Menu */
.theme-toggle-mobile {
    background: var(--bg-primary);
}

/* Body scroll lock when menu open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Light theme adjustments */
[data-theme="light"] .ios-bottom-sheet {
    background: var(--color-white);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .ios-menu-item {
    background: var(--color-gray-100);
}

[data-theme="light"] .ios-menu-item:active {
    background: var(--color-gray-200);
}

/* 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: var(--spacing-3xl) 0;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: left;
}

.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 ===== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0 1.5rem;
    /* Create stacking context boundary to contain footer elements */
    position: relative;
    z-index: var(--z-index-base);
}

/* New 4-Line Footer Layout */

.footer-line {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Line 1: Logo Section with Powered By */
.footer-logo-section {
    margin-bottom: 1rem;
}

.footer-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* No gap between logo and powered by */
}

.footer-logo-wrapper a {
    display: inline-block;
    line-height: 0;
}

.footer-logo-img {
    height: 33px !important;
    width: auto !important;
    max-width: 195px !important;
    object-fit: contain !important;
    display: inline-block !important;
}

.footer-powered-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0; /* No spacing between logo and powered by */
}

.footer-powered-text a {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-powered-text a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Footer logo theme rules moved to logo-rules.css */

/* Line 2: Menu Links */
.footer-links-line {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem 0.5rem;
    flex-wrap: wrap;
    padding: 0.25rem 0;
    line-height: 1.2;
}

.footer-links-line a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(204, 153, 51, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-links-line a:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    background: rgba(204, 153, 51, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(204, 153, 51, 0.2);
}

/* Light theme footer pills */
[data-theme="light"] .footer-links-line a {
    border-color: rgba(204, 153, 51, 0.4);
    color: var(--text-secondary);
}

[data-theme="light"] .footer-links-line a:hover {
    background: rgba(204, 153, 51, 0.15);
    border-color: var(--color-gold);
}

/* Line 3: Portal Logins */
.footer-portals-line {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem;
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(204, 153, 51, 0.1);
}

.footer-portals-line .portal-btn {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(204, 153, 51, 0.1);
    border: 1px solid rgba(204, 153, 51, 0.3);
    border-radius: 50px;
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-portals-line .portal-btn:hover {
    background: rgba(204, 153, 51, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(204, 153, 51, 0.2);
}

/* Line 4: Copyright */
.footer-copyright-line {
    margin: 0.2rem 0;
    padding-top: 1.5rem;
}

.footer-copyright-line p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== 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 {
    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 {
    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;
}

/* ===== 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;
    }
}


/* ===== Dashboard Mobile Menu (Unique Implementation) ===== */

/* Dashboard Menu Toggle Button */
.dashboard-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: var(--z-index-fixed);
    position: relative;
}

.dashboard-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.dashboard-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.dashboard-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

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

/* Dashboard Menu Overlay */
.dashboard-menu-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Fallback z-index with progressive enhancement */
    z-index: 99999998 !important;
    z-index: var(--z-index-mobile-menu-overlay) !important;
    -webkit-tap-highlight-color: transparent;
    /* Isolation and containment */
    isolation: isolate;
    contain: layout style paint;
    will-change: opacity, visibility;
    /* Force hardware acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.dashboard-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Dashboard Bottom Sheet - Fixed Stacking Context */
.dashboard-bottom-sheet {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    /* Solid background instead of backdrop-filter to prevent stacking issues */
    background: rgba(30, 30, 30, 0.95) !important;
    /* Fallback for older browsers */
    background: #1E1E1E !important;
    border-radius: 20px 20px 0 0;
    /* Transform with hardware acceleration */
    transform: translateY(100%) translateZ(0);
    -webkit-transform: translateY(100%) translateZ(0);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    /* Fallback z-index with progressive enhancement */
    z-index: 99999999 !important;
    z-index: var(--z-index-mobile-menu) !important;
    max-height: 85vh;
    /* Dynamic viewport height for modern browsers */
    max-height: 85dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    /* Critical stacking context fixes */
    isolation: isolate;
    contain: layout style paint;
    will-change: transform;
    /* Ensure it's above everything */
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.dashboard-bottom-sheet.show {
    transform: translateY(0) translateZ(0) !important;
    -webkit-transform: translateY(0) translateZ(0) !important;
}

/* Dashboard Drag Handle */
.dashboard-drag-handle {
    width: 36px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    margin: 12px auto 8px;
    cursor: grab;
    flex-shrink: 0;
}

/* Dashboard Sheet Content */
.dashboard-sheet-content {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 0 32px;
}

/* Dashboard Menu Sections */
.dashboard-menu-section {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin: 8px 16px;
    overflow: hidden;
    /* Remove backdrop-filter to prevent stacking issues */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-menu-header {
    padding: 12px 16px 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Menu Items */
.dashboard-menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    min-height: 56px;
}

.dashboard-menu-item:last-child {
    border-bottom: none;
}

.dashboard-menu-item:hover,
.dashboard-menu-item:active {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.98);
}

.dashboard-menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.dashboard-menu-text {
    flex: 1;
    font-weight: 500;
    font-size: 16px;
}

.dashboard-menu-arrow {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

/* Light Theme Adjustments for Dashboard */
[data-theme="light"] .dashboard-bottom-sheet {
    background: rgba(242, 242, 247, 0.95) !important;
    /* Fallback for older browsers */
    background: #F2F2F7 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .dashboard-drag-handle {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .dashboard-menu-section {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .dashboard-menu-header {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .dashboard-menu-item {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .dashboard-menu-item:hover,
[data-theme="light"] .dashboard-menu-item:active {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .dashboard-menu-arrow {
    color: rgba(0, 0, 0, 0.4);
}

/* Hide dashboard menu on desktop screens */
@media (min-width: 781px) {
    .dashboard-bottom-sheet,
    .dashboard-menu-overlay {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Show dashboard menu toggle at mobile breakpoint */
@media (max-width: 768px) {
    .dashboard-menu-toggle {
        display: flex;
    }
}

/* ===== Domain Search - Pill Style (like unregistrar.com) ===== */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(204, 153, 51, 0.3);
    border-radius: 50px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(204, 153, 51, 0.1);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    padding: 0.75rem 1rem;
    outline: none;
    z-index: 2;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

/* Domain Selector */
.domain-selector {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 0.5rem;
}

.domain-suffix-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 20px;
    white-space: nowrap;
}

.domain-suffix-btn:hover {
    background: rgba(204, 153, 51, 0.1);
}

.domain-suffix-btn .dropdown-arrow {
    transition: transform 0.2s ease;
    width: 14px;
    height: 14px;
    stroke: var(--accent-color);
    flex-shrink: 0;
    margin-left: 0.25rem;
    opacity: 0.7;
}

.domain-suffix-btn:hover .dropdown-arrow {
    opacity: 1;
}

.domain-suffix-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Old conflicting bottom-sheet system removed */

/* Search Icon Button */
.search-icon-btn {
    background: linear-gradient(135deg, #E6B347, #F4C430);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-icon-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(204, 153, 51, 0.3);
}

.search-icon {
    width: 24px;
    height: 24px;
    stroke: #000;
    stroke-width: 2.5;
}

/* Quick Examples */
.quick-examples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.examples-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.example-btn {
    padding: 0.5rem 1rem;
    background: rgba(204, 153, 51, 0.1);
    border: 1px solid rgba(204, 153, 51, 0.2);
    border-radius: 20px;
    color: var(--accent-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.example-btn:hover {
    background: rgba(204, 153, 51, 0.2);
    border-color: var(--accent-color);
}

/* Light theme adjustments */
[data-theme="light"] .search-input-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(204, 153, 51, 0.5);
}

[data-theme="light"] .search-input {
    color: var(--color-black);
}

/* Old conflicting light theme bottom-sheet styles removed */

/* Mobile responsiveness for search */
@media (max-width: 768px) {
    .search-input-wrapper {
        flex-direction: row;
        padding: 0.375rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.625rem 0.75rem;
    }
    
    .domain-suffix-btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.5rem;
    }
    
    .domain-dropdown {
        right: -20px;
        min-width: 200px;
    }
    
    .domain-dropdown::before {
        right: 40px;
    }
    
    .search-icon-btn {
        width: 40px;
        height: 40px;
    }
    
    .search-icon {
        width: 20px;
        height: 20px;
    }
    
    .quick-examples {
        justify-content: center;
    }
    
    .example-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}