/* ================================================================
   Internet Pro VPN - Complete UI Stylesheet
   Glassmorphism Dark Theme | RTL | Vazirmatn Font
   ================================================================ */

@import url('https://cdn.jsdelivr.net/npm/vazirmatn@32.0.0/Vazirmatn-font-face.css');

/* ----------------------------------------------------------------
   1. GLOBAL RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background: #060d1f;
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background */
.xui-fullpage-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 210, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 60% 10%, rgba(167, 139, 250, 0.06) 0%, transparent 50%),
        linear-gradient(160deg, #060d1f 0%, #0a1628 50%, #070e20 100%);
    z-index: -1;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
::-webkit-scrollbar-thumb { background: rgba(0,210,255,0.3); border-radius: 3px; }

/* ----------------------------------------------------------------
   2. GLASS UTILITY
   ---------------------------------------------------------------- */
.glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}
.glass:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 210, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 210, 255, 0.05);
}

/* ----------------------------------------------------------------
   3. BUTTONS
   ---------------------------------------------------------------- */
.xui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    white-space: nowrap;
}
.xui-btn-primary {
    background: linear-gradient(135deg, #00d2ff, #0072ff);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 114, 255, 0.35);
}
.xui-btn-primary:hover {
    background: linear-gradient(135deg, #00e5ff, #0080ff);
    box-shadow: 0 6px 30px rgba(0, 114, 255, 0.5);
    transform: translateY(-1px);
    color: #fff;
}
.xui-btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.2);
    color: #e2e8f0;
}
.xui-btn-outline:hover {
    border-color: rgba(0, 210, 255, 0.6);
    color: #00d2ff;
    background: rgba(0, 210, 255, 0.05);
}
.xui-btn-full { width: 100%; }

/* ----------------------------------------------------------------
   4. FORMS (shared)
   ---------------------------------------------------------------- */
.xui-form-group {
    margin-bottom: 20px;
}
.xui-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: #94a3b8;
    font-weight: 500;
}
.xui-form-group label i { margin-left: 6px; }

.xui-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}
.xui-input:focus {
    border-color: rgba(0, 210, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.12);
}
.xui-input::placeholder { color: rgba(255,255,255,0.25); }
.xui-input-center { text-align: center; letter-spacing: 8px; font-size: 1.4rem; }
.xui-input-large { padding: 16px; }
.xui-input-wrap { position: relative; }
.xui-input-wrap .xui-input { padding-left: 48px; }
.xui-eye-btn {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    transition: color 0.2s;
}
.xui-eye-btn:hover { color: #00d2ff; }

/* ----------------------------------------------------------------
   5. ALERTS
   ---------------------------------------------------------------- */
.xui-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}
.xui-alert i { margin-top: 2px; flex-shrink: 0; }
.xui-alert-error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; }
.xui-alert-success { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.4); color: #86efac; }
.xui-alert-warning { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.4); color: #fcd34d; }

/* ----------------------------------------------------------------
   6. DASHBOARD WRAPPER
   ---------------------------------------------------------------- */
.xui-user-dashboard {
    min-height: 100vh;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.dark-glassmorphism { /* just a marker class */ }

/* ----------------------------------------------------------------
   7. HEADER (shared across pages)
   ---------------------------------------------------------------- */
.xui-header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 20px;
}
.xui-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}
.xui-logo-icon {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, #00d2ff, #7c3aed);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.3);
}
.xui-site-brand {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d2ff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.xui-tagline {
    font-size: 1.05rem;
    color: #94a3b8;
    margin-top: 8px;
    max-width: 500px;
    margin-inline: auto;
    line-height: 1.7;
}
.xui-header-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   8. HOME PAGE - FEATURES ROW
   ---------------------------------------------------------------- */
.xui-features-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}
.xui-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: all 0.25s;
}
.xui-feature-item:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-2px);
}
.xui-feature-item i { font-size: 1.1rem; }

/* ----------------------------------------------------------------
   9. SECTION TITLE
   ---------------------------------------------------------------- */
