/* CSS Custom Variables for Curated Harmonious Palette */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Theme colors: Light Mode (Default - White Theme) */
    --bg-main: #fafafa;
    --bg-main-rgb: 250, 250, 250;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    /* Orange & White Accents & Gradients */
    --primary-color: #f97316;
    --primary-glow: rgba(249, 115, 22, 0.12);
    --primary-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --progress-gradient: linear-gradient(90deg, #fdba74 0%, #f97316 50%, #ea580c 100%);

    /* Status Colors */
    --status-active-bg: rgba(16, 185, 129, 0.12);
    --status-active-text: #10b981;
    --status-disabled-bg: rgba(239, 68, 68, 0.12);
    --status-disabled-text: #ef4444;
    --status-expired-bg: rgba(245, 158, 11, 0.12);
    --status-expired-text: #d97706;
    --status-unlimited-bg: rgba(249, 115, 22, 0.12);
    --status-unlimited-text: #ea580c;

    /* Shadows & Effects */
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    --glass-blur: 20px;
    --transition-speed: 0.35s;
}

/* Dark Theme Variables */
.dark-theme {
    --bg-main: #090a0f;
    --bg-main-rgb: 9, 10, 15;
    --bg-card: rgba(18, 20, 32, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --primary-color: #fd8e43;
    --primary-glow: rgba(253, 142, 67, 0.25);
    --primary-gradient: linear-gradient(135deg, #fd8e43 0%, #f97316 100%);
    --progress-gradient: linear-gradient(90deg, #fb923c 0%, #f97316 50%, #ea580c 100%);

    --status-active-bg: rgba(16, 185, 129, 0.15);
    --status-active-text: #34d399;
    --status-disabled-bg: rgba(239, 68, 68, 0.15);
    --status-disabled-text: #f87171;
    --status-expired-bg: rgba(245, 158, 11, 0.15);
    --status-expired-text: #fbbf24;
    --status-unlimited-bg: rgba(253, 142, 67, 0.15);
    --status-unlimited-text: #fd8e43;

    --card-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* General Reset & Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Dotted Grid Background with Orange dots */
.dots-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(rgba(249, 115, 22, 0.16) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    z-index: -2;
    pointer-events: none;
    animation: dotsFade 10s infinite ease-in-out;
    transition: opacity var(--transition-speed) ease;
}

.dark-theme .dots-bg {
    background-image: radial-gradient(rgba(253, 142, 67, 0.16) 1.5px, transparent 1.5px);
}

@keyframes dotsFade {
    0% {
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    65% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Background Glowing Orbs */
.glow-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-bg::before,
.glow-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    transition: opacity var(--transition-speed) ease;
}

.glow-bg::before {
    width: 400px;
    height: 400px;
    background: #fdba74;
    top: -100px;
    right: -100px;
}

.glow-bg::after {
    width: 350px;
    height: 350px;
    background: #f97316;
    bottom: -50px;
    left: -100px;
}

.dark-theme .glow-bg::before,
.dark-theme .glow-bg::after {
    opacity: 0.08;
}

/* App Header styling */
.app-header {
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(var(--bg-main-rgb), 0.6);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 28px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-text span {
    font-weight: 500;
    color: var(--primary-color);
}

.logo-subtitle {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    margin-top: 1px;
}

.theme-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.theme-btn:hover {
    background: var(--primary-glow);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.theme-btn i {
    font-size: 18px;
}

/* Main Content styling */
.main-content {
    flex: 1;
    padding-top: 48px;
    padding-bottom: 64px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Search Section styling */
.search-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.search-section h1 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.5;
}

/* Search box & inputs */
.search-box {
    display: flex;
    width: 100%;
    max-width: 640px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 8px 8px 20px;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--card-shadow);
    gap: 12px;
    margin-top: 16px;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.search-box:focus-within {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.15), var(--card-shadow);
}

.input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.input-icon {
    font-size: 18px;
    color: var(--text-muted);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 16px;
    width: 100%;
    font-weight: 400;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* Premium Buttons */
.primary-btn {
    background: var(--primary-gradient);
    border: none;
    outline: none;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
    position: relative;
    overflow: hidden;
}

.primary-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.45) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: shimmerSweep 3.5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes shimmerSweep {
    0% {
        left: -150%;
    }

    35% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    filter: brightness(1.05);
}

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

.btn-icon {
    transition: transform var(--transition-speed) ease;
}

.primary-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Error message styling */
.error-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 16px 24px;
    border-radius: 14px;
    width: 100%;
    max-width: 640px;
    margin-top: 16px;
    font-size: 15px;
    text-align: left;
    backdrop-filter: blur(8px);
    animation: slideUp var(--transition-speed) ease;
}

.error-icon {
    font-size: 18px;
    color: #ef4444;
}

/* Spinner and loading */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 40px 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-container p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Results section styling */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: fadeIn var(--transition-speed) ease;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--card-shadow);
    transition: border-color var(--transition-speed) ease;
}

.result-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.light-theme .result-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Main Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--primary-glow);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-info h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.sub-id-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
    word-break: break-all;
}

.sub-id-label span {
    font-family: monospace;
    color: var(--text-secondary);
    word-break: break-all;
}

/* Status Pills */
.status-pill {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.status-pill.active {
    background: var(--status-active-bg);
    color: var(--status-active-text);
}

.status-pill.disabled {
    background: var(--status-disabled-bg);
    color: var(--status-disabled-text);
}

.status-pill.expired {
    background: var(--status-expired-bg);
    color: var(--status-expired-text);
}

.status-pill.unlimited {
    background: var(--status-unlimited-bg);
    color: var(--status-unlimited-text);
}

/* Usage Progress bar */
.usage-progress-container {
    margin-bottom: 32px;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-ratio {
    font-size: 14px;
    color: var(--text-muted);
}

.progress-ratio strong {
    font-size: 18px;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.progress-bar-wrapper {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.light-theme .progress-bar-wrapper {
    background: rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 100%;
    border-radius: 6px;
    background: var(--progress-gradient);
    width: 0%;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.progress-percentage-label {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Metrics Grid styling */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.light-theme .metric-card {
    background: rgba(0, 0, 0, 0.01);
}

.metric-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
}

.light-theme .metric-card:hover {
    background: rgba(0, 0, 0, 0.03);
}

.metric-icon {
    font-size: 20px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Curated Icon colors */
.download-icon {
    background: rgba(249, 115, 22, 0.08);
    color: #f97316;
}

.upload-icon {
    background: rgba(251, 146, 60, 0.08);
    color: #fb923c;
}

.expiry-icon {
    background: rgba(234, 88, 12, 0.08);
    color: #ea580c;
}

.online-icon {
    background: rgba(254, 215, 170, 0.12);
    color: #f97316;
}

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.metric-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.metric-value {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-word;
}

.metric-subtext {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Configs Card & Tabs */
.configs-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.tabs-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tab-buttons {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 14px;
    gap: 6px;
}

.light-theme .tab-buttons {
    background: rgba(0, 0, 0, 0.02);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.tab-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.tab-content.active {
    display: flex;
    animation: fadeIn var(--transition-speed) ease;
}

/* Link items styling */
.link-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.light-theme .link-item {
    background: rgba(0, 0, 0, 0.005);
}

.link-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow: hidden;
}

.link-details span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.link-details input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--primary-color);
    font-family: monospace;
    font-size: 13px;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    flex-shrink: 0;
}

.light-theme .copy-btn {
    background: rgba(0, 0, 0, 0.02);
}

.copy-btn:hover {
    background: var(--primary-glow);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Success state for copy button */
.copy-btn.copied {
    background: var(--status-active-bg) !important;
    border-color: var(--status-active-text) !important;
    color: var(--status-active-text) !important;
}

/* Config QR and code layout */
.config-display-wrapper {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.qr-code-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    flex-shrink: 0;
}

#qrcode-container {
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrcode-container canvas,
#qrcode-container img {
    max-width: 100%;
    max-height: 100%;
}

.qr-hint {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
}

.config-text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.config-text-section label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.config-text-section textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 12px;
    height: 120px;
    resize: none;
    outline: none;
}

.light-theme .config-text-section textarea {
    background: rgba(0, 0, 0, 0.03);
}

.primary-copy-btn {
    background: var(--primary-gradient);
    color: #ffffff !important;
    border: none;
    padding: 12px;
    border-radius: 12px;
    justify-content: center;
    font-size: 14px;
}

.primary-copy-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Footer styling */
.app-footer {
    height: 80px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-color);
    background: rgba(var(--bg-main-rgb), 0.6);
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-container p {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* Utility styles */
.hidden {
    display: none !important;
}

/* Keyframes and Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Speed Info Section styling */
.speed-info-section {
    margin-top: 40px;
    width: 100%;
}

.speed-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 28px;
    transition: all var(--transition-speed) ease;
}

.speed-info-card:hover {
    border-color: rgba(249, 115, 22, 0.2);
}

.speed-info-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.speed-info-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--primary-glow);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.speed-info-header h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.speed-info-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.speed-languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.speed-lang-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    position: relative;
}

.light-theme .speed-lang-block {
    background: rgba(0, 0, 0, 0.01);
}

.lang-badge {
    align-self: flex-start;
    background: var(--primary-glow);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.speed-explanation {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.speed-explanation strong {
    color: var(--text-primary);
}

.speed-alert-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.15);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-top: auto;
}

.speed-alert-box i {
    color: var(--primary-color);
    font-size: 15px;
    flex-shrink: 0;
}

/* Active Configs Section styling */
.configs-status-section {
    margin-top: 48px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.configs-status-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.configs-status-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.configs-status-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

.configs-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    width: 100%;
}

.config-status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.config-status-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.08), var(--card-shadow);
}

.config-status-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-status-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
}

