/* ═══════════════════════════════════════════
   PhenQ Serial Checker — Corporate Prestige
   Deep Navy · Platinum White · Medical Blue
   High-contrast text · Executive feel
═══════════════════════════════════════════ */

.snc-wrapper {
    /* ── Corporate palette ── */
    --snc-navy-900: #05101f;
    --snc-navy-800: #0a1a30;
    --snc-navy-700: #0f2545;
    --snc-navy-600: #163358;
    --snc-slate:    #1e3a5f;
    --snc-blue:     #2b7fdb;
    --snc-blue-soft:#5aa3e8;
    --snc-platinum: #e8eef6;
    --snc-silver:   #b8c7d9;
    --snc-ink:      #05101f;
    --snc-radius:   1.75rem;

    position: relative;
    max-width: 580px;
    margin: 3rem auto;
    padding: 3rem 1.5rem;

    /* ── Deep formal backdrop (no playful colors) ── */
    border-radius: 2.25rem;
    overflow: hidden;
    isolation: isolate;

    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;

    background:
        radial-gradient(ellipse 60% 50% at 20% 15%, rgba(43, 127, 219, 0.35), transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 20%, rgba(90, 163, 232, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 55% at 80% 90%, rgba(30, 58, 95, 0.55), transparent 55%),
        radial-gradient(ellipse 50% 40% at 15% 85%, rgba(22, 51, 88, 0.6), transparent 55%),
        linear-gradient(160deg, #05101f 0%, #0a1a30 45%, #05101f 100%);
}

/* ── Subtle static ambience (no playful floating) ── */
.snc-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(90, 163, 232, 0.15), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(43, 127, 219, 0.1), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ── Fine grid pattern overlay (subtle corporate texture) ── */
.snc-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(180, 200, 230, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 200, 230, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 75%);
}

/* ═══════════════════════════════════════
   CRYSTAL GLASS CARD — Deep Formal
═══════════════════════════════════════ */
.snc-card {
    position: relative;
    z-index: 2;
    padding: 2.75rem 2.25rem 2rem;
    border-radius: var(--snc-radius);

    /* ── Deep glass with controlled transparency ── */
    background: rgba(10, 26, 48, 0.55);
    backdrop-filter: blur(32px) saturate(160%) brightness(0.95);
    -webkit-backdrop-filter: blur(32px) saturate(160%) brightness(0.95);

    /* ── Platinum crystal edges ── */
    border: 1px solid rgba(184, 199, 217, 0.28);
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.7),
        0 12px 32px -8px rgba(0, 0, 0, 0.5),
        inset 0 1.5px 0 rgba(232, 238, 246, 0.35),
        inset 0 -1px 0 rgba(90, 163, 232, 0.08),
        inset 1px 0 0 rgba(184, 199, 217, 0.1),
        inset -1px 0 0 rgba(184, 199, 217, 0.1);

    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

/* ── Slow subtle sheen (professional, not flashy) ── */
.snc-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(232, 238, 246, 0.05) 40%,
        rgba(232, 238, 246, 0.12) 50%,
        rgba(232, 238, 246, 0.05) 60%,
        transparent 100%
    );
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 1;
    animation: snc-sheen 12s ease-in-out infinite;
}

@keyframes snc-sheen {
    0%, 100% { left: -60%; opacity: 0.6; }
    50%      { left: 120%; opacity: 0.9; }
}

/* ── Platinum top edge ── */
.snc-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(232, 238, 246, 0.7) 50%,
        transparent
    );
    pointer-events: none;
    z-index: 2;
}

.snc-card > * {
    position: relative;
    z-index: 3;
}

/* ── Shield Icon — corporate emblem ── */
.snc-shield-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.snc-shield {
    width: 3.5rem;
    height: 3.5rem;
    padding: 0.8rem;
    border-radius: 50%;
    color: var(--snc-platinum);

    background:
        radial-gradient(circle at 35% 30%, rgba(232, 238, 246, 0.3), transparent 55%),
        rgba(22, 51, 88, 0.6);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(184, 199, 217, 0.45);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.45),
        inset 0 1.5px 0 rgba(232, 238, 246, 0.5),
        inset 0 -1px 0 rgba(90, 163, 232, 0.15),
        0 0 0 8px rgba(43, 127, 219, 0.06);
    animation: snc-pulse 4s ease-in-out infinite;
}

