/* Unregistry Marketplace - Modern Glassmorphism Design */

:root {
    --primary-gold: #cc9933;
    --success-green: #10b981;
    --error-red: #ef4444;
    --info-blue: #3b82f6;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
}

/* Dark Theme Variables (Default) */
:root,
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: rgba(0, 0, 0, 0.8);
    --bg-card: rgba(0, 0, 0, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(204, 153, 51, 0.15);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: rgba(255, 255, 255, 0.8);
    --bg-card: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.1);
    --hover-bg: rgba(204, 153, 51, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Cart Icon Styles */
#cart-icon, #cart-icon-mobile-nav {
    position: relative;
    display: none;  /* Hidden by default, shown via JS when cart has items */
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    background: rgba(204, 153, 51, 0.1);
    border: 1px solid rgba(204, 153, 51, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

#cart-icon:hover, #cart-icon-mobile-nav:hover {
    background: rgba(204, 153, 51, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

#cart-icon svg, #cart-icon-mobile-nav svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    display: block;
}

#cart-badge, #cart-badge-mobile {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: var(--bg-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none;
}

#cart-badge.active, #cart-badge-mobile.active {
    display: block;
}

/* iOS-Style Cart Popup */
.cart-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-popup-overlay.active {
    display: block;
    opacity: 1;
}

.cart-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.cart-popup.active {
    transform: translateY(0);
}

/* Cart Popup Handle */
.cart-popup-handle {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    margin: 12px auto 8px;
    cursor: grab;
}

.cart-popup-handle:active {
    cursor: grabbing;
}

/* Cart Popup Header */
.cart-popup-header {
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-popup-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-popup-title .cart-count {
    background: var(--primary-gold);
    color: #000;
    font-size: 0.875rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.cart-popup-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.cart-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Cart Popup Content */
.cart-popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    -webkit-overflow-scrolling: touch;
}

/* Themed Scrollbar for Cart Popup */
.cart-popup-content::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

.cart-popup-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 8px 0;
}

.cart-popup-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-gold), #b8860b);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.cart-popup-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #b8860b, var(--primary-gold));
}

/* Firefox scrollbar styling */
.cart-popup-content {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) rgba(255, 255, 255, 0.05);
}

.cart-popup-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.cart-popup-empty svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    opacity: 0.5;
}

/* Cart Popup Items */
.cart-popup-items {
    display: flex;
    flex-direction: column;
    gap: 8px;  /* Reduced gap for more compact layout */
}

.cart-popup-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 12px;  /* Reduced vertical padding for compactness */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    animation: slideInCart 0.3s ease-out;
    margin-bottom: 2px;  /* Minimal visual separation */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);  /* Lighter shadow */
}

@keyframes slideInCart {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-popup-item:hover {
    background: var(--hover-bg);
    border-color: var(--primary-gold);
}

.cart-popup-item-info {
    flex: 1;
}

.cart-popup-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;  /* Reduced spacing between lines */
    font-size: 0.95rem;
    line-height: 1.2;  /* Tighter line height */
}

.cart-popup-item-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    gap: 6px;  /* Smaller gap between price elements */
    align-items: center;
    line-height: 1.2;  /* Tighter line height */
}

.cart-popup-item-price {
    color: var(--primary-gold);
    font-weight: 600;
}

.cart-popup-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;  /* Add space between info and actions */
}

.cart-popup-item-remove {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    width: 32px;  /* Slightly smaller but still touchable */
    height: 32px;  /* Slightly smaller but still touchable */
    min-width: 32px;  /* Prevent shrinking */
    min-height: 32px;  /* Prevent shrinking */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-popup-item-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: scale(1.1);
}

.cart-popup-item-remove svg {
    width: 16px;
    height: 16px;
}

/* Cart Popup Footer - Compact Design */
.cart-popup-footer {
    padding: 12px 16px;  /* Reduced from 16px 20px */
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.cart-popup-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;  /* Reduced from 16px */
}

.cart-popup-total-label {
    font-size: 0.85rem;  /* Slightly smaller */
    color: var(--text-secondary);
    font-weight: 500;
}

.cart-popup-total-amount {
    font-size: 1.25rem;  /* Reduced from 1.5rem */
    font-weight: 600;
    color: var(--primary-gold);
}

.cart-popup-actions {
    display: flex;
    gap: 8px;  /* Reduced from 12px */
}

.cart-popup-btn {
    flex: 1;
    padding: 10px 16px;  /* Reduced from 12px 20px */
    border-radius: 10px;  /* Slightly smaller radius */
    font-weight: 600;
    font-size: 0.9rem;  /* Slightly smaller font */
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;  /* Smaller gap */
    white-space: nowrap;  /* Prevent text wrapping */
    min-height: 36px;  /* Minimum touch target */
}

