/* VPN Unlimited Mini App - Dark Theme */

/* ============== CSS Variables ============== */

:root {
    /* Dark Theme Only - KeepSolid brand */
    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    --bg-card: #1A1A1A;
    --bg-header: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #8E8E93;
    --text-muted: #636366;
    --border-color: #2C2C2E;
    
    /* KeepSolid brand blue */
    --accent-color: #0066FF;
    --accent-hover: #0052CC;
    --accent-light: rgba(0, 102, 255, 0.15);
    
    --success-color: #34C759;
    --warning-color: #FF9F0A;
    --danger-color: #FF453A;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    
    /* Server load indicator colors */
    --load-low: #34C759;
    --load-medium: #FF9F0A;
    --load-high: #FF453A;
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
    --gradient-dark: linear-gradient(180deg, #000000 0%, #1A1A1A 100%);
}

/* ============== Base Styles ============== */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.5s ease;
}

/* VPN Status Background handled by .fixed-header-section */

#app {
    min-height: 100vh;
    position: relative;
}

/* ============== Screen System ============== */

.screen {
    display: none;
    min-height: 100vh;
    background-color: transparent;
}

.screen.active {
    display: block;
}

/* Screens with bottom nav need padding */
#serversScreen,
#accountScreen,
#helpScreen,
#downloadsScreen {
    padding-bottom: 80px;
}

/* ============== Loading Screen ============== */

#loadingScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    color: #fff;
}

.loading-container {
    text-align: center;
}

.loading-container .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--accent-color) !important;
}

/* ============== Login Screen ============== */

#loginScreen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-primary);
    padding: 0;
}

.login-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-header {
    padding: 16px 20px;
    margin-bottom: 0;
}

.login-header-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.login-logo {
    flex-shrink: 0;
    overflow: hidden;
    display: block;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    line-height: 0;
}

.login-logo svg {
    width: 40px;
    height: 38px;
    display: block;
    vertical-align: top;
}

.login-title-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.login-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: left;
    line-height: 1.3;
}

.login-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: left;
}

.login-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin: 8px 16px 0;
}

