:root {
    --primary-color: #6C63FF;
    --secondary-color: #FF6584;
    --accent-color: #00d2ff;
    --bg-dark: #0f0c29;
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: 1px solid rgba(255, 255, 255, 0.08);
    --text-main: #f0f0f5;
    --text-muted: #9a9ab0;
    --text-heading: #ffffff;
    --glass-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.25);
    --font-main: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.theme-promax {
    --primary-color: #8B5CF6;
    --secondary-color: #A78BFA;
    --accent-color: #C4B5FD;
    --bg-dark: #0f0a1a;
    --bg-gradient: linear-gradient(135deg, #0f0a1a, #1a1030, #251545);
    --card-bg: rgba(139, 92, 246, 0.04);
    --card-border: 1px solid rgba(139, 92, 246, 0.12);
    --text-heading: #ffffff;
    --glass-shadow: 0 4px 16px 0 rgba(100, 60, 180, 0.2);
}

body.theme-promax ::-webkit-scrollbar-thumb { background: #8B5CF6; }
body.theme-promax ::-webkit-scrollbar-thumb:hover { background: #A78BFA; }
body.theme-promax .side-nav { border-color: rgba(139, 92, 246, 0.12); }
body.theme-promax .nav-item:hover,
body.theme-promax .nav-item.active {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}
body.theme-promax .auth-btn-top:hover {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    border-color: #8B5CF6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
body.theme-promax .profile-btn { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
body.theme-promax .btn-primary { background: linear-gradient(45deg, #8B5CF6, #6D28D9); }
body.theme-promax .card:hover { border-color: #8B5CF6; }
body.theme-promax .card h3 { color: #8B5CF6; }
body.theme-promax .section-title::after { background: linear-gradient(90deg, #8B5CF6, transparent); }
body.theme-promax .search-input:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}
body.theme-promax .back-to-top { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
body.theme-promax .auth-tab.active {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.25);
}
body.theme-promax .auth-submit { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
body.theme-promax .form-group input:focus,
body.theme-promax .form-group select:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.12);
}
body.theme-promax .profile-avatar { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
body.theme-promax .profile-value code { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; }
body.theme-promax .profile-label i { color: #8B5CF6; }
body.theme-promax .nav-item .tooltip { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }

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

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    padding: 15px;
    direction: rtl;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.5;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary-color); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 70px 15px 15px;
}

/* Floating Sidebar */
.side-nav {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: var(--card-border);
    border-radius: 40px;
    padding: 15px 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    box-shadow: var(--glass-shadow);
}

.nav-item {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.25s ease;
    position: relative;
}

.nav-item i { font-size: 1em; }

.nav-item:hover, .nav-item.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 12px var(--primary-color);
}

.nav-item .tooltip {
    position: absolute;
    right: 50px;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
}

.nav-item:hover .tooltip { opacity: 1; right: 45px; }

/* Header */
header {
    text-align: center;
    margin-bottom: 25px;
    padding: 35px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: var(--card-border);
    box-shadow: var(--glass-shadow);
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    font-size: 2.2em;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
}

header p {
    color: var(--text-muted);
    font-size: 0.95em;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Bar */
.search-container { margin: 20px auto 0; max-width: 500px; position: relative; }

.search-input {
    width: 100%;
    padding: 12px 22px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.95em;
    transition: all 0.25s ease;
    backdrop-filter: blur(5px);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.15);
    border-color: var(--primary-color);
}

/* Sections */
.section-title {
    font-size: 1.4em;
    margin: 25px 0 18px;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 35px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 18px;
    backdrop-filter: blur(10px);
    border: var(--card-border);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.card h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 700;
}

.card-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    font-size: 0.85em;
}

.btn-primary { background: linear-gradient(45deg, var(--primary-color), #3a7bd5); color: white; }

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.15); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }

.contact-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.08), rgba(0, 210, 255, 0.08));
    border-color: rgba(108, 99, 255, 0.2);
}

.mediafire-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(167, 139, 250, 0.08));
    border-color: rgba(139, 92, 246, 0.2);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { opacity: 0; transform: translateY(15px); transition: all 0.5s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Footer */
footer {
    text-align: center;
    color: var(--text-muted);
    padding: 35px 0;
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.01);
    font-size: 0.85em;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1000;
    font-size: 0.9em;
}

.back-to-top.show { opacity: 1; visibility: visible; }

/* Auth Button */
.auth-float { position: fixed; top: 15px; left: 25px; z-index: 1100; }

.auth-btn-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    color: white;
    font-family: var(--font-main);
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.auth-btn-top:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
    transform: translateY(-2px);
}

.profile-btn { background: linear-gradient(135deg, var(--primary-color), #3a7bd5); border-color: transparent; }

/* Packages */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 35px;
}

.package-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 25px 20px 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.package-ribbon {
    position: absolute;
    top: 18px;
    left: -30px;
    background: var(--primary-color);
    color: white;
    padding: 4px 40px;
    font-size: 0.7em;
    font-weight: 700;
    transform: rotate(-45deg);
    letter-spacing: 0.5px;
}

.package-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.4em;
    transition: all 0.3s ease;
}

.package-header { text-align: center; margin-bottom: 15px; }
.package-header h3 { font-size: 1.5em; font-weight: 800; margin-bottom: 4px; }
.package-desc { color: var(--text-muted); font-size: 0.8em; }

.package-price {
    margin-top: 8px;
    font-size: 1.8em;
    font-weight: 800;
    color: var(--text-heading);
}
.package-price span { font-size: 0.35em; font-weight: 400; color: var(--text-muted); }

.package-tools, .package-features { margin-bottom: 12px; flex: 1; }
.package-tools h4, .package-features h4 { font-size: 0.85em; margin-bottom: 8px; color: var(--text-heading); }

.package-tools ul, .package-features ul { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }

.package-tools li {
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    color: var(--text-muted);
}

.tool-new {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 180, 0, 0.06)) !important;
    color: #FFD700 !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    font-weight: 700 !important;
}