.config-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    background: var(--status-active-bg);
    color: var(--status-active-text);
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.config-status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--status-active-text);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--status-active-text);
    animation: statusPulse 1.8s infinite ease-in-out;
}

@keyframes statusPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 8px var(--status-active-text);
    }

    50% {
        transform: scale(1.3);
        opacity: 0.6;
        box-shadow: 0 0 12px var(--status-active-text);
    }
}

.config-status-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.config-status-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.config-status-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.config-status-footer {
    margin-top: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.config-status-footer i {
    font-size: 12px;
    color: var(--primary-color);
}

/* Responsive Grid and styles */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .search-section h1 {
        font-size: 32px;
    }

    .search-box {
        flex-direction: column;
        padding: 16px;
        border-radius: 24px;
    }

    .primary-btn {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }

    .config-display-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .config-text-section {
        width: 100%;
    }

    .features-grid,
    .pricing-grid,
    .configs-status-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 24px;
    }

    .result-card,
    .feature-card,
    .platform-card {
        padding: 20px;
    }

    .faq-question {
        padding: 16px 20px;
    }

    .faq-answer-content {
        padding: 0 20px 16px 20px;
    }

    .speed-languages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .speed-info-card {
        padding: 20px;
    }
}

/* Features Section styling */
.features-section {
    margin-top: 40px;
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all var(--transition-speed) ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.08), var(--card-shadow);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.feature-icon {
    font-size: 20px;
}


