:root {
    --bg-color: #0c111d;
    --card-bg: #161b22;
    --glass-bg: rgba(22, 27, 34, 0.7);
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border: rgba(48, 54, 61, 0.8);
    --error: #ef4444;
    --success: #22c55e;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

.auth-container {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border);
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--text-main);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-main);
    font-size: 1rem;
    box-sizing: border-box;
    transition: outline 0.2s, border-color 0.2s;
}

input:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    user-select: none;
}

.toggle-password:hover {
    color: var(--text-main);
}

button.btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

button.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

button.btn:active {
    transform: translateY(0);
}

button.btn-secondary {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    margin-top: 1rem;
}

button.btn-secondary:hover {
    background-color: var(--bg-color);
    color: var(--text-main);
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.dashboard-container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.device-item,
.user-item,
.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.device-item:last-child {
    border-bottom: none;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-active {
    background-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.badge-expired {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.plan-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.plan-card h3 {
    margin-bottom: 0.5rem;
}

.plan-card .price {
    margin: auto 0;
}

.plan-card .btn {
    margin-top: 1.5rem;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--text-main);
}

/* Split Layout */
.split-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.features-panel {
    flex: 1;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.features-panel::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--bg-color);
}

.features-content {
    max-width: 600px;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, background 0.3s;
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

.feature-text h3 {
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-text p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Image styles removed */

@media (min-width: 768px) {
    .split-container {
        flex-direction: row;
    }

    .features-panel {
        flex: 1;
        padding: 4rem;
    }

    .login-panel {
        flex: 1;
        padding: 4rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

.glass-hover:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

/* Navbar Refinement */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, white, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Video Card Enhancements */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.video-card {
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1f2937, #111827);
    overflow: hidden;
}

.video-thumb::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .video-thumb::after {
    opacity: 1;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.video-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Hero Section */
.hero {
    padding: 4rem 0 3rem;
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: left;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
}
