/* ── MorsantControl Design System ────────────────────────────── */
:root {
  --primary:       #F97316;   /* orange-500 */
  --primary-dark:  #EA580C;   /* orange-600 */
  --primary-light: #FED7AA;   /* orange-200 */
  --accent:        #0EA5E9;   /* sky-500  */
  --accent-dark:   #0284C7;
  --dark:          #0F172A;   /* slate-900 */
  --dark-2:        #1E293B;   /* slate-800 */
  --dark-3:        #334155;   /* slate-700 */
  --muted:         #64748B;   /* slate-500 */
  --light:         #F1F5F9;   /* slate-100 */
  --white:         #FFFFFF;
  --success:       #22C55E;
  --warning:       #F59E0B;
  --danger:        #EF4444;
  --info:          #06B6D4;
  --sidebar-w:     260px;
  --navbar-h:      64px;
  --radius:        12px;
  --shadow:        0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-lg:     0 10px 25px rgba(0,0,0,.15);
  --transition:    .2s ease;
  --surface:        #FFFFFF;
  --surface-2:      #F1F5F9;
  --border:         #E2E8F0;
  --text-primary:   #0F172A;
  --text-secondary: #334155;
  --text-muted:     #64748B;
  --shadow-md:      0 4px 12px rgba(0,0,0,.10);
  --shadow-xl:      0 25px 50px rgba(0,0,0,.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; background: var(--light); color: var(--dark); }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ── LANDING ─────────────────────────────────────────────────── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 70px;
  background: rgba(15,23,42,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.landing-nav .logo { display: flex; align-items: center; gap: 10px; }
.landing-nav .logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: white; font-size: 1.1rem; letter-spacing: -1px;
}
.landing-nav .logo-text { font-weight: 800; font-size: 1.2rem; color: white; }
.landing-nav .logo-text span { color: var(--primary); }
.landing-nav .nav-links { display: flex; gap: 28px; }
.landing-nav .nav-links a { color: rgba(255,255,255,.8); font-size: .9rem; transition: color var(--transition); }
.landing-nav .nav-links a:hover { color: white; }
.landing-nav .nav-actions { display: flex; gap: 10px; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
  border-radius: 8px; font-weight: 600; font-size: .9rem; cursor: pointer;
  border: none; transition: all var(--transition); text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); }
.btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,.3); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: white; }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-dark); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { filter: brightness(0.9); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { filter: brightness(0.9); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--light); color: var(--dark); }
.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%, #1a2744 100%);
  padding: 120px 40px 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(249,115,22,.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 20% 80%, rgba(14,165,233,.08) 0%, transparent 60%);
}
.hero-content { position: relative; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(249,115,22,.15); border: 1px solid rgba(249,115,22,.3); color: var(--primary); padding: 6px 14px; border-radius: 50px; font-size: .82rem; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: 3.2rem; color: white; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero p { color: rgba(255,255,255,.7); font-size: 1.1rem; line-height: 1.6; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.8rem; font-weight: 800; color: white; }
.hero-stat .lbl { font-size: .8rem; color: rgba(255,255,255,.5); }

.hero-visual {
  background: var(--dark-2); border-radius: 20px;
  border: 1px solid rgba(255,255,255,.1); overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.hero-visual-header { background: var(--dark-3); padding: 12px 16px; display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.hero-visual-body { padding: 20px; }
.mock-card { background: var(--dark-3); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; }
.mock-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: white; }
.mock-status { padding: 3px 10px; border-radius: 50px; font-size: .72rem; font-weight: 600; }
.status-online { background: rgba(34,197,94,.15); color: #22C55E; }
.status-break  { background: rgba(245,158,11,.15); color: #F59E0B; }
.status-offline{ background: rgba(100,116,139,.15); color: #94A3B8; }

/* Features */
.features { padding: 100px 40px; background: white; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-header .tag { display: inline-block; background: var(--primary-light); color: var(--primary-dark); padding: 4px 14px; border-radius: 50px; font-size: .82rem; font-weight: 600; margin-bottom: 14px; }
.section-header h2 { font-size: 2.4rem; margin-bottom: 14px; }
.section-header p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.features-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { padding: 30px; border-radius: var(--radius); border: 1px solid #E2E8F0; transition: all var(--transition); }
.feature-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--primary-light), #FED7AA80); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 18px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* How it works */
.how { padding: 100px 40px; background: var(--dark); }
.how .section-header h2 { color: white; }
.how .section-header p { color: rgba(255,255,255,.6); }
.steps { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { text-align: center; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.step h3 { font-size: 1.1rem; color: white; margin-bottom: 10px; }
.step p { color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.6; }

/* Pricing */
.pricing { padding: 100px 40px; background: var(--light); }
.pricing-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card { background: white; border-radius: 16px; padding: 32px; border: 2px solid #E2E8F0; transition: all var(--transition); }
.pricing-card.featured { border-color: var(--primary); position: relative; }
.pricing-card.featured::before { content: 'Más popular'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 4px 18px; border-radius: 50px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.price-badge { font-size: .82rem; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 3px 10px; border-radius: 6px; display: inline-block; margin-bottom: 12px; }
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 20px 0; }
.price .amount { font-size: 2.8rem; font-weight: 800; }
.price .period { color: var(--muted); font-size: .9rem; }
.pricing-card ul { list-style: none; margin: 20px 0; }
.pricing-card li { padding: 7px 0; font-size: .9rem; display: flex; align-items: center; gap: 8px; color: var(--dark-3); }
.pricing-card li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* CTA */
.cta-section { padding: 100px 40px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); text-align: center; }
.cta-section h2 { font-size: 2.5rem; color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 32px; }
.btn-white { background: white; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: var(--light); color: var(--primary-dark); }

/* Footer */
.footer { background: var(--dark); padding: 60px 40px 30px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: white; margin-bottom: 16px; font-size: .95rem; }
.footer-col p, .footer-col a { color: rgba(255,255,255,.5); font-size: .88rem; line-height: 1.8; display: block; transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: rgba(255,255,255,.4); font-size: .83rem; }

/* ── PORTAL ──────────────────────────────────────────────────── */
.portal-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); background: var(--dark); position: fixed;
  top: 0; left: 0; bottom: 0; z-index: 100; display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar-brand { padding: 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-brand .logo-icon { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; font-weight: 900; color: white; font-size: 1rem; }
.sidebar-brand .logo-text { font-weight: 800; font-size: 1rem; color: white; }
.sidebar-brand .logo-text span { color: var(--primary); }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section { margin-bottom: 24px; }
.nav-section-label { font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.25); text-transform: uppercase; letter-spacing: .1em; padding: 0 8px; margin-bottom: 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: rgba(255,255,255,.6); font-size: .88rem; font-weight: 500; transition: all var(--transition); cursor: pointer; margin-bottom: 2px; }
.nav-item:hover { background: rgba(255,255,255,.07); color: white; }
.nav-item.active { background: rgba(249,115,22,.15); color: var(--primary); }
.nav-item .icon { width: 20px; text-align: center; font-size: 1rem; }
.nav-item .badge { margin-left: auto; background: var(--primary); color: white; font-size: .7rem; padding: 2px 7px; border-radius: 50px; font-weight: 700; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,.06); }
.user-card { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-size: .85rem; flex-shrink: 0; }
.user-info .name { font-size: .88rem; font-weight: 600; color: white; }
.user-info .role { font-size: .76rem; color: rgba(255,255,255,.4); }
.sidebar-logout { margin-left: auto; color: rgba(255,255,255,.3); cursor: pointer; transition: color var(--transition); font-size: 1rem; }
.sidebar-logout:hover { color: var(--danger); }

/* Main content */
.portal-main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.portal-topbar { height: var(--navbar-h); background: white; border-bottom: 1px solid #E2E8F0; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 50; }
.topbar-left h1 { font-size: 1.2rem; font-weight: 700; }
.topbar-left p { font-size: .82rem; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.notif-btn { position: relative; width: 38px; height: 38px; border-radius: 9px; background: var(--light); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--muted); transition: all var(--transition); }
.notif-btn:hover { background: var(--primary-light); color: var(--primary); }
.notif-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid white; }
.portal-content { padding: 28px; flex: 1; }

/* Cards */
.card { background: white; border-radius: var(--radius); border: 1px solid #E2E8F0; overflow: hidden; box-shadow: var(--shadow); }
.card-header { padding: 18px 22px; border-bottom: 1px solid #F1F5F9; display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 22px; }

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.stat-card { background: white; border-radius: var(--radius); padding: 22px; border: 1px solid #E2E8F0; box-shadow: var(--shadow); }
.stat-card .label { font-size: .82rem; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.stat-card .value { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.stat-card .sub { font-size: .78rem; color: var(--muted); }
.stat-card .icon-wrap { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 14px; }
.icon-orange { background: rgba(249,115,22,.12); color: var(--primary); }
.icon-sky    { background: rgba(14,165,233,.12);  color: var(--accent); }
.icon-green  { background: rgba(34,197,94,.12);  color: var(--success); }
.icon-amber  { background: rgba(245,158,11,.12);  color: var(--warning); }
.icon-red    { background: rgba(239,68,68,.12);   color: var(--danger); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { padding: 10px 14px; text-align: left; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #F1F5F9; background: #F8FAFC; }
tbody td { padding: 13px 14px; font-size: .88rem; border-bottom: 1px solid #F8FAFC; vertical-align: middle; }
tbody tr:hover { background: #FAFAFA; }
tbody tr:last-child td { border-bottom: none; }

/* Badge */
.badge { padding: 3px 10px; border-radius: 50px; font-size: .75rem; font-weight: 600; }
.badge-success { background: rgba(34,197,94,.12); color: #16A34A; }
.badge-warning { background: rgba(245,158,11,.12); color: #D97706; }
.badge-danger  { background: rgba(239,68,68,.12);  color: #DC2626; }
.badge-info    { background: rgba(14,165,233,.12);  color: #0284C7; }
.badge-muted   { background: #F1F5F9; color: var(--muted); }
.badge-primary { background: rgba(249,115,22,.12); color: var(--primary-dark); }

/* Form */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--dark-3); }
.form-control { width: 100%; padding: 10px 14px; border: 1.5px solid #E2E8F0; border-radius: 8px; font-size: .9rem; transition: border-color var(--transition); background: white; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* Alert */
.alert { padding: 12px 16px; border-radius: 8px; font-size: .88rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(34,197,94,.1); color: #15803D; border: 1px solid rgba(34,197,94,.2); }
.alert-danger  { background: rgba(239,68,68,.1);  color: #B91C1C; border: 1px solid rgba(239,68,68,.2); }
.alert-warning { background: rgba(245,158,11,.1); color: #B45309; border: 1px solid rgba(245,158,11,.2); }
.alert-info    { background: rgba(14,165,233,.1);  color: #075985; border: 1px solid rgba(14,165,233,.2); }

/* Fichaje big clock */
.clock-display { text-align: center; padding: 40px 20px; }
.clock-time { font-size: 4.5rem; font-weight: 800; letter-spacing: -2px; color: var(--dark); font-variant-numeric: tabular-nums; }
.clock-date { font-size: 1rem; color: var(--muted); margin-top: 6px; }
.clock-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 20px; border-radius: 50px; font-weight: 600; font-size: .9rem; }
.clock-status.active  { background: rgba(34,197,94,.12); color: #16A34A; }
.clock-status.idle    { background: rgba(100,116,139,.12); color: var(--muted); }
.clock-elapsed { font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-top: 12px; }
.clock-actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; }
.btn-clock-in  { padding: 16px 40px; font-size: 1rem; border-radius: 12px; background: var(--success); color: white; font-weight: 700; border: none; cursor: pointer; transition: all var(--transition); }
.btn-clock-in:hover  { filter: brightness(.9); transform: translateY(-2px); }
.btn-clock-out { padding: 16px 40px; font-size: 1rem; border-radius: 12px; background: var(--danger); color: white; font-weight: 700; border: none; cursor: pointer; transition: all var(--transition); }
.btn-clock-out:hover { filter: brightness(.9); transform: translateY(-2px); }

/* Progress bar */
.progress { height: 8px; background: #E2E8F0; border-radius: 50px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); transition: width .5s ease; }
.progress-bar.danger { background: linear-gradient(90deg, var(--danger), #B91C1C); }
.progress-bar.success { background: linear-gradient(90deg, var(--success), #15803D); }

/* Avatar group */
.avatar-group { display: flex; }
.avatar-group .av { width: 32px; height: 32px; border-radius: 50%; border: 2px solid white; margin-left: -8px; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: white; }
.avatar-group .av:first-child { margin-left: 0; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: white; border-radius: 16px; padding: 32px; width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); transform: scale(.95); transition: transform var(--transition); }
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.modal-header h3 { font-size: 1.2rem; }
.modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--muted); padding: 0; transition: color var(--transition); }
.modal-close:hover { color: var(--dark); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* Vacation calendar strip */
.cal-strip { display: flex; gap: 4px; flex-wrap: wrap; }
.cal-day { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 600; background: var(--light); color: var(--muted); }
.cal-day.today { background: var(--primary); color: white; }
.cal-day.approved { background: rgba(34,197,94,.2); color: #16A34A; }
.cal-day.pending  { background: rgba(245,158,11,.2); color: #D97706; }
.cal-day.weekend  { color: #CBD5E1; }

/* Responsive */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .hero-visual { display: none; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .landing-nav .nav-links { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform var(--transition); }
  .sidebar.open { transform: translateX(0); }
  .portal-main { margin-left: 0; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}

/* Footer partner CTA */
.footer-partner { max-width: 1200px; margin: 32px auto 0; padding: 20px 24px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(249,115,22,.14), rgba(14,165,233,.08)); border: 1px solid rgba(249,115,22,.25); }
.footer-partner strong { display: block; color: white; font-size: 1rem; margin-bottom: 4px; }
.footer-partner span { color: rgba(255,255,255,.6); font-size: .88rem; }

/* Language switcher */
.lang-switch { display: inline-flex; border-radius: 8px; padding: 2px; gap: 2px; }
.lang-switch a { font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: 5px 8px; border-radius: 6px; text-decoration: none; transition: background var(--transition), color var(--transition); }
.lang-switch.dark { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.lang-switch.dark a { color: rgba(255,255,255,.55); }
.lang-switch.dark a:hover { color: white; }
.lang-switch.dark a.active { background: var(--primary); color: white; }
.lang-switch.light { background: var(--light); border: 1px solid var(--border); }
.lang-switch.light a { color: var(--muted); }
.lang-switch.light a:hover { color: var(--dark); }
.lang-switch.light a.active { background: var(--primary); color: white; }

/* Mobile menu */
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 36px; height: 36px; font-size: 1.1rem; cursor: pointer; color: var(--dark); flex-shrink: 0; }
.sidebar-backdrop { display: none; }
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .sidebar.open + .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }
  .landing-nav { padding: 0 16px; gap: 10px; }
  .landing-nav .nav-actions { gap: 8px; }
  .landing-nav .logo-text { display: none; }
  .landing-nav .nav-actions .btn { padding: 7px 10px; font-size: .78rem; white-space: nowrap; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .topbar-date, .topbar-avatar { display: none !important; }
  .portal-topbar { padding: 0 14px; gap: 10px; }
  .topbar-left h1 { font-size: 1rem; }
  .topbar-left p { display: none; }
  .portal-content { padding: 16px; }
}

/* Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-muted { color: var(--muted); }
.text-sm { font-size: .82rem; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Loading spinner */
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.3); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--dark-2); color: white; padding: 14px 18px; border-radius: 10px; font-size: .88rem; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); min-width: 280px; animation: slideIn .3s ease; border-left: 4px solid var(--primary); }
.toast.success { border-color: var(--success); }
.toast.danger  { border-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
