@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-raised: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-dim: rgba(37, 99, 235, 0.1);
    --accent-border: rgba(37, 99, 235, 0.3);
    --success: #16a34a;
    --success-dim: rgba(22, 163, 74, 0.1);
    --success-border: rgba(22, 163, 74, 0.3);
    --error: #e11d48;
    --error-dim: rgba(225, 29, 72, 0.1);
    --error-border: rgba(225, 29, 72, 0.3);
    --warning: #d97706;
    --warning-dim: rgba(217, 119, 6, 0.1);
    --warning-border: rgba(217, 119, 6, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 860px;
    padding: 3rem 1.5rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

/* ─── Header ─────────────────────────────────────────────────── */
header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.highlight {
    color: var(--accent);
}

header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

/* ─── Panel / Card ───────────────────────────────────────────── */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
}

/* ─── Section Labels ─────────────────────────────────────────── */
.section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    display: block;
}

/* ─── AI Section ─────────────────────────────────────────────── */
.ai-section {
    background: var(--surface-raised);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.ai-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.ai-icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.ai-section-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ai-section-header .ai-tag {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    padding: 2px 7px;
    border-radius: 3px;
}

.ai-description {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

/* ─── Textarea ───────────────────────────────────────────────── */
textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    line-height: 1.6;
}

textarea::placeholder {
    color: var(--text-muted);
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12);
}

#ai-prompt {
    height: 80px;
    margin-bottom: 0.85rem;
}

/* ─── Manual Entry ───────────────────────────────────────────── */
.input-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.input-section label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

#domain-names {
    height: 110px;
}

small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─── Extensions Section ─────────────────────────────────────── */
.tld-section {
    margin-bottom: 1.5rem;
}

.tld-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.tld-section-header h3 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.tld-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tld-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: var(--surface-raised);
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    user-select: none;
    letter-spacing: 0.01em;
}

