:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff4d00;
    --accent-color: #00ff88;
    --dark-color: #0a0a0f;
    --darker-color: #050508;
    --light-color: #f0f8ff;
    --gray-color: #2a2a35;
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --danger-color: #ff4d4d;
    
    --glass-bg: rgba(16, 18, 27, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    --neon-glow: 0 0 20px var(--primary-color),
                 0 0 40px var(--primary-color),
                 0 0 60px var(--primary-color);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-sm: 8px;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--dark-color);
    color: var(--light-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body.light-mode {
    --primary-color: #1a365d;
    --secondary-color: #9c4221;
    --accent-color: #285e61;
    --dark-color: #f1f5f9;
    --darker-color: #e2e8f0;
    --light-color: #1a202c;
    --gray-color: #94a3b8;
    --glass-bg: rgba(248, 250, 252, 0.97);
    --glass-border: rgba(148, 163, 184, 0.3);
}
body.light-mode .matrix-bg { display: none; }

body.yellow-tint {
    --primary-color: #ffd700;
    --secondary-color: #ff8c00;
    --accent-color: #ff6b6b;
    --dark-color: #2c2c2c;
    --darker-color: #1a1a1a;
    --light-color: #fff8dc;
    --gray-color: #8b8000;
    --glass-bg: rgba(50, 50, 30, 0.9);
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0,212,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,77,0,0.1) 0%, transparent 50%),
                linear-gradient(135deg, var(--darker-color) 0%, var(--dark-color) 100%);
    z-index: -1;
    animation: matrixPulse 20s ease-in-out infinite;
}

.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,212,255,0.03) 2px, rgba(0,212,255,0.03) 4px);
    animation: matrixLines 20s linear infinite;
}

@keyframes matrixPulse { 0%,100%{opacity:0.7} 50%{opacity:1} }
@keyframes matrixLines { 0% { transform: translateY(0); } 100% { transform: translateY(4px); } }

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    box-shadow: var(--neon-glow);
}

.loader-circle::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.loader-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.screen {
    display: none;
    flex: 1;
    animation: fadeIn 0.5s ease;
}
.screen.active { display: flex; flex-direction: column; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    animation: slideDown 0.8s ease;
    margin-bottom: 30px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: var(--neon-glow);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%,100% { box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color); }
    50% { box-shadow: 0 0 40px var(--primary-color), 0 0 80px var(--primary-color); }
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--light-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-title .accent {
    background: linear-gradient(45deg, var(--secondary-color), var(--warning-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.module-badge, .license-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.module-badge {
    background: rgba(0,212,255,0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.license-badge {
    background: rgba(255,77,0,0.2);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-nav-btn {
    background: linear-gradient(135deg, var(--primary-color), #0099cc);
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.login-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 5px 15px 5px 8px;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 6px 14px;
    border-radius: 25px;
    color: var(--light-color);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--danger-color);
    transform: translateY(-2px);
}

.developer-info {
    animation: slideIn 0.8s ease 0.2s both;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.dev-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255,255,255,0.1);
}

.dev-card i {
    color: var(--primary-color);
    font-size: 18px;
}

.dev-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dev-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--light-color);
}

.dev-email {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.mode-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 8px 12px;
    z-index: 1000;
    cursor: move;
}

.mode-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: var(--transition);
}

.mode-btn.active {
    background: var(--primary-color);
    color: white;
}

.welcome-section {
    margin-bottom: 30px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--glass-shadow);
}

.glass-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    margin-bottom: 15px;
}

.accent-text {
    color: var(--primary-color);
}

.glass-card p {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 25px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.feature-item {
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    background: rgba(0, 212, 255, 0.15);
}

.feature-item i {
    color: var(--accent-color);
    margin-right: 8px;
}

.modules-section {
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.module-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.module-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,212,255,0.2);
}

.module-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}
.module-card.coming-soon:hover {
    transform: none;
}

.module-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(255,77,0,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.module-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.module-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    margin-bottom: 8px;
}

.module-card p {
    opacity: 0.7;
    margin-bottom: 15px;
}

.module-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
}

.module-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.free-badge {
    background: linear-gradient(135deg, var(--accent-color), #00cc6a);
    color: var(--dark-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.btn-primary-module {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), #0099cc);
    border: none;
    border-radius: var(--border-radius-sm);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,212,255,0.3);
}

.btn-disabled {
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--border-radius-sm);
    color: rgba(255,255,255,0.5);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    cursor: not-allowed;
}

.subscription-cta {
    margin-bottom: 30px;
}

.cta-content {
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(255,77,0,0.15));
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid var(--glass-border);
}

.cta-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-text i {
    font-size: 32px;
    color: var(--warning-color);
}

.cta-text span {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.cta-text p {
    font-size: 13px;
    opacity: 0.7;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.btn-primary {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color), #0099cc);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.progress-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
}

.progress-track {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 1s ease-out;
}

.footer {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

.tech-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0,212,255,0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 12px;
}

.version {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 15px;
}

.modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--light-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    opacity: 0.6;
}

.full-width {
    width: 100%;
    justify-content: center;
}

.modal-footer-text {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    font-size: 13px;
}

.modal-footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer-text a:hover {
    text-decoration: underline;
}

.subscription-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.plan {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 25px 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.plan:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.plan h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--light-color);
}

.plan .price {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.plan ul {
    list-style: none;
    margin: 20px 0;
    text-align: left;
    padding: 0;
}

.plan ul li {
    padding: 8px 0;
    font-size: 13px;
    color: var(--light-color);
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan ul li i {
    color: var(--success-color);
    width: 18px;
    font-size: 12px;
}

.plan-btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), #0099cc);
    color: white;
}

.plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.toast {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
    min-width: 280px;
    max-width: 380px;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    color: var(--light-color) !important;
    padding: 14px 20px !important;
    border-radius: var(--border-radius) !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: var(--glass-shadow) !important;
    border: 1px solid var(--glass-border) !important;
    border-left-width: 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    animation: slideInRight 0.3s ease !important;
    pointer-events: none !important;
}

.toast i {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-success {
    border-left-color: var(--success-color) !important;
}
.toast-success i {
    color: var(--success-color);
}

.toast-error {
    border-left-color: var(--danger-color) !important;
}
.toast-error i {
    color: var(--danger-color);
}

.toast-warning {
    border-left-color: var(--warning-color) !important;
}
.toast-warning i {
    color: var(--warning-color);
}

.toast-info {
    border-left-color: var(--primary-color) !important;
}
.toast-info i {
    color: var(--primary-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: 4px; }

@media (max-width: 768px) {
    .main-container { padding: 10px; }
    .header { flex-direction: column; text-align: center; gap: 15px; }
    .logo-container { flex-direction: column; }
    .main-title { font-size: 24px; }
    .feature-list { grid-template-columns: 1fr; }
    .modules-grid { grid-template-columns: 1fr; }
    .cta-content { flex-direction: column; text-align: center; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .cta-buttons button { width: 100%; }
    .subscription-plans { grid-template-columns: 1fr !important; gap: 15px !important; }
    .plan { padding: 20px 15px; }
    .plan h4 { font-size: 20px; }
    .plan .price { font-size: 28px; }
    .header-right { width: 100%; justify-content: space-between; }
    .user-info { padding: 5px 12px 5px 8px; }
    .user-name { font-size: 12px; }
    .logout-btn span { display: none; }
    .logout-btn i { margin: 0; }
    .login-nav-btn span { display: none; }
    .toast { min-width: 250px; max-width: 320px; font-size: 12px; padding: 10px 16px !important; }
}