.login-step {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-input-group {
    margin-bottom: 16px;
}

.login-input {
    width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

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

.login-input:focus {
    border-color: var(--accent-color);
}

.login-btn {
    height: 48px;
    font-size: 16px;
    font-weight: 600;
}

.otp-message {
    color: var(--text-secondary);
    font-size: 14px;
}

.otp-message strong {
    color: var(--text-primary);
}

/* 6-cell OTP/TFA code input */
.otp-cells-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: nowrap;
}

.otp-cells-container .otp-cell {
    width: 44px;
    height: 52px;
    min-width: 44px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    padding: 0;
    border-radius: 10px;
}

.login-footer {
    margin-top: auto;
    padding: 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.recaptcha-notice {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

.recaptcha-notice a {
    color: var(--accent-color);
    text-decoration: none;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

/* Legacy form-floating support for OTP (fallback) */
.form-floating .form-control {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    height: 56px;
    padding: 16px;
}

.form-floating .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.form-floating label {
    color: var(--text-muted);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: var(--gradient-primary);
}

.btn-primary:disabled {
    opacity: 0.6;
    transform: none;
}

.btn-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.btn-link:hover {
    color: var(--accent-color);
}

/* ============== Payment Screen ============== */

#paymentScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.payment-container {
    width: 100%;
    max-width: 360px;
}

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

.payment-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--accent-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-icon i {
    font-size: 28px;
    color: var(--accent-color);
}

.payment-header h3 {
    margin: 0 0 8px;
    font-weight: 600;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option:hover {
    border-color: var(--accent-color);
    background: var(--accent-light);
}

.payment-option i:first-child {
    font-size: 24px;
}

.payment-option span {
    flex: 1;
    font-weight: 500;
}

.payment-option i:last-child {
    color: var(--text-muted);
}

/* ============== Bottom Navigation ============== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-item i {
    font-size: 22px;
}

.nav-item.active {
    color: var(--text-primary);
}

.nav-item.active i {
    color: var(--accent-color);
}

.nav-item:active {
    opacity: 0.7;
}

/* ============== Header ============== */

/* Fixed header section for servers screen */
.fixed-header-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--bg-primary);
    padding-bottom: 4px;
}

/* Same layout as fixed-header-section but static (Account/Help/Downloads) */
.header-section {
    width: 100%;
    overflow: visible;
}

/* Force full logo width on Account/Help/Downloads so SVG is not clipped */
.header-section .header-logo {
    width: 148px;
    max-width: 148px;
}

.header-section .header-logo svg {
    width: 148px !important;
    min-width: 148px;
}

.servers-scroll-area {
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    bottom: 70px;
    overflow-y: auto;
    padding-top: 18px;
}

.servers-scroll-area::before {
    content: '';
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    height: 18px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

.app-header {
    background-color: transparent;
    border-bottom: none;
    position: relative;
    z-index: 100;
    overflow: visible;
}

.app-header .fw-semibold {
    font-size: 17px;
    color: var(--text-primary);
}

/* Search Container */
.search-container .input-group {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
}

.search-container .input-group-text {
    border: none;
    background-color: transparent;
    color: var(--text-muted);
}

.search-container .form-control {
    border: none;
    background-color: transparent;
    color: var(--text-primary);
}

.search-container .form-control::placeholder {
    color: var(--text-muted);
}

.search-container .form-control:focus {
    box-shadow: none;
}

/* ============== Server Cards ============== */

.server-section {
    margin-bottom: 0;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 16px 16px 8px;
}

.server-list {
    background-color: transparent;
    padding: 0 12px;
}

.server-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    min-height: 64px;
    background-color: #242427;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.server-card:hover {
    background-color: #2a2a2d;
}

.server-card:active {
    transform: scale(0.98);
}

.server-card:last-child {
    margin-bottom: 0;
}

.server-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.server-icon .server-flag {
    width: 32px;
    height: 24px;
    object-fit: contain;
}

.language-flag-img {
    object-fit: contain;
    vertical-align: middle;
}

.server-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.server-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Optimal Server Card */
.server-card.optimal-card {
    background-color: #242427;
}

.optimal-icon {
    background-color: transparent;
}

.optimal-icon svg {
    display: block;
}

/* Server Load Indicator */
.server-load {
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.load-bar {
    width: 4px;
    border-radius: 2px;
    background-color: var(--border-color);
}

.load-bar:nth-child(1) { height: 8px; }
.load-bar:nth-child(2) { height: 12px; }
.load-bar:nth-child(3) { height: 16px; }

.load-bar.active.low { background-color: var(--load-low); }
.load-bar.active.medium { background-color: var(--load-medium); }
.load-bar.active.high { background-color: var(--load-high); }

/* Favorite Star */
.favorite-star {
    color: var(--text-muted);
    font-size: 20px;
    padding: 4px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.favorite-star:hover,
.favorite-star.active {
    color: var(--warning-color);
}

/* ============== Account Screen ============== */

.account-container {
    padding-top: 60px;
}

.account-card {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.account-email {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.subscription-card {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.subscription-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.status-badge.status-trial {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.status-badge.status-expired {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
}

.subscription-details {
    font-size: 14px;
    color: var(--text-secondary);
}

.web-access-card {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.web-access-links,
.mirrors-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.web-access-link,
.mirror-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.web-access-link:hover,
.mirror-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.mirrors-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.action-btn:hover {
    background: var(--bg-secondary);
}

.action-btn i {
    font-size: 20px;
    color: var(--accent-color);
}

.action-btn.text-danger i {
    color: var(--danger-color);
}

/* ============== Help Screen ============== */

.help-container {
    padding-top: 60px;
}

.help-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s ease;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.help-option:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.help-option i:first-child {
    font-size: 22px;
    color: var(--accent-color);
}

.help-option span {
    flex: 1;
    font-weight: 500;
}

.help-option i:last-child {
    color: var(--text-muted);
    font-size: 14px;
}

.help-info {
    background: var(--bg-card) !important;
    border-radius: 12px;
}

.help-info h6 {
    font-weight: 600;
    margin-bottom: 8px;
}

/* ============== Downloads Screen ============== */

.downloads-container {
    padding-top: 60px;
}

.downloads-container h6 {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.download-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: var(--bg-card);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.download-option:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.download-option:active {
    transform: scale(0.96);
}

.download-option i {
    font-size: 32px;
    color: var(--text-primary);
}

.download-option span {
    font-size: 13px;
    font-weight: 500;
}

/* ============== Modal ============== */

.modal-content {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-header .btn-close {
    filter: invert(1);
}

.config-url-container {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
    max-height: 120px;
}

.config-url {
    font-size: 11px;
    word-break: break-all;
    color: var(--accent-color);
}

/* ============== Utilities ============== */

.text-muted {
    color: var(--text-muted) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.bg-light {
    background-color: var(--bg-secondary) !important;
}

/* ============== Scrollbar Styling ============== */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============== Responsive ============== */

@media (max-width: 576px) {
    .server-card {
        padding: 6px 14px;
    }
    
    .server-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
    
    .server-name {
        font-size: 14px;
    }
    
    .download-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============== Language & Theme Selection ============== */

.language-list,
.theme-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.language-item,
.theme-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-item:hover,
.theme-item:hover {
    border-color: var(--accent-color);
    background: var(--accent-light);
}

.language-item.active,
.theme-item.active {
    border-color: var(--accent-color);
    background: var(--accent-light);
}

.language-flag,
.theme-icon {
    font-size: 24px;
}

.language-name,
.theme-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.language-item i,
.theme-item i {
    font-size: 20px;
}

/* ============== Purchase Options ============== */

.purchase-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.purchase-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    border: none;
}

.purchase-option-item:hover {
    border-color: var(--accent-color);
    background: var(--accent-light);
}

.purchase-option-item i:first-child {
    font-size: 24px;
}

.purchase-option-item span {
    flex: 1;
    font-weight: 500;
}

.purchase-option-item i:last-child {
    color: var(--text-muted);
}

/* ============== Plans List ============== */

.plans-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.plan-item:hover {
    border-color: var(--accent-color);
    background: var(--accent-light);
}

.plan-type {
    font-size: 20px;
}

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

.plan-name {
    font-weight: 500;
    color: var(--text-primary);
}

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

.plan-item i:last-child {
    color: var(--text-muted);
}

/* ============== Stars Info Modal ============== */

.stars-methods,
.stars-instructions {
    display: flex;
    flex-direction: column;
}

.stars-method,
.stars-instruction-item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.stars-method:last-child,
.stars-instruction-item:last-child {
    border-bottom: none;
}

.stars-method h6,
.stars-instruction-item h6 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* ============== News Modal ============== */

.news-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.news-channel-item:hover {
    border-color: var(--accent-color);
    background: var(--accent-light);
    color: var(--text-primary);
}

.news-channel-item i:first-child {
    font-size: 24px;
}

.news-channel-item span {
    flex: 1;
    font-weight: 500;
}

.news-channel-item i:last-child {
    color: var(--text-muted);
}

/* ============== KSCoin Modal ============== */

.kscoin-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kscoin-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.kscoin-link-item:hover {
    border-color: var(--accent-color);
    background: var(--accent-light);
    color: var(--text-primary);
}

.kscoin-link-item i:first-child {
    font-size: 24px;
}

.kscoin-link-item span {
    flex: 1;
    font-weight: 500;
}

.kscoin-link-item i:last-child {
    color: var(--text-muted);
}

/* ============== Support Modal ============== */

.support-contact {
    margin-top: 12px;
}

.support-email-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
}

.support-email-card h6 {
    color: var(--text-muted);
}

.support-email-card p {
    color: var(--text-primary);
    word-break: break-all;
}

/* ============== Payment Methods Modal ============== */

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.payment-method-item:hover {
    border-color: var(--accent-color);
    background: var(--accent-light);
}

.payment-method-item i:first-child {
    font-size: 24px;
}

.payment-method-item span {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.payment-method-item i:last-child {
    color: var(--text-muted);
}

/* ============== Safe Area ============== */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #serversScreen,
    #accountScreen,
    #helpScreen,
    #downloadsScreen {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
    
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ============== VPN Status Card ============== */

.vpn-status-card {
    background: #1A1A1A;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vpn-status-card:hover {
    opacity: 0.9;
}

.vpn-status-card:active {
    transform: scale(0.98);
}

/* Title outside card */
.vpn-status-title-outer {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.vpn-status-main {
    padding: 12px 16px;
}

.vpn-status-location {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vpn-location-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.vpn-location-country {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============== Header Logo ============== */

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 148px;
    overflow: visible;
}

.header-logo svg {
    height: 40px;
    width: 148px;
    min-width: 148px;
    flex-shrink: 0;
    overflow: visible;
}

/* Inline Header Search */
.header-main-row {
    gap: 8px;
}

/* Placeholder search icon: invisible but keeps layout same as Servers */
.header-search-icon-placeholder {
    visibility: hidden;
    pointer-events: none;
}

.header-search-inline {
    display: none;
    align-items: center;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 4px 8px;
    width: 120px;
}

.header-search-inline.active {
    display: flex;
}

.header-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    padding: 0;
    width: 100%;
}

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

.header-search-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0;
    margin-left: 4px;
    cursor: pointer;
    font-size: 12px;
}

.header-search-icon {
    cursor: pointer;
    flex-shrink: 0;
}
