/* ==========================================================================
   KheyalGhor V2 Clean Feature & Engagement Styles
   Zero-blur, crisp white cards, slate borders & emerald accents
   ========================================================================== */

:root {
    --brand-primary: #059669;
    --brand-dark: #047857;
    --brand-light: #ecfdf5;
    --brand-accent: #f59e0b;
    --slate-bg: #f8fafc;
    --card-surface: #ffffff;
    --slate-border: #e2e8f0;
    --slate-text: #0f172a;
    --slate-muted: #64748b;
}

/* Top Bar */
.v2-topbar {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid #1e293b;
}
.v2-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.v2-badge {
    background: #059669;
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.v1-switch-link {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}
.v1-switch-link:hover { color: #ffffff; }

/* Feature Page Base */
.feature-page {
    min-height: 100vh;
    background: var(--slate-bg);
    color: var(--slate-text);
    font-family: 'Hind Siliguri', 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.feature-page-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid var(--slate-border);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.feature-page-header-inner {
    display: flex;
    width: min(1200px, calc(100% - 32px));
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: auto;
}

.feature-page-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--slate-text);
    font-weight: 800;
    text-decoration: none;
}

.feature-page-brand i {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: .7rem;
    background: var(--brand-primary);
    color: white;
}

.feature-page-brand small {
    display: block;
    color: var(--brand-primary);
    font-size: .65rem;
    letter-spacing: .12em;
    font-weight: 700;
}

.feature-language-button {
    min-height: 2.2rem;
    border: 1px solid var(--slate-border);
    border-radius: .65rem;
    background: #ffffff;
    padding: .4rem .75rem;
    color: #334155;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s ease;
}
.feature-language-button:hover {
    background: #f1f5f9;
    color: var(--slate-text);
}

.feature-page-main {
    width: min(1000px, calc(100% - 32px));
    margin: auto;
    padding: 2rem 0 5rem;
}

.feature-page-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--brand-primary);
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color .15s ease;
}
.feature-page-back:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

/* Feature Page Hero (Clean Emerald Gradient, Zero Blur) */
.feature-page-hero {
    margin: .5rem 0 1.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #065f46 0%, #0f766e 100%);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-page-hero .engagement-kicker {
    display: inline-block;
    color: #fef08a;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .25rem;
}

.feature-page-hero h1 {
    margin: .25rem 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.feature-page-hero p {
    max-width: 680px;
    margin: .5rem 0 0;
    color: #e2e8f0;
    font-size: .95rem;
    line-height: 1.6;
}

/* Feature Page Panels */
.feature-page-panel {
    border: 1px solid var(--slate-border);
    border-radius: 1.25rem;
    background: var(--card-surface);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.feature-page-panel h2 {
    margin: 0 0 .75rem;
    color: var(--slate-text);
    font-size: 1.15rem;
    font-weight: 800;
}

.feature-form {
    display: grid;
    max-width: 650px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem 1rem;
    margin: 1rem 0;
}

.feature-form > label:not(.feature-checkbox-row) {
    align-self: end;
    color: #475569;
    font-size: .78rem;
    font-weight: 700;
}

.feature-form > input,
.feature-form > select {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid var(--slate-border);
    border-radius: .75rem;
    background: #ffffff;
    padding: .5rem .85rem;
    color: var(--slate-text);
    font: inherit;
    font-size: .85rem;
    outline: none;
    transition: border-color .15s ease;
}

.feature-form > input:focus,
.feature-form > select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}

.feature-checkbox-row {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: .5rem;
    border-radius: .75rem;
    background: #fefce8;
    border: 1px solid #fef08a;
    padding: .75rem;
    color: #854d0e;
    font-size: .8rem;
    font-weight: 700;
}

.engagement-button {
    display: inline-flex;
    min-height: 2.6rem;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 0;
    border-radius: .75rem;
    background: var(--brand-primary);
    padding: .6rem 1.25rem;
    color: white;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}
.engagement-button:hover {
    background: var(--brand-dark);
}

/* Rate Cards & Experts Grid */
.courier-rate-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border: 1px solid var(--slate-border);
    border-radius: .85rem;
    background: #ffffff;
    padding: .85rem 1rem;
    margin-bottom: .5rem;
}
.courier-rate-card.is-lowest {
    border-color: #a7f3d0;
    background: #ecfdf5;
}
.courier-rate-card strong {
    color: var(--slate-text);
    font-size: .85rem;
}
.courier-rate-price {
    color: var(--brand-dark);
    font-size: 1rem;
    font-weight: 800;
}

.expert-directory-grid,
.import-pool-grid,
.seasonal-tip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.expert-card,
.import-pool-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--slate-border);
    border-radius: 1rem;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    transition: transform .15s ease, box-shadow .15s ease;
}
.expert-card:hover,
.import-pool-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.expert-category,
.import-pool-item > span {
    color: var(--brand-accent);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.expert-verification {
    margin-top: .25rem;
    border-radius: 999px;
    background: #ecfdf5;
    padding: .25rem .5rem;
    color: #047857;
    font-size: .65rem;
    font-weight: 800;
}

.expert-card h3,
.import-pool-item h3 {
    margin: .5rem 0 .25rem;
    color: var(--slate-text);
    font-size: .95rem;
    font-weight: 700;
}

.expert-card p,
.import-pool-item p {
    flex: 1;
    margin: 0 0 .75rem;
    color: var(--slate-muted);
    font-size: .78rem;
    line-height: 1.5;
}

.expert-meta {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin: 0 0 .75rem;
    color: #334155;
    font-size: .75rem;
    font-weight: 600;
}

/* Feature Modal */
.feature-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem;
}
.feature-modal[hidden] { display: none; }
.feature-modal-card {
    position: relative;
    width: min(100%, 480px);
    border: 1px solid var(--slate-border);
    border-radius: 1.25rem;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.feature-modal-card h2 {
    margin: 0 2rem .75rem 0;
    color: var(--slate-text);
    font-size: 1.15rem;
    font-weight: 800;
}
.feature-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid var(--slate-border);
    border-radius: 50%;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
}
.feature-modal-close:hover {
    background: #f1f5f9;
    color: var(--slate-text);
}

/* Countdown */
.drop-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
    margin: 1rem 0;
}
.drop-countdown div {
    display: grid;
    gap: .25rem;
    justify-items: center;
    border: 1px solid var(--slate-border);
    border-radius: .85rem;
    background: #f8fafc;
    padding: .75rem .4rem;
}
.drop-countdown strong {
    color: var(--slate-text);
    font-size: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.drop-countdown span {
    color: var(--slate-muted);
    font-size: .7rem;
    font-weight: 600;
}

/* Coin Balance */
.coin-balance {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin: .75rem 0;
    color: #b45309;
}
.coin-balance strong {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}
.coin-balance span {
    color: var(--slate-muted);
    font-size: .85rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .expert-directory-grid,
    .import-pool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .expert-directory-grid,
    .import-pool-grid,
    .seasonal-tip-grid,
    .feature-form {
        grid-template-columns: 1fr;
    }
    .feature-page-main {
        padding-top: 1.25rem;
    }
}
