/* ========= EAST COAST CC — DARK THEME (Default) ========= */
:root, [data-theme="dark"] {
  --bg-primary: #06231D;
  --bg-secondary: rgba(12,52,44,0.65);
  --bg-tertiary: rgba(7,102,83,0.2);
  --bg-card: rgba(12,52,44,0.4);
  --bg-hover: rgba(7,102,83,0.25);
  --border: rgba(7,102,83,0.3);
  --border-light: rgba(7,102,83,0.5);
  --border-gold: rgba(227,239,38,0.3);
  --text-primary: #e6f0ec;
  --text-secondary: #a8d5c4;
  --text-muted: #5e9982;
  --accent: #076653;
  --accent-hover: #0a8a6f;
  --accent-glow: rgba(7,102,83,0.2);
  --accent-dark: #0C342C;
  --gold: #E3EF26;
  --gold-light: #E3EF26;
  --gold-glow: rgba(227,239,38,0.12);
  --gold-bg: rgba(227,239,38,0.08);
  --turquoise: #2dd4bf;
  --turquoise-glow: rgba(45,212,191,0.12);
  --yellow: #E3EF26;
  --yellow-bg: rgba(227,239,38,0.1);
  --orange: #e88c30;
  --orange-bg: rgba(232,140,48,0.1);
  --red: #f85149;
  --red-bg: rgba(248,81,73,0.1);
  --blue: #2dd4bf;
  --purple: #a78bfa;
  --sidebar-width: 240px;
  --radius: 12px;
  --radius-sm: 8px;
  --glass: rgba(12,52,44,0.45);
  --glass-border: rgba(7,102,83,0.22);
  --glass-blur: blur(16px);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.2);
  --shadow-gold: 0 0 20px rgba(227,239,38,0.06);
  --shadow-3d: 0 15px 35px rgba(0,0,0,0.6), inset 0 2px 10px rgba(255,255,255,0.06);
  --shadow-btn: 0 6px 15px rgba(0,0,0,0.4), inset 0 2px 5px rgba(255,255,255,0.1);
  --shadow-btn-hover: 0 8px 20px rgba(0,0,0,0.5), inset 0 2px 5px rgba(255,255,255,0.15);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gradient-primary: linear-gradient(135deg, #E3EF26, #076653);
  --gradient-deep: linear-gradient(135deg, #076653, #06231D);
  --gradient-lime: linear-gradient(135deg, #E3EF26, #0C342C);
  --gradient-card: linear-gradient(180deg, rgba(12,52,44,0.2) 0%, rgba(6,35,29,0.7) 100%);
}

/* ========= LIGHT THEME ========= */
[data-theme="light"] {
  --bg-primary: #FFFDEE;
  --bg-secondary: rgba(226,251,206,0.6);
  --bg-tertiary: rgba(7,102,83,0.08);
  --bg-card: rgba(226,251,206,0.5);
  --bg-hover: rgba(7,102,83,0.08);
  --border: rgba(7,102,83,0.2);
  --border-light: rgba(7,102,83,0.35);
  --border-gold: rgba(12,52,44,0.2);
  --text-primary: #06231D;
  --text-secondary: #0C342C;
  --text-muted: #5e8a76;
  --accent: #076653;
  --accent-hover: #0a8a6f;
  --accent-glow: rgba(7,102,83,0.1);
  --accent-dark: #0C342C;
  --gold: #076653;
  --gold-light: #0C342C;
  --gold-glow: rgba(7,102,83,0.1);
  --gold-bg: rgba(7,102,83,0.06);
  --turquoise: #076653;
  --turquoise-glow: rgba(7,102,83,0.08);
  --yellow: #b8a020;
  --yellow-bg: rgba(184,160,32,0.1);
  --orange: #d07818;
  --orange-bg: rgba(208,120,24,0.08);
  --red: #d32f2f;
  --red-bg: rgba(211,47,47,0.08);
  --blue: #076653;
  --purple: #7c5cbf;
  --glass: rgba(226,251,206,0.35);
  --glass-border: rgba(7,102,83,0.15);
  --glass-blur: blur(16px);
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.05);
  --shadow-gold: 0 0 20px rgba(7,102,83,0.06);
  --shadow-3d: 0 10px 30px rgba(0,0,0,0.1), inset 0 2px 8px rgba(255,255,255,0.5);
  --shadow-btn: 0 4px 12px rgba(0,0,0,0.1), inset 0 2px 4px rgba(255,255,255,0.3);
  --shadow-btn-hover: 0 6px 16px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.4);
  --gradient-primary: linear-gradient(135deg, #076653, #E3EF26);
  --gradient-deep: linear-gradient(135deg, #E2FBCE, #076653);
  --gradient-lime: linear-gradient(135deg, #E3EF26, #076653);
  --gradient-card: linear-gradient(180deg, rgba(226,251,206,0.3) 0%, rgba(255,253,238,0.8) 100%);
}

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

body {
  font-family: var(--font);
  background: var(--bg-primary);
  background-image: radial-gradient(ellipse at 20% 50%, rgba(7,102,83,0.15) 0%, transparent 50%),
                     radial-gradient(ellipse at 80% 20%, rgba(12,52,44,0.2) 0%, transparent 50%),
                     radial-gradient(ellipse at 50% 80%, rgba(227,239,38,0.05) 0%, transparent 50%);
  color: var(--text-primary);
  overflow: hidden; height: 100vh;
}
body::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(7,102,83,0.03) 1px, transparent 1px); background-size: 100% 4px;
  pointer-events: none; z-index: 9999; opacity: 0.5;
}
[data-theme="light"] body, [data-theme="light"]body {
  background: var(--bg-primary);
  background-image: radial-gradient(ellipse at 20% 50%, rgba(226,251,206,0.4) 0%, transparent 50%),
                     radial-gradient(ellipse at 80% 20%, rgba(7,102,83,0.06) 0%, transparent 50%),
                     radial-gradient(ellipse at 50% 80%, rgba(227,239,38,0.08) 0%, transparent 50%);
}
[data-theme="light"] body::after, [data-theme="light"]::after {
  background: linear-gradient(rgba(7,102,83,0.02) 1px, transparent 1px); background-size: 100% 4px;
  opacity: 0.3;
}

/* ========= PORTAL CANNABIS.UY ========= */
.portal-landing {
  display: flex; height: 100vh; width: 100vw; overflow: hidden; position: relative;
  background: #000;
}
.portal-title-container {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 100; pointer-events: none; text-align: center;
}
.portal-title {
  font-size: 6rem; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: 12px;
  text-shadow: 0 0 30px var(--turquoise), 0 0 60px var(--accent);
  animation: cinematicIntro 3s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}
@keyframes cinematicIntro {
  0% { opacity: 0; filter: blur(30px) brightness(2); transform: scale(1.5); letter-spacing: 30px; }
  100% { opacity: 1; filter: blur(0px) brightness(1); transform: scale(1); letter-spacing: 12px; }
}

.portal-split {
  flex: 1; display: flex; align-items: center; justify-content: center;
  transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer; position: relative;
  border-right: 1px solid rgba(45, 212, 191, 0.2);
}
.portal-split:hover {
  flex: 1.4;
}
.portal-split::before {
  content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
  transition: all 0.5s ease; opacity: 0.5; z-index: 1; background-size: cover;
}
.portal-split:hover::before {
  opacity: 0.8; filter: brightness(1.2);
}
.portal-content {
  position: relative; z-index: 10;
}
.portal-content h2 {
  font-size: 3rem; color: #fff; text-shadow: 0 0 20px var(--turquoise);
  text-transform: uppercase; letter-spacing: 2px;
  font-weight: 700; transition: transform 0.4s ease;
}
.portal-split:hover .portal-content h2 {
  transform: scale(1.1);
}

.portal-left { background: linear-gradient(135deg, rgba(6,35,29,0.9), rgba(12,52,44,0.8)); }
.portal-right { background: linear-gradient(135deg, rgba(12,52,44,0.9), rgba(6,35,29,0.8)); }

.portal-login-btn {
  position: absolute; top: 30px; right: 40px; z-index: 101; 
  padding: 12px 24px; font-size: 1.1rem;
}

.construction-hologram {
  position: absolute; top: 65%; left: 50%; transform: translateX(-50%);
  z-index: 20; color: var(--red); font-weight: 800; font-size: 1.5rem;
  letter-spacing: 5px; text-shadow: 0 0 15px var(--red);
  animation: hologramFlicker 1.5s infinite;
}
@keyframes hologramFlicker {
  0%, 100% { opacity: 1; text-shadow: 0 0 15px var(--red); }
  50% { opacity: 0.5; text-shadow: 0 0 5px var(--red); filter: blur(1px); }
  70% { opacity: 0.8; }
}

.portal-clubs {
  height: 100vh; overflow-y: auto; background: var(--bg-primary); position: relative;
}
.club-grid-container {
  padding: 60px; max-width: 1400px; margin: 0 auto;
}
.club-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px;
}
.club-card {
  background: var(--glass);
  border: 1px solid var(--turquoise);
  border-radius: var(--radius);
  padding: 30px 20px; text-align: center; cursor: pointer;
  box-shadow: var(--shadow-btn), inset 0 0 15px rgba(45,212,191,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.club-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(45,212,191,0.3), inset 0 0 30px rgba(45,212,191,0.2);
  border-color: #fff;
}
.club-card-logo {
  width: 200px; height: 200px; margin: 0 auto 20px; overflow: hidden;
  background: rgba(0,0,0,0.5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--accent); box-shadow: 0 0 20px var(--accent-glow);
  font-size: 2.5rem;
}
.club-card-logo-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.club-card-name {
  font-size: 1.4rem; color: #fff; font-weight: 700;
  text-shadow: 0 0 10px var(--turquoise);
}

/* ========= SCROLLBAR ========= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(46,160,100,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(46,160,100,0.5); }

/* ========= LOGIN ========= */
.login-screen {
  display: flex; align-items: center; justify-content: center;
  height: 100vh;
  background: linear-gradient(160deg, #06231D 0%, #0C342C 30%, #06231D 60%, #0C342C 100%);
  position: relative; overflow: hidden;
}
.login-screen::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(7,102,83,0.1) 0%, rgba(12,52,44,0.05) 40%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: loginGlow 5s ease-in-out infinite;
}
@keyframes loginGlow {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%,-50%) scale(1.2); opacity: 0.8; }
}
.login-container {
  background: linear-gradient(180deg, var(--glass) 0%, rgba(7,26,18,0.75) 100%);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--turquoise); 
  border-top: 2px solid var(--turquoise);
  border-bottom: 5px solid rgba(0,0,0,0.5);
  border-radius: 20px; padding: 48px 40px; width: 420px;
  box-shadow: var(--shadow-3d), 0 0 40px rgba(45,212,191,0.25), inset 0 0 20px rgba(45,212,191,0.1);
  position: relative; z-index: 1;
  animation: glassSlideIn 0.6s cubic-bezier(0.16,1,0.3,1);
}
@keyframes glassSlideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-logo { text-align: center; margin-bottom: 28px; }