@keyframes snc-pulse {
    0%, 100% {
        box-shadow:
            0 10px 28px rgba(0, 0, 0, 0.45),
            inset 0 1.5px 0 rgba(232, 238, 246, 0.5),
            inset 0 -1px 0 rgba(90, 163, 232, 0.15),
            0 0 0 8px rgba(43, 127, 219, 0.06);
    }
    50% {
        box-shadow:
            0 10px 32px rgba(43, 127, 219, 0.35),
            inset 0 1.5px 0 rgba(232, 238, 246, 0.7),
            inset 0 -1px 0 rgba(90, 163, 232, 0.25),
            0 0 0 12px rgba(43, 127, 219, 0.05);
    }
}

/* ═══════════════════════════════════════
   TYPOGRAPHY — High Contrast
═══════════════════════════════════════ */

/* ── Title — bright platinum, executive ── */
.snc-title {
    margin: 0 0 0.65rem;
    text-align: center;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #f4f8fc;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.15),
        0 4px 20px rgba(43, 127, 219, 0.25);
    font-feature-settings: "ss01", "cv11";
}

/* ── Description — readable silver-gray ── */
.snc-desc {
    margin: 0 0 1.85rem;
    text-align: center;
    font-size: 14px;
    line-height: 1.65;
    color: #c4d1e2;                    /* ← روشن‌تر از قبل، خوانایی بالا */
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════
   INNER GLASS PANEL — heavier, more formal
═══════════════════════════════════════ */
.snc-dashed-frame {
    padding: 1.6rem 1.4rem;
    border-radius: 1.1rem;

    background: rgba(5, 16, 31, 0.55);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(184, 199, 217, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(232, 238, 246, 0.15),
        inset 0 -1px 0 rgba(43, 127, 219, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ── Serial Label — platinum with blue accent ── */
.snc-serial-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d3dfee;                    /* ← روشن‌تر و خواناتر */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.snc-serial-label svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--snc-blue-soft);
    filter: drop-shadow(0 0 5px rgba(90, 163, 232, 0.5));
}

/* ═══════════════════════════════════════
   INPUT + BUTTON
═══════════════════════════════════════ */
.snc-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 520px) {
    .snc-input-wrap {
        flex-direction: row;
        align-items: stretch;
    }
}

/* ── Input — pure white, maximum readability ── */
.snc-serial-input {
    flex: 1;
    height: 3.35rem;
    padding: 0 1.15rem;
    border-radius: 0.75rem;
    box-sizing: border-box;
    width: 100%;

    background: #ffffff;
    border: 1.5px solid rgba(184, 199, 217, 0.55);

    color: #05101f;                    /* ← مشکی پررنگ برای خوانایی کامل */
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    outline: none;

    box-shadow:
        inset 0 1.5px 2px rgba(0, 0, 0, 0.06),
        0 4px 14px rgba(0, 0, 0, 0.2);
    transition: border-color 0.15s, box-shadow 0.2s;
}

.snc-serial-input::placeholder {
    color: #8a97a8;
    font-weight: 500;
    letter-spacing: normal;
}

.snc-serial-input:focus {
    border-color: var(--snc-blue);
    box-shadow:
        0 0 0 4px rgba(43, 127, 219, 0.28),
        0 8px 26px rgba(43, 127, 219, 0.4),
        inset 0 1.5px 2px rgba(0, 0, 0, 0.06);
}

/* ═══════════════════════════════════════
   CORPORATE BLUE BUTTON — Solid & Powerful
═══════════════════════════════════════ */
.snc-check-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0 1.7rem;
    height: 3.35rem;
    border: 1px solid rgba(90, 163, 232, 0.6);
    border-radius: 0.75rem;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;

    background: linear-gradient(180deg, #2b7fdb 0%, #1a5ba8 55%, #0f3f7d 100%);
    box-shadow:
        0 12px 28px -10px rgba(43, 127, 219, 0.8),
        0 3px 10px rgba(0, 0, 0, 0.3),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 20, 50, 0.4);
    transition: transform 0.12s ease, box-shadow 0.15s, opacity 0.15s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.snc-check-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.8s ease;
}