.new-tag {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: #000;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 0.65em;
    font-weight: 800;
    margin-right: 2px;
}

.package-features li { font-size: 0.8em; color: var(--text-muted); width: 100%; }
.package-features li i { color: #4CAF50; margin-left: 4px; }

.package-btn {
    margin-top: auto;
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    font-family: var(--font-main);
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.package-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); filter: brightness(1.1); }

.package-basic { border-top: 3px solid #4CAF50; }
.package-basic .package-icon { background: rgba(76, 175, 80, 0.12); color: #4CAF50; }
.package-basic .package-header h3 { color: #4CAF50; }
.package-basic .package-btn { background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.package-basic .package-ribbon { background: #4CAF50; }

.package-pro { border-top: 3px solid #2196F3; }
.package-pro .package-icon { background: rgba(33, 150, 243, 0.12); color: #2196F3; }
.package-pro .package-header h3 { color: #2196F3; }
.package-pro .package-btn { background: linear-gradient(135deg, #2196F3, #1565C0); }
.package-pro .package-ribbon { background: #2196F3; }

.popular-badge {
    position: absolute;
    top: 12px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: #000;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.65em;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.package-promax { border-top: 3px solid #8B5CF6; }
.package-promax .package-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.25);
}
.package-promax .package-header h3 { color: #8B5CF6; }
.package-promax .package-btn { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.package-promax .package-ribbon { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-close {
    position: absolute;
    top: 12px; left: 15px;
    background: none; border: none;
    color: var(--text-muted);
    font-size: 1.5em;
    cursor: pointer;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.modal-close:hover { color: white; background: rgba(255, 255, 255, 0.08); }

/* Auth Forms */
.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 3px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 3px 10px rgba(108, 99, 255, 0.25);
}

.auth-form { display: none; flex-direction: column; gap: 14px; }
.auth-form.active { display: flex; }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.8em; color: var(--text-muted); font-weight: 600; }
.form-group label i { width: 16px; color: var(--primary-color); }

.form-group input {
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: white;
    font-family: var(--font-main);
    font-size: 0.9em;
    transition: all 0.25s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.12);
}

.auth-error {
    display: none;
    background: rgba(255, 68, 68, 0.12);
    border: 1px solid rgba(255, 68, 68, 0.25);
    color: #ff4444;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
}
.auth-error.show { display: block; }

.auth-submit {
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), #3a7bd5);
    color: white;
    font-family: var(--font-main);
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(108, 99, 255, 0.35); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Profile */
.profile-modal { max-width: 460px; }
.profile-header { text-align: center; margin-bottom: 20px; }

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary-color), #3a7bd5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: white;
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.35);
}

.profile-header h2 { font-size: 1.2em; margin-bottom: 4px; }

.profile-role {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
    background: rgba(108, 99, 255, 0.12);
    color: var(--primary-color);
}

.profile-role.admin { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }

.profile-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.profile-label { color: var(--text-muted); font-size: 0.8em; }
.profile-label i { width: 18px; color: var(--primary-color); }
.profile-value { color: var(--text-main); font-weight: 600; font-size: 0.85em; }

.profile-value code {
    background: rgba(108, 99, 255, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    color: var(--primary-color);
    font-family: 'Cascadia Code', 'Consolas', monospace;
}

.package-badge { padding: 3px 12px; border-radius: 15px; font-weight: 700; font-size: 0.75em !important; }
.package-badge.basic { background: rgba(76, 175, 80, 0.15); color: #4CAF50; }
.package-badge.pro { background: rgba(33, 150, 243, 0.15); color: #2196F3; }
.package-badge.proMax { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }

.profile-value.active-status { color: #4CAF50; }
.profile-value.expired-status { color: #ff4444; }
.profile-value.pending-status { color: #FF9800; }

.profile-divider { height: 1px; background: rgba(255, 255, 255, 0.06); margin: 4px 0; }

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

.profile-logout-btn {
    padding: 11px;
    border-radius: 12px;
    border: 1px solid rgba(255, 68, 68, 0.25);
    background: rgba(255, 68, 68, 0.08);
    color: #ff4444;
    font-family: var(--font-main);
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.profile-logout-btn:hover { background: rgba(255, 68, 68, 0.15); border-color: #ff4444; }

.admin-panel-btn {
    padding: 11px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: white;
    font-family: var(--font-main);
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.admin-panel-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35); }

/* Spinner */
.spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Color Fingerprint */
body.has-color-fingerprint .card:hover {
    border-color: var(--user-color-primary, #6C63FF);
    box-shadow: var(--user-glow-shadow, 0 12px 28px rgba(0, 0, 0, 0.35));
}
body.has-color-fingerprint .profile-avatar {
    background: var(--user-gradient, linear-gradient(135deg, var(--primary-color), #3a7bd5));
    box-shadow: 0 6px 20px var(--user-color-glow, rgba(108, 99, 255, 0.35));
}
body.has-color-fingerprint .section-title::after {
    background: linear-gradient(90deg, var(--user-color-primary, var(--primary-color)), transparent);
}
body.has-color-fingerprint header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), var(--user-color-glow, rgba(108, 99, 255, 0.03)));
}
body.has-color-fingerprint .nav-item:hover,
body.has-color-fingerprint .nav-item.active {
    background: var(--user-color-primary, var(--primary-color));
    box-shadow: 0 0 12px var(--user-color-glow, var(--primary-color));
}
body.has-color-fingerprint .back-to-top { background: var(--user-gradient, var(--primary-color)); }

/* Particles */
#particles-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; opacity: 0.5;
}
.container { position: relative; z-index: 1; }

/* Shimmer */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.package-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 20%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 80%, transparent 100%);
    background-size: 200% 100%; animation: shimmer 3s ease-in-out infinite;
    pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
}
.package-card:hover::before { opacity: 1; }

/* Toast */
.toast-container {
    position: fixed; top: 15px; right: 15px; z-index: 9999;
    display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}

.toast {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 15px;
    background: rgba(25, 25, 45, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    min-width: 260px; max-width: 380px;
    pointer-events: auto;
    transform: translateX(120%); opacity: 0;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
    font-size: 0.85em;
}

.toast-show { transform: translateX(0); opacity: 1; }
.toast-hide { transform: translateX(120%); opacity: 0; }

.toast-icon { font-size: 1.2em; flex-shrink: 0; }
.toast-success .toast-icon { color: #4CAF50; }
.toast-error .toast-icon { color: #ff4444; }
.toast-warning .toast-icon { color: #FF9800; }
.toast-info .toast-icon { color: #2196F3; }

.toast-success { border-right: 3px solid #4CAF50; }
.toast-error { border-right: 3px solid #ff4444; }
.toast-warning { border-right: 3px solid #FF9800; }
.toast-info { border-right: 3px solid #2196F3; }

.toast-content { flex: 1; min-width: 0; }
.toast-message { color: white; font-weight: 500; line-height: 1.3; }

.toast-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 1.1em; cursor: pointer; padding: 0;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all 0.2s; flex-shrink: 0;
}
.toast-close:hover { background: rgba(255, 255, 255, 0.08); color: white; }

.toast-progress { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; transition: width linear; }
.toast-success .toast-progress { background: #4CAF50; }
.toast-error .toast-progress { background: #ff4444; }
.toast-warning .toast-progress { background: #FF9800; }
.toast-info .toast-progress { background: #2196F3; }

/* Theme Toggle */
.theme-toggle {
    position: fixed; top: 15px; left: 75px; z-index: 1100;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    color: white; font-size: 1em;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}
.theme-toggle:hover { background: var(--primary-color); border-color: var(--primary-color); transform: rotate(180deg); }

/* Subscription Progress */
.subscription-progress { margin-top: 12px; padding: 10px 12px; background: rgba(255, 255, 255, 0.03); border-radius: 10px; }
.subscription-progress .progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 0.75em; }
.subscription-progress .progress-label { color: var(--text-muted); }
.subscription-progress .progress-days { font-weight: 700; color: var(--text-heading); }

.progress-bar { height: 5px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.8s ease-out; background: linear-gradient(90deg, #4CAF50, #8BC34A); }
.progress-fill.warning { background: linear-gradient(90deg, #FF9800, #FFC107); }
.progress-fill.danger { background: linear-gradient(90deg, #ff4444, #ff6b6b); }

/* User Stats */
.user-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; padding: 10px 12px; background: rgba(255, 255, 255, 0.03); border-radius: 10px; }
.stat-item { text-align: center; padding: 6px; }
.stat-value { font-size: 1.2em; font-weight: 800; color: var(--user-color-primary, var(--primary-color)); display: block; }
.stat-label { font-size: 0.65em; color: var(--text-muted); margin-top: 2px; }

/* KBD Hint */
.kbd-hint {
    position: fixed; bottom: 15px; right: 75px; z-index: 999;
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px; font-size: 0.7em; color: var(--text-muted); opacity: 0.6; transition: opacity 0.3s;
}
.kbd-hint:hover { opacity: 1; }
.kbd {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1px 5px; background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 3px;
    font-family: monospace; font-size: 0.9em; min-width: 18px;
}

/* Comparison Table */
.comparison-table {
    width: 100%; border-collapse: collapse; margin: 15px 0;
    background: var(--card-bg); border-radius: 14px; overflow: hidden; border: var(--card-border);
}
.comparison-table th, .comparison-table td { padding: 11px 16px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 0.9em; }
.comparison-table th { background: rgba(255, 255, 255, 0.04); font-weight: 700; }
.comparison-table td:first-child { text-align: right; font-weight: 600; }
.comparison-table .check { color: #4CAF50; }
.comparison-table .cross { color: #ff4444; }
.comparison-table tr:hover { background: rgba(255, 255, 255, 0.02); }

/* Install Prompt */
.install-prompt { position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%); z-index: 9998; animation: slideUp 0.3s ease-out; }
.install-prompt-content {
    display: flex; align-items: center; gap: 10px; padding: 10px 16px;
    background: rgba(25, 25, 45, 0.95); backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); color: white; font-size: 0.85em;
}
.install-prompt-content i { color: #8B5CF6; font-size: 1.1em; }
.install-btn {
    padding: 5px 14px; border-radius: 7px; border: none;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: white; font-family: var(--font-main); font-weight: 700; cursor: pointer; font-size: 0.8em;
}
.install-dismiss { background: none; border: none; color: var(--text-muted); font-size: 1.1em; cursor: pointer; padding: 0 0 0 6px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .container { padding: 15px; }
    .side-nav {
        top: auto; bottom: 15px; right: 50%; transform: translateX(50%);
        flex-direction: row; border-radius: 40px; padding: 8px 15px; gap: 10px;
    }
    .nav-item { width: 34px; height: 34px; }
    .nav-item .tooltip { display: none; }
    .auth-float { top: 10px; left: 10px; }
    .auth-btn-top { padding: 8px 14px; font-size: 0.8em; }
    .auth-btn-top span { display: none; }
    .theme-toggle { top: 10px; left: 55px; width: 34px; height: 34px; font-size: 0.9em; }
    .packages-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .modal-content { margin: 15px; padding: 22px; }
    .kbd-hint { display: none; }
}

@media (max-width: 600px) {
    body { padding: 10px; font-size: 13px; }
    header { padding: 25px 12px; margin-bottom: 20px; }
    header h1 { font-size: 1.6em; }
    header p { font-size: 0.85em; }
    .grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 25px; }
    .card { padding: 15px; border-radius: 14px; }
    .card h3 { font-size: 1em; }
    .section-title { font-size: 1.2em; margin: 20px 0 14px; }
    .packages-grid { gap: 14px; }
    .package-card { padding: 20px 16px 16px; border-radius: 14px; }
    .package-header h3 { font-size: 1.3em; }
    .package-price { font-size: 1.5em; }
    .package-btn { padding: 10px 14px; font-size: 0.85em; border-radius: 8px; }
    .btn { padding: 9px 12px; font-size: 0.8em; border-radius: 8px; }
    .profile-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .comparison-table { font-size: 0.8em; }
    .comparison-table th, .comparison-table td { padding: 8px 10px; }
    footer { padding: 25px 0; margin-top: 35px; font-size: 0.8em; }
}

/* Light Mode */
body.light-mode {
    --bg-dark: #f5f7fa;
    --bg-gradient: linear-gradient(135deg, #f5f7fa, #c3cfe2, #e8eaf6);
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: 1px solid rgba(0, 0, 0, 0.06);
    --text-main: #1a1a2e;
    --text-muted: #666;
    --text-heading: #111;
    --glass-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
}
body.light-mode header { background: rgba(255, 255, 255, 0.5); }
body.light-mode .card { background: rgba(255, 255, 255, 0.65); }
body.light-mode .card:hover { background: rgba(255, 255, 255, 0.85); }
body.light-mode .search-input { background: rgba(255, 255, 255, 0.75); color: #1a1a2e; border-color: rgba(0, 0, 0, 0.08); }
body.light-mode .side-nav { background: rgba(255, 255, 255, 0.55); border-color: rgba(0, 0, 0, 0.06); }
body.light-mode .modal-content { background: linear-gradient(135deg, #f5f7fa, #e8eaf6, #c3cfe2); border-color: rgba(0, 0, 0, 0.08); }
body.light-mode .form-group input { background: rgba(255, 255, 255, 0.75); color: #1a1a2e; border-color: rgba(0, 0, 0, 0.08); }
body.light-mode .auth-btn-top { background: rgba(255, 255, 255, 0.65); color: #1a1a2e; }
body.light-mode .btn-secondary { background: rgba(0, 0, 0, 0.04); color: #1a1a2e; border-color: rgba(0, 0, 0, 0.06); }
body.light-mode .package-tools li { background: rgba(0, 0, 0, 0.04); color: #666; }
body.light-mode .profile-row { background: rgba(0, 0, 0, 0.02); }
body.light-mode ::-webkit-scrollbar-track { background: #e8eaf6; }
body.light-mode footer { background: rgba(0, 0, 0, 0.02); }
body.light-mode #particles-canvas { opacity: 0.25; }
body.light-mode .toast { background: rgba(245, 245, 250, 0.95); border-color: rgba(0, 0, 0, 0.08); }
body.light-mode .toast-message { color: #1a1a2e; }
