/* css/main.css - Mobile-first, Sky Blue Theme, Unified UI */
:root {
  --primary: #0ea5e9; --primary-dark: #0284c7; --primary-light: #e0f2fe;
  --bg: #f8fafc; --surface: #ffffff; --text: #0f172a; --text-muted: #64748b;
  --border: #e2e8f0; --success: #10b981; --warning: #f59e0b; --danger: #ef4444;
  --radius: 8px; --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ===== BASE & RESET ===== */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
  font-family: var(--font); background: var(--bg); color: var(--text); 
  line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; 
}

/* ===== LAYOUT & CONTAINERS ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; width: 100%; }
main { flex: 1; padding: 2rem 0; }

/* ===== HEADER & NAVIGATION (Unified & Properly Spaced) ===== */
header { background: var(--surface); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }

/* Shared container constraint for perfect alignment */
.header-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; width: 100%; box-sizing: border-box;
}

.header-top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0.8rem 0; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--primary-dark); text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 0.3rem; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); cursor: pointer; padding: 0.4rem; transition: color 0.2s; }
.menu-toggle:hover { color: var(--primary); }

.nav-menu { display: flex; align-items: center; justify-content: flex-end; gap: 1.2rem; padding: 0 0 0.8rem 0; list-style: none; }
.nav-menu a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.9rem; padding: 0.3rem 0; transition: color 0.2s; }
.nav-menu a:hover { color: var(--primary); }
.nav-buttons { display: flex; gap: 0.6rem; align-items: center; }

/* Mobile Navigation */
@media (max-width: 768px) {
  .header-container { padding: 0 1rem; } /* Comfortable mobile edges */
  .header-top { padding: 0.8rem 0; }
  .menu-toggle { display: block !important; }
  
  .nav-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 80px 1.5rem 1.5rem; gap: 0; background: var(--surface); z-index: 999;
    transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { padding: 0.9rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; color: var(--text); }
  .nav-buttons { flex-direction: column; margin-top: 1rem; gap: 0.8rem; }
  .nav-buttons .btn { width: 100%; justify-content: center; }
}

/* ===== DASHBOARD SIDEBAR ===== */
.layout-wrapper { display: flex; flex-direction: column; min-height: calc(100vh - 48px); }
@media (min-width: 1024px) { .layout-wrapper { flex-direction: row; } }
.sidebar { position: fixed; top: 0; left: -280px; width: 280px; height: 100vh; background: var(--surface); z-index: 100; transition: left 0.3s cubic-bezier(0.4,0,0.2,1); border-right: 1px solid var(--border); overflow-y: auto; padding: 4rem 0 1rem 0; }
.sidebar.open { left: 0; }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,0.4); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.sidebar-backdrop.active { opacity: 1; pointer-events: auto; }
.sidebar a { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.5rem; color: var(--text-muted); text-decoration: none; font-weight: 500; transition: all 0.2s; border-left: 3px solid transparent; }
.sidebar a:hover, .sidebar a.active { background: var(--primary-light); color: var(--primary-dark); border-left-color: var(--primary); }
.sidebar a.logout { margin-top: auto; border-top: 1px solid var(--border); color: var(--danger); }
.main-content { width: 100%; padding: 1.5rem; background: var(--bg); }
@media (min-width: 1024px) { 
  .sidebar { position: sticky; top: 0; left: 0; height: 100vh; padding: 1rem 0; box-shadow: none; } 
  .sidebar-backdrop { display: none !important; } 
  .main-content { padding: 2rem; } 
}

/* Menu Role Visibility */
.sidebar nav .menu-section { display: flex; flex-direction: column; }
.sidebar nav .menu-section.role-hidden { display: none !important; }
.sidebar nav .menu-spacer { margin-top: auto; }
.sidebar nav .menu-label { padding: 0.4rem 1.5rem; font-size: 0.7rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar nav hr { margin: 0.6rem 1.5rem; border: none; border-top: 1px solid var(--border); }

/* ===== DASHBOARD CARDS ===== */
.dash-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stat-card { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.stat-card h3 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; font-weight: 500; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--text); }

