:root {
    --primary: #1a1a2e;
    --secondary: #c9a66b;
    --accent: #f4f4f2;
    --text: #2d2d2d;
    --text-light: #6b6b6b;
    --border: #e0e0e0;
    --success: #2d5016;
    --gradient-start: #1a1a2e;
    --gradient-end: #2d3561;
}

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

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text);
    background: var(--accent);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

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

.logo h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo .tld {
    color: var(--secondary);
}

.nav {
    display: flex;
    gap: 2.5rem;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.cta-button:hover {
    color: var(--secondary);
}

.cta-button:hover::before {
    left: 0;
}

.hero-notice {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.7;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    white-space: pre-line;
}

/* Commission comparison box */
.commission-box {
    margin-top: 1.25rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(201,166,107,0.4);
    border-radius: 10px;
    padding: 0.65rem 1.75rem 0.5rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.commission-box-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c9a66b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}
.commission-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.82rem;
}
.commission-table th {
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    text-align: center;
    padding: 0 0.5rem 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.commission-table th:first-child { text-align: left; }
.commission-table td {
    padding: 0.18rem 0.5rem;
    text-align: center;
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.commission-table td:first-child { text-align: left; }
.commission-table tbody tr:last-child td { border-bottom: none; }
.c-cost { color: #f87171 !important; }
.c-dw-row td { background: rgba(201,166,107,0.08); }
.c-free { color: #4ade80 !important; }
.commission-box-note {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: #ffffff;
    font-family: 'Work Sans', sans-serif;
    font-style: italic;
    text-align: center;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 90px;
    z-index: 90;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-bar {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border: 2px solid var(--border);
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--accent);
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.9rem 1.5rem;
    border: 2px solid var(--border);
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    background: white;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--secondary);
}

/* Domains Section */
.domains-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.badge-legend {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
    font-size: 0.8rem;
    color: #555;
    margin-top: 0.75rem;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.6s ease-out;
}

.domain-card {
    background: white;
    border: 1px solid var(--border);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.domain-card:hover::before {
    transform: scaleX(1);
}

.domain-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.domain-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sale in Progress */
.sale-in-progress-banner {
    background: #d97706;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.75rem;
}
.card-sale-in-progress {
    opacity: 0.85;
    border-color: #d97706 !important;
}
.sale-in-progress-label {
    font-size: 0.82rem;
    color: #92400e;
    font-style: italic;
}
/* Admin status badge */
.status-sale_in_progress {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #d97706;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

.seller-badge {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0 0.25rem;
}

.seller-nickname {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
}

.seller-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.seller-verified {
    background: #d1fae5;
    color: #065f46;
}

.seller-trusted {
    background: #fef3c7;
    color: #92400e;
}

.dns-verified {
    background: #e0f2fe;
    color: #0369a1;
}

.domain-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.domain-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 1.5rem;
}

.domain-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.domain-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
}

.domain-actions .btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.55rem;
}

.btn {
    padding: 0.375rem 0.75rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

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

.btn-primary:hover {
    background: transparent;
    color: var(--secondary);
}

.btn-contact-seller {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #c9a66b;
    cursor: pointer;
    transition: color 0.15s;
    flex-shrink: 0;
    padding: 0.75rem 0.5rem;
    position: relative;
}

.btn-contact-seller::after {
    content: 'Contact Seller';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: white;
    font-size: 18px;
    font-weight: 400;
    padding: 6px 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.btn-contact-seller:hover {
    color: #1a1a2e;
}

.btn-contact-seller:hover::after {
    opacity: 1;
}


.btn-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #c9a66b;
    cursor: pointer;
    transition: color 0.15s;
    flex-shrink: 0;
    padding: 0.75rem 0.5rem;
    position: relative;
}
.btn-chat svg { width: 41px; height: 41px; }
.btn-chat::after {
    content: "Chat with Seller";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: white;
    font-size: 18px;
    font-weight: 400;
    padding: 6px 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.btn-chat:hover { color: #1a1a2e; }
.btn-chat:hover::after { opacity: 1; }

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Auction Card Styles */
.auction-card {
    position: relative;
    background: linear-gradient(to bottom, #fafafa 0%, white 100%);
}

.auction-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.auction-info {
    background: white;
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.auction-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-item.full-width {
    grid-column: 1 / -1;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 500;
}

.stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.countdown {
    color: var(--secondary);
}

.countdown.ended {
    color: var(--text-light);
}

.auction-ended {
    color: var(--text-light) !important;
    font-size: 1.2rem !important;
}

.reserve-notice {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff8dc;
    color: #8b6914;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    border-left: 3px solid var(--secondary);
}

.buy-now-price {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.buy-now-price .label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buy-now-price .price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.current-bid-info {
    background: var(--accent);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--secondary);
    color: var(--text);
}

.current-bid-info strong {
    color: var(--secondary);
}

/* Bid History Table */
.modal-large {
    max-width: 800px;
}

.bid-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.bid-history-table thead {
    background: var(--primary);
    color: white;
}

.bid-history-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.bid-history-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.bid-history-table tbody tr:hover {
    background: var(--accent);
}

.bid-history-table tbody tr:first-child {
    background: #fff8dc;
    font-weight: 600;
}

.bid-history-table tbody tr:first-child td {
    color: var(--primary);
}

.verification-notice {
    background: #fff8dc;
    border-left: 4px solid var(--secondary);
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9rem;
}

.form-error {
    background: #ffe0e0;
    color: #8b0000;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: var(--primary);
    color: white;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.about-content {
    max-width: 900px;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    font-weight: 600;
}

.contact-value {
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 300;
}

.contact-value:hover {
    color: var(--secondary);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light);
}

.email-direct {
    margin-top: 2rem;
    font-weight: 600;
    color: var(--primary);
}

.email-direct a {
    color: var(--secondary);
    text-decoration: none;
}

.email-direct a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input,
.form-textarea {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border);
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--accent);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
}

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

.submit-button {
    padding: 1.2rem 3rem;
    background: var(--secondary);
    color: white;
    border: 2px solid var(--secondary);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease, opacity 0.3s ease;
    align-self: flex-start;
}

.submit-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.submit-button:disabled:hover {
    background: var(--secondary);
    color: white;
}

.submit-button:hover {
    background: transparent;
    color: var(--secondary);
}

.form-success {
    padding: 1.5rem;
    background: var(--success);
    color: white;
    border-radius: 4px;
    animation: slideDown 0.4s ease-out;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
    line-height: 1;
}

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

.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modal-domain {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.offer-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .domains-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.25rem;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls {
        flex-direction: column;
    }
    
    .domains-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .domain-actions {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav {
        gap: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .modal-content {
        padding: 2rem;
    }
}
