:root {
    --bg: #000000;
    --card-bg: #0a0a0a;
    --border: #1a1a1a;
    --text: #ffffff;
    --text-dim: #333333;
    --accent: #2563eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at center, #111 0%, #000 70%);
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.logo-area {
    text-align: center;
    margin-bottom: 50px;
}

.logo-area img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.logo-area h1 {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5em;
    color: var(--text);
    margin-bottom: 10px;
}

.logo-area p {
    font-size: 9px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-size: 9px;
    font-weight: 900;
    color: #333;
    letter-spacing: 0.2em;
    margin-left: 5px;
}

input {
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 25px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
    outline: none;
}

input:focus {
    border-color: #444;
    background: #111;
}

button {
    background: white;
    color: black;
    border: none;
    border-radius: 18px;
    padding: 18px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

button:hover {
    background: #e0e0e0;
    transform: scale(1.02);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.back-btn {
    background: transparent;
    color: #444;
    border: 1px solid #111;
}

.back-btn:hover {
    background: #0a0a0a;
    color: white;
}

.hidden { display: none; }

.status-msg {
    margin-top: 30px;
    padding: 15px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    display: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-msg.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

.status-msg.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: block;
}

/* Dashboard Styles */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #050505;
    border-right: 1px solid var(--border);
    padding: 40px;
}

.main-content {
    padding: 60px;
    background: #000;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 30px;
    transition: all 0.3s;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.stat-label {
    font-size: 9px;
    font-weight: 900;
    color: #444;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.stat-value {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 5px;
}

.stat-sub {
    font-size: 10px;
    font-weight: 700;
    color: #22c55e;
    text-transform: uppercase;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.table-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 32px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 20px 30px;
    font-size: 9px;
    font-weight: 900;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 25px 30px;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.plan-badge {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.plan-free { background: #1a1a1a; color: #666; }
.plan-pro { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.plan-ultra { background: rgba(147, 51, 234, 0.1); color: #9333ea; }
.plan-ultimate { background: white; color: black; }

.usage-mini {
    display: flex;
    gap: 15px;
    color: #444;
    font-size: 10px;
}

.usage-mini b { color: white; }

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

.animate-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