.feature-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-large-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.feature-small-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-footnote {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: auto;
    opacity: 0.9;
}

/* Pricing Section styling */
.pricing-section {
    margin-top: 48px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.pricing-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    width: 100%;
    max-width: 780px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.06), var(--card-shadow);
}

.pricing-card.popular {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.12), var(--card-shadow);
}

.pricing-card.popular:hover {
    border-color: var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.pricing-plan-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pricing-price-group {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-price-group .currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-price-group .price-value {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-price-group .duration {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-check-icon {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 2px;
}

.pricing-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.locked-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.light-theme .locked-btn {
    background: rgba(0, 0, 0, 0.03);
}

.locked-btn i {
    font-size: 13px;
}

/* Highlighted feature text in pricing */
.feature-highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    position: relative;
}

.feature-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
    animation: highlightPulse 2s ease-in-out infinite;
}

@keyframes highlightPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* FAQ Section styling */
.faq-section {
    margin-top: 48px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.faq-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

.faq-list {
    width: 100%;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
}

.faq-item:hover {
    border-color: rgba(249, 115, 22, 0.2);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    outline: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    gap: 16px;
}

.faq-arrow {
    font-size: 14px;
    color: var(--text-secondary);
    transition: transform var(--transition-speed) ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 24px 20px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-answer-content ul {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Download Section styling */
.download-section {
    margin-top: 48px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.download-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 24px;
    width: 100%;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.platform-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.platform-header h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.app-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-item-download {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: all var(--transition-speed) ease;
}

.light-theme .app-item-download {
    background: rgba(0, 0, 0, 0.01);
}

.app-item-download:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.2);
}

/* Recommended app card highlighting */
.app-item-download.recommended-app {
    border-color: rgba(249, 115, 22, 0.5);
    background: rgba(249, 115, 22, 0.03);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.03);
}

.app-item-download.recommended-app:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.08);
}

.recommended-badge {
    align-self: flex-start;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.app-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Compact Premium buttons for downloading */
.primary-btn-sm,
.secondary-btn-sm {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--transition-speed) ease;
}

.primary-btn-sm {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.2);
}

