    :root {
        --bg: #0b0d12;
        --card: rgba(255, 255, 255, .06);
        --card2: rgba(255, 255, 255, .09);
        --text: rgba(255, 255, 255, .92);
        --muted: rgba(255, 255, 255, .66);
        --border: rgba(255, 255, 255, .12);
        --shadow: 0 18px 60px rgba(0, 0, 0, .45);
        --shadow2: 0 16px 40px rgba(0, 0, 0, .28);

        --radius: 18px;
        --pad: clamp(14px, 2.2vw, 22px);
        --gap: clamp(12px, 2vw, 18px);

        --focus: rgba(255, 255, 255, .35);
        --ok: rgba(120, 255, 170, .95);
        --warn: rgba(255, 200, 120, .95);

        --ease: cubic-bezier(.2, .85, .2, 1);
        --t: 260ms;
        --font: Vazir;
    }

    * {
        box-sizing: border-box;
    }

    html,
    body {
        height: 100%;
    }

    body {
        margin: 0;
        font-family: var(--font);
        color: var(--text);
        background: var(--bg);
        line-height: 1.7;
        overflow-x: hidden;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 10px;
        user-select: none;
    }

    .logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background-color: #151515;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .wrap {
        max-width: 980px;
        margin: 0 auto;
        padding: clamp(18px, 3.5vw, 38px);
        min-height: 100%;
        display: grid;
        place-items: center;
    }

    .shell {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: calc(var(--radius) + 10px);
        background: linear-gradient(180deg, var(--card2), var(--card));
        box-shadow: var(--shadow);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        overflow: hidden;

        animation: shellIn 650ms var(--ease) both;
    }

    @keyframes shellIn {
        from {
            opacity: 0;
            transform: translateY(14px) scale(.992);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    header {
        padding: calc(var(--pad) + 6px) var(--pad);
        border-bottom: 1px solid var(--border);
        display: grid;
        gap: 6px;
    }

    .title {
        margin: 0;
        font-size: clamp(20px, 3.2vw, 30px);
        letter-spacing: -0.02em;
        font-weight: 900;
    }

    .subtitle {
        display: block;
        margin: 0;
        color: var(--muted);
        font-size: clamp(13px, 1.8vw, 15px);
        font-weight: 700;
    }

    main {
        padding: var(--pad);
        display: grid;
        gap: var(--gap);
    }

    /* ریسپانسیو واقعی: موبایل 1 ستون، تبلت/دسکتاپ 2 ستون */
    .grid {
        display: grid;
        gap: var(--gap);
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    @media (min-width: 720px) {
        .grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    .card {
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: rgba(0, 0, 0, 0.04);
        padding: var(--pad);
        position: relative;
        overflow: hidden;

        display: grid;
        grid-template-rows: auto 1fr auto;
        gap: 10px;

        transition:
            transform var(--t) var(--ease),
            box-shadow var(--t) var(--ease),
            border-color var(--t) var(--ease),
            background var(--t) var(--ease);

        will-change: transform;
        animation: cardIn 520ms var(--ease) both;
    }

    /* استگر خوشگل */
    .card:nth-child(1) {
        animation-delay: 40ms;
    }

    .card:nth-child(2) {
        animation-delay: 80ms;
    }

    .card:nth-child(3) {
        animation-delay: 120ms;
    }

    .card:nth-child(4) {
        animation-delay: 160ms;
    }

    @keyframes cardIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* همه کارت‌ها هم‌قد (فقط در دسکتاپ) بدون اینکه موبایل بهم بریزه */
    @media (min-width: 720px) {
        .card {
            min-height: 220px;
            /* اگر خواستی بیشتر/کمترش کن */
        }
    }

    /* افکت کره‌ای: نور نرم داخل کارت */
    .card::before {
        content: "";
        position: absolute;
        inset: -2px;
        background:
            radial-gradient(420px 180px at 18% 12%, rgba(120, 180, 255, .18), transparent 55%),
            radial-gradient(420px 180px at 92% 74%, rgba(255, 170, 120, .14), transparent 60%);
        opacity: 0;
        transform: translateY(10px);
        transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
        pointer-events: none;
    }

    .card:hover,
    .card:focus-within {
        transform: translateY(-3px);
        border-color: rgba(255, 255, 255, .22);
        box-shadow: var(--shadow2);
    }

    .card:hover::before,
    .card:focus-within::before {
        opacity: 1;
        transform: translateY(0);
    }

    .top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .label {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--muted);
        font-size: 14px;
        user-select: none;
        min-width: 0;
        font-weight: 700;
    }

    .icon {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: rgba(255, 255, 255, .06);
        flex: 0 0 auto;
    }

    .label span:last-child {
        display: inline-block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 48ch;
    }

    .badge {
        border: 1px solid var(--border);
        border-radius: 999px;
        padding: 6px 10px;
        background: rgba(255, 255, 255, .06);
        color: var(--muted);
        font-size: 12px;
        white-space: nowrap;
        user-select: none;
        font-weight: 200;
    }

    .badge.warn {
        color: var(--warn);
    }

    .badge.ok {
        color: var(--ok);
    }

    .badge.focus {
        color: var(--focus);
    }

    .content {
        display: grid;
        gap: 8px;
        align-content: start;
        min-height: 0;
    }

    .value {
        font-size: clamp(15px, 2vw, 17px);
        word-break: break-word;
    }

    .mono {
        font-family: var(--font);
        font-size: 14px;
        opacity: .95;
    }

    .ltr {
        direction: ltr;
        unicode-bidi: plaintext;
        text-align: left;
    }

    /* روی دسکتاپ: لینک‌های خیلی بلند، یک خط و تمیز */
    @media (min-width: 720px) {
        .value.line1 {
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .hint {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
    }

    .hint {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
        font-weight: 500;
    }

    .actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
        align-items: center;
    }

    .btn {
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, .06);
        color: var(--text);
        border-radius: 12px;
        padding: 10px 12px;
        font: inherit;
        font-size: 13px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-weight: 300;
        transition:
            transform 180ms var(--ease),
            background 180ms var(--ease),
            border-color 180ms var(--ease);
        user-select: none;
    }

    .btn:hover {
        background: rgba(255, 255, 255, .10);
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0px);
    }

    .btn:focus-visible {
        outline: 2px solid var(--focus);
        outline-offset: 3px;
    }

    .btn[aria-disabled="true"] {
        opacity: .55;
        cursor: not-allowed;
        pointer-events: none;
    }

    /* موبایل خیلی کوچیک: دکمه‌ها فول‌ویدث و مرتب */
    @media (max-width: 420px) {
        .actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        .actions .btn {
            justify-content: center;
        }

        .label span:last-child {
            max-width: 30ch;
        }
    }

    footer {
        padding: var(--pad);
        border-top: 1px solid var(--border);
        display: flex;
        flex-wrap: wrap;
        gap: 10px 14px;
        justify-content: space-between;
        align-items: center;
        color: var(--muted);
        font-size: 13px;
    }

    .pill {
        border: 1px solid var(--border);
        border-radius: 999px;
        padding: 8px 12px;
        background: rgba(255, 255, 255, .06);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        font-weight: 200;
    }

    .toast {
        position: fixed;
        inset-inline: 14px;
        bottom: 14px;
        display: grid;
        place-items: center;
        pointer-events: none;
        z-index: 20;
    }

    .toast>div {
        pointer-events: auto;
        max-width: 560px;
        width: fit-content;
        border: 1px solid var(--border);
        background: linear-gradient(180deg, var(--card2), var(--card));
        box-shadow: var(--shadow);
        border-radius: 999px;
        padding: 10px 14px;
        font-size: 13px;
        color: var(--text);
        display: flex;
        align-items: center;
        gap: 10px;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity .18s ease, transform .18s ease;
    }

    .toast.show>div {
        opacity: 1;
        transform: translateY(0);
    }

    .dot {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: var(--ok);
        box-shadow: 0 0 0 6px rgba(120, 255, 170, .15);
    }

    @media (prefers-reduced-motion: reduce) {
        * {
            transition: none !important;
            scroll-behavior: auto !important;
        }

        .shell,
        .card {
            animation: none !important;
        }
    }

    @media print {
        body {
            background: #fff;
            color: #000;
        }

        .shell,
        .card,
        header,
        footer {
            box-shadow: none !important;
            backdrop-filter: none !important;
        }

        .btn,
        .toast {
            display: none !important;
        }

        a {
            text-decoration: none;
        }
    }