.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-size: 12px; font-weight: 600; color: var(--gold); margin-bottom: 6px; letter-spacing: 0.5px; text-transform: uppercase; }
.input-group input, .select-input {
  width: 100%; padding: 13px 16px;
  background: rgba(10,40,28,0.6); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 14px; font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}
.input-group input::placeholder { color: var(--text-muted); }
.input-group input:focus, .select-input:focus {
  border-color: var(--turquoise); box-shadow: 0 0 0 3px var(--turquoise-glow), 0 0 20px rgba(45,212,191,0.08);
  background: rgba(10,40,28,0.8);
}

.login-error {
  background: var(--red-bg); border: 1px solid rgba(248,81,73,0.3); color: var(--red);
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px;
  margin-bottom: 16px; backdrop-filter: blur(8px);
}

/* ========= BUTTONS ========= */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
  border: 1px solid var(--accent); 
  border-bottom: 3px solid rgba(0,0,0,0.5);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  background: linear-gradient(180deg, rgba(20,70,48,0.4) 0%, rgba(10,40,28,0.7) 100%);
  backdrop-filter: blur(8px);
  color: var(--turquoise); white-space: nowrap;
  box-shadow: var(--shadow-btn), 0 0 10px rgba(46,160,106,0.3) inset;
  text-shadow: 0 0 8px rgba(45,212,191,0.6);
}
.btn:hover { background: linear-gradient(180deg, rgba(30,100,68,0.5) 0%, rgba(14,50,35,0.8) 100%); border-bottom-color: rgba(0,0,0,0.5); transform: translateY(-2px); box-shadow: var(--shadow-btn-hover), 0 0 20px rgba(45,212,191,0.5), 0 0 15px rgba(46,160,106,0.5) inset; text-shadow: 0 0 12px rgba(45,212,191,1); }
.btn:active { transform: translateY(1px); border-bottom-width: 1px; margin-bottom: 2px; }

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: 1px solid rgba(255,255,255,0.1); 
  border-bottom: 3px solid #144e2e;
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  border-bottom-color: #0f3d24;
}
.btn-danger { 
  background: linear-gradient(180deg, rgba(248,81,73,0.15) 0%, rgba(140,20,20,0.5) 100%);
  border: 1px solid rgba(248,81,73,0.3); color: #ffebf0;
  border-bottom: 3px solid rgba(100,10,10,0.4);
}
.btn-danger:hover { 
  background: linear-gradient(180deg, rgba(248,81,73,0.25) 0%, rgba(180,30,30,0.6) 100%); 
  border-color: rgba(248,81,73,0.5); 
}
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-login {
  width: 100%; justify-content: center; padding: 15px; font-size: 15px; margin-top: 8px;
  background: linear-gradient(180deg, #2ea06a 0%, var(--accent-dark) 100%);
  border: 1px solid var(--turquoise); 
  border-bottom: 4px solid #104226;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(45,212,191,0.2), inset 0 2px 5px rgba(255,255,255,0.15);
  border-radius: var(--radius);
}
.btn-login:hover {
  box-shadow: 0 10px 30px rgba(45,212,191,0.35), inset 0 2px 8px rgba(255,255,255,0.2); 
  transform: translateY(-2px);
  background: linear-gradient(180deg, #3fb980 0%, #2ea06a 100%);
}
.btn-login:active { transform: translateY(2px); border-bottom-width: 1px; margin-bottom: 3px; }
.btn-logout {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 18px; padding: 6px; transition: color var(--transition); transform: rotate(180deg);
}
.btn-logout:hover { color: var(--red); }

/* ========= APP LAYOUT ========= */
.app-screen { display: flex; height: 100vh; }

/* ========= SIDEBAR ========= */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(90deg, rgba(7,26,18,0.85) 0%, var(--glass) 100%);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--accent);
  box-shadow: 5px 0 30px rgba(45,212,191,0.15), inset -2px 0 15px rgba(46,160,100,0.2);
  display: flex; flex-direction: column; flex-shrink: 0;
  z-index: 10;
}
.sidebar-header {
  padding: 20px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--glass-border);
}
.sidebar-logo { font-size: 28px; }
.sidebar-title { font-size: 16px; font-weight: 700; color: var(--gold); }
.sidebar-nav { list-style: none; padding: 12px 10px; flex: 1; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: all var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-link.active {
  color: #fff; background: rgba(45,212,191,0.15);
  border: 1px solid var(--turquoise); box-shadow: 0 0 15px rgba(45,212,191,0.3), inset 0 0 10px rgba(45,212,191,0.2);
  text-shadow: 0 0 8px rgba(255,255,255,0.8);
}
.nav-icon { font-size: 18px; width: 22px; text-align: center; }

/* ========= BADGES ========= */
.nav-badge {
  margin-left: auto;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
}
.nav-link:hover .nav-badge, .nav-link.active .nav-badge {
  background: var(--turquoise-glow);
  color: var(--turquoise);
  border-color: var(--turquoise);
}
.nav-badge-podium {
  background: var(--gold-glow) !important;
  color: var(--gold) !important;
  border-color: var(--gold) !important;
}
.nav-link:hover .nav-badge-podium, .nav-link.active .nav-badge-podium {
  background: var(--gold) !important;
  color: var(--bg-primary) !important;
}
.sidebar-footer {
  padding: 16px; border-top: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
}
/* Theme toggle button */
.btn-theme-toggle {
  background: none; border: 1px solid var(--glass-border); color: var(--gold);
  font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 8px;
  transition: all var(--transition); line-height: 1;
}
.btn-theme-toggle:hover { color: var(--text-primary); border-color: var(--gold); background: var(--gold-bg); box-shadow: 0 0 10px var(--gold-glow); }
/* Light theme overrides for structural elements */
[data-theme="light"] .sidebar {
  background: linear-gradient(90deg, rgba(226,251,206,0.95) 0%, rgba(255,253,238,0.9) 100%);
  border-right-color: rgba(7,102,83,0.2);
  box-shadow: 5px 0 30px rgba(7,102,83,0.08);
}
[data-theme="light"] .login-screen {
  background: linear-gradient(160deg, #FFFDEE 0%, #E2FBCE 30%, #FFFDEE 60%, #E2FBCE 100%);
}
[data-theme="light"] .login-screen::before {
  background: radial-gradient(circle, rgba(227,239,38,0.08) 0%, rgba(226,251,206,0.1) 40%, transparent 70%);
}
[data-theme="light"] .splash-screen {
  background: radial-gradient(ellipse at center, #E2FBCE 0%, #FFFDEE 40%, #FFFDEE 100%);
}
[data-theme="light"] .nav-link.active {
  color: #06231D; background: rgba(7,102,83,0.1);
  border-color: rgba(7,102,83,0.3); box-shadow: 0 0 10px rgba(7,102,83,0.08);
  text-shadow: none;
}
[data-theme="light"] .view-header h2 { color: #06231D; text-shadow: none; }
[data-theme="light"] .portal-title { color: #06231D; text-shadow: 0 0 15px rgba(7,102,83,0.2); }
[data-theme="light"] .stat-card {
  background: var(--gradient-card);
  box-shadow: var(--shadow);
  border-color: rgba(7,102,83,0.2);
}
[data-theme="light"] .modal {
  background: linear-gradient(180deg, rgba(255,253,238,0.95) 0%, rgba(226,251,206,0.9) 100%);
  border-color: rgba(7,102,83,0.2);
}
[data-theme="light"] .data-table { background: rgba(255,253,238,0.8); border-color: rgba(7,102,83,0.2); }
[data-theme="light"] .data-table thead { background: rgba(226,251,206,0.6); border-bottom-color: rgba(7,102,83,0.2); }
[data-theme="light"] .data-table th { color: #076653; text-shadow: none; }
[data-theme="light"] .data-table td { border-bottom-color: rgba(7,102,83,0.1); }
[data-theme="light"] .data-table tbody tr:hover { background: rgba(226,251,206,0.4); box-shadow: none; }
[data-theme="light"] .toast.success { background: rgba(7,102,83,0.9); }
[data-theme="light"] .toast.error { background: rgba(211,47,47,0.9); color: #fff; }
[data-theme="light"] .toast.info { background: rgba(7,102,83,0.85); color: #fff; }
[data-theme="light"] #lock-screen { background: rgba(255,253,238,0.92); }
[data-theme="light"] .lock-card { background: linear-gradient(180deg, rgba(226,251,206,0.9) 0%, rgba(255,253,238,0.95) 100%); border-color: rgba(7,102,83,0.2); }
[data-theme="light"] .lock-card h2 { color: #076653; }
[data-theme="light"] .acc-item { background: linear-gradient(180deg, rgba(226,251,206,0.2) 0%, rgba(255,253,238,0.6) 100%); }
[data-theme="light"] .acc-toggle:hover { background: rgba(7,102,83,0.04); }
[data-theme="light"] .btn { background: linear-gradient(180deg, rgba(226,251,206,0.6) 0%, rgba(255,253,238,0.8) 100%); color: #076653; text-shadow: none; }
[data-theme="light"] .btn:hover { background: linear-gradient(180deg, rgba(226,251,206,0.8) 0%, rgba(255,253,238,1) 100%); }
[data-theme="light"] .btn-primary { background: linear-gradient(180deg, #076653 0%, #0C342C 100%); color: #FFFDEE; }
[data-theme="light"] .btn-primary:hover { background: linear-gradient(180deg, #0a8a6f 0%, #076653 100%); }
[data-theme="light"] .input-group input, [data-theme="light"] .select-input { background: rgba(255,253,238,0.8); border-color: rgba(7,102,83,0.2); color: #06231D; }
[data-theme="light"] .input-group input:focus, [data-theme="light"] .select-input:focus { border-color: #076653; box-shadow: 0 0 0 3px rgba(7,102,83,0.1); background: #fff; }
[data-theme="light"] .search-input { background: rgba(255,253,238,0.8); border-color: rgba(7,102,83,0.2); color: #06231D; }
[data-theme="light"] .search-input:focus { border-color: #076653; box-shadow: 0 0 0 3px rgba(7,102,83,0.08); }

/* ---- Light theme: accordion content, activity log, strains, settings ---- */
[data-theme="light"] .acc-content { background: rgba(255,253,238,0.85); color: #06231D; }
[data-theme="light"] .acc-content label { color: #06231D; }
[data-theme="light"] .acc-content p { color: #0C342C; }
[data-theme="light"] .acc-content .text-muted { color: rgba(6,35,29,0.65) !important; }
[data-theme="light"] .acc-content .text-sm { color: #0C342C; }
[data-theme="light"] .activity-log-table { background: rgba(255,253,238,0.9); }
[data-theme="light"] .activity-log-table td, [data-theme="light"] .activity-log-table th { color: #06231D; border-color: rgba(7,102,83,0.15); }
[data-theme="light"] .activity-log-table thead { background: rgba(226,251,206,0.5); }
[data-theme="light"] .activity-log-row { background: rgba(255,253,238,0.6); border-color: rgba(7,102,83,0.1); }
[data-theme="light"] .activity-log-row:hover { background: rgba(226,251,206,0.3); }
[data-theme="light"] .log-table { background: rgba(255,253,238,0.9); color: #06231D; }
[data-theme="light"] .log-table td { color: #06231D; border-bottom-color: rgba(7,102,83,0.1); }
[data-theme="light"] .log-table th { color: #076653; }
[data-theme="light"] .log-table tbody tr:hover { background: rgba(226,251,206,0.3); }
[data-theme="light"] .strain-card { background: rgba(255,253,238,0.9); border-color: rgba(7,102,83,0.15); color: #06231D; }
[data-theme="light"] .strain-card h3 { color: #06231D; }
[data-theme="light"] .strain-card p, [data-theme="light"] .strain-card span { color: #0C342C; }
[data-theme="light"] .strain-card .strain-desc { color: rgba(6,35,29,0.75); }
[data-theme="light"] .strain-meta { color: #0C342C; }
[data-theme="light"] .strain-badge { border-color: rgba(7,102,83,0.3); }
[data-theme="light"] .settings-accordion .acc-toggle { color: #06231D; }
[data-theme="light"] .label-alert-yellow, [data-theme="light"] .label-alert { color: #06231D !important; }
[data-theme="light"] .btn-danger, [data-theme="light"] .btn-delete { background: #dc3232; color: #fff; border-color: #dc3232; }
[data-theme="light"] .btn-danger:hover { background: #b02828; }
[data-theme="light"] .quick-action-btn { background: rgba(7,102,83,0.1); border-color: rgba(7,102,83,0.25); color: #076653; }
[data-theme="light"] .quick-action-btn:hover { background: rgba(7,102,83,0.2); }
[data-theme="light"] .alert-header, [data-theme="light"] .alert-badge-container { color: #06231D; }
[data-theme="light"] .podium-card { background: rgba(255,253,238,0.9); color: #06231D; border-color: rgba(7,102,83,0.15); }
[data-theme="light"] .podium-card h3, [data-theme="light"] .podium-card span { color: #06231D; }
[data-theme="light"] .infographic-card { background: rgba(255,253,238,0.9); border-color: rgba(7,102,83,0.15); }
[data-theme="light"] .infographic-card h3 { color: #06231D; }
[data-theme="light"] .member-card { background: rgba(255,253,238,0.9); border-color: rgba(7,102,83,0.15); color: #06231D; }
[data-theme="light"] .member-card span, [data-theme="light"] .member-card p { color: #0C342C; }
[data-theme="light"] .purchase-card { background: rgba(255,253,238,0.9); border-color: rgba(7,102,83,0.15); color: #06231D; }
[data-theme="light"] .purchase-card span { color: #0C342C; }
[data-theme="light"] .text-muted { color: rgba(6,35,29,0.55) !important; }
[data-theme="light"] .dash-action-btn { background: rgba(7,102,83,0.12); color: #076653; border-color: rgba(7,102,83,0.25); }
[data-theme="light"] .dash-action-btn:hover { background: rgba(7,102,83,0.22); }
[data-theme="light"] .dash-action-btn span { color: #076653; }
[data-theme="light"] .top-action-btn { color: #076653; border-color: rgba(7,102,83,0.3); background: rgba(7,102,83,0.08); }
[data-theme="light"] .top-action-btn:hover { background: rgba(7,102,83,0.18); }
.user-info { display: flex; align-items: center; gap: 8px; }
.user-icon { font-size: 20px; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

/* ========= CONTENT ========= */
.content { flex: 1; overflow-y: auto; padding: 28px 32px; }
.view { display: none; animation: viewFadeIn 0.35s ease-out; }
.view.active { display: block; }
@keyframes viewFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.view-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.view-header h2 {
  font-size: 22px; font-weight: 800; color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--turquoise);
  margin: 0;
  background: none; border: none; padding: 0;
}
.view-date { font-size: 14px; color: var(--text-muted); }
.view-actions { display: flex; align-items: center; gap: 12px; }

/* ========= STATS GRID ========= */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.stat-card {
  background: linear-gradient(180deg, rgba(20,70,48,0.15) 0%, rgba(10,40,28,0.6) 100%);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--accent); 
  border-top: 1px solid rgba(45,212,191,0.4); 
  border-bottom: 4px solid rgba(0,0,0,0.5); 
  border-radius: var(--radius); padding: 20px;
  transition: all var(--transition); position: relative; overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4), inset 0 0 15px rgba(46,160,106,0.15);
}
.stat-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--turquoise), var(--accent), var(--turquoise));
  opacity: 0.5; transition: opacity var(--transition);
  box-shadow: 0 0 10px var(--turquoise);
}
.stat-card:hover { border-color: var(--turquoise); transform: translateY(-4px); box-shadow: var(--shadow-3d), 0 0 25px rgba(45,212,191,0.3), inset 0 0 20px rgba(45,212,191,0.2); border-bottom-width: 4px; }
.stat-card:hover::after { opacity: 1; box-shadow: 0 0 20px var(--turquoise), 0 0 30px var(--gold); }
.stat-label { font-size: 11px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.stat-value.green { color: var(--turquoise); }
.stat-value.blue { color: var(--turquoise); }
.stat-value.purple { color: var(--gold-light); }
.stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ========= SECTION ========= */
.section-title { 
  font-size: 16px; font-weight: 700; margin-bottom: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--turquoise); 
  background: linear-gradient(145deg, rgba(16,58,40,0.8), rgba(7,26,18,0.9));
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  border-bottom: 3px solid rgba(0,0,0,0.5);
  box-shadow: var(--shadow-btn), 0 0 15px rgba(46,160,106,0.2);
  text-shadow: 0 0 8px rgba(45,212,191,0.5);
  cursor: pointer; transition: all var(--transition);
}
.section-title:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover), 0 0 25px rgba(45,212,191,0.4), inset 0 0 10px rgba(45,212,191,0.2);
  border-bottom-color: var(--accent-dark);
  background: linear-gradient(145deg, rgba(30,100,68,0.8), rgba(14,50,35,0.9));
  text-shadow: 0 0 15px rgba(45,212,191,0.8); color: #fff;
}
.section-title:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
  margin-bottom: 18px;
}
.dashboard-section { margin-bottom: 24px; }

/* ========= ALERTS ========= */
.alerts-container { display: flex; flex-direction: column; gap: 8px; }
.alert-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(20,70,48,0.1) 0%, rgba(10,40,28,0.5) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); 
  border-bottom: 3px solid rgba(0,0,0,0.25);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.05);
  transition: all var(--transition);
}
.alert-card:hover { transform: translateX(4px) translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,255,255,0.08); }
.alert-card.yellow { background: linear-gradient(180deg, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0.05) 100%); border-color: rgba(212,175,55,0.3); }
.alert-card.orange { background: linear-gradient(180deg, rgba(232,140,48,0.15) 0%, rgba(232,140,48,0.05) 100%); border-color: rgba(232,140,48,0.3); }
.alert-card.red { background: linear-gradient(180deg, rgba(248,81,73,0.15) 0%, rgba(248,81,73,0.05) 100%); border-color: rgba(248,81,73,0.3); }
.alert-badge {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.alert-card.yellow .alert-badge { background: var(--yellow); box-shadow: 0 0 8px var(--yellow-bg); }
.alert-card.orange .alert-badge { background: var(--orange); box-shadow: 0 0 8px var(--orange-bg); }
.alert-card.red .alert-badge { background: var(--red); box-shadow: 0 0 8px var(--red-bg); }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }
.alert-name { font-weight: 600; font-size: 14px; flex: 1; }
.alert-days { font-size: 13px; font-weight: 600; }
.alert-card.yellow .alert-days { color: var(--yellow); }
.alert-card.orange .alert-days { color: var(--orange); }
.alert-card.red .alert-days { color: var(--red); }
.no-alerts { color: var(--turquoise); padding: 20px; text-align: center; font-size: 14px; }

/* ========= SEARCH ========= */
.search-input {
  padding: 9px 14px; background: var(--glass); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 13px; font-family: var(--font);
  outline: none; width: 220px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus { border-color: var(--turquoise); box-shadow: 0 0 0 3px var(--turquoise-glow); }

.member-counter {
  font-size: 14px; font-weight: 700; padding: 6px 14px;
  background: var(--gold-glow); border: 1px solid var(--border-gold);
  border-radius: 20px; color: var(--gold-light);
}

/* ========= TABLE ========= */
.table-container { overflow-x: auto; }
.data-table {
  width: 100%; border-collapse: collapse;
  background: rgba(7,26,18,0.6); backdrop-filter: blur(12px);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--turquoise);
  box-shadow: 0 0 20px rgba(45,212,191,0.1);
}
.data-table thead { background: rgba(10,40,28,0.8); border-bottom: 2px solid var(--turquoise); }
.data-table th {
  text-align: left; padding: 12px 14px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--turquoise); border-bottom: none;
  white-space: nowrap; text-shadow: 0 0 5px rgba(45,212,191,0.5);
}
.data-table td {
  padding: 10px 14px; font-size: 13px; border-bottom: 1px solid rgba(45,212,191,0.15);
  vertical-align: middle;
}
.data-table tbody tr { transition: background var(--transition), box-shadow var(--transition); }
.data-table tbody tr:hover { background: rgba(45,212,191,0.08); box-shadow: inset 0 0 10px rgba(45,212,191,0.15); }
.data-table tbody tr:last-child td { border-bottom: none; }

.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}
.status-activo { background: var(--accent-glow); color: var(--turquoise); border: 1px solid rgba(45,212,191,0.2); }
.status-inactivo { background: var(--yellow-bg); color: var(--yellow); border: 1px solid rgba(212,175,55,0.2); }
.status-suspendido { background: var(--red-bg); color: var(--red); border: 1px solid rgba(248,81,73,0.2); }

.alert-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.alert-dot.yellow { background: var(--yellow); box-shadow: 0 0 6px var(--yellow-bg); }
.alert-dot.orange { background: var(--orange); box-shadow: 0 0 6px var(--orange-bg); }
.alert-dot.red { background: var(--red); box-shadow: 0 0 6px var(--red-bg); }

/* ========= PURCHASE FILTER ========= */
.purchase-filter { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.purchase-filter label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.purchase-filter .select-input { width: 280px; }

/* ========= MODAL ========= */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; animation: viewFadeIn 0.15s;
}
.modal {
  background: linear-gradient(180deg, rgba(20,70,48,0.3) 0%, rgba(7,26,18,0.85) 100%); 
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); 
  border-top: 2px solid var(--border-gold);
  border-bottom: 5px solid rgba(0,0,0,0.5);
  border-radius: 16px; width: 500px; max-width: 90vw;
  max-height: 85vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-3d), var(--shadow-gold);
  animation: modalGlassIn 0.25s cubic-bezier(0.16,1,0.3,1);
}
@keyframes modalGlassIn { from { transform: scale(0.92) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--glass-border);
}
.modal-header h3 { font-size: 16px; font-weight: 700; color: var(--gold-light); }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 22px; cursor: pointer; padding: 4px 8px; transition: color var(--transition);
}
.modal-close:hover { color: var(--red); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--glass-border); display: flex; justify-content: flex-end; gap: 10px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row .input-group { margin-bottom: 0; }
.form-full { grid-column: 1 / -1; }

/* ========= SETTINGS ========= */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-card {
  background: linear-gradient(180deg, rgba(20,70,48,0.15) 0%, rgba(10,40,28,0.6) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); 
  border-top: 1px solid rgba(255,255,255,0.08); /* highlight on top */
  border-bottom: 4px solid rgba(0,0,0,0.3);
  border-radius: var(--radius); padding: 24px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4), inset 0 2px 5px rgba(255,255,255,0.04);
}
.settings-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; color: var(--gold-light); }
.settings-card .input-group { margin-bottom: 14px; }
.settings-card .input-group:last-child { margin-bottom: 0; }

/* ========= ACCORDION (Settings) ========= */
.settings-accordion { display: flex; flex-direction: column; gap: 8px; max-width: 600px; margin: 0 auto; }
.acc-item {
  background: linear-gradient(180deg, rgba(20,70,48,0.12) 0%, rgba(10,40,28,0.55) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}
.acc-item:hover { border-color: rgba(45,212,191,0.3); }
.acc-toggle {
  width: 100%; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: none; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--gold-light);
  letter-spacing: 0.3px; transition: background 0.2s;
}
.acc-toggle:hover { background: rgba(45,212,191,0.06); }
.acc-toggle.acc-open { background: rgba(45,212,191,0.08); border-bottom: 1px solid rgba(45,212,191,0.15); }
.acc-arrow { font-size: 12px; color: var(--turquoise); transition: transform 0.3s; }
.acc-toggle.acc-open .acc-arrow { transform: rotate(180deg); }
.acc-body { padding: 16px 20px 20px; }

/* ========= ACTIVITY LOG ========= */
.activity-log-container { max-height: 420px; overflow-y: auto; }
.activity-log-list { display: flex; flex-direction: column; gap: 2px; }
.activity-log-row {
  display: grid; grid-template-columns: 140px 70px 1fr 1fr 80px;
  gap: 8px; padding: 8px 10px; border-radius: 6px;
  font-size: 11px; align-items: center;
  border-left: 3px solid transparent;
}
.activity-log-row.log-ok { background: rgba(63,185,80,0.06); border-left-color: #3fb950; }
.activity-log-row.log-fail { background: rgba(220,50,50,0.06); border-left-color: #dc3232; }
.activity-log-row.log-info { background: rgba(45,212,191,0.04); border-left-color: var(--turquoise); }
.log-ts { color: var(--text-secondary); font-family: 'Courier New', monospace; font-size: 10px; }
.log-user { color: var(--gold-light); font-weight: 600; }
.log-action { color: var(--text-primary); }
.log-detail { color: var(--text-secondary); font-size: 10px; }
.log-ip { color: var(--text-muted); font-size: 10px; text-align: right; }

/* ========= BACKUP ========= */
.backup-import-zone { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.backup-preview-card {
  background: rgba(45,212,191,0.06); border: 1px solid rgba(45,212,191,0.2);
  border-radius: var(--radius); padding: 14px 18px;
}
.btn-outline {
  background: transparent; color: var(--turquoise);
  border: 1px solid var(--turquoise); border-radius: var(--radius);
  padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { background: rgba(45,212,191,0.1); box-shadow: 0 0 12px rgba(45,212,191,0.2); }
.btn-danger {
  background: linear-gradient(135deg, #dc3232, #a02020);
  color: #fff; border: none; border-radius: var(--radius);
  padding: 10px 20px; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all 0.2s;
}
.btn-danger:hover { background: linear-gradient(135deg, #e64545, #b82828); box-shadow: 0 0 14px rgba(220,50,50,0.4); }
.mb-12 { margin-bottom: 12px; }

/* ========= LOCK SCREEN ========= */
#lock-screen {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9999;
  background: rgba(5,20,12,0.92);
  backdrop-filter: blur(18px);
  justify-content: center; align-items: center;
}
.lock-card {
  background: linear-gradient(180deg, rgba(20,70,48,0.25) 0%, rgba(8,32,20,0.85) 100%);
  border: 1px solid rgba(45,212,191,0.25);
  border-radius: 16px; padding: 40px 36px; text-align: center;
  max-width: 380px; width: 90%;
  box-shadow: 0 0 60px rgba(45,212,191,0.08), 0 20px 40px rgba(0,0,0,0.6);
}
.lock-icon { font-size: 48px; margin-bottom: 12px; }
.lock-card h2 { font-size: 20px; font-weight: 800; color: var(--turquoise); margin-bottom: 8px; letter-spacing: 0.5px; }
.lock-user { font-size: 16px; font-weight: 700; color: var(--gold-light); margin: 14px 0 16px; }
.lock-card .select-input { text-align: center; font-size: 16px; }
/* ========= TOAST ========= */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 14px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; min-width: 280px;
  box-shadow: var(--shadow); animation: toastGlassIn 0.3s ease-out;
  backdrop-filter: blur(12px);
}
@keyframes toastGlassIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.success { background: rgba(35,134,80,0.85); border: 1px solid var(--accent); color: #fff; }
.toast.error { background: rgba(92,26,26,0.85); border: 1px solid var(--red); color: var(--red); }
.toast.info { background: rgba(26,58,92,0.85); border: 1px solid var(--turquoise); color: var(--turquoise); }

/* ========= UTILITIES ========= */
.text-muted { color: var(--text-muted); }
.text-green { color: var(--turquoise); }
.text-red { color: var(--red); }
.text-sm { font-size: 12px; }
.font-mono { font-family: 'SF Mono', Consolas, monospace; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }

/* ========= DASHBOARD COLUMNS ========= */
.dashboard-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dashboard-col-left, .dashboard-col-right { min-width: 0; }

/* ========= CHART ========= */
#chart-monthly {
  background: var(--glass); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); width: 100%; max-width: 600px;
}

/* ========= STRAINS GRID ========= */
.strains-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.strain-card {
  background: linear-gradient(180deg, rgba(20,70,48,0.15) 0%, rgba(10,40,28,0.6) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent);
  border-top: 1px solid rgba(45,212,191,0.4);
  border-bottom: 4px solid rgba(0,0,0,0.5);
  border-radius: var(--radius); padding: 20px; transition: all var(--transition);
  position: relative; overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4), inset 0 0 15px rgba(46,160,106,0.15);
}
.strain-card:hover { border-color: var(--turquoise); transform: translateY(-4px); box-shadow: var(--shadow-3d), 0 0 30px rgba(45,212,191,0.4), inset 0 0 20px rgba(45,212,191,0.2); border-bottom-width: 4px; }
.strain-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--turquoise), var(--accent), var(--turquoise));
  opacity: 0.5; transition: opacity var(--transition);
  box-shadow: 0 0 10px var(--turquoise);
}
.strain-card:hover::before { opacity: 1; box-shadow: 0 0 20px var(--turquoise), 0 0 30px var(--gold); }
.strain-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--gold-light); }
.strain-genetics {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
  margin-bottom: 10px; backdrop-filter: blur(4px);
}
.strain-genetics.Sativa { background: var(--turquoise-glow); color: var(--turquoise); border: 1px solid rgba(45,212,191,0.2); }
.strain-genetics.Indica { background: rgba(167,139,250,0.12); color: var(--purple); border: 1px solid rgba(167,139,250,0.2); }
.strain-genetics.Hibrida, .strain-genetics.HÃ­brida { background: var(--gold-glow); color: var(--gold-light); border: 1px solid var(--border-gold); }
.strain-meta { display: flex; gap: 16px; margin-bottom: 8px; }
.strain-meta-item { font-size: 12px; color: var(--text-secondary); }
.strain-meta-item strong { color: var(--text-primary); }
.strain-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin-bottom: 12px; }
.strain-actions { display: flex; gap: 8px; }

/* ========= FAVORITES ========= */
.favorites-grid { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.favorite-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--glass); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.favorite-item:hover { border-color: var(--border-gold); box-shadow: var(--shadow-gold); }
.favorite-rank { font-size: 14px; font-weight: 800; color: var(--gold); width: 24px; text-align: center; }
.favorite-name { font-size: 13px; font-weight: 600; flex: 1; }
.favorite-stat { font-size: 12px; color: var(--text-muted); }
.favorite-bar { height: 4px; background: rgba(10,40,28,0.6); border-radius: 2px; flex: 1; min-width: 60px; max-width: 100px; }
.favorite-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--turquoise)); border-radius: 2px; transition: width 0.5s ease-out; }

/* ========= DISMISS BUTTON ========= */
.alert-dismiss {
  background: none; border: 1px solid rgba(46,160,100,0.15); color: var(--text-muted);
  font-size: 16px; cursor: pointer; padding: 2px 8px; border-radius: 4px;
  transition: all var(--transition); flex-shrink: 0;
}
.alert-dismiss:hover { color: var(--red); border-color: var(--red); background: var(--red-bg); }

/* ========= SPLASH SCREEN ========= */
.splash-screen {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, #0a2a1c 0%, #071a12 40%, #040e0a 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; flex-direction: column; overflow: hidden;
}
.splash-glow {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45,212,191,0.1) 0%, rgba(46,160,100,0.04) 40%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: splashGlowPulse 3s ease-in-out infinite;
}
@keyframes splashGlowPulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
}
.splash-content { position: relative; z-index: 2; text-align: center; }
.splash-logo {
  width: 280px; height: auto; margin-bottom: 32px;
  object-fit: contain;
  animation: splashLogoIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0; filter: drop-shadow(0 0 30px rgba(45,212,191,0.3));
}
@keyframes splashLogoIn {
  0% { opacity: 0; transform: scale(0.5) translateY(30px); }
  60% { opacity: 1; transform: scale(1.05) translateY(-5px); filter: drop-shadow(0 0 40px rgba(212,175,55,0.4)); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: drop-shadow(0 0 30px rgba(45,212,191,0.3)); }
}
.splash-logo-enter {
  animation: splashLogoEnter 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes splashLogoEnter {
  0% { opacity: 0; transform: scale(0.3) rotate(-10deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(2deg); filter: drop-shadow(0 0 60px rgba(212,175,55,0.5)); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 30px rgba(45,212,191,0.3)); }
}
.splash-bar-container {
  width: 240px; height: 4px; background: rgba(10,40,28,0.8);
  border-radius: 4px; margin: 0 auto 16px; overflow: hidden;
}
.splash-bar {
  height: 100%; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--turquoise), var(--gold));
  transition: width 0.3s ease-out;
  box-shadow: 0 0 12px rgba(45,212,191,0.4);
}
.splash-text {
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  letter-spacing: 1px; animation: viewFadeIn 1s ease-out 0.5s both;
}
.splash-welcome {
  color: var(--gold-light); font-size: 22px; font-weight: 700;
  letter-spacing: 1px; margin-top: 20px;
  animation: splashWelcomeIn 0.8s ease-out 0.4s both;
}
@keyframes splashWelcomeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.splash-outro { animation: splashOutro 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards !important; }
.splash-outro .splash-logo { animation: splashLogoOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards !important; }
@keyframes splashOutro { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes splashLogoOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.3); filter: drop-shadow(0 0 80px rgba(212,175,55,0.6)); }
}
.splash-particles { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 1; pointer-events: none; }
.particle {
  position: absolute; width: 3px; height: 3px; background: var(--turquoise);
  border-radius: 50%; box-shadow: 0 0 10px var(--turquoise); animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* Login logo image â€” PRESERVES ASPECT RATIO */
.login-logo-img {
  width: 100%; max-width: 300px; height: auto;
  object-fit: contain;
  display: block; margin: 0 auto 24px;
  border-radius: 50%;
  border: 2px solid var(--border-gold);
  box-shadow: 0 0 40px rgba(212,175,55,0.1), 0 0 80px rgba(45,212,191,0.05);
  filter: drop-shadow(0 0 20px rgba(45,212,191,0.15));
  transition: all 0.4s ease;
  animation: logoFloat 6s ease-in-out infinite;
}
.login-logo-img:hover {
  border-color: var(--gold);
  box-shadow: 0 0 50px rgba(212,175,55,0.2), 0 0 100px rgba(45,212,191,0.1);
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Sidebar logo image */
.sidebar-logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }

/* ========= PODIO DE CAMPEONES 3D ========= */
.podium-stage-container {
  display: flex; align-items: flex-end; justify-content: center; gap: 4px;
  height: 400px; padding: 20px 0; perspective: 1000px; margin-top: 50px; margin-bottom: 30px;
}
.podium-pillar {
  width: 140px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  background: linear-gradient(180deg, var(--glass) 0%, rgba(10,40,28,0.9) 100%);
  border: 1px solid var(--glass-border); border-bottom: none;
  border-radius: 12px 12px 0 0; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 -15px 30px rgba(0,0,0,0.5) inset, 0 10px 20px rgba(0,0,0,0.4);
  transform-style: preserve-3d;
}
.podium-pillar::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, transparent 40%);
  border-radius: 12px 12px 0 0; pointer-events: none;
}
.podium-pillar:hover { filter: brightness(1.2); transform: translateY(-5px); z-index: 10; }

/* The different pillar placements (4th, 2nd, 1st, 3rd, 5th) */
.pillar-rank-1 { height: 280px; z-index: 5; border-color: var(--gold); box-shadow: 0 -20px 40px var(--gold-glow) inset, 0 0 30px var(--gold-glow); }
.pillar-rank-2 { height: 220px; z-index: 4; border-color: silver; box-shadow: 0 -15px 30px rgba(192,192,192,0.15) inset, 0 0 20px rgba(192,192,192,0.1); margin-right: -15px; }
.pillar-rank-3 { height: 180px; z-index: 4; border-color: #cd7f32; box-shadow: 0 -15px 30px rgba(205,127,50,0.15) inset, 0 0 20px rgba(205,127,50,0.1); margin-left: -15px; }
.pillar-rank-4 { height: 120px; z-index: 3; border-color: var(--turquoise); box-shadow: 0 -10px 20px var(--turquoise-glow) inset; margin-right: -15px; }
.pillar-rank-5 { height: 80px; z-index: 3; border-color: var(--accent); box-shadow: 0 -10px 20px var(--accent-glow) inset; margin-left: -15px; }

/* Podium Details */
.podium-number {
  font-size: 64px; font-weight: 900; color: rgba(255,255,255,0.03); margin-bottom: auto; margin-top: 10px;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.3); font-family: Impact, sans-serif;
}
.pillar-rank-1 .podium-number { color: rgba(212,175,55,0.1); font-size: 80px; }

/* Member Avatar Floating above pillar */
.podium-avatar-wrapper {
  position: absolute; top: -110px; left: 50%; transform: translateX(-50%);
  text-align: center; animation: floatAvatar 4s ease-in-out infinite; width: 140px;
}
.pillar-rank-1 .podium-avatar-wrapper { top: -130px; animation-delay: 0s; }
.pillar-rank-2 .podium-avatar-wrapper { animation-delay: 1s; }
.pillar-rank-3 .podium-avatar-wrapper { animation-delay: 2s; }
.pillar-rank-4 .podium-avatar-wrapper { top: -90px; animation-delay: 0.5s; }
.pillar-rank-5 .podium-avatar-wrapper { top: -90px; animation-delay: 1.5s; }

@keyframes floatAvatar {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.podium-avatar {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--bg-hover); display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: white; border: 3px solid var(--glass-border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5); backdrop-filter: blur(5px);
}
.pillar-rank-1 .podium-avatar { width: 80px; height: 80px; font-size: 32px; border-color: var(--gold); box-shadow: 0 0 30px rgba(212,175,55,0.4), var(--shadow); }
.pillar-rank-2 .podium-avatar { border-color: silver; box-shadow: 0 0 20px rgba(192,192,192,0.3); }
.pillar-rank-3 .podium-avatar { border-color: #cd7f32; box-shadow: 0 0 20px rgba(205,127,50,0.3); }

.podium-name { font-size: 13px; font-weight: 700; color: white; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; padding: 0 5px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.pillar-rank-1 .podium-name { font-size: 15px; color: var(--gold-light); }

.podium-grams { font-size: 12px; font-weight: 700; color: var(--turquoise); background: rgba(0,0,0,0.6); padding: 4px 10px; border-radius: 12px; display: inline-block; margin-top: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.pillar-rank-1 .podium-grams { background: var(--gold-bg); color: var(--gold-light); border: 1px solid var(--border-gold); box-shadow: 0 0 15px var(--gold-glow); }

/* Cuadro de honor (6 al 10) */
.honor-roll-container {
  display: flex; flex-direction: column; gap: 8px; max-width: 600px; margin: 0 auto;
}
.honor-item {
  display: flex; align-items: center; padding: 14px 24px;
  background: var(--glass); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-left: 4px solid var(--glass-border);
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.honor-item:hover { transform: translateX(8px); background: var(--bg-hover); border-color: var(--border-light); border-left-color: var(--turquoise); box-shadow: var(--shadow-sm); }
.honor-rank { font-size: 18px; font-weight: 800; color: var(--text-muted); width: 50px; font-family: var(--font); }
.honor-name { font-size: 15px; font-weight: 700; flex: 1; color: var(--text-primary); }
.honor-grams { font-size: 16px; font-weight: 700; color: var(--turquoise); }
/* Infogrï¿½ficos */
.infographics-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); margin-top: 20px; }
.chart-card { background: rgba(5,20,25,0.7); border: 1px solid var(--neon); border-radius: 12px; padding: 20px; box-shadow: 0 0 15px rgba(0,255,157,0.1); backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.chart-card h3 { color: var(--neon); font-size: 1.1rem; text-transform: uppercase; margin-bottom: 20px; text-shadow: var(--glow); text-align: center; }
.chart-card canvas { width: 100%; height: auto; max-height: 300px; }

/* ============================================================
   MOBILE RESPONSIVE: Bottom Navigation
   ============================================================ */
@media (max-width: 768px) {
  .app-screen {
    flex-direction: column;
  }
  .sidebar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100% !important;
    height: 64px;
    flex-direction: row;
    border-right: none;
    border-top: 2px solid rgba(45,212,191,0.4);
    box-shadow: 0 -6px 30px rgba(0,0,0,0.6), 0 -2px 15px rgba(45,212,191,0.1);
    z-index: 9999;
    background: linear-gradient(180deg, rgba(10,30,20,0.98) 0%, rgba(5,15,10,0.99) 100%);
    backdrop-filter: blur(24px);
  }
  .sidebar-header { display: none !important; }
  .sidebar-footer { display: none !important; }
  .sidebar-nav {
    display: flex; flex-direction: row; align-items: center;
    justify-content: space-around; width: 100%;
    padding: 0 4px; margin: 0; height: 100%;
  }
  .sidebar-nav li {
    flex: 1; display: flex; align-items: center;
    justify-content: center; height: 100%;
  }
  .nav-link {
    flex-direction: column; gap: 2px; padding: 8px 4px;
    font-size: 0; align-items: center; justify-content: center;
    border-radius: 10px; width: 100%; height: 100%;
    position: relative;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
  }
  .nav-icon {
    font-size: 22px; width: auto;
    filter: drop-shadow(0 0 3px rgba(45,212,191,0.2));
    transition: all 0.3s ease;
  }
  .nav-link:hover .nav-icon,
  .nav-link.active .nav-icon {
    filter: drop-shadow(0 0 8px rgba(45,212,191,0.6));
    transform: scale(1.1);
  }
  .nav-badge {
    position: absolute; top: 4px; right: 50%;
    transform: translateX(14px); font-size: 9px;
    padding: 1px 5px; margin-left: 0;
    min-width: 16px; text-align: center;
  }
  .nav-link.active {
    background: rgba(45,212,191,0.08);
    border: none;
    box-shadow: none;
  }
  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 3px;
    background: var(--turquoise);
    box-shadow: 0 0 8px var(--turquoise), 0 0 16px rgba(45,212,191,0.4);
  }
  .content { padding: 16px 12px 80px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .dashboard-columns { flex-direction: column !important; }
  .dashboard-col-left, .dashboard-col-right { width: 100% !important; }
  .infographics-grid { grid-template-columns: 1fr !important; }
  .data-table { font-size: 12px; }
  .view-header h2 { font-size: 1.2rem; }
  /* + Agregar button 25% bigger on mobile */
  .btn-add-inline {
    font-size: 14px !important;
    padding: 10px 20px !important;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .sidebar { height: 54px; }
  .nav-icon { font-size: 18px; }
  .nav-badge { font-size: 8px; padding: 0 4px; }
  .content { padding: 12px 8px 68px; }
  .stats-grid { grid-template-columns: 1fr !important; }
}
/* ---- Mobile content optimization ---- */
@media (max-width: 768px) {
  /* Table horizontal scroll */
  .data-table-wrapper,
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .data-table {
    min-width: 500px;
  }

  /* Members toolbar */
  .members-toolbar {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
  }
  .members-toolbar input,
  .members-toolbar select {
    width: 100% !important;
  }

  /* Retiros filter */
  .filter-row {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
  }
  .filter-row select {
    width: 100% !important;
  }

  /* Strain cards - 2 column grid */
  .strains-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .strain-card {
    padding: 16px !important;
  }

  /* Stat cards compact */
  .stat-card {
    padding: 12px !important;
  }
  .stat-label { font-size: 0.7rem !important; }
  .stat-value { font-size: 1.1rem !important; }

  /* View headers */
  .view-header {
    flex-direction: column !important;
    gap: 4px !important;
    padding-bottom: 12px !important;
  }

  /* Podium */
  .podium-stage {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: center !important;
  }
  .podium-pillar {
    width: 100% !important;
    max-width: 300px !important;
  }

  /* Forms inside modals */
  .modal-body input,
  .modal-body select,
  .modal-body textarea {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Settings */
  .settings-grid {
    grid-template-columns: 1fr !important;
  }
  .activity-log-row {
    grid-template-columns: 1fr !important;
    gap: 2px !important;
  }
  .log-ip { text-align: left !important; }
  .settings-accordion { max-width: 100% !important; }

  /* Chart canvas */
  canvas {
    max-height: 200px !important;
  }
}
/* ============================================================
   MOBILE DASHBOARD COMPACT LAYOUT
   ============================================================ */
@media (max-width: 768px) {
  /* Compact stats: 2-col grid with smaller cards */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  .stat-card {
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border-bottom-width: 2px !important;
  }
  .stat-label {
    font-size: 9px !important;
    margin-bottom: 4px !important;
    letter-spacing: 0.5px !important;
  }
  .stat-value {
    font-size: 1.15rem !important;
    letter-spacing: 0 !important;
  }
  .stat-sub {
    font-size: 10px !important;
    margin-top: 2px !important;
  }
  .stat-card::after {
    height: 1px !important;
  }

  /* Dashboard sections compact */
  .dashboard-section {
    margin-bottom: 14px !important;
  }
  .section-title {
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
  }

  /* Alerts prominent */
  .alerts-container {
    max-height: 200px;
    overflow-y: auto;
  }
  .alert-card {
    padding: 8px 10px !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
  }
  .alert-name { font-size: 12px !important; }
  .alert-days { font-size: 11px !important; }
  .alert-dismiss { font-size: 12px !important; padding: 2px 6px !important; }

  /* Dashboard columns stack */
  .dashboard-columns {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Favorites grid compact */
  .favorites-grid {
    gap: 8px !important;
  }

  /* View header compact */
  .view-header {
    margin-bottom: 12px !important;
  }
  .view-header h2 {
    font-size: 1.1rem !important;
  }
  .view-date {
    font-size: 11px !important;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .stat-card {
    padding: 8px 10px !important;
  }
  .stat-value {
    font-size: 1rem !important;
  }
  .stat-label {
    font-size: 8px !important;
  }
}
/* ============================================================
   MOBILE: Compact Alert List + Chart Prominence
   ============================================================ */
@media (max-width: 768px) {
  /* Ultra-compact alert list */
  .alerts-container {
    gap: 3px !important;
    max-height: none !important;
  }
  .alert-card {
    padding: 6px 10px !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
    border-radius: 6px !important;
    border-bottom-width: 1px !important;
  }
  .alert-badge {
    width: 7px !important; height: 7px !important;
  }
  .alert-name {
    font-size: 12px !important;
    font-weight: 500 !important;
  }
  .alert-days {
    font-size: 10px !important;
    white-space: nowrap;
  }
  .alert-dismiss {
    font-size: 10px !important;
    padding: 1px 4px !important;
    min-width: 18px;
  }

  /* Chart prominence */
  .dashboard-col-right {
    order: -1 !important;
  }
  .dashboard-col-right .dashboard-section {
    margin-bottom: 16px !important;
  }
  .dashboard-col-right canvas {
    max-height: 180px !important;
    width: 100% !important;
  }

  /* Reorder: Chart first, then alerts */
  .dashboard-columns {
    display: flex !important;
    flex-direction: column !important;
  }
}
/* Fix: alerts first, chart second but both prominent */
@media (max-width: 768px) {
  .dashboard-col-right {
    order: 0 !important;
  }
  .dashboard-col-left {
    order: -1 !important;
  }
}
/* ============================================================
   MOBILE: Readable Tables (Socios + Retiros)
   ============================================================ */
@media (max-width: 768px) {
  .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 -12px;
    padding: 0 12px;
    scrollbar-width: thin;
  }
  .data-table {
    min-width: 520px !important;
    font-size: 11px !important;
  }
  .data-table th {
    padding: 8px 8px !important;
    font-size: 9px !important;
    letter-spacing: 0.3px !important;
  }
  .data-table td {
    padding: 7px 8px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }

  /* Hint for swipe */
  .table-container::after {
    content: 'Desliza \2192';
    display: block;
    text-align: right;
    font-size: 10px;
    color: rgba(45,212,191,0.4);
    padding: 4px 0;
    font-family: 'Inter', sans-serif;
  }

  /* Members toolbar */
  .members-header {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
  }
  .members-count {
    font-size: 1.2rem !important;
  }
  /* Full-width accordion cards */
  .table-container {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  .data-table {
    width: 100% !important;
    border: none !important;
  }
  .acc-summary {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 8px;
  }

  /* Filter row for retiros */
  .filter-group {
    flex-direction: column !important;
    gap: 6px !important;
  }
  .filter-group select,
  .filter-group input {
    width: 100% !important;
    font-size: 13px !important;
  }
}
/* ============================================================
   MOBILE: Card-style table rows (all data visible)
   ============================================================ */
@media (max-width: 768px) {
  /* Remove min-width and scroll hint */
  .data-table {
    min-width: unset !important;
  }
  .table-container::after {
    display: none !important;
  }

  /* Convert table to cards */
  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table th,
  .data-table td,
  .data-table tr {
    display: block !important;
  }

  .data-table thead {
    display: none !important;
  }

  .data-table tbody tr {
    background: rgba(10,40,28,0.5) !important;
    border: 1px solid rgba(45,212,191,0.15);
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 10px 12px;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2px 12px;
    position: relative;
  }

  .data-table tbody tr:hover {
    border-color: rgba(45,212,191,0.35);
  }

  .data-table td {
    border-bottom: none !important;
    padding: 3px 0 !important;
    font-size: 11px !important;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .data-table td::before {
    content: attr(data-label);
    font-size: 9px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 45px;
  }

  /* First td (alert dot) spans full width */
  .data-table td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 0 !important;
  }

  /* Name spans full width */
  .data-table td:nth-child(2) {
    grid-column: 1 / -1;
    font-size: 13px !important;
    font-weight: 700;
    padding-bottom: 4px !important;
    border-bottom: 1px solid rgba(45,212,191,0.1) !important;
    margin-bottom: 2px;
  }

  /* Action buttons span full width */
  .data-table td:last-child {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 4px !important;
    border-top: 1px solid rgba(45,212,191,0.1) !important;
    margin-top: 2px;
  }
}
/* ============================================================
   MOBILE ACCORDION CARDS
   ============================================================ */
.mobile-accordion {
  cursor: pointer;
}
.mobile-accordion td {
  padding: 0 !important;
  border-bottom: none !important;
}

/* Summary bar */
.acc-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(10,40,28,0.6);
  border: 1px solid rgba(45,212,191,0.15);
  border-radius: 8px;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}
.mobile-accordion.expanded .acc-summary {
  border-color: rgba(45,212,191,0.4);
  background: rgba(10,50,35,0.8);
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}
.acc-name {
  flex: 1;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-date {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.acc-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--turquoise);
  background: rgba(45,212,191,0.1);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.acc-chip.gold {
  color: var(--gold);
  background: rgba(212,175,55,0.1);
}
.acc-chevron {
  font-size: 10px;
  color: rgba(45,212,191,0.5);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.mobile-accordion.expanded .acc-chevron {
  transform: rotate(180deg);
}

/* Collapsible body */
.acc-body {
  display: none;
  padding: 8px 14px 12px;
  background: rgba(7,26,18,0.8);
  border: 1px solid rgba(45,212,191,0.15);
  border-top: none;
  border-radius: 0 0 8px 8px;
  margin-bottom: 4px;
  animation: accOpen 0.25s ease-out;
}
.mobile-accordion.expanded .acc-body {
  display: block;
}
@keyframes accOpen {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 400px; }
}

.acc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(45,212,191,0.06);
}
.acc-row:last-of-type {
  border-bottom: none;
}
.acc-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.acc-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid rgba(45,212,191,0.1);
  margin-top: 4px;
}

/* Remove old card-style table transforms on mobile */
@media (max-width: 768px) {
  .data-table tbody tr.mobile-accordion {
    display: table-row !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    grid-template-columns: unset !important;
  }
  .data-table tbody tr.mobile-accordion td {
    display: table-cell !important;
  }
  .data-table tbody tr.mobile-accordion td::before {
    display: none !important;
  }
}
/* ============================================================
   DASHBOARD SPLIT LAYOUT: Stats left, Alerts right
   ============================================================ */
.dash-split-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.dash-split-left,
.dash-split-right {
  min-width: 0;
}
.stats-grid-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stats-grid-compact .stat-card {
  padding: 10px 14px;
  border-radius: 10px;
}
.stats-grid-compact .stat-label {
  font-size: 9px;
  margin-bottom: 2px;
}
.stats-grid-compact .stat-value {
  font-size: 1.1rem;
}
.dash-alerts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}
.dash-alerts-header .section-title {
  margin-bottom: 0;
  white-space: nowrap;
  font-size: 0.85rem;
}
.btn-xs {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(45,212,191,0.12);
  border: 1px solid rgba(45,212,191,0.25);
  color: #2dd4bf;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.btn-xs:hover {
  background: rgba(45,212,191,0.22);
  border-color: rgba(45,212,191,0.5);
  box-shadow: 0 0 8px rgba(45,212,191,0.15);
}
.btn-xs:active {
  transform: scale(0.95);
}
.dash-split-right .alerts-container {
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(45,212,191,0.3) transparent;
}
.dash-split-right .alerts-container::-webkit-scrollbar {
  width: 5px;
}
.dash-split-right .alerts-container::-webkit-scrollbar-thumb {
  background: rgba(45,212,191,0.3);
  border-radius: 3px;
}
@media (max-width: 768px) {
  .dash-split-top {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }
  .stats-grid-compact .stat-card {
    padding: 8px 10px;
  }
  .stats-grid-compact .stat-label {
    font-size: 8px;
  }
  .stats-grid-compact .stat-value {
    font-size: 0.95rem;
  }
  .dash-alerts-header .section-title {
    font-size: 0.75rem;
  }
  .btn-xs {
    font-size: 9px;
    padding: 2px 6px;
  }
  .dash-split-right .alerts-container {
    max-height: 220px;
  }
  .alert-card {
    padding: 5px 8px !important;
    gap: 6px !important;
    margin-bottom: 3px !important;
    border-radius: 6px !important;
  }
  .alert-name {
    font-size: 11px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90px;
  }
  .alert-days {
    font-size: 9px !important;
    white-space: nowrap;
  }
  .alert-dismiss {
    font-size: 9px !important;
    padding: 1px 4px !important;
  }
}
@media (max-width: 480px) {
  .dash-split-top {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stats-grid-compact .stat-card {
    padding: 6px 8px;
  }
  .stats-grid-compact .stat-value {
    font-size: 0.85rem;
  }
  .stats-grid-compact .stat-label {
    font-size: 7px;
  }
  .dash-alerts-header .section-title {
    font-size: 0.65rem;
  }
  .alert-name {
    max-width: 70px;
    font-size: 10px !important;
  }
  .alert-days {
    font-size: 8px !important;
  }
}

/* ============================================================
   DASHBOARD HEADER ACTION BUTTONS
   ============================================================ */
.dash-header-with-actions {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-direction: row !important;
}
.dash-header-with-actions h2 {
  flex-shrink: 0;
  margin: 0 auto;
}
.dash-header-with-actions .btn-dash-action:first-child {
  margin-right: auto;
}
.dash-header-with-actions .btn-dash-action:last-child {
  margin-left: auto;
}
/* old btn-dash rules removed */

/* Sort button arrow-only style */
.btn-sort-alerts {
  min-width: 24px;
  width: 24px;
  height: 24px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px !important;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
/* ============================================================
   CHUBBY DASHBOARD ACTION BUTTONS (two-line text)
   ============================================================ */
.btn-dash-action {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 12px 18px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(45,212,191,0.18), rgba(45,212,191,0.05)) !important;
  border: 2px solid rgba(45,212,191,0.4) !important;
  color: #2dd4bf !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 100px;
  box-shadow: 0 4px 15px rgba(45,212,191,0.15), inset 0 1px 4px rgba(45,212,191,0.1);
  text-shadow: 0 0 8px rgba(45,212,191,0.4);
}
.btn-dash-action:hover {
  background: linear-gradient(135deg, rgba(45,212,191,0.3), rgba(45,212,191,0.12)) !important;
  border-color: rgba(45,212,191,0.7) !important;
  box-shadow: 0 6px 20px rgba(45,212,191,0.25), inset 0 1px 6px rgba(45,212,191,0.15);
  transform: translateY(-2px);
  text-shadow: 0 0 12px rgba(45,212,191,0.7);
}
.btn-dash-action:active {
  transform: scale(0.96) translateY(0);
}
.dash-btn-icon {
  font-size: 20px;
  line-height: 1;
}
.btn-dash-retiro {
  background: linear-gradient(135deg, rgba(63,185,80,0.18), rgba(63,185,80,0.05)) !important;
  border-color: rgba(63,185,80,0.4) !important;
  color: #3fb950 !important;
  box-shadow: 0 4px 15px rgba(63,185,80,0.15), inset 0 1px 4px rgba(63,185,80,0.1);
  text-shadow: 0 0 8px rgba(63,185,80,0.4);
}
.btn-dash-retiro:hover {
  background: linear-gradient(135deg, rgba(63,185,80,0.3), rgba(63,185,80,0.12)) !important;
  border-color: rgba(63,185,80,0.7) !important;
  box-shadow: 0 6px 20px rgba(63,185,80,0.25), inset 0 1px 6px rgba(63,185,80,0.15);
  text-shadow: 0 0 12px rgba(63,185,80,0.7);
}
@media (max-width: 480px) {
  .btn-dash-action {
    font-size: 12px !important;
    padding: 14px 20px !important;
    min-width: 110px;
    border-radius: 14px !important;
  }
  .dash-btn-icon {
    font-size: 22px;
  }
}

/* ============================================================
   EXPORT BAR
   ============================================================ */
.export-bar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0;
  margin-bottom: 8px;
}
.btn-export {
  font-size: 12px;
  padding: 8px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(218,165,32,0.15), rgba(218,165,32,0.05));
  border: 1px solid rgba(218,165,32,0.35);
  color: #daa520;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}
.btn-export:hover {
  background: linear-gradient(135deg, rgba(218,165,32,0.25), rgba(218,165,32,0.1));
  border-color: rgba(218,165,32,0.6);
  box-shadow: 0 4px 14px rgba(218,165,32,0.15);
  transform: translateY(-1px);
}

/* Clickable stat card */
.stat-card.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}
.stat-card.clickable:hover {
  border-color: rgba(45,212,191,0.5);
  box-shadow: 0 0 12px rgba(45,212,191,0.15);
  transform: translateY(-1px);
}

/* ---- Glassmorphic modals & popups ---- */
.modal-content {
  background: linear-gradient(165deg, rgba(10,30,22,0.88) 0%, rgba(5,18,14,0.92) 100%) !important;
  backdrop-filter: blur(24px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
  border: 1px solid rgba(212,175,55,0.25) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(212,175,55,0.06), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}
[data-theme="light"] .modal-content {
  background: linear-gradient(165deg, rgba(255,253,238,0.88) 0%, rgba(226,251,206,0.85) 100%) !important;
  border-color: rgba(7,102,83,0.3) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.5) !important;
}
.club-card-new {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
.club-login-card {
  background: linear-gradient(165deg, rgba(10,40,28,0.85) 0%, rgba(5,20,14,0.88) 100%) !important;
  backdrop-filter: blur(24px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
  border: 1px solid rgba(212,175,55,0.2) !important;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(212,175,55,0.05), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

/* ---- Mobile theme toggle (floating) ---- */
.mobile-theme-toggle {
  display: none;
  position: fixed; top: 12px; right: 12px; z-index: 8999;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(12,52,44,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212,175,55,0.3);
  color: #d4af37; font-size: 18px;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  align-items: center; justify-content: center;
}
.mobile-theme-toggle:hover { background: rgba(12,52,44,0.9); transform: scale(1.1); }
[data-theme="light"] .mobile-theme-toggle {
  background: rgba(226,251,206,0.8);
  border-color: rgba(7,102,83,0.3);
  color: #076653;
}
@media (max-width: 768px) {
  .mobile-theme-toggle { display: flex; }
}