.cart-popup-btn.view-cart {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.cart-popup-btn.view-cart:hover {
    background: var(--hover-bg);
    border-color: var(--primary-gold);
}

.cart-popup-btn.checkout {
    background: linear-gradient(135deg, var(--primary-gold), #b8860b);
    color: #000;
}

.cart-popup-btn.checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(204, 153, 51, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cart-popup {
        max-height: 75vh;
    }
    
    .cart-popup-items {
        gap: 10px;  /* Balanced gap for mobile */
        padding: 2px 0;  /* Minimal vertical padding */
    }
    
    .cart-popup-item {
        padding: 12px;  /* Compact but touchable padding */
        margin-bottom: 3px;  /* Small margin on mobile */
    }
    
    .cart-popup-item-name {
        font-size: 0.95rem;  /* Keep readable size */
        margin-bottom: 3px;  /* Tight spacing between lines */
    }
    
    .cart-popup-item-details {
        font-size: 0.8rem;  /* Better readability */
    }
    
    /* Keep actions horizontal on mobile for compactness */
    .cart-popup-actions {
        flex-direction: row;  /* Keep horizontal even on mobile */
        gap: 6px;  /* Smaller gap on mobile */
    }
    
    .cart-popup-btn {
        flex: 1;
        padding: 9px 12px;  /* Even more compact on mobile */
        font-size: 0.85rem;  /* Smaller text on mobile */
    }
    
    /* Ultra compact footer on mobile */
    .cart-popup-footer {
        padding: 10px 14px;
    }
    
    .cart-popup-summary {
        margin-bottom: 8px;
    }
    
    .cart-popup-total-amount {
        font-size: 1.1rem;  /* Smaller on mobile */
    }
}

/* Animation for item removal */
@keyframes slideOutCart {
    to {
        opacity: 0;
        transform: translateX(100%);
        margin-bottom: -60px;
    }
}

.cart-popup-item.removing {
    animation: slideOutCart 0.3s ease-out forwards;
}

/* Skip Navigation Link */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-gold);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-nav:focus {
    top: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    height: 2rem;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-gold);
    letter-spacing: -0.5px;
}

.logo-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    border-left: 2px solid var(--glass-border);
    padding-left: 0.5rem;
    margin-left: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

/* Cart Icon Styles */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-gold);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.dashboard-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--glass-border);
}

.dashboard-link:hover {
    background: rgba(204, 153, 51, 0.1);
    border-color: var(--primary-gold);
}

.dashboard-link .icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Mobile Navigation Actions Container */
.mobile-nav-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Cart Icon in Navigation */
.mobile-cart-icon {
    position: relative;
    display: none;  /* Hidden by default, shown via JS when cart has items */
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-cart-icon:hover {
    background: var(--hover-bg);
    color: var(--primary-gold);
}

.mobile-cart-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 1.5;
    stroke: currentColor;
    display: block;
}

.mobile-cart-icon .cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.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;
}

.mobile-menu-toggle span,
.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.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);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--glass-bg);
}

.toggle-track {
    width: 50px;
    height: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toggle-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-gold);
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .toggle-thumb {
    transform: translateX(26px);
}

.theme-icon {
    font-size: 10px;
    position: absolute;
    transition: all 0.2s ease;
}

.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0;
}

[data-theme="light"] .sun-icon {
    opacity: 0;
}

[data-theme="light"] .moon-icon {
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(204, 153, 51, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Hero Content Layout */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Search Container */
.search-input-wrapper {
    max-width: 800px;
    width: 94%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #ffcc66 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--primary-gold);
    font-weight: 500;
}


/* Search Input Wrapper */
.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-gold);
    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.5rem 1rem;
    outline: none;
    z-index: 2;
}

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

/* Search Icon Button */
.search-icon-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.search-icon-btn:hover {
    background: rgba(204, 153, 51, 0.1);
    color: var(--primary-gold);
    transform: scale(1.05);
}

.search-icon-btn .search-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* 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(--primary-gold);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 20px;
}

.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(--primary-gold);
    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);
}

/* Domain Dropdown */
.domain-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    isolation: isolate; /* Create stacking context */
}

.domain-dropdown.hidden {
    display: none;
}

.domain-option {
    width: 100%;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    text-align: left;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.25rem;
    font-size: 0.95rem;
}

.domain-option:hover {
    background: var(--hover-bg);
    color: var(--primary-gold);
}

}

.search-btn:hover {
    background: #ffcc66;
    transform: translateY(-2px);
}

