/* --- 1. Variables & Global --- */
:root {
    --bg-color: #050000;
    --card-bg: rgba(20, 0, 0, 0.85);
    --accent: #8b0000;
    --accent-hover: #5a0000;
    --text-primary: #ffffff;
    --text-muted: #aaaaaa;
    --border: 1px solid rgba(139, 0, 0, 0.4);
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(139,0,0,0.15), transparent 70%);
    background-size: 50px 50px, 50px 50px, 100% 100%;
    background-attachment: fixed;
}

/* --- 2. Sidebar --- */
.sidebar { width: 240px; height: 100vh; background: #000; border-right: var(--border); position: fixed; top: 0; left: 0; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.sidebar a { display: flex; align-items: center; gap: 12px; padding: 12px; color: var(--text-muted); text-decoration: none; border-radius: 8px; transition: 0.3s; }
.sidebar a:hover, .sidebar a.active { background: #1a0000; color: #fff; border: var(--border); }
.sidebar a i { width: 20px; height: 20px; }

/* --- 3. Dashboard Layout --- */
.main { flex: 1; margin-left: 260px; padding: 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }

/* --- 4. Cards & Dashboard Elements --- */
.card, .news-item, .stat-box { background: var(--card-bg); padding: 20px; border-radius: 12px; border: var(--border); }
.stat-label { color: var(--text-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.stat-val { font-size: 18px; font-weight: 600; color: #fff; }

/* --- 5. Split Auth Layout (Login/Register) --- */
.login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; width: 100%; margin: 0; }
.main-container { display: flex; gap: 20px; align-items: flex-start; justify-content: center; width: 100%; max-width: 900px; }

.stats-sidebar { display: flex; flex-direction: column; gap: 15px; width: 250px; }
.stats-sidebar .card { padding: 20px; background: var(--card-bg); border: var(--border); border-radius: 12px; }

.auth-box { width: 400px; background: var(--card-bg); padding: 40px; border-radius: 12px; border: var(--border); text-align: center; }
.auth-box input { width: 100%; padding: 12px; margin-bottom: 15px; background: #000; border: var(--border); color: #fff; border-radius: 8px; box-sizing: border-box; }

/* --- 6. Buttons --- */
.btn {
    background: var(--accent);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    text-decoration: none;
}
.btn:hover { background: var(--accent-hover); }

/* --- 7. Animations --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.news-item { animation: fadeIn 0.4s ease-out; }
/* --- Pricing Grid Container --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces 3 columns */
    gap: 25px;
    margin-top: 30px;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    border: var(--border);
    padding: 35px;
    background: var(--card-bg);
}

/* Featured (Middle) Card Border */
.pricing-card.featured {
    border: 2px solid var(--accent);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.price { font-size: 36px; font-weight: 700; margin: 25px 0; }
.price span { font-size: 16px; color: var(--text-muted); }

.features { list-style: none; padding: 0; margin-bottom: 30px; text-align: left; }
.features li { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }
.features i { width: 18px; color: var(--accent); }
/* --- Slimmer Stats Sidebar --- */
.stats-sidebar {
    width: 200px; /* Reduced from 250px */
    gap: 10px;    /* Tighter spacing between boxes */
}

.stats-sidebar .card {
    padding: 12px 15px; /* Significantly reduced padding */
}

/* --- Smaller Icons & Labels --- */
.stats-sidebar .stat-label {
    font-size: 9px; /* Smaller uppercase text */
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stats-sidebar .stat-label i {
    width: 12px !important;  /* Force smaller icons */
    height: 12px !important;
    stroke-width: 2px;
}

/* --- Refined Value Text --- */
.stats-sidebar .stat-val {
    font-size: 15px; /* Smaller numerical values */
    font-weight: 600;
}
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent); /* Your Dark Red color */
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
    cursor: pointer;
}

.download-btn:hover {
    background: #a00000; /* Slightly lighter red for hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.download-btn i {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 2.5px;
}
/* Container adjustment */
.redeem-container {
    max-width: 380px; /* Was 500px, much smaller now */
    margin: 30px auto; /* Centers it nicely */
}

/* Input Group adjustment */
.input-group {
    position: relative;
    margin-bottom: 15px; /* Less margin */
}

/* Shrinking the Icon */
.input-group i {
    position: absolute;
    left: 12px; /* Adjusted alignment */
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    width: 14px !important; /* Fixed smaller width */
    height: 14px !important; /* Fixed smaller height */
}

/* Shrinking the Input Field */
.input-group input {
    width: 100%;
    padding: 10px 10px 10px 35px; /* Much less padding */
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
    border-radius: 4px; /* Slightly smaller radius */
    color: white;
    font-family: 'Monaco', monospace;
    font-size: 11px; /* Smaller font size */
    letter-spacing: 1.5px; /* Tighter letter spacing */
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--accent);
    background: rgba(139, 0, 0, 0.05);
}

/* Also making the button smaller to match */
.download-btn {
    padding: 10px 16px; /* Smaller padding */
    font-size: 12px; /* Smaller font */
    border-radius: 4px;
}