/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --bg-dark: #080b11;
    --card-bg: #0f172a;
    --card-border: #1e293b;
    --accent-real: #00f2fe;     /* खरा स्पीड (Cyan Gradient) */
    --accent-glow: rgba(0, 242, 254, 0.25);
    --accent-isp: #fbbf24;      /* ISP Bandwidth (Amber) */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --stat-bg: #131d31;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
}

.speed-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    width: 100%;
    max-width: 440px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* शीर्ष बॅज */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 50px;
    color: #38bdf8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 8px #38bdf8;
}

/* १. ISP, शहर आणि IP माहिती बॅनर (.network-info-card) */
.network-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--stat-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 12px 14px;
    margin: 18px 0 10px;
    text-align: left;
    gap: 10px;
}

.network-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.net-icon {
    font-size: 22px;
    line-height: 1;
}

.net-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.net-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.net-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ip-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

/* २. वर्तुळाकार स्पीडोमीटर गेज */
.meter-container {
    margin: 18px auto 12px;
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.meter-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.meter-circle-bg {
    fill: none;
    stroke: #1e293b;
    stroke-width: 10;
}

.meter-circle-progress {
    fill: none;
    stroke: url(#cyan-gradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 628;
    stroke-dashoffset: 628;
    transition: stroke-dashoffset 0.12s ease-out;
}

.meter-data {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 185px;              /* Circle border chya aat text thevnyasathi */
}

.live-speed {
    font-family: var(--font-mono);
    font-size: 38px;               /* 50px varun 38px kela, jyamule 354.30 sarkhe ank ring chya aat rahtil */
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 0 20px var(--accent-glow);
}

.live-unit {
    font-size: 11px;               /* 13px varun 11px kela */
    font-weight: 700;
    color: var(--accent-real);
    letter-spacing: 0.5px;
    margin-top: 5px;
    text-transform: uppercase;
}

.isp-speed-sub {
    margin-top: 7px;
    font-size: 10.5px;             /* 12px varun 10.5px kela */
    font-weight: 600;
    color: var(--accent-isp);
    background: rgba(251, 191, 36, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
    white-space: nowrap;
    max-width: 175px;
    overflow: hidden;
    text-overflow: ellipsis;       /* Text aakda kitihi motha aso, ring baher kadhich janar nahi */
}

/* ३. ४ प्रगत मेट्रिक्स ग्रिड (.stats-grid आणि .stat-card) */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin: 18px 0 24px;
}

.stat-card {
    background: var(--stat-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 12px 14px;
    text-align: left;
    transition: border-color 0.25s ease, transform 0.2s ease;
}

.stat-card:hover {
    border-color: #334155;
    transform: translateY(-2px);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.stat-icon {
    font-size: 13px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stat-val {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-sub {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* ४. बटण आणि स्टेटस */
.start-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #080b11;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(0, 242, 254, 0.4);
    transition: all 0.25s ease;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0, 242, 254, 0.6);
}

.start-btn:active {
    transform: translateY(0);
}

.start-btn:disabled {
    background: #334155;
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.status-indicator {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    min-height: 20px;
}