.search-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Search Results Container */
.search-results-container {
    margin-top: 2rem;
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 10;
    width: 94%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-results-container.hidden {
    display: none;
}


.search-results-container .section-title {
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.search-results-container .section-title:first-child {
    margin-top: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.result-domain {
    font-size: 1.25rem;
    font-weight: 500;
}

.result-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-available {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

.status-taken {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-red);
    border: 1px solid var(--error-red);
}

.purchase-btn {
    background: var(--primary-gold);
    color: var(--primary-dark);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.purchase-btn:hover {
    background: #ffcc66;
    transform: translateY(-2px);
}

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

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

.example-btn {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.example-btn:hover {
    background: rgba(204, 153, 51, 0.1);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

/* Domain Categories */
.domains-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.domain-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.domain-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(204, 153, 51, 0.2);
}

.domain-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.domain-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-gold);
}

.domain-price {
    background: rgba(204, 153, 51, 0.2);
    color: var(--primary-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: bold;
}

.domain-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.domain-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.domain-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.domain-features li::before {
    content: "✓";
    color: var(--success-green);
    font-weight: bold;
}

.domain-action {
    margin-top: 1.5rem;
    width: 100%;
    background: var(--glass-bg);
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(204, 153, 51, 0.05) 50%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: var(--primary-gold);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
}

.pricing-table {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th {
    background: rgba(204, 153, 51, 0.1);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    text-align: center;
}

.cta-content {
    background: linear-gradient(135deg, rgba(204, 153, 51, 0.2) 0%, rgba(255, 204, 102, 0.1) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 3rem;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-btn {
    background: var(--primary-gold);
    color: var(--primary-dark);
    border: none;
    padding: 1rem 3rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #ffcc66;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(204, 153, 51, 0.3);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 2rem;
    margin-top: 5rem;
}

/* New Footer Layout (matching Unregistry) */
.footer-content-new {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.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(--primary-gold);
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

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

.footer-logo-img.logo-light {
    display: none !important;
}

.footer-logo-img.logo-dark {
    display: inline-block !important;
}

/* Logo switching handled by JavaScript theme management */

/* Line 2: Menu Links */
.footer-links-line {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    margin: 1rem 0 !important;
}

.footer-links-line a {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: color 0.3s ease !important;
    white-space: nowrap !important;
}

.footer-links-line a:hover {
    color: var(--primary-gold) !important;
    text-decoration: underline !important;
}

/* Line 3: Portal Buttons */
.footer-portals-line {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

.portal-btn:hover {
    background: rgba(204, 153, 51, 0.2) !important;
    border-color: var(--primary-gold) !important;
    transform: translateY(-1px) !important;
}

/* Line 4: Copyright */
.footer-copyright-line {
    margin-top: 1rem !important;
}

.footer-copyright-line p {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
}

/* Mobile responsive for footer */
@media (max-width: 768px) {
    .footer-links-line {
        gap: 1rem !important;
    }
    
    .footer-links-line a {
        font-size: 0.85rem !important;
    }
    
    .footer-portals-line {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .portal-btn {
        width: 200px !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .footer-links-line {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .footer-powered-text {
        font-size: 0.75rem !important;
    }
}

/* Legacy footer styles (fallback) */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-light);
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* iOS Bottom Sheet Menu Overlay */
.ios-menu-overlay {
    position: fixed;
    inset: 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-tap-highlight-color: transparent;
}

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

/* iOS Bottom Sheet */
.ios-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 9999;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.ios-bottom-sheet.show {
    transform: translateY(0);
}

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

.ios-drag-handle:active {
    cursor: grabbing;
}

/* Sheet Header */
.ios-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ios-sheet-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.ios-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
}

.ios-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.ios-close-btn:active {
    transform: scale(0.95);
}

.ios-close-btn .icon {
    width: 20px;
    height: 20px;
}

/* Sheet Content */
.ios-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iosSpring {
    0% {
        transform: scale(0.96);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.mobile-menu.show {
    animation: iosSpring 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* iOS Menu Sections */
.ios-menu-section {
    background: rgba(40, 40, 40, 0.6);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.75rem;
}

.ios-menu-section:last-child {
    margin-bottom: 0;
}

.ios-menu-header {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

/* iOS Menu Items */
.ios-menu-item {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 400;
    position: relative;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.ios-menu-item:active {
    background: rgba(255, 255, 255, 0.1);
}

.ios-menu-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-gold);
    flex-shrink: 0;
}

.ios-menu-text {
    flex: 1;
    margin-left: 0.75rem;
}

.ios-menu-arrow {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.ios-menu-badge {
    background: var(--primary-gold);
    color: #000;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* iOS Theme Toggle */
.ios-theme-toggle {
    cursor: default;
}

.ios-switch {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ios-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(120, 120, 128, 0.3);
    transition: background 0.3s;
    border-radius: 31px;
}

.ios-switch-slider:before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background: white;
    transition: transform 0.3s;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 
                0 1px 3px rgba(0, 0, 0, 0.1);
}

.ios-switch input:checked + .ios-switch-slider {
    background: var(--primary-gold);
}

.ios-switch input:checked + .ios-switch-slider:before {
    transform: translateX(20px);
}

.mobile-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 1rem 2rem;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    width: 90%;
    margin: 0.25rem auto;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link:hover {
    background: rgba(204, 153, 51, 0.1);
    color: var(--primary-gold);
    border: 1px solid rgba(204, 153, 51, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 153, 51, 0.15);
}

.mobile-nav-link.dashboard-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
}

.mobile-nav-link.dashboard-link .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.cart-link-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-link-mobile .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    padding: 1rem 1.5rem;
    margin: 1rem auto;
    background: rgba(204, 153, 51, 0.05);
    border: 1px solid rgba(204, 153, 51, 0.15);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) inset;
}

.theme-label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.theme-toggle.mobile {
    margin: 0;
}

/* Light Mode iOS Bottom Sheet Styling */
[data-theme="light"] .ios-bottom-sheet {
    background: rgba(242, 242, 247, 0.98);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
}

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

[data-theme="light"] .ios-sheet-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .ios-sheet-title {
    color: rgba(0, 0, 0, 0.95);
}

[data-theme="light"] .ios-close-btn {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .ios-close-btn:hover {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .ios-menu-section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

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

[data-theme="light"] .ios-menu-item {
    color: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

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

[data-theme="light"] .ios-menu-icon {
    color: var(--primary-gold);
}

[data-theme="light"] .ios-switch-slider {
    background: rgba(120, 120, 128, 0.16);
}

[data-theme="light"] .mobile-nav-link {
    color: rgba(0, 0, 0, 0.85);
}

[data-theme="light"] .mobile-nav-link:hover {
    background: rgba(204, 153, 51, 0.1);
}

[data-theme="light"] .mobile-theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-nav-actions {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar {
        position: relative;
    }
}
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        gap: 1rem;
    }
    
    .search-input-wrapper {
        width: 94%;
    }
    }
    
    .domains-grid {
        grid-template-columns: 1fr;
    }
    
    /* Prevent horizontal overflow globally */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Mobile Pricing Table - Convert to Cards */
    .pricing-table {
        background: transparent;
        border: none;
        overflow: visible;
        padding: 0;
    }
    
    .pricing-table table {
        display: block;
    }
    
    .pricing-table thead {
        display: none;
    }
    
    .pricing-table tbody {
        display: block;
    }
    
    .pricing-table tr {
        display: block;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
        border-radius: 0.75rem;
        margin-bottom: 1rem;
        padding: 1rem;
        transition: all 0.3s ease;
    }
    
    .pricing-table tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border-color: var(--primary-gold);
    }
    
    .pricing-table td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        text-align: left;
    }
    
    .pricing-table td:first-child {
        font-size: 1.1rem;
        color: var(--primary-gold);
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--glass-border);
        margin-bottom: 0.75rem;
    }
    
    .pricing-table td:nth-child(2):before {
        content: "Category: ";
        font-weight: 600;
        color: var(--text-secondary);
        margin-right: 0.5rem;
    }
    
    .pricing-table td:nth-child(3):before {
        content: "Price: ";
        font-weight: 600;
        color: var(--text-secondary);
        margin-right: 0.5rem;
    }
    
    .pricing-table td:nth-child(4):before {
        content: "Features: ";
        font-weight: 600;
        color: var(--text-secondary);
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Priority Result Card Styling */
.domain-result-card.priority {
    border: 2px solid var(--primary-gold);
    border-radius: 999px !important;
    background: linear-gradient(135deg, rgba(204, 153, 51, 0.1) 0%, rgba(255, 204, 102, 0.05) 100%);
    box-shadow: 0 10px 30px rgba(204, 153, 51, 0.2);
    position: relative;
}


/* Domain Results Table Layout */
.domain-result-card {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 999px !important;
    overflow: hidden;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    min-height: 35px;
    position: relative;
}

.domain-result-card:last-child {
    margin-bottom: 0;
}

.domain-result-card:hover {
    background: var(--hover-bg);
    transform: none;
}

.domain-result-card.available {
    box-shadow: inset 3px 0 0 #10b981;
}

.domain-result-card.taken {
    opacity: 0.6;
    box-shadow: inset 3px 0 0 #6b7280;
}

.domain-result-card.restricted {
    background: rgba(245, 158, 11, 0.05);
    box-shadow: inset 3px 0 0 #f59e0b;
}

.domain-result-card.error {
    background: rgba(239, 68, 68, 0.05);
    box-shadow: inset 3px 0 0 #ef4444;
}

.domain-result-card.priority {
    background: linear-gradient(135deg, rgba(204, 153, 51, 0.1) 0%, rgba(255, 204, 102, 0.05) 100%);
    border: 2px solid var(--primary-gold);
    position: relative;
}

/* Namecheap-Style Layout */
.domain-info {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
}

.domain-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.domain-svg-icon {
    width: 18px;
    height: 18px;
    stroke: white;
    flex-shrink: 0;
}

.domain-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0rem;
    flex-wrap: wrap;
    padding-right: 5px;
}

.status-badge-inline {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge-inline.taken {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.status-badge-inline.restricted {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

/* Status Section (Center) */
.status-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 100px;
}

.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-available {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-taken {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.4);
}

.status-restricted {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Old Pricing Section (Legacy) */
.pricing-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.05rem;
    min-width: 100px;
    flex-shrink: 0;
    text-align: center;
    padding: 0;
}

/* Namecheap-Style Pricing Section (45%) */
.domain-pricing {
    flex: 2.25;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    min-width: 180px;
    flex-wrap: wrap;
    text-align: right;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.current-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.price-period {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.renewal-info {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1.1;
}

.premium-indicator {
    font-size: 0.65rem;
    color: var(--primary-gold);
    font-weight: 500;
    margin: 0;
    padding: 0;
    line-height: 1.1;
}

/* New Namecheap-Style Pricing Elements */
.main-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #059669;
    line-height: 1;
}

.price-period {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1;
}

.renewal-text {
    font-size: 0.75rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1;
    display: block;
    width: 100%;
    margin-top: 0;
    opacity: 0.8;
    text-align: right;
}

.premium-badge {
    font-size: 0.65rem;
    color: var(--primary-gold);
    background: rgba(204, 153, 51, 0.15);
    padding: 0.1rem 0.3rem;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
}

.unavailable-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Action Section (Right) */
.action-section {
    flex-shrink: 0;
    margin-left: 1rem;
    min-width: 100px;
}

/* New Namecheap-Style Action Section (15%) */
.domain-action {
    flex: 0.75;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 60px;
}

.add-cart-btn {
    background: rgba(0, 0, 0, 0.3);
    color: var(--primary-gold);
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
    height: 50px;
    margin-left: 1rem;
}

.add-cart-btn:hover {
    background: rgba(204, 153, 51, 0.1);
    transform: scale(1.1);
}

.add-cart-btn:active {
    transform: scale(0.95);
}

.add-cart-btn .hero-cart-icon {
    width: 28px;
    height: 28px;
    stroke: var(--primary-gold);
    stroke-width: 1.5;
}

.domain-action-btn, .suggest-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
    width: 100%;
}

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

.domain-action-btn:hover {
    background: #e6c200;
    transform: translateY(-1px);
}

.domain-action-btn:disabled {
    background: rgba(107, 114, 128, 0.5);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.suggest-btn {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 0.4rem 0.8rem;
}

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

/* Restriction Info */
.restriction-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 158, 11, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #f59e0b;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.domain-result-card.restricted:hover .restriction-info {
    opacity: 1;
}

/* Action Button Icons */
.domain-action-icon {
    font-size: 1.1rem;
    display: inline-block;
    line-height: 1;
}

.hero-cart-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary-gold);
    display: inline-block;
    stroke-width: 1.5;
}

.domain-action-btn.icon-only,
.suggest-btn.icon-only {
    min-width: 32px;
    padding: 0.35rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.domain-action-btn.icon-only:hover,
.suggest-btn.icon-only:hover:not(:disabled) {
    transform: translateY(-1px) scale(1.1);
}

/* Premium/Aftermarket Labels */
.domain-tier-label {
    font-size: 0.6rem;
    color: var(--primary-gold);
    font-weight: 500;
    background: rgba(204, 153, 51, 0.15);
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: -0.1px;
    display: inline-block;
}

.domain-tier-label.aftermarket {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

/* Specific rule for ~750px screens */
@media (max-width: 760px) {
    .domain-name {
        padding-right: 5px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .domain-result-card {
        padding: 0.5rem 0.5rem 0.5rem 0.75rem;
        min-height: 30px;
    }
    
    .domain-info {
        min-width: 120px;
        flex: 1.5;
    }
    
    .domain-pricing {
        min-width: 140px;
        flex: 2;
    }
    
    .domain-action {
        min-width: 50px;
        flex: 0.5;
    }
    
    /* Responsive font sizing - scales with viewport width */
    .domain-name {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem);  /* Scales from 0.75rem to 0.9rem */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .domain-tier-label {
        font-size: clamp(0.55rem, 2vw, 0.65rem);  /* Scales smaller */
    }
    
    .main-price {
        font-size: clamp(0.8rem, 3vw, 1rem);  /* Main price scales */
    }
    
    .renewal-text {
        font-size: clamp(0.6rem, 1.8vw, 0.7rem);  /* Renewal text scales */
        margin-top: 0;
    }
    
    .domain-description {
        font-size: clamp(0.6rem, 2vw, 0.7rem);
    }
    
    .status-section {
        min-width: 80px;
    }
    
    .pricing-section {
        min-width: 80px;
    }
    
    .current-price {
        font-size: clamp(0.75rem, 2.8vw, 0.9rem);
    }
    
    .action-section {
        margin-left: 0.5rem;
        min-width: 80px;
    }
    
    .domain-action-btn, .suggest-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
}

@media (max-width: 600px) {
    .domain-result-card {
        padding: 0.5rem 0.5rem 0.5rem 0.75rem;
        min-height: 28px;
    }
    
    .domain-info-section {
        flex: 3;
        min-width: 120px;
    }
    
    /* Even smaller font sizes for very small screens */
    .domain-name {
        font-size: clamp(0.7rem, 2.3vw, 0.85rem);
    }
    
    .domain-tier-label {
        font-size: clamp(0.5rem, 1.8vw, 0.6rem);
    }
    
    .main-price {
        font-size: clamp(0.75rem, 2.8vw, 0.95rem);
    }
    
    .renewal-text {
        font-size: clamp(0.55rem, 1.6vw, 0.65rem);
    }
    
    .status-section {
        min-width: 60px;
    }
    
    .pricing-section {
        min-width: 60px;
    }
    
    .action-section {
        min-width: 70px;
        margin-left: 0.25rem;
    }
    
    .domain-action-btn, .suggest-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 400px) {
    .domain-result-card {
        padding: 0.4rem 0.4rem 0.4rem 0.6rem;
        min-height: 26px;
    }
    
    /* Ultra responsive sizing for tiny screens */
    .domain-name {
        font-size: clamp(0.65rem, 2vw, 0.8rem);
        max-width: 120px;  /* Prevent overflow */
    }
    
    .domain-tier-label {
        font-size: clamp(0.45rem, 1.5vw, 0.55rem);
        padding: 0.05rem 0.2rem;
    }
    
    .main-price {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    }
    
    .renewal-text {
        font-size: clamp(0.5rem, 1.4vw, 0.6rem);
        line-height: 1.2;
    }
    
    .domain-info {
        min-width: 100px;
        gap: 0.3rem;
    }
    
    .domain-pricing {
        min-width: 120px;
    }
    
    .domain-svg-icon {
        width: 16px;
        height: 16px;
    }
    
    .add-cart-btn {
        padding: 0.3rem 0.4rem;
        min-width: 28px;
    }
}

@media (max-width: 420px) {
    .domain-result-card {
        padding: 0.5rem 0.5rem 0.5rem 0.75rem;
        min-height: 26px;
        margin-bottom: 0.5rem;
    }
    
    .domain-info {
        flex: 2;
        min-width: 100px;
    }
    
    .domain-pricing {
        flex: 2.2;
        min-width: 110px;
    }
    
    .domain-action {
        flex: 0.8;
        min-width: 40px;
    }
    
    .domain-name {
        font-size: 0.8rem;
        line-height: 1.2;
        padding-right: 5px;
    }
    
    .domain-icon {
        font-size: 0.9rem;
        width: 16px;
    }
    
    .main-price {
        font-size: 0.9rem;
    }
    
    .price-period {
        font-size: 0.7rem;
    }
    
    .renewal-text {
        font-size: 0.7rem;
        margin-top: 0;
    }
    
    .add-cart-btn {
        padding: 0.4rem;
        min-width: 45px;
        min-height: 45px;
        height: 45px;
    }
    
    .hero-cart-icon {
        width: 24px;
        height: 24px;
    }
}
/* iOS-style Bottom Sheet */
.bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
}

.bottom-sheet.hidden {
    display: none;
}

.bottom-sheet-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bottom-sheet.active .bottom-sheet-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.bottom-sheet.active .bottom-sheet-content {
    transform: translateY(0);
}

/* iOS-style Handle */
.bottom-sheet-handle {
    padding: 0.75rem;
    cursor: grab;
    touch-action: pan-y;
}

.handle-bar {
    width: 36px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    margin: 0 auto;
    transition: background 0.2s ease;
}

.bottom-sheet-handle:active .handle-bar {
    background: rgba(255, 255, 255, 0.5);
    cursor: grabbing;
}

.bottom-sheet-header {
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.bottom-sheet-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-align: center;
}

.bottom-sheet-options {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    padding-bottom: 3rem; /* Space for scroll indicator */
    -webkit-overflow-scrolling: touch;
    position: relative;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.bottom-sheet-options::-webkit-scrollbar {
    display: none;
}

.sheet-option {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.5rem 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.sheet-option:hover,
.sheet-option:active {
    background: rgba(204, 153, 51, 0.1);
    border-color: var(--primary-gold);
    transform: scale(0.98);
}

.sheet-option.selected {
    background: rgba(204, 153, 51, 0.15);
    border-color: var(--primary-gold);
}

.option-icon {
    font-size: 1.5rem;
    width: 2rem;
    text-align: center;
}

.option-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.option-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* First option (All Domains) special styling */
.sheet-option:first-child {
    background: linear-gradient(135deg, rgba(204, 153, 51, 0.1) 0%, rgba(255, 204, 102, 0.05) 100%);
    border-color: rgba(204, 153, 51, 0.3);
}

.sheet-option:first-child .option-text {
    color: var(--primary-gold);
}

/* Fix dropdown arrow visibility */
.domain-suffix-btn .dropdown-arrow {
    display: inline-block !important;
    visibility: visible !important;
}

/* Bottom scroll indicator */
.bottom-sheet-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3rem;
    background: linear-gradient(to top, var(--bg-secondary) 0%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

.scroll-indicator {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    z-index: 11;
    animation: bounce 2s infinite;
    pointer-events: none;
}

.scroll-indicator-arrow {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    opacity: 0.5;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Desktop Modal Styles */
@media (min-width: 768px) {
    .bottom-sheet.desktop-modal .bottom-sheet-content {
        position: fixed;
        top: 50%;
        left: 50%;
        bottom: auto;
        right: auto;
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
        width: 90%;
        max-width: 500px;
        max-height: 70vh;
        border-radius: 1.5rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .bottom-sheet.desktop-modal.active .bottom-sheet-content {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    
    /* Hide drag handle on desktop */
    .bottom-sheet.desktop-modal .bottom-sheet-handle {
        display: none;
    }
    
    /* Adjust header for modal */
    .bottom-sheet.desktop-modal .bottom-sheet-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    /* Options container for desktop */
    .bottom-sheet.desktop-modal .bottom-sheet-options {
        max-height: calc(70vh - 100px);
        padding: 1rem;
    }
    
    /* Larger option buttons on desktop */
    .bottom-sheet.desktop-modal .sheet-option {
        padding: 0.75rem 1.5rem;
        border-radius: 1rem;
    }
    
    .bottom-sheet.desktop-modal .sheet-option:hover {
        transform: translateX(5px);
    }
}

/* Additional Mobile Responsiveness Fixes */
@media (max-width: 768px) {
    /* Prevent domain names from overflowing */
    .domain-name,
    .domain-item,
    .search-result-domain {
        word-break: break-all;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Fix table responsiveness */
    .pricing-table,
    .domains-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ensure proper spacing on mobile */
    .container {
        padding: 0 15px;
    }
    
    /* Fix navigation stacking */
    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .section,
    .card,
    .glass-card {
        max-width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    /* Even smaller screens */
    .domain-price {
        font-size: 0.9rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Stack form elements */
    .search-form {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
}

/* Prevent layout shifts */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure tooltips don't cause overflow */
.tooltip,
.dropdown-content {
    position: absolute;
    z-index: 9999;
    max-width: calc(100vw - 20px);
}


/* Enhanced Mobile Touch Targets */
@media (max-width: 768px) {
    /* Minimum 44x44px touch targets */
    button, 
    a, 
    .nav-link, 
    .mobile-nav-link,
    input[type="button"],
    input[type="submit"],
    .domain-result-card {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Add padding for better touch targets */
    .nav-link,
    .mobile-nav-link {
        padding: 12px 16px;
    }
    
    /* Larger form elements */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    /* Better spacing between interactive elements */
    .mobile-menu a {
        margin-bottom: 8px;
    }
    
    /* Larger close buttons */
    .close-btn,
    .modal-close {
        min-width: 48px;
        min-height: 48px;
    }
}

/* Form Labels for Accessibility */
label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Focus Indicators */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Screen Reader Only Text */
.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;
}

/* ===================================
   CART PAGE STYLES
   =================================== */

/* Main cart content */
.main-content {
    padding-top: 6rem;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Cart Header */
.cart-header {
    text-align: center;
    padding: 2rem 0 3rem;
}

.cart-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cart-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

/* Cart Items Section */
.cart-items-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.cart-items {
    padding: 1.5rem;
}

/* Individual Cart Item */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: var(--hover-bg);
    border-color: var(--primary-gold);
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 0.25rem;
}

.cart-item-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-price .price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.remove-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: var(--error-red);
    border-color: var(--error-red);
    color: white;
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-cart-icon {
    margin-bottom: 1rem;
}

.empty-cart-icon .hero-cart-icon {
    width: 4rem;
    height: 4rem;
    stroke: var(--text-secondary);
}

.empty-cart h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-cart p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: 7rem;
}

.summary-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.summary-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--text-primary);
}

.summary-row.total {
    border-top: 1px solid var(--glass-border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.summary-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.5rem 0;
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Clear Cart Button */
.clear-cart-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.clear-cart-btn:hover {
    background: var(--error-red);
    border-color: var(--error-red);
    color: white;
}

.btn-full {
    width: 100%;
}

/* Security Notice */
.secure-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.security-icon {
    width: 1rem;
    height: 1rem;
    stroke: var(--success-green);
}

/* Cart Mobile Responsive */
@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-summary {
        position: static;
        order: -1;
    }
    
    .cart-title {
        font-size: 2rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cart-item-price {
        justify-content: space-between;
    }
    
    .summary-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-top: 5rem;
    }
    
    .cart-header {
        padding: 1.5rem 0 2rem;
    }
    
    .cart-title {
        font-size: 1.75rem;
    }
    
    .cart-items {
        padding: 1rem;
    }
    
    .cart-item {
        padding: 1rem;
    }
    
    .summary-card {
        padding: 1rem;
    }
}

/* ============================================
   CHECKOUT PAGE STYLES
   ============================================ */

/* Checkout Header */
.checkout-header {
    padding: 2rem 0 3rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 3rem;
}

.checkout-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    color: var(--primary-gold);
    opacity: 1;
}

.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #000000;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #000000;
}

/* Checkout Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
}

/* Checkout Main Content */
.checkout-main {
    min-height: 500px;
}

.checkout-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
}

.checkout-section.hidden {
    display: none;
}

.checkout-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.checkout-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Order Items */
.order-items {
    margin-bottom: 2rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--surface-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.order-item:hover {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.order-item-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.order-item-details p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.order-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-gold);
}

/* Customer Info Form */
.customer-info {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--surface-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(204, 153, 51, 0.1);
}

/* Payment Methods */
.payment-methods {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface-secondary);
    border: 2px solid var(--glass-border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.payment-method.active {
    border-color: var(--primary-gold);
    background: rgba(204, 153, 51, 0.05);
}

.payment-method-icon {
    width: 3rem;
    height: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
}

.payment-method-details {
    flex: 1;
}

.payment-method-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.payment-method-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Payment Forms */
.payment-form {
    margin: 2rem 0;
}

.payment-form.hidden {
    display: none;
}

.card-element {
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

.payment-error {
    color: var(--error-red);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.crypto-currency-selector {
    margin-bottom: 1.5rem;
}

/* Checkout Actions */
.checkout-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

/* Checkout Sidebar */
.checkout-sidebar {
    position: sticky;
    top: 2rem;
}

/* Summary Card */
.summary-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.summary-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-items {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.summary-item-name {
    font-weight: 500;
    color: var(--text-primary);
}

.summary-item-price {
    font-weight: 600;
    color: var(--primary-gold);
}

.summary-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-weight: 500;
    color: var(--text-primary);
}

.summary-row.total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-gold);
    border-top: 2px solid var(--glass-border);
    margin-top: 1rem;
    padding-top: 1rem;
}

.secure-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.security-icon {
    width: 1rem;
    height: 1rem;
    color: #22c55e;
}

/* Responsive Design for Checkout */
@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .checkout-sidebar {
        order: -1;
        position: static;
    }
    
    .checkout-steps {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .checkout-header {
        padding: 1.5rem 0 2rem;
    }
    
    .checkout-title {
        font-size: 2rem;
    }
    
    .checkout-steps {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .step {
        justify-content: center;
    }
    
    .checkout-section {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkout-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .checkout-actions .btn-secondary,
    .checkout-actions .btn-primary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .checkout-header {
        padding: 1rem 0 1.5rem;
        margin-bottom: 2rem;
    }
    
    .checkout-title {
        font-size: 1.75rem;
    }
    
    .checkout-section {
        padding: 1rem;
    }
    
    .order-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        text-align: center;
    }
    
    .customer-info {
        padding: 1rem;
    }
    
    .summary-card {
        padding: 1rem;
    }
}
