@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-1: #081421;
    --bg-2: #0f2742;
    --bg-3: #1e3a5f;

    --primary: #a4cafc;
    --primary-soft: rgba(164, 202, 252, 0.16);
    --primary-strong: #c6deff;

    --text: #eaf2ff;
    --muted: #9fb4d6;

    --glass: rgba(255, 255, 255, 0.08);
    --glass-strong: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.16);

    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 12%, rgba(164, 202, 252, 0.24), transparent 28%),
        radial-gradient(circle at 82% 28%, rgba(93, 138, 168, 0.22), transparent 30%),
        linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
    overflow-x: hidden;
    line-height: 1.8;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(20px);
    opacity: 0.42;
    pointer-events: none;
    z-index: -1;
    animation: floatOrb 9s ease-in-out infinite alternate;
}

.orb-1 {
    width: 260px;
    height: 260px;
    right: -80px;
    top: 120px;
    background: rgba(164, 202, 252, 0.32);
}

.orb-2 {
    width: 220px;
    height: 220px;
    left: 4%;
    top: 42%;
    background: rgba(93, 138, 168, 0.32);
    animation-delay: 1.4s;
}

.orb-3 {
    width: 180px;
    height: 180px;
    right: 26%;
    bottom: 8%;
    background: rgba(198, 222, 255, 0.18);
    animation-delay: 2.2s;
}

@keyframes floatOrb {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(20px, -24px, 0) scale(1.06);
    }
}

.glass {
    background: linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.055));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 16px;
}

.topbar-inner {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
    padding: 14px 18px;
    border-radius: 22px;
    background: rgba(8, 20, 33, 0.52);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 16px 44px rgba(0,0,0,0.22);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(164, 202, 252, 0.28);
    font-size: 22px;
}

.brand strong {
    display: block;
    font-size: 16px;
}

.brand span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.live-date {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.075);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text);
    font-size: 13px;
    white-space: nowrap;
}

.icon {
    color: var(--primary);
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 20px auto 0;
}

.hero {
    min-height: 320px;
    border-radius: var(--radius-lg);
    padding: 34px;
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 24px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% -10%;
    height: 220px;
    background: radial-gradient(circle, rgba(164,202,252,0.18), transparent 60%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(164, 202, 252, 0.24);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 54px);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.ip-display {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    direction: ltr;
    justify-content: flex-end;
}

#clientIP {
    font-size: clamp(30px, 5vw, 58px);
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 34px rgba(164, 202, 252, 0.24);
    letter-spacing: -1px;
    word-break: break-all;
}

.copy-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    color: #07111d;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    border-radius: 16px;
    padding: 13px 18px;
    box-shadow: 0 12px 30px rgba(164,202,252,0.24);
    transition: 0.25s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(164,202,252,0.34);
}

.ip-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.badge {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.075);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text);
    font-size: 13px;
}

.badge-primary {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: rgba(164, 202, 252, 0.26);
}

.hero-side {
    display: grid;
    place-items: center;
}

.status-ring {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    padding: 16px;
    background:
        conic-gradient(from 180deg, var(--primary), rgba(164,202,252,0.08), var(--primary));
    animation: rotateRing 8s linear infinite;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ring-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(8, 20, 33, 0.88);
    border: 1px solid rgba(255,255,255,0.12);
    display: grid;
    place-items: center;
    text-align: center;
    animation: reverseRotate 8s linear infinite;
}

@keyframes reverseRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.ring-core span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 2px;
}

.ring-core strong {
    display: block;
    color: var(--primary);
    font-size: 24px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.card {
    border-radius: var(--radius-md);
    padding: 22px;
}

.card-wide {
    grid-column: span 2;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.card-head h2 {
    font-size: 18px;
}

.card-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(164, 202, 252, 0.22);
}

.info-list {
    display: grid;
    gap: 10px;
}

.info-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 15px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.08);
}

.info-row span {
    color: var(--muted);
    font-size: 13px;
}

.info-row strong {
    color: var(--text);
    font-size: 13px;
    word-break: break-word;
    direction: ltr;
    text-align: right;
}

.headers-table {
    display: grid;
    gap: 10px;
}

.header-row {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
    border-radius: 15px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.08);
}

.header-row span {
    color: var(--primary);
    font-size: 13px;
    direction: ltr;
    text-align: left;
}

.header-row strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    word-break: break-word;
    direction: ltr;
    text-align: left;
}

.user-agent {
    direction: ltr;
    text-align: left;
    color: var(--muted);
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 15px;
    padding: 14px;
    word-break: break-word;
    font-size: 13px;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.stat-card {
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-card strong {
    display: block;
    color: var(--primary);
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.2;
}

.footer {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 24px;
}

.footer-glass {
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.toast {
    position: fixed;
    right: 50%;
    bottom: 24px;
    transform: translateX(50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 999px;
    color: #07111d;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    font-weight: 700;
    transition: 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(50%) translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-side {
        display: none;
    }

    .stats-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .live-date {
        justify-content: flex-start;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card-wide {
        grid-column: span 1;
    }

    .header-row {
        grid-template-columns: 1fr;
    }

    .info-row {
        grid-template-columns: 1fr;
    }

    .ip-display {
        justify-content: flex-start;
    }

    #clientIP {
        width: 100%;
        font-size: 32px;
    }
}

@media (max-width: 520px) {
    .page,
    .footer {
        width: min(100% - 20px, 1180px);
    }

    .hero {
        padding: 22px;
        border-radius: 22px;
    }

    .card {
        padding: 18px;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .date-item {
        width: 100%;
        justify-content: center;
    }

    .live-date {
        width: 100%;
    }
}
