/* ═══════════════════════════════════════════
   Diamond Golden — Serial Checker
   Natural Green · Warm White · Trust
═══════════════════════════════════════════ */

.dg-snc-wrapper {
    /* ── Palette ── */
    --dg-green-900: #2E4229;
    --dg-green-800: #3E5636;
    --dg-green-700: #5C7A4B;
    --dg-green-600: #6E8B5C;
    --dg-green-soft: #8FA87D;
    --dg-cream: #F7F8F4;
    --dg-soft: #EDF2E7;
    --dg-border: #E4EAD9;
    --dg-text: #5B6555;
    --dg-muted: #7E8A74;
    --dg-ink: #3E5636;

    position: relative;
    max-width: 580px;
    margin: 3rem auto;
    padding: 3rem 1.5rem;
    border-radius: 2rem;
    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(92, 122, 75, 0.25), transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 20%, rgba(143, 168, 125, 0.15), transparent 55%),
        radial-gradient(ellipse 60% 55% at 80% 90%, rgba(62, 86, 54, 0.35), transparent 55%),
        linear-gradient(160deg, #F7F8F4 0%, #EDF2E7 50%, #F7F8F4 100%);
}

/* ── Soft ambient light ── */
.dg-snc-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(143, 168, 125, 0.15), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(92, 122, 75, 0.08), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════
   CRYSTAL CARD
═══════════════════════════════════════ */
.dg-snc-card {
    position: relative;
    z-index: 2;
    padding: 2.5rem 2rem 1.85rem;
    border-radius: 1.75rem;

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px) saturate(140%);
    -webkit-backdrop-filter: blur(30px) saturate(140%);

    border: 1px solid rgba(228, 234, 217, 0.9);
    box-shadow:
        0 40px 80px -20px rgba(62, 86, 54, 0.18),
        0 12px 32px -8px rgba(62, 86, 54, 0.1),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.95);

    color: var(--dg-ink);
    overflow: hidden;
    isolation: isolate;
}

/* ── Soft sheen ── */
.dg-snc-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 1;
    animation: dg-sheen 14s ease-in-out infinite;
}

@keyframes dg-sheen {
    0%, 100% { left: -60%; opacity: 0.4; }
    50%      { left: 120%; opacity: 0.7; }
}

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

/* ── Shield Icon ── */
.dg-snc-shield-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.15rem;
}

.dg-snc-shield {
    width: 3.4rem;
    height: 3.4rem;
    padding: 0.75rem;
    border-radius: 50%;
    color: #fff;

    background: linear-gradient(135deg, var(--dg-green-700), var(--dg-green-900));
    border: 1px solid rgba(92, 122, 75, 0.5);
    box-shadow:
        0 10px 26px rgba(62, 86, 54, 0.3),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.25),
        0 0 0 8px rgba(92, 122, 75, 0.08);
    animation: dg-pulse 4s ease-in-out infinite;
}

@keyframes dg-pulse {
    0%, 100% {
        box-shadow:
            0 10px 26px rgba(62, 86, 54, 0.3),
            inset 0 1.5px 0 rgba(255, 255, 255, 0.25),
            0 0 0 8px rgba(92, 122, 75, 0.08);
    }
    50% {
        box-shadow:
            0 10px 30px rgba(92, 122, 75, 0.4),
            inset 0 1.5px 0 rgba(255, 255, 255, 0.35),
            0 0 0 12px rgba(92, 122, 75, 0.06);
    }
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════ */
.dg-snc-title {
    margin: 0 0 0.65rem;
    text-align: center;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--dg-green-900);
}

.dg-snc-desc {
    margin: 0 auto 1.75rem;
    text-align: center;
    font-size: 14px;
    line-height: 1.65;
    color: var(--dg-text);
    font-weight: 500;
    max-width: 92%;
}

/* ═══════════════════════════════════════
   INNER PANEL
═══════════════════════════════════════ */
.dg-snc-dashed-frame {
    padding: 1.5rem 1.35rem;
    border-radius: 1rem;

    background: rgba(237, 242, 231, 0.55);
    border: 1.5px dashed rgba(143, 168, 125, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dg-snc-serial-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dg-green-800);
}

.dg-snc-serial-label svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--dg-green-700);
}

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

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

.dg-snc-serial-input {
    flex: 1;
    height: 3.25rem;
    padding: 0 1.1rem;
    border-radius: 0.7rem;
    box-sizing: border-box;
    width: 100%;

    background: #ffffff;
    border: 1.5px solid rgba(143, 168, 125, 0.4);

    color: var(--dg-green-900);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    outline: none;

    box-shadow:
        inset 0 1.5px 2px rgba(62, 86, 54, 0.04),
        0 3px 10px rgba(62, 86, 54, 0.06);
    transition: border-color 0.15s, box-shadow 0.2s;
}