/* ===== SECTIONS & INDEX ===== */
section { padding: 3rem 0; }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 { color: var(--primary-dark); font-size: 1.8rem; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); }
.hero { background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%); padding: 4rem 0; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--primary-dark); margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 650px; margin: 0 auto 1.5rem; }
@media (max-width: 768px) { .hero { padding: 3rem 1rem; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.package-card { display: flex; flex-direction: column; gap: 0.8rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: transform 0.2s, box-shadow 0.2s; }
.package-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.package-price { font-size: 2rem; font-weight: 700; color: var(--primary); }
.package-features { list-style: none; margin: 0.5rem 0; }
.package-features li { padding: 0.3rem 0; border-bottom: 1px dashed var(--border); color: var(--text-muted); }
.cms-image { width: 100%; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 500; color: var(--text-muted); font-size: 0.9rem; }
input, select, textarea { width: 100%; padding: 0.7rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 1rem; transition: border 0.2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
textarea { min-height: 120px; resize: vertical; }
.form-error { color: var(--danger); font-size: 0.85rem; margin-top: 0.3rem; display: none; }
.form-group.has-error input { border-color: var(--danger); }
.form-group.has-error .form-error { display: block; }
.input-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.2rem; border: none; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; font-size: 0.95rem; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 600px; background: var(--surface); }
th, td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--primary-light); font-weight: 600; color: var(--primary-dark); }
tr:hover { background: #f1f5f9; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; } .text-muted { color: var(--text-muted); }
.hidden { display: none !important; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.spinner { width: 1.5rem; height: 1.5rem; border: 3px solid var(--primary-light); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== AUTH MODAL (Index Overlay) ===== */
.auth-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); z-index: 2000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); padding: 1rem; }
.auth-overlay.active { display: flex; }
.auth-modal-card { background: var(--surface); border-radius: 12px; width: 100%; max-width: 420px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); overflow: hidden; position: relative; animation: modalSlideIn 0.3s ease; padding-top: 48px; }
@keyframes modalSlideIn { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
.modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: #f1f5f9; border: none; border-radius: 50%; font-size: 1.2rem; color: var(--text-muted); cursor: pointer; transition: 0.2s; z-index: 10; }
.modal-close:hover { background: #fee2e2; color: var(--danger); }
.auth-tabs { display: flex; border-bottom: 2px solid var(--border); }
.auth-tab { flex: 1; padding: 12px; background: none; border: none; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: 0.2s; position: relative; }
.auth-tab:hover { color: var(--primary); background: rgba(14,165,233,0.05); }
.auth-tab.active { color: var(--primary-dark); background: #f8fafc; }
.auth-tab.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: var(--primary); }
.auth-content { padding: 1.5rem; }
.auth-form { display: none; animation: fadeIn 0.3s ease; }
.auth-form.active { display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.form-input { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; transition: 0.2s; background: #fff; box-sizing: border-box; }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,0.15); }
.form-input.error { border-color: var(--danger); }
.btn-auth { width: 100%; margin-top: 0.8rem; padding: 0.85rem; font-weight: 600; font-size: 1rem; border: none; border-radius: var(--radius); cursor: pointer; }
.msg { padding: 8px; margin-top: 8px; border-radius: 6px; font-size: 0.85rem; text-align: center; display: none; }
.msg.err { background: #fee2e2; color: var(--danger); border: 1px solid #fecaca; }
.msg.ok { background: #dcfce7; color: var(--success); border: 1px solid #bbf7d0; }
.text-link { text-align: center; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }
.text-link a { color: var(--primary); text-decoration: none; cursor: pointer; font-weight: 500; }
.text-link a:hover { text-decoration: underline; }

/* ===== AUTH PAGES (Standalone) ===== */
.auth-body { background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.auth-container { width: 100%; max-width: 440px; }
.auth-card { background: var(--surface); border-radius: 12px; box-shadow: 0 10px 30px rgba(14, 165, 233, 0.12); overflow: hidden; }
.auth-header { padding: 1.5rem 1.5rem 0; text-align: center; }
.auth-footer { text-align: center; margin-top: 1.2rem; font-size: 0.85rem; color: var(--text-muted); }
.google-btn { background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 0.5rem; color: var(--text); margin-top: 0.5rem; }
@media (max-width: 480px) { .auth-card { border-radius: 0; box-shadow: none; background: transparent; } .auth-body { padding: 0; } }

/* ===== PRINT ===== */
.print-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8cm; padding: 0.5cm; page-break-inside: avoid; }
@media print { 
  header, footer, .no-print, .sidebar, .sidebar-backdrop { display: none !important; } 
  body { background: white; margin: 0; padding: 0; } 
  .voucher-sheet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5cm; padding: 1cm; } 
  .voucher-item { border: 1px dashed #000; padding: 0.4cm; text-align: center; font-size: 10pt; page-break-inside: avoid; } 
  .voucher-code { font-family: monospace; font-size: 14pt; font-weight: bold; display: block; margin: 0.2cm 0; } 
}
/* ===== CLEAN HEADER (Index Only) ===== */
#site-header {
  background: var(--surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px; /* Fixed, professional height */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem; /* ✅ Generous left/right/top spacing */
}
.site-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  white-space: nowrap;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.mobile-menu-btn:hover { background: var(--primary-light); color: var(--primary); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.main-nav a:not(.btn):hover { color: var(--primary); }
.nav-auth { display: flex; gap: 0.5rem; align-items: center; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1rem 1.5rem;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    z-index: 999;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a:not(.btn) {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    color: var(--text);
  }
  .nav-auth {
    flex-direction: column;
    margin-top: 1rem;
    gap: 0.8rem;
  }
  .nav-auth .btn { width: 100%; justify-content: center; }
}
/* ===== UNIFIED HEADER (Index & Dashboard) ===== */
.site-header {
  background: var(--surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
#user-info { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.menu-toggle:hover { background: var(--primary-light); color: var(--primary); }

/* Desktop Nav (Index Only) */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  padding: 0 1.5rem 0.6rem;
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
}
.header-nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.9rem; padding: 0.3rem 0; transition: color 0.2s; }
.header-nav a:hover { color: var(--primary); }
.nav-auth { display: flex; gap: 0.6rem; align-items: center; }

/* Mobile Styles */
@media (max-width: 768px) {
  .menu-toggle { display: block !important; }
  .header-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 75px 1.5rem 1.5rem; gap: 0; background: var(--surface); z-index: 999;
    transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .header-nav.open { transform: translateX(0); }
  .header-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; color: var(--text); }
  .nav-auth { flex-direction: column; margin-top: 1rem; gap: 0.8rem; }
  .nav-auth .btn { width: 100%; justify-content: center; }
}
/* Inline Notification Box */
.notify-box { padding: 0.8rem 1rem; border-radius: 6px; margin: 0.8rem 0; font-size: 0.9rem; font-weight: 500; animation: fadeIn 0.2s ease; }
.notify-box.success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.notify-box.error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.notify-box.info { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
@keyframes slideIn { from { transform: translateX(100%); opacity:0; } to { transform: translateX(0); opacity:1; } }
    /* Index-specific polish */
    .hero { background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%); padding: 4rem 0; text-align: center; }
    .hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--primary-dark); margin-bottom: 1rem; line-height: 1.2; }
    .hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 650px; margin: 0 auto 1.5rem; }
    .section-padding { padding: 3rem 0; }
    .section-header { text-align: center; margin-bottom: 2rem; }
    .section-header h2 { color: var(--primary-dark); font-size: 1.8rem; margin-bottom: 0.5rem; }
    .section-header p { color: var(--text-muted); }
    .cms-image { width: 100%; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
    .package-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: transform 0.2s, box-shadow 0.2s; }
    .package-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
    .package-price { font-size: 2.2rem; font-weight: 700; color: var(--primary); margin: 0.5rem 0; }
    .package-features { list-style: none; margin: 0.8rem 0; padding: 0; }
    .package-features li { padding: 0.4rem 0; border-bottom: 1px dashed var(--border); color: var(--text-muted); }
    @media (max-width: 768px) { .hero { padding: 3rem 1rem; } }
    
    /* Auth Modal */
    .auth-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); z-index: 2000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); padding: 1rem; }
    .auth-overlay.active { display: flex; }
    .auth-modal-card { background: var(--surface); border-radius: 12px; width: 100%; max-width: 420px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); overflow: hidden; position: relative; animation: modalSlideIn 0.3s ease; padding-top: 48px; }
    @keyframes modalSlideIn { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
    .modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: #f1f5f9; border: none; border-radius: 50%; font-size: 1.2rem; color: var(--text-muted); cursor: pointer; transition: 0.2s; z-index: 10; }
    .modal-close:hover { background: #fee2e2; color: var(--danger); }
    .auth-tabs { display: flex; border-bottom: 2px solid var(--border); }
    .auth-tab { flex: 1; padding: 12px; background: none; border: none; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: 0.2s; position: relative; }
    .auth-tab:hover { color: var(--primary); background: rgba(14,165,233,0.05); }
    .auth-tab.active { color: var(--primary-dark); background: #f8fafc; }
    .auth-tab.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: var(--primary); }
    .auth-content { padding: 1.5rem; }
    .auth-form { display: none; animation: fadeIn 0.3s ease; }
    .auth-form.active { display: block; }
    @keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
    .form-input { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; transition: 0.2s; background: #fff; box-sizing: border-box; }
    .form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,0.15); }
    .form-input.error { border-color: var(--danger); }
    .btn-auth { width: 100%; margin-top: 0.8rem; padding: 0.85rem; font-weight: 600; font-size: 1rem; border: none; border-radius: var(--radius); cursor: pointer; }
    .msg { padding: 8px; margin-top: 8px; border-radius: 6px; font-size: 0.85rem; text-align: center; display: none; }
    .msg.err { background: #fee2e2; color: var(--danger); border: 1px solid #fecaca; }
    .msg.ok { background: #dcfce7; color: var(--success); border: 1px solid #bbf7d0; }
    .text-link { text-align: center; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }
    .text-link a { color: var(--primary); text-decoration: none; cursor: pointer; font-weight: 500; }
    .text-link a:hover { text-decoration: underline; }
    
    /* Google Button */
    .google-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: #fff; border: 1px solid var(--border); color: var(--text); margin-top: 0.5rem; font-weight: 500; }
    .google-btn:hover { border-color: var(--primary); color: var(--primary); }
    .google-btn svg { width: 18px; height: 18px; flex-shrink: 0; }