.primary-btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    filter: brightness(1.05);
}

.secondary-btn-sm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.light-theme .secondary-btn-sm {
    background: rgba(0, 0, 0, 0.02);
}

.secondary-btn-sm:hover {
    background: var(--primary-glow);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .app-header {
        height: 64px;
    }

    .logo-text {
        font-size: 17px;
    }

    .logo-subtitle {
        display: none;
    }

    .logo-icon {
        font-size: 22px;
    }

    .theme-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .theme-btn i {
        font-size: 16px;
    }

    .metric-value {
        font-size: 15px;
    }

    .metric-card {
        padding: 16px;
        gap: 12px;
    }

    .search-section h1 {
        font-size: 26px;
    }

    .subtitle {
        font-size: 14px;
    }

    .speed-info-header h2 {
        font-size: 18px;
    }

    .speed-info-subtitle {
        font-size: 12px;
    }

    .speed-lang-block {
        padding: 16px;
    }
}

/* Service Status Section styling */
.service-status-section {
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.status-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 800px;
}

.status-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.2); /* Default green */
    position: relative;
}

.status-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--circle-color, #10b981);
    animation: signal-ripple 2s infinite ease-out;
}

@keyframes signal-ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.status-circle::after {
    content: '';
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--circle-color, #10b981);
    position: relative;
    z-index: 2;
}

.status-summary-card h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
}

.status-text-active {
    color: #10b981;
}

.services-list-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.services-list-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
}

.services-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.service-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
}

.service-uptime {
    color: #10b981;
}

.service-current-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}
.status-dot::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    animation: signal-ripple 2s infinite ease-out;
}
.status-dot.active {
    background-color: #10b981;
}
.service-current-status .status-text.active {
    color: #10b981;
}

.service-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.uptime-bars {
    display: flex;
    gap: 4px;
    height: 32px;
    align-items: flex-end;
    width: 100%;
}

.uptime-bar {
    flex: 1;
    border-radius: 4px;
    height: 100%;
    min-width: 2px;
}

.uptime-bar.active {
    background-color: #34d399;
}
.uptime-bar.downtime {
    background-color: #f59e0b;
}
.uptime-bar.major-downtime {
    background-color: #ef4444;
}
.uptime-bar.empty {
    background-color: rgba(255, 255, 255, 0.1);
}
.light-theme .uptime-bar.empty {
    background-color: rgba(0, 0, 0, 0.05);
}

.service-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* Mobile adjustments for uptime bars */
@media (max-width: 768px) {
    .uptime-bars {
        gap: 2px;
    }
    .uptime-bar {
        border-radius: 2px;
    }
}

@media (max-width: 480px) {
    .uptime-bars {
        gap: 1px;
    }
}

/* Updates Section */
.updates-section {
    margin-bottom: 40px;
}

.updates-header {
    margin-bottom: 24px;
    text-align: center;
}

.updates-header h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.updates-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.update-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform var(--transition-speed) ease;
}

.update-item:hover {
    transform: translateX(4px);
    border-color: rgba(249, 115, 22, 0.3);
}

.update-time-badge {
    align-self: flex-start;
    background: var(--primary-glow);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.update-content h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.update-content h3 i {
    color: var(--primary-color);
}

.update-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .updates-header h2 {
        font-size: 24px;
    }

    .update-item {
        padding: 16px;
    }
}