.xui-section-title {
    text-align: center;
    margin-bottom: 40px;
}
.xui-section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 10px;
}
.xui-section-title p { font-size: 1rem; color: #64748b; }

/* ----------------------------------------------------------------
   10. PRICING GRID & PLAN CARDS
   ---------------------------------------------------------------- */
.xui-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.xui-plan-card {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 40px 30px 30px;
    transition: all 0.35s ease;
}
.xui-plan-card:hover { transform: translateY(-8px); }
.xui-plan-card.featured {
    border-color: rgba(0, 210, 255, 0.4);
    background: rgba(0, 210, 255, 0.05);
    box-shadow: 0 0 60px rgba(0, 210, 255, 0.1);
}

/* Shine effect */
.xui-plan-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.07) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}
.xui-plan-card:hover::after { left: 150%; }

.xui-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.plan-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, rgba(0,210,255,0.15), rgba(99,102,241,0.15));
    border: 1.5px solid rgba(0,210,255,0.25);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #00d2ff;
    margin: 0 auto 20px;
    transition: transform 0.3s;
}
.xui-plan-card:hover .plan-icon { transform: scale(1.1) rotate(-5deg); }

.xui-plan-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 18px;
}

.plan-price {
    margin-bottom: 24px;
}
.plan-price .amount {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d2ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.plan-price .currency { font-size: 1rem; color: #64748b; margin-right: 4px; }

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
    text-align: right;
}
.plan-features li {
    padding: 9px 0;
    color: #94a3b8;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li i { color: #00d2ff; flex-shrink: 0; }

.plan-buy-btn { width: 100%; }

/* ----------------------------------------------------------------
   11. SITE FOOTER
   ---------------------------------------------------------------- */
.xui-site-footer {
    text-align: center;
    padding: 30px 0;
    color: #334155;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 20px;
}

/* ----------------------------------------------------------------
   12. AUTH PAGE
   ---------------------------------------------------------------- */
.xui-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.xui-auth-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(0,210,255,0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 70%, rgba(124, 58, 237, 0.12) 0%, transparent 55%),
        linear-gradient(135deg, #060d1f, #0c1832, #06101f);
    z-index: 0;
}

.xui-auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    padding: 40px 36px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
    animation: slideUp 0.4s ease;
}

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

.xui-auth-brand {
    text-align: center;
    margin-bottom: 32px;
}
.xui-auth-logo {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #00d2ff, #7c3aed);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 12px 40px rgba(0, 210, 255, 0.35);
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.xui-auth-brand h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d2ff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}
.xui-auth-brand p { font-size: 0.9rem; color: #64748b; }

/* Auth Tabs */
.xui-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    background: rgba(0,0,0,0.3);
    padding: 6px;
    border-radius: 14px;
}
.xui-auth-tab {
    flex: 1;
    padding: 11px;
    background: transparent;
    border: none;
    color: #64748b;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.xui-auth-tab.active {
    background: linear-gradient(135deg, #00d2ff, #0072ff);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
}
.xui-auth-tab:not(.active):hover { color: #94a3b8; background: rgba(255,255,255,0.05); }

/* Auth Forms */
.xui-auth-form { display: none; }
.xui-auth-form.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.xui-form-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 0.87rem;
    color: #64748b;
}
.xui-form-check input[type="checkbox"] { margin-left: 6px; accent-color: #00d2ff; }
.xui-forgot { color: #00d2ff; text-decoration: none; font-size: 0.85rem; }
.xui-forgot:hover { text-decoration: underline; }

/* Password Strength */
.xui-password-strength {
    height: 4px;
    border-radius: 2px;
    background: #1e3a5f;
    margin-top: 8px;
    width: 0%;
    transition: width 0.4s ease, background 0.4s ease;
    position: relative;
}
.xui-password-strength::after {
    content: attr(data-label);
    position: absolute;
    right: 0;
    top: 8px;
    font-size: 0.75rem;
    color: inherit;
}

.xui-auth-back {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.xui-auth-back a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.xui-auth-back a:hover { color: #00d2ff; }

/* ----------------------------------------------------------------
   13. DASHBOARD
   ---------------------------------------------------------------- */
.xui-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}
.xui-stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
}
.xui-stat-card .icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0,210,255,0.15), rgba(99,102,241,0.15));
    border: 1.5px solid rgba(0,210,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #00d2ff;
    flex-shrink: 0;
    transition: transform 0.3s;
}
.xui-stat-card:hover .icon { transform: scale(1.1) rotate(-8deg); }
.xui-stat-card .info h4 { font-size: 0.85rem; color: #64748b; font-weight: 500; margin-bottom: 6px; }
.xui-stat-card .info p { font-size: 1.4rem; font-weight: 700; color: #f1f5f9; letter-spacing: 0.5px; }

.xui-main-content { display: grid; grid-template-columns: 2fr 1fr; gap: 25px; }
@media (max-width: 900px) { .xui-main-content { grid-template-columns: 1fr; } }

.xui-chart-section h3, .xui-subscription-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}
.xui-chart-section p, .xui-subscription-info p { font-size: 0.88rem; color: #64748b; margin-bottom: 16px; }

.xui-link-box {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.xui-link-box input {
    flex: 1;
    padding: 13px 16px;
    background: rgba(0,0,0,0.4);
    border: 1.5px solid rgba(0,210,255,0.2);
    border-radius: 12px;
    color: #fff;
    font-family: monospace;
    font-size: 0.85rem;
    direction: ltr;
    outline: none;
    transition: border-color 0.25s;
}
.xui-link-box input:focus { border-color: #00d2ff; }
.xui-actions { margin-top: 20px; }
.mt-3 { margin-top: 12px; }

/* ----------------------------------------------------------------
   14. CHECKOUT PAGE
   ---------------------------------------------------------------- */
.xui-checkout-box {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px;
}
.checkout-plan-summary { text-align: center; margin-bottom: 28px; }
.checkout-plan-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, rgba(0,210,255,0.2), rgba(124,58,237,0.2));
    border-radius: 18px;
    border: 1.5px solid rgba(0,210,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #00d2ff;
    margin: 0 auto 16px;
}
.checkout-plan-summary h3 { font-size: 1.3rem; font-weight: 700; color: #f1f5f9; margin-bottom: 12px; }
.checkout-price { font-size: 2rem; font-weight: 800; color: #00d2ff; margin-bottom: 16px; }
.checkout-price span { font-size: 2.4rem; }
.checkout-details {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.checkout-details span {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}
.checkout-details span i { color: #00d2ff; }

.checkout-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    margin: 24px 0;
}

.checkout-card-info { text-align: center; display: flex; flex-direction: column; align-items: center; }
.checkout-card-label { font-size: 0.88rem; color: #64748b; margin-bottom: 14px; }
.checkout-card-label i { margin-left: 6px; color: #00d2ff; }

/* Virtual Bank Card Design */
.virtual-bank-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    margin-bottom: 15px;
}

.virtual-bank-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.v-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.v-card-chip {
    width: 45px; height: 32px;
    background: linear-gradient(135deg, #eab308, #fef08a, #ca8a04);
    border-radius: 6px;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

.v-card-chip::after {
    content: '';
    position: absolute;
    top: 5px; bottom: 5px; left: 8px; right: 8px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 3px;
}

.v-card-bank-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.v-card-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    margin-bottom: 25px;
    direction: ltr;
    position: relative;
    z-index: 2;
}

.v-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

.v-card-owner {
    text-align: right;
}

.v-card-owner-label {
    display: block;
    font-size: 0.65rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.v-card-owner-value {
    font-size: 1.05rem;
    color: #f8fafc;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.v-card-copy-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.v-card-copy-btn:hover {
    background: rgba(0,210,255,0.2);
    border-color: #00d2ff;
    color: #00d2ff;
}
.checkout-note {
    margin-top: 14px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.87rem;
    line-height: 1.7;
    text-align: right;
}
.checkout-note i { margin-left: 6px; }

/* ----------------------------------------------------------------
   15. RESPONSIVE & WP ADMIN BAR HIDE
   ---------------------------------------------------------------- */
/* Hide WP admin bar for subscribers */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

@media (max-width: 992px) {
    .xui-main-content { flex-direction: column !important; }
}

@media (max-width: 768px) {
    .xui-stats-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 600px) {
    /* Web App Style adjustments */
    html, body { overflow-x: hidden !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
    
    .xui-user-dashboard { 
        padding: 15px !important; 
        padding-bottom: 40px !important; 
        border-radius: 0; 
        min-height: 100vh;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }
    .glass { padding: 15px !important; border-radius: 15px; box-sizing: border-box !important; }
    .xui-auth-container { padding: 20px 15px; border-radius: 20px; width: 100%; box-sizing: border-box; }
    
    .xui-site-brand { font-size: 1.5rem; }
    .xui-header-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .xui-header-actions .xui-btn { width: 100%; }
    
    .xui-checkout-box { padding: 20px 15px; width: 100%; box-sizing: border-box; }
    .xui-pricing-grid { grid-template-columns: 1fr; gap: 15px; }
    .xui-features-row { gap: 8px; flex-wrap: wrap; justify-content: center; }
    .xui-feature-item { padding: 8px 12px; font-size: 0.8rem; }
    
    /* Stats Grid */
    .xui-stats-grid { 
        display: grid !important; 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important; 
        width: 100% !important;
    }
    .xui-stat-card { 
        padding: 15px 10px !important; 
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important; 
        text-align: center !important; 
        gap: 8px !important; 
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .xui-stat-card .icon { width: 35px; height: 35px; font-size: 1rem; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
    .xui-stat-card .info { text-align: center !important; width: 100%; }
    .xui-stat-card .info h4 { font-size: 0.75rem !important; margin: 0 0 5px 0 !important; }
    .xui-stat-card .info p { font-size: 0.9rem !important; margin: 0 !important; direction: ltr; }
    
    /* Subscription Block */
    .xui-subscription-block { 
        padding: 15px !important; 
        border-radius: 15px; 
        border: none; 
        background: rgba(255,255,255,0.03); 
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .xui-main-content { display: flex !important; flex-direction: column !important; gap: 15px; width: 100%; box-sizing: border-box; }
    
    .xui-header { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center; gap: 15px; margin-bottom: 25px; width: 100%; box-sizing: border-box; }
    .xui-header > div { width: 100% !important; text-align: center !important; }
    .xui-header .xui-btn { width: 100% !important; display: block; }
    
    /* Tabs for Subscriptions */
    .subscription-tabs-container { padding-bottom: 10px; margin-bottom: 15px; -webkit-overflow-scrolling: touch; }
    .subscription-tabs-container button { min-width: 140px; padding: 10px 12px; }
    
    /* Virtual Bank Card Mobile */
    .virtual-bank-card { padding: 16px; border-radius: 16px; margin: 0 -5px 15px -5px; width: calc(100% + 10px); max-width: none; }
    .v-card-top { margin-bottom: 20px; }
    .v-card-number { font-size: 1.3rem; letter-spacing: 2px; margin-bottom: 15px; }
    .v-card-chip { width: 35px; height: 26px; }
    .v-card-owner-value { font-size: 0.9rem; }
    .v-card-copy-btn { padding: 6px 10px; font-size: 0.75rem; }
    
    /* Table Responsive Mobile Fix - Card Layout */
    .xui-table-container { padding: 0 !important; background: transparent !important; border: none !important; border-radius: 0 !important; }
    .xui-table, .xui-table tbody, .xui-table tr, .xui-table td { display: block !important; width: 100% !important; box-sizing: border-box !important; }
    .xui-table thead { display: none !important; }
    .xui-table tr { 
        background: rgba(255,255,255,0.03) !important; 
        border-radius: 12px !important; 
        margin-bottom: 15px !important; 
        padding: 15px 10px !important; 
        border: 1px solid rgba(255,255,255,0.05) !important; 
    }
    .xui-table td { 
        display: flex !important; 
        justify-content: space-between !important; 
        align-items: center !important; 
        padding: 8px 0 !important; 
        border-bottom: 1px dashed rgba(255,255,255,0.1) !important; 
        text-align: left !important;
        white-space: normal !important;
    }
    .xui-table td:last-child { border-bottom: none !important; }
    .xui-table td::before { 
        content: attr(data-label); 
        font-weight: 500; 
        color: #94a3b8; 
        margin-left: 15px;
        text-align: right;
    }
    
    /* Modal Tweaks */
    #qrModal > div { padding: 20px !important; }
}

/* Specific fix for tabs container to scroll natively like an app */
.subscription-tabs-container::-webkit-scrollbar { display: none; }
.subscription-tabs-container { -ms-overflow-style: none; scrollbar-width: none; }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(0, 210, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

/* ----------------------------------------------------------------
   15. SIDE MENU (HAMBURGER)
   ---------------------------------------------------------------- */
.xui-menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: #00d2ff;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.xui-menu-toggle:hover {
    background: rgba(0, 210, 255, 0.15);
    transform: scale(1.05);
}

.xui-side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #111827, #0f172a);
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.xui-side-menu.active {
    right: 0;
}

.xui-menu-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.xui-menu-close:hover {
    color: #ff4b2b;
}

.xui-menu-content {
    padding: 30px 20px;
    flex: 1;
}

.xui-menu-title {
    color: #f1f5f9;
    font-size: 1.4rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: right;
}

.xui-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.xui-menu-list li {
    margin-bottom: 10px;
}
.xui-menu-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.xui-menu-list a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: #00d2ff;
}
.xui-menu-list a.logout-link i {
    color: #ff4b2b;
}
.xui-menu-list a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    transform: translateX(-5px);
}

.xui-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.xui-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ----------------------------------------------------------------
   16. FIX: Override WordPress theme black text interference
   ---------------------------------------------------------------- */

/* Force white/light color on all text inside our dashboard wrapper */
.xui-user-dashboard,
.xui-user-dashboard h1,
.xui-user-dashboard h2,
.xui-user-dashboard h3,
.xui-user-dashboard h4,
.xui-user-dashboard h5,
.xui-user-dashboard h6,
.xui-user-dashboard p,
.xui-user-dashboard span,
.xui-user-dashboard li,
.xui-user-dashboard td,
.xui-user-dashboard th,
.xui-user-dashboard label,
.xui-user-dashboard div {
    color: inherit;
}

/* Specific text color fixes */
.xui-user-dashboard h2 { color: #f1f5f9 !important; }
.xui-user-dashboard h3 { color: #e2e8f0 !important; }
.xui-user-dashboard p  { color: #94a3b8 !important; }
.xui-user-dashboard td,
.xui-user-dashboard th { color: #e2e8f0 !important; }

/* Table header text */
.xui-table th { color: #94a3b8 !important; }
.xui-table td { color: #e2e8f0 !important; }

/* Table container */
.xui-table-container { color: #e2e8f0 !important; }

/* Dashboard header texts */
.xui-header h2 { color: #e2e8f0 !important; }
.xui-header p  { color: #94a3b8 !important; }

/* Stats cards */
.xui-stat-card .info h4 { color: #64748b !important; }
.xui-stat-card .info p  { color: #f1f5f9 !important; }

/* Auth page */
.xui-auth-page,
.xui-auth-container,
.xui-auth-container h2,
.xui-auth-container p,
.xui-auth-container label,
.xui-auth-container span { color: #e2e8f0 !important; }
.xui-auth-brand p { color: #64748b !important; }

/* Buttons - keep their own colors */
.xui-btn-primary,
.xui-btn-primary span,
.xui-btn-primary i { color: #fff !important; }

.xui-btn-outline,
.xui-btn-outline span,
.xui-btn-outline i { color: #e2e8f0 !important; }

/* Plan cards */
.xui-plan-card h3     { color: #f1f5f9 !important; }
.xui-plan-card li     { color: #94a3b8 !important; }
.xui-plan-card small  { color: #64748b !important; }

/* Section title */
.xui-section-title h2 { color: #f1f5f9 !important; }
.xui-section-title p  { color: #64748b !important; }

/* Modal & overlay texts */
.glass h3   { color: #e2e8f0 !important; }
.glass p    { color: #94a3b8 !important; }
.glass label { color: #94a3b8 !important; }
.glass span { color: inherit !important; }

/* Side menu */
.xui-menu-list a { color: #cbd5e1 !important; }
.xui-menu-list a:hover { color: #fff !important; }

/* Gradient text - must stay transparent for gradient to show */
.xui-site-brand,
.xui-auth-brand h1,
.plan-price .amount {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}