.tld-label:hover {
    background: var(--border);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.tld-label input[type="checkbox"] {
    display: none;
}

/* Checkmark indicator */
.tld-check {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.tld-check svg {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.tld-label:has(input:checked) {
    background: var(--accent-dim);
    border-color: var(--accent-border);
    color: var(--accent);
}

.tld-label:has(input:checked) .tld-check {
    background: var(--accent);
    border-color: var(--accent);
}

.tld-label:has(input:checked) .tld-check svg {
    opacity: 1;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.action-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
    letter-spacing: 0.01em;
    font-family: inherit;
}

.action-btn:hover:not(:disabled) {
    background: #3d5ce5;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79, 110, 247, 0.3);
}

.action-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

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

#ai-generate-btn {
    background: transparent;
    border: 1px solid var(--accent-border);
    color: var(--accent);
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

#ai-generate-btn:hover:not(:disabled) {
    background: var(--accent-dim);
    box-shadow: none;
    transform: none;
}

/* ─── Loader ─────────────────────────────────────────────────── */
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.ai-loader {
    width: 13px;
    height: 13px;
    border: 1.5px solid var(--accent-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.7s linear infinite;
}

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

.hidden {
    display: none !important;
}

/* ─── Results Panel ──────────────────────────────────────────── */
.results-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.results-panel h2 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ─── Stats ──────────────────────────────────────────────────── */
.stats {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.val-success {
    color: var(--success);
}

.val-error {
    color: var(--error);
}

.val-warning {
    color: var(--warning);
}

.stat-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}

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

.retry-btn {
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid var(--warning-border);
    background: var(--warning-dim);
    color: var(--warning);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    white-space: nowrap;
}

.retry-btn:hover {
    background: rgba(245, 158, 11, 0.2);
}

/* ─── Table ──────────────────────────────────────────────────── */
.table-container {
    border-radius: 6px;
    border: 1px solid var(--border);
    overflow: hidden;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.results-table th {
    padding: 0.6rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface-raised);
    border-bottom: 1px solid var(--border);
}

.results-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

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

.results-table tbody tr:hover {
    background: var(--surface-raised);
}

.domain-name-cell {
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
}

/* ─── Status Badges ──────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-badge.available {
    background: var(--success-dim);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.status-badge.unavailable {
    background: var(--error-dim);
    color: var(--error);
    border: 1px solid var(--error-border);
}

.status-badge.error {
    background: var(--warning-dim);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.status-badge.pending {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.status-badge.available .status-dot {
    background: var(--success);
    box-shadow: 0 0 5px var(--success);
}

.status-badge.unavailable .status-dot {
    background: var(--error);
}

.status-badge.error .status-dot {
    background: var(--warning);
}

.status-badge.pending .status-dot {
    background: var(--text-muted);
}

/* ─── Auth Overlay ───────────────────────────────────────────── */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.auth-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.auth-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.auth-modal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-modal p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ─── History Drawer ─────────────────────────────────────────── */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.drawer-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.history-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 100%;
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.05);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-drawer.closed {
    transform: translateX(-100%);
}

.drawer-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

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

.drawer-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-btn:hover:not(.active) {
    color: var(--text-primary);
    background: var(--surface-raised);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.history-item {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.history-item-header {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.history-item-content {
    font-size: 0.95rem;
    color: var(--text-primary);
    word-break: break-all;
}

.history-domains {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.history-domain-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--surface);
    border: 1px solid var(--border-light);
}

/* ─── Custom Toast Notifications ──────────────────────────────── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    width: 320px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastFadeOut 0.3s ease forwards;
    animation-delay: 0s, 4.7s;
    /* 5 seconds total duration */
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--error);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--error);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.toast-message {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    margin-left: auto;
}

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

/* ─── AdSense Banners ────────────────────────────────────────── */
.ad-container {
    width: 100%;
    margin: 1.5rem 0;
    padding: 0.85rem;
    background: var(--surface);
    border: 1px dashed var(--border-light);
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    transition: border-color 0.2s ease;
}

.ad-container:hover {
    border-color: var(--border);
}

.ad-container.ad-top {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.ad-container.ad-bottom {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.ad-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    display: block;
    user-select: none;
}

.adsbygoogle {
    width: 100%;
    min-height: 50px;
    max-width: 100%;
}

/* ─── AdSense Sidebars (Left & Right Skyscrapers) ───────────── */
.ad-sidebar {
    position: fixed;
    top: 135px;
    width: 160px;
    height: 600px;
    max-height: calc(100vh - 155px);
    background: var(--surface);
    border: 1px dashed var(--border-light);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 10;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.ad-sidebar:hover {
    border-color: var(--border);
}

.ad-sidebar.ad-left {
    left: max(12px, calc(50vw - 430px - 180px));
}

.ad-sidebar.ad-right {
    right: max(12px, calc(50vw - 430px - 180px));
}

/* Hide side skyscrapers on screens under 1240px wide to prevent any layout overlap */
@media (max-width: 1240px) {
    .ad-sidebar {
        display: none !important;
    }
}

/* ─── Sticky Navbar ──────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 900;
    padding: 0.75rem 1.5rem;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 100px;
    width: auto;
    max-height: 100px;
    object-fit: contain;
}

.footer-logo-img {
    height: 65px;
    width: auto;
    max-height: 75px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.45rem 0.95rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.nav-btn-primary:hover {
    background: #1d4ed8;
}

.nav-btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-border);
    padding: 0.45rem 0.95rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.nav-btn-secondary:hover {
    background: var(--accent-dim);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
    width: 100%;
    align-self: stretch;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    width: 100%;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── Landing Page Sections ──────────────────────────────────── */
.landing-section {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

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

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* How It Works Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: var(--surface-raised);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    position: relative;
    text-align: center;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* TLD Grid */
.tld-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.tld-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.tld-badge {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.tld-info-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.tld-info-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.1rem 1.25rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.faq-icon {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Legal & Content Subpages ───────────────────────────────── */
.page-content {
    max-width: 860px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.content-block {
    margin-bottom: 2rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.content-block p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.legal-list {
    margin-left: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.info-box {
    background: var(--surface-raised);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.25rem;
}

.info-box h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.info-box p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ─── Floating Cookie Consent Banner ──────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 650px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.cookie-content a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.45rem 0.85rem;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-btn-secondary {
    background: var(--surface-raised);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    padding: 0.45rem 0.85rem;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}