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

body { font-family: 'Segoe UI', sans-serif; background: #f0f2f5; color: #333; }

/* Auth Page */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }

.auth-container { width: 100%; max-width: 420px; padding: 20px; }

.auth-box { background: white; border-radius: 16px; padding: 40px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

.logo { font-size: 28px; font-weight: 700; color: #4f46e5; text-align: center; margin-bottom: 6px; }

.subtitle { text-align: center; color: #888; font-size: 14px; margin-bottom: 28px; }

.tab-bar { display: flex; background: #f5f5f5; border-radius: 10px; padding: 4px; margin-bottom: 24px; }

.tab { flex: 1; padding: 10px; border: none; background: transparent; cursor: pointer; border-radius: 8px; font-size: 14px; color: #666; transition: all 0.2s; }

.tab.active { background: white; color: #4f46e5; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

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

.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: #555; }

.form-group input { width: 100%; padding: 12px 14px; border: 1.5px solid #e5e7eb; border-radius: 10px; font-size: 14px; outline: none; transition: border 0.2s; }

.form-group input:focus { border-color: #4f46e5; }

.btn-primary { width: 100%; padding: 13px; background: #4f46e5; color: white; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 8px; transition: background 0.2s; }

.btn-primary:hover { background: #4338ca; }

.message { margin-top: 16px; padding: 12px; border-radius: 8px; font-size: 13px; text-align: center; }

.message.error { background: #fee2e2; color: #dc2626; }

.message.success { background: #d1fae5; color: #059669; }

/* Sidebar Layout */
.layout { display: flex; min-height: 100vh; }

.sidebar { width: 240px; background: #1e1b4b; padding: 24px 0; position: fixed; height: 100vh; }

.sidebar-logo { color: white; font-size: 20px; font-weight: 700; padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }

.sidebar-menu { padding: 16px 0; }

.menu-item { display: flex; align-items: center; gap: 10px; padding: 12px 24px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: all 0.2s; }

.menu-item:hover, .menu-item.active { background: rgba(255,255,255,0.1); color: white; }

.main-content { margin-left: 240px; padding: 32px; flex: 1; }

.page-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; color: #1e1b4b; }

/* Cards */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }

.stat-card { background: white; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.stat-label { font-size: 13px; color: #888; margin-bottom: 8px; }

.stat-value { font-size: 28px; font-weight: 700; color: #1e1b4b; }

.stat-sub { font-size: 12px; color: #4f46e5; margin-top: 4px; }

/* Table */
.table-box { background: white; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

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

th { text-align: left; padding: 12px; font-size: 12px; color: #888; border-bottom: 1px solid #f0f0f0; text-transform: uppercase; }

td { padding: 14px 12px; font-size: 14px; border-bottom: 1px solid #f9f9f9; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }

.badge.active { background: #d1fae5; color: #059669; }
.badge.expired { background: #fee2e2; color: #dc2626; }
.badge.trial { background: #e0e7ff; color: #4f46e5; }

.btn-sm { padding: 6px 14px; border-radius: 8px; border: none; cursor: pointer; font-size: 13px; font-weight: 500; }

.btn-danger { background: #fee2e2; color: #dc2626; }
.btn-success { background: #d1fae5; color: #059669; }
.btn-info { background: #e0e7ff; color: #4f46e5; }

/* Logout */
.logout-btn { position: absolute; bottom: 24px; left: 0; right: 0; padding: 0 24px; }

.logout-btn button { width: 100%; padding: 10px; background: rgba(255,255,255,0.1); color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; }