/* ===== STORE DASHBOARD STYLES ===== */
:root {
  --primary: #01BBE1;
  --primary-light: #20D6E4;
  --primary-dark: #0095B8;
  --accent: #B75902;
  --accent-light: #D4731A;
  --accent-bright: #E8821C;
  --bg: #003D4C;
  --bg-card: #FFFFFF;
  --bg-soft: #F0FAFD;
  --text: #1A2E33;
  --text-muted: #5A7077;
  --text-light: #FFFFFF;
  --border: #D5EEF5;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(1, 187, 225, 0.08);
  --shadow-lg: 0 12px 48px rgba(1, 187, 225, 0.15);
  --danger: #DC2626;
  --success: #16A34A;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg-soft);
  min-height: 100vh;
}

/* ===== NAV ===== */
.nav {
  background: var(--bg);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: white; text-decoration: none; font-weight: 800; font-size: 18px;
}
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links a {
  color: #A8D8E4; text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: white; background: rgba(255,255,255,0.1); }
.nav-links .logout { color: #F0A050; }
.nav-links .logout:hover { background: rgba(232,130,28,0.15); }

/* ===== CONTAINER ===== */
.container {
  max-width: 900px; margin: 0 auto; padding: 32px 24px;
}

/* ===== CARDS ===== */
.card {
  background: white; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); margin-bottom: 24px; border: 1px solid var(--border);
}
.card h2 { font-size: 22px; margin-bottom: 16px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }

/* ===== AUTH ===== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(1,187,225,0.3) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 80%, rgba(183,89,2,0.15) 0%, transparent 50%);
  padding: 24px;
}
.auth-card {
  background: white; border-radius: 24px; padding: 48px 40px;
  max-width: 420px; width: 100%; box-shadow: var(--shadow-lg);
}
.auth-logo { display: block; margin: 0 auto 24px; max-width: 80px; border-radius: 16px; }
.auth-card h1 { font-size: 24px; text-align: center; margin-bottom: 8px; }
.auth-card .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 32px; font-size: 15px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--primary); }
.form-group input.error { border-color: var(--danger); }

.btn {
  display: inline-block; padding: 12px 28px; border-radius: 10px; font-size: 15px;
  font-weight: 700; cursor: pointer; border: none; text-decoration: none;
  transition: all 0.2s; font-family: inherit;
}
.btn-primary {
  background: var(--primary); color: white; width: 100%;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent-bright); color: white; }
.btn-accent:hover { background: var(--accent); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { opacity: 0.85; }
.btn-outline {
  background: transparent; color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

.auth-link { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.auth-link a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* ===== ALERTS ===== */
.alert {
  padding: 12px 20px; border-radius: 10px; margin-bottom: 20px; font-size: 14px;
}
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-info { background: var(--bg-soft); color: var(--primary-dark); border: 1px solid var(--border); }

/* ===== DASHBOARD ===== */
.dash-header {
  background: var(--bg); color: white; padding: 40px 0;
  background-image: radial-gradient(ellipse at 30% 0%, rgba(1,187,225,0.3) 0%, transparent 60%);
}
.dash-header-inner { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.dash-header h1 { font-size: 28px; margin-bottom: 4px; }
.dash-header p { color: #A8D8E4; font-size: 15px; }

/* ===== STAT CARDS ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: white; border-radius: 12px; padding: 20px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.stat-value { font-size: 22px; font-weight: 800; margin-top: 4px; }
.stat-card .badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; margin-top: 4px; }
.badge-active { background: #D1FAE5; color: #065F46; }
.badge-cancelled { background: #FEE2E2; color: #991B1B; }
.badge-pending { background: #FEF3C7; color: #92400E; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 12px 16px; background: var(--bg-soft); font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 12px; letter-spacing: 1px; border-bottom: 2px solid var(--border); }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-soft); }

/* ===== LICENSE KEY ===== */
.license-box {
  display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg-soft);
  border-radius: 12px; border: 2px dashed var(--primary); font-family: monospace; font-size: 18px;
}
.copy-btn {
  background: var(--primary); color: white; border: none; padding: 8px 16px; border-radius: 8px;
  cursor: pointer; font-size: 13px; font-weight: 600;
}

/* ===== DOWNLOAD BOX ===== */
.download-box {
  text-align: center; padding: 32px; background: linear-gradient(135deg, var(--bg-soft), white);
  border-radius: var(--radius); border: 2px solid var(--border);
}
.download-box .icon { font-size: 48px; margin-bottom: 12px; }
.download-box h3 { font-size: 18px; margin-bottom: 4px; }
.download-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state .icon { font-size: 40px; margin-bottom: 12px; }

/* ===== PLAN CANCEL ===== */
.cancel-section { border-top: 2px solid var(--border); margin-top: 24px; padding-top: 24px; }
.cancel-warning {
  background: #FEF2F2; border: 1px solid #FECACA; border-radius: 12px; padding: 16px;
  color: #991B1B; font-size: 14px; margin-bottom: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .nav-links a { font-size: 13px; padding: 6px 10px; }
  .stat-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
}