.dg-snc-serial-input::placeholder {
    color: var(--dg-muted);
    font-weight: 500;
    letter-spacing: normal;
}

.dg-snc-serial-input:focus {
    border-color: var(--dg-green-700);
    box-shadow:
        0 0 0 4px rgba(92, 122, 75, 0.15),
        0 6px 20px rgba(92, 122, 75, 0.2),
        inset 0 1.5px 2px rgba(62, 86, 54, 0.04);
}

/* ═══════════════════════════════════════
   GREEN BUTTON
═══════════════════════════════════════ */
.dg-snc-check-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.65rem;
    height: 3.25rem;
    border: 1px solid rgba(62, 86, 54, 0.4);
    border-radius: 0.7rem;
    font-size: 14.5px;
    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, #6E8B5C 0%, #5C7A4B 55%, #3E5636 100%);
    box-shadow:
        0 10px 24px -8px rgba(92, 122, 75, 0.7),
        0 3px 8px rgba(62, 86, 54, 0.2),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(30, 50, 25, 0.35);
    transition: transform 0.12s ease, box-shadow 0.15s;
}

.dg-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.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.8s ease;
}

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

.dg-snc-check-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 32px -8px rgba(92, 122, 75, 0.9),
        0 4px 10px rgba(62, 86, 54, 0.25),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(30, 50, 25, 0.35);
}

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

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

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

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

/* ═══════════════════════════════════════
   STATUS BOX
═══════════════════════════════════════ */
.dg-snc-status {
    display: none;
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 0.75rem;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    animation: dg-slide-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

.dg-snc-status .dg-snc-status-strong {
    display: block;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

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

/* VALID — green */
.dg-snc-status.valid {
    background: linear-gradient(180deg, rgba(110, 139, 92, 0.15), rgba(92, 122, 75, 0.1));
    border: 1.5px solid rgba(110, 139, 92, 0.5);
    color: var(--dg-green-900);
    box-shadow: 0 0 0 4px rgba(110, 139, 92, 0.08);
}

.dg-snc-status.valid .dg-snc-status-strong::before {
    content: "✓ ";
    color: var(--dg-green-700);
    font-size: 17px;
}

/* INVALID — red */
.dg-snc-status.invalid {
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.1), rgba(150, 20, 20, 0.06));
    border: 1.5px solid rgba(220, 38, 38, 0.4);
    color: #7f1d1d;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.06);
}

.dg-snc-status.invalid .dg-snc-status-strong::before {
    content: "✕ ";
    color: #dc2626;
    font-size: 17px;
}

/* EMPTY — neutral */
.dg-snc-status.empty {
    background: rgba(143, 168, 125, 0.12);
    border: 1.5px solid rgba(143, 168, 125, 0.35);
    color: var(--dg-green-800);
}

/* ═══════════════════════════════════════
   TRUST ROW
═══════════════════════════════════════ */
.dg-snc-trust-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--dg-border);
}

.dg-snc-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dg-text);
    text-align: center;
}

.dg-snc-trust-item svg {
    width: 17px;
    height: 17px;
    color: var(--dg-green-700);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 480px) {
    .dg-snc-wrapper {
        padding: 2rem 0.85rem;
        border-radius: 1.5rem;
        margin: 1.5rem auto;
    }
    .dg-snc-card {
        padding: 2rem 1.35rem 1.6rem;
        border-radius: 1.4rem;
    }
    .dg-snc-title {
        font-size: 1.45rem;
    }
    .dg-snc-desc {
        font-size: 13px;
    }
    .dg-snc-trust-item span {
        font-size: 9px;
    }
    .dg-snc-check-btn {
        width: 100%;
    }
}

/* ── Fallback for no backdrop-filter ── */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .dg-snc-card {
        background: #ffffff;
    }
    .dg-snc-wrapper {
        background: var(--dg-soft);
    }
}



/* ═══════════════════════════════════════════
   DG Serial Checker — 100% Width on Mobile Only
═══════════════════════════════════════════ */

@media (max-width: 767px) {
    .dg-snc-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    .dg-snc-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* حذف پدینگ قالب و کانتینر المنتور */
    .elementor-shortcode,
    .site-main,
    .site-content,
    .wp-site-blocks,
    main#content,
    main#wp--skip-link--target {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* حذف پدینگ کانتینر المنتور که پلاگین توشه */
    .e-con:has(.elementor-shortcode),
    .elementor-element:has(.elementor-shortcode) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}