/* ═══════════════════════════════════════════════════
   Feature Lock — صفحه «در دست ساخت» (قابل‌استفاده مجدد)
   ═══════════════════════════════════════════════════ */

.feature-lock {
    --fl-bg: #e8efe9;
    --fl-bg-deep: #d4e0d6;
    --fl-ink: #142018;
    --fl-muted: #5c6e64;
    --fl-amber: #b8732e;
    --fl-gold: #c9a45c;
    --fl-moss: #2a4a38;
    --fl-cream: #f6f0e4;
    --fl-surface: rgba(255, 255, 255, 0.72);
    --fl-line: rgba(42, 74, 56, 0.16);
    --fl-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --fl-header-offset: 4.5rem;
    --fl-footer-offset: 5rem;

    position: relative;
    min-height: calc(100svh - var(--fl-header-offset) - var(--fl-footer-offset));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem clamp(1rem, 4vw, 2.5rem);
    color: var(--fl-ink);
    font-family: 'Vazirmatn', 'Mikhak-R', Tahoma, sans-serif;
    isolation: isolate;
    box-sizing: border-box;
    overflow: hidden;
}

html[data-theme="dark"] .feature-lock {
    --fl-bg: #060b09;
    --fl-bg-deep: #0a1210;
    --fl-ink: #eef6f1;
    --fl-muted: #a7b5ad;
    --fl-amber: #c8863a;
    --fl-gold: #d6b26e;
    --fl-cream: #f8f1e3;
    --fl-surface: rgba(10, 18, 14, 0.78);
    --fl-line: rgba(201, 164, 92, 0.22);
}

.feature-lock *,
.feature-lock *::before,
.feature-lock *::after { box-sizing: border-box; }

.fl-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(184, 115, 46, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 45% at 85% 30%, rgba(42, 74, 56, 0.2), transparent 50%),
        linear-gradient(180deg, var(--fl-bg), var(--fl-bg-deep));
}

html[data-theme="dark"] .fl-atmosphere {
    background:
        radial-gradient(ellipse 80% 50% at 20% 8%, rgba(200, 134, 58, 0.2), transparent 52%),
        radial-gradient(ellipse 60% 40% at 90% 25%, rgba(28, 58, 44, 0.28), transparent 50%),
        linear-gradient(180deg, #050906, #0a1210);
}

.fl-mist {
    position: absolute;
    inset: 10% -10% auto;
    height: 40%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.35), transparent 70%);
    animation: flDrift 12s var(--fl-ease) infinite alternate;
    opacity: 0.55;
}

html[data-theme="dark"] .fl-mist {
    background: radial-gradient(ellipse at center, rgba(201, 164, 92, 0.08), transparent 70%);
}

@keyframes flDrift {
    from { transform: translateX(-3%) translateY(0); }
    to { transform: translateX(3%) translateY(8px); }
}

.fl-card {
    width: min(26rem, 100%);
    text-align: center;
    padding: 1.65rem 1.35rem 1.45rem;
    border-radius: 1.15rem;
    background: var(--fl-surface);
    border: 1px solid var(--fl-line);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(20, 32, 24, 0.12);
    animation: flReveal 0.7s var(--fl-ease);
}

.feature-lock--compact .fl-lead { display: none; }

.feature-lock--compact .fl-title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.2rem, 3.4vw, 1.55rem);
}

.feature-lock--compact .fl-seal {
    width: 3.6rem;
    height: 3.6rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-lock--compact .fl-eyebrow {
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
}

.feature-lock--compact .fl-notice-form {
    margin-bottom: 1.15rem;
    padding: 0.85rem 0.95rem;
}

.feature-lock--compact .fl-admin-hint {
    margin-top: 1rem;
    padding-top: 0.75rem;
    font-size: 0.75rem;
}

@keyframes flReveal {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.fl-eyebrow {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--fl-amber);
}

.fl-seal {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.15rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(160deg, color-mix(in srgb, var(--fl-gold) 35%, transparent), color-mix(in srgb, var(--fl-moss) 25%, transparent));
    border: 1px solid color-mix(in srgb, var(--fl-gold) 45%, transparent);
    color: var(--fl-moss);
    font-size: 1.55rem;
    animation: flPulse 3.2s ease-in-out infinite;
}

html[data-theme="dark"] .fl-seal { color: var(--fl-gold); }

.fl-seal-lock {
    position: absolute;
    inset-inline-start: -0.15rem;
    bottom: -0.1rem;
    width: 1.55rem;
    height: 1.55rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--fl-amber);
    color: #0b1410;
    font-size: 0.7rem;
    border: 2px solid var(--fl-cream);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@keyframes flPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.fl-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.55rem, 4vw, 2rem);
    font-weight: 900;
    line-height: 1.35;
}