.snc-check-btn:hover::before {
    left: 125%;
}

.snc-check-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 40px -10px rgba(43, 127, 219, 0.95),
        0 4px 12px rgba(0, 0, 0, 0.35),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.45),
        inset 0 -2px 0 rgba(0, 20, 50, 0.4);
}

.snc-check-btn:active {
    transform: translateY(0);
}

.snc-check-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.snc-btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.snc-check-btn:hover .snc-btn-arrow {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════
   STATUS BOX — clear, high-contrast messages
═══════════════════════════════════════ */
.snc-status {
    display: none;
    margin-top: 1.15rem;
    padding: 1.1rem 1.2rem;
    border-radius: 0.85rem;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;

    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    animation: snc-slide-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes snc-slide-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.snc-status.visible {
    display: block;
}

/* ── Strong message — extra bright for readability ── */
.snc-status .snc-status-strong {
    display: block;
    font-weight: 800;
    font-size: 15.5px;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.snc-status .snc-status-body {
    display: block;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.6;
}

/* VALID — corporate green, high contrast */
.snc-status.valid {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.22), rgba(5, 120, 90, 0.14));
    border: 1px solid rgba(110, 231, 183, 0.55);
    color: #f0fdf9;                    /* ← تقریباً سفید برای خوانایی کامل */
    box-shadow:
        0 0 0 4px rgba(16, 185, 129, 0.1),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.2),
        0 8px 24px rgba(16, 185, 129, 0.22);
}

.snc-status.valid .snc-status-strong::before {
    content: "✓ ";
    color: #6ee7b7;
    font-size: 17px;
    text-shadow: 0 0 12px rgba(110, 231, 183, 0.7);
}

/* INVALID — corporate red, high contrast */
.snc-status.invalid {
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.24), rgba(150, 20, 20, 0.14));
    border: 1px solid rgba(252, 165, 165, 0.55);
    color: #fff5f5;                    /* ← تقریباً سفید برای خوانایی کامل */
    box-shadow:
        0 0 0 4px rgba(220, 38, 38, 0.1),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.2),
        0 8px 24px rgba(220, 38, 38, 0.2);
}

.snc-status.invalid .snc-status-strong::before {
    content: "✕ ";
    color: #fca5a5;
    font-size: 17px;
    text-shadow: 0 0 12px rgba(252, 165, 165, 0.7);
}

/* EMPTY — neutral platinum */
.snc-status.empty {
    background: rgba(184, 199, 217, 0.14);
    border: 1px solid rgba(184, 199, 217, 0.35);
    color: #e8eef6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════
   TRUST ROW — corporate seal
═══════════════════════════════════════ */
.snc-trust-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1.85rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(184, 199, 217, 0.16);
    position: relative;
}

.snc-trust-row::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 199, 217, 0.5), transparent);
}

.snc-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c4d1e2;                    /* ← روشن و خواناتر */
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.snc-trust-item svg {
    width: 17px;
    height: 17px;
    color: var(--snc-blue-soft);
    filter: drop-shadow(0 0 6px rgba(90, 163, 232, 0.6));
}

/* ═══════════════════════════════════════
   FALLBACK
═══════════════════════════════════════ */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .snc-card {
        background: rgba(10, 26, 48, 0.95);
    }
    .snc-dashed-frame {
        background: rgba(5, 16, 31, 0.85);
    }
    .snc-serial-input {
        background: #fff;
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 480px) {
    .snc-wrapper {
        padding: 2rem 0.85rem;
        border-radius: 1.75rem;
        margin: 1.5rem auto;
    }
    .snc-card {
        padding: 2.25rem 1.4rem 1.75rem;
        border-radius: 1.5rem;
        backdrop-filter: blur(26px) saturate(160%);
        -webkit-backdrop-filter: blur(26px) saturate(160%);
    }
    .snc-title {
        font-size: 1.5rem;
    }
    .snc-desc {
        font-size: 13px;
    }
    .snc-trust-item span {
        font-size: 9px;
    }
    .snc-check-btn {
        width: 100%;
        font-size: 14px;
    }
}