.fl-lead {
    margin: 0 auto 0.75rem;
    max-width: 28rem;
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--fl-muted);
}

.fl-message {
    margin: 0;
    max-width: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    font-size: 1rem;
    line-height: 1.85;
    font-weight: 800;
    color: var(--fl-ink);
}

.fl-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(12, 18, 14, 0.28);
    backdrop-filter: blur(2px);
}

html[data-theme="dark"] .fl-backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.fl-card--form {
    position: relative;
    z-index: 1;
    box-shadow:
        0 28px 60px rgba(20, 32, 24, 0.18),
        0 0 0 1px color-mix(in srgb, var(--fl-amber) 22%, transparent);
    animation: flModalIn 0.55s var(--fl-ease);
}

@keyframes flModalIn {
    from { opacity: 0; transform: translateY(28px) scale(0.94); }
    to { opacity: 1; transform: none; }
}

.fl-notice-form {
    margin: 0 auto 1.5rem;
    max-width: 26rem;
    text-align: right;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--fl-amber) 12%, var(--fl-cream));
    border: 1px solid color-mix(in srgb, var(--fl-amber) 35%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

html[data-theme="dark"] .fl-notice-form {
    background: color-mix(in srgb, var(--fl-amber) 14%, transparent);
}

.fl-notice-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--fl-amber);
}

.fl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    align-items: center;
}

.fl-cta,
.fl-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    transition: transform 0.2s var(--fl-ease);
}

.fl-cta {
    color: #0b1410;
    background: linear-gradient(180deg, var(--fl-gold), var(--fl-amber));
    box-shadow: 0 5px 0 color-mix(in srgb, var(--fl-amber) 55%, #000);
}

.fl-back {
    color: var(--fl-ink);
    background: color-mix(in srgb, var(--fl-ink) 6%, transparent);
    border: 1px solid var(--fl-line);
}

.fl-cta:hover,
.fl-back:hover {
    transform: translateY(-2px);
    color: inherit;
}

.fl-admin-hint {
    margin: 1.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--fl-line);
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--fl-muted);
}

.fl-admin-hint a {
    color: var(--fl-amber);
    font-weight: 800;
}

/* AI Advisor variant */
.feature-lock--ai {
    --fl-bg: #e8eef4;
    --fl-bg-deep: #d5dee8;
    --fl-amber: #3d6b8a;
    --fl-gold: #6a93ad;
    --fl-moss: #243746;
}

html[data-theme="dark"] .feature-lock--ai {
    --fl-bg: #070b10;
    --fl-bg-deep: #0b121a;
    --fl-amber: #7eb0d0;
    --fl-gold: #9ec4dc;
    --fl-moss: #d6e6f0;
}

.feature-lock--ai .fl-atmosphere {
    background:
        radial-gradient(ellipse 80% 50% at 25% 8%, rgba(61, 107, 138, 0.16), transparent 55%),
        radial-gradient(ellipse 60% 40% at 85% 30%, rgba(36, 55, 70, 0.12), transparent 50%),
        linear-gradient(180deg, var(--fl-bg), var(--fl-bg-deep));
}

html[data-theme="dark"] .feature-lock--ai .fl-atmosphere {
    background:
        radial-gradient(ellipse 80% 50% at 20% 8%, rgba(126, 176, 208, 0.14), transparent 52%),
        radial-gradient(ellipse 55% 40% at 90% 25%, rgba(40, 70, 95, 0.2), transparent 50%),
        linear-gradient(180deg, #05080c, #0b121a);
}
