@import url('theme.css');

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.text-center { text-align: center; }
.grid { display: grid; gap: 24px; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--text-primary); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, white);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.text-muted { color: var(--text-secondary); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* ============ NAVBAR ============ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.navbar-brand .logo-dot { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); display: grid; place-items: center; color: #fff; font-weight: 800; }
.navbar-links { display: none; gap: 32px; align-items: center; }
.navbar-links a { font-weight: 500; color: var(--text-secondary); transition: color .15s; }
.navbar-links a:hover { color: var(--primary); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.navbar-toggle { display: block; font-size: 1.5rem; }
@media (min-width: 900px) {
  .navbar-links { display: flex; }
  .navbar-toggle { display: none; }
}
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 20px 20px; border-top: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; font-weight: 500; }

/* ============ HERO ============ */
.hero { padding: 72px 0 48px; text-align: center; }
.hero p.lead { max-width: 620px; margin: 18px auto 32px; color: var(--text-secondary); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-image { margin-top: 48px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }

/* ============ CARDS ============ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 14%, white);
  color: var(--primary); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px;
}
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ============ PRICING ============ */
.price-card { text-align: center; position: relative; }
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.price-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .75rem; padding: 4px 14px; border-radius: 999px; font-weight: 600; }
.price-amount { font-size: 2.4rem; font-weight: 800; margin: 12px 0; }
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.price-card ul { text-align: left; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.price-card ul li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-secondary); font-size: .92rem; }

/* ============ TESTIMONIALS ============ */
.testimonial .stars { color: #F59E0B; margin-bottom: 12px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }

/* ============ FAQ ============ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-weight: 600; cursor: pointer; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--text-secondary); }
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 18px; }
.faq-icon { transition: transform .25s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ============ CTA ============ */
.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 24px; padding: 56px 24px; text-align: center; color: #fff;
}
.cta-box h2, .cta-box p { color: #fff; }
.cta-box .btn-primary { background: #fff; color: var(--primary-dark); }

/* ============ FOOTER ============ */
.footer { background: var(--secondary); color: #fff; padding: 56px 0 24px; margin-top: 40px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: rgba(255,255,255,.6); font-size: .85rem; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: .95rem; background: var(--surface); color: var(--text-primary); transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--primary); }

/* ============ AUTH ============ */
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 40px 32px; box-shadow: var(--shadow-lg); }
.auth-logo { display: flex; justify-content: center; margin-bottom: 20px; }
.auth-footer-link { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--text-secondary); }

/* ============ ANIMATIONS (lightweight, no library) ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ DASHBOARD LAYOUT ============ */
.dash-wrapper { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; background: var(--surface); border-right: 1px solid var(--border);
  position: fixed; top: 0; left: -260px; bottom: 0; z-index: 200; transition: left .2s ease;
  overflow-y: auto;
}
.sidebar.open { left: 0; }
@media (min-width: 1024px) { .sidebar { left: 0; } }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 20px; font-weight: 800; border-bottom: 1px solid var(--border); }
.sidebar-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
  color: var(--text-secondary); font-weight: 500; font-size: .92rem; transition: background .15s, color .15s;
}
.sidebar-nav a:hover { background: var(--bg); color: var(--text-primary); }
.sidebar-nav a.active { background: color-mix(in srgb, var(--primary) 12%, white); color: var(--primary); font-weight: 600; }
.sidebar-nav .group-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); padding: 16px 14px 6px; }

.dash-main { flex: 1; min-width: 0; margin-left: 0; }
@media (min-width: 1024px) { .dash-main { margin-left: 260px; } }

.topbar {
  height: 68px; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: sticky; top: 0; z-index: 90;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 150; }
.sidebar-backdrop.open { display: block; }
@media (min-width: 1024px) { .topbar .menu-toggle { display: none; } }

.dash-content { padding: 24px; }
.stat-card { display: flex; align-items: center; gap: 16px; }
.stat-card .stat-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: color-mix(in srgb, var(--primary) 14%, white); color: var(--primary); flex-shrink: 0; }
.stat-value { font-size: 1.5rem; font-weight: 800; }
.stat-label { font-size: .85rem; color: var(--text-secondary); }
.stat-delta { font-size: .78rem; font-weight: 600; margin-top: 4px; }
.stat-delta.up { color: var(--success); }
.stat-delta.down { color: var(--danger); }

/* ============ TABLES & DATA PRESENTATION ============ */
table, .table, .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--surface);
}

table th, .table th, .data-table th {
  text-align: left;
  padding: 14px 18px;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--surface) 95%, var(--text-primary));
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table td, .table td, .data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

table tr:last-child td, .table tr:last-child td, .data-table tr:last-child td {
  border-bottom: none;
}

table tbody tr:hover, .table-hover tbody tr:hover, .data-table tbody tr:hover {
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
  transition: background 0.15s ease;
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* ============ BADGES & PILLS ============ */
.badge, .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.badge-success, .badge.bg-success {
  background: color-mix(in srgb, var(--success) 15%, white);
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
}

.badge-warning, .badge.bg-warning {
  background: color-mix(in srgb, var(--warning) 15%, white);
  color: #b45309;
  border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
}

.badge-danger, .badge.bg-danger {
  background: color-mix(in srgb, var(--danger) 15%, white);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
}

.badge-primary, .badge.bg-primary {
  background: color-mix(in srgb, var(--primary) 15%, white);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}

.badge-info, .badge.bg-info {
  background: color-mix(in srgb, #0284c7 15%, white);
  color: #0369a1;
  border: 1px solid color-mix(in srgb, #0284c7 30%, transparent);
}

.badge-secondary, .badge.bg-secondary {
  background: color-mix(in srgb, var(--text-secondary) 15%, white);
  color: var(--text-secondary);
  border: 1px solid color-mix(in srgb, var(--text-secondary) 30%, transparent);
}

/* ============ UTILITY CLASSES ============ */
.d-flex { display: flex !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-middle { vertical-align: middle !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.text-start { text-align: left !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-muted { color: var(--text-secondary) !important; }
.small { font-size: 0.82rem !important; }
.ps-4 { padding-left: 1.5rem !important; }
.pe-4 { padding-right: 1.5rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.p-0 { padding: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.border-0 { border: none !important; }
.rounded-pill { border-radius: 999px !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }

.theme-swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--border); cursor: pointer; transition: transform .15s; }
.theme-swatch:hover, .theme-swatch.active { transform: scale(1.12); box-shadow: 0 0 0 2px var(--primary); }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--surface); border-left: 4px solid var(--success); border-radius: 10px; padding: 14px 18px; box-shadow: var(--shadow-lg); font-size: .9rem; min-width: 260px; animation: slideIn .25s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ============ STAT CARD v2 (icon di kanan, ala dashboard modern) ============ */
.stat-card-v2 { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 24px; }
.stat-card-v2 .stat-label-v2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); font-weight: 700; margin-bottom: 8px; }
.stat-card-v2 .stat-value-v2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.stat-card-v2 .stat-delta-v2 { font-size: .78rem; color: var(--text-secondary); }
.stat-card-v2 .stat-delta-v2 strong { font-weight: 700; }
.stat-card-v2 .stat-delta-v2.up strong { color: var(--success); }
.stat-card-v2 .stat-delta-v2.down strong { color: var(--danger); }
.stat-icon-round {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.25rem; color: #fff;
  box-shadow: 0 6px 14px -4px rgba(0,0,0,.25);
}

/* ============ PROMO / HIGHLIGHT CARD ============ */
.promo-card {
  border-radius: var(--radius); padding: 28px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--secondary), var(--primary-dark) 60%, var(--primary));
  min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end;
}
.promo-card::before {
  content: ''; position: absolute; top: -40px; right: -40px; width: 220px; height: 220px;
  border-radius: 50%; background: color-mix(in srgb, var(--accent) 45%, transparent);
  filter: blur(10px);
}
.promo-card .promo-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: 16px; font-size: 1.1rem; }
.promo-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.promo-card p { color: rgba(255,255,255,.8); font-size: .85rem; }

/* ============ LIST CARD (Team / Todo / Progress) ============ */
.list-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: none; }
.list-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.list-row-title { font-weight: 600; font-size: .9rem; }
.list-row-sub { font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.list-row-sub.online { color: var(--success); }
.list-row-sub.meeting { color: var(--warning); }
.list-row-sub.offline { color: var(--text-secondary); }
.list-time { font-size: .75rem; color: var(--text-secondary); }

.todo-check {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border); flex-shrink: 0;
  display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s;
}
.todo-check.checked { background: var(--primary); border-color: var(--primary); color: #fff; font-size: .7rem; }
.todo-title { font-weight: 600; font-size: .88rem; }
.todo-title.done { text-decoration: line-through; color: var(--text-secondary); }

.progress-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1rem; flex-shrink: 0; }
.progress-bar-track { height: 5px; background: var(--border); border-radius: 999px; margin-top: 6px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 999px; background: var(--primary); }

/* ============ UTILITY CLASSES (Bootstrap compat. subset) ============ */
.d-flex { display: flex !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.flex-column { flex-direction: column !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.text-muted { color: var(--text-secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-normal { font-weight: 400 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-5 { margin-top: 24px !important; }
.me-1 { margin-right: 4px !important; }
.me-2 { margin-right: 8px !important; }
.ms-2 { margin-left: 8px !important; }
.ms-4 { margin-left: 20px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.small { font-size: .85rem !important; }
.w-100 { width: 100% !important; }
.overflow-hidden { overflow: hidden !important; }
.rounded-pill { border-radius: 999px !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-4 { border-radius: 16px !important; }
.shadow-sm { box-shadow: var(--shadow) !important; }
.border-0 { border: none !important; }
.pe-4 { padding-right: 20px !important; }
.ps-4 { padding-left: 20px !important; }
.py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
.py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }
.px-3 { padding-left: 12px !important; padding-right: 12px !important; }
.p-0 { padding: 0 !important; }
.p-4 { padding: 16px !important; }
.object-fit-cover { object-fit: cover !important; }
.bg-white { background: var(--surface) !important; }
.bg-light { background: color-mix(in srgb, var(--surface) 95%, var(--text-primary)) !important; }

/* ============ GRID & COLUMNS ============ */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}
.row > * {
  box-sizing: border-box;
  padding-left: 12px;
  padding-right: 12px;
  width: 100%;
}
.row.g-3 { margin-left: -8px; margin-right: -8px; }
.row.g-3 > * { padding-left: 8px; padding-right: 8px; }
.row.g-4 { margin-left: -16px; margin-right: -16px; }
.row.g-4 > * { padding-left: 16px; padding-right: 16px; }

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* ============ CARD SUB-COMPONENTS ============ */
.card-header {
  padding: 16px 20px;
  background: color-mix(in srgb, var(--surface) 96%, var(--text-primary));
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.card-body {
  padding: 20px;
}

/* ============ BUTTON STYLES ============ */
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(0.9); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-secondary { background: var(--text-secondary); color: #fff; }
.btn-outline { border: 1.5px solid var(--border); background: transparent; color: var(--text-primary); }
.btn-outline:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); border-color: var(--primary); color: var(--primary); }
.btn-outline-primary { border: 1.5px solid var(--primary); background: transparent; color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-outline-danger { border: 1.5px solid var(--danger); background: transparent; color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger); color: #fff; }
.btn-outline-secondary { border: 1.5px solid var(--border); background: transparent; color: var(--text-secondary); }
.btn-outline-secondary:hover { background: var(--border); color: var(--text-primary); }

/* ============ FORMS & INPUTS ============ */
.form-label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.form-control, .form-select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text-primary); font-size: .92rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ============ ALERTS & BANNERS ============ */
.alert, .alert-banner { padding: 14px 18px; border-radius: var(--radius); font-size: .92rem; margin-bottom: 16px; font-weight: 500; }
.alert.alert-success, .alert-banner.success { background: color-mix(in srgb, var(--success) 12%, white); color: var(--success); border-left: 4px solid var(--success); }
.alert.alert-danger, .alert-banner.error { background: color-mix(in srgb, var(--danger) 10%, white); color: var(--danger); border-left: 4px solid var(--danger); }
.alert.alert-warning, .alert-banner.warning { background: color-mix(in srgb, var(--warning) 12%, white); color: #b45309; border-left: 4px solid var(--warning); }
.alert.alert-info, .alert-banner.info { background: color-mix(in srgb, #0284c7 12%, white); color: #0369a1; border-left: 4px solid #0284c7; }

.badge-primary { background: color-mix(in srgb, var(--primary) 14%, white); color: var(--primary); }

/* ============ NEWS CAROUSEL / SLIDER ============ */
.news-slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}
.news-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.4, 1);
  will-change: transform;
}
.news-slide-item {
  min-width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  background: var(--surface);
}
@media (min-width: 850px) {
  .news-slide-item {
    grid-template-columns: 1.15fr 1fr;
    min-height: 400px;
  }
}
.news-slide-image {
  position: relative;
  min-height: 260px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.news-slide-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4));
}
.news-slide-content {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-slider-controls {
  position: absolute;
  bottom: 24px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}
.news-slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}
.news-slider-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.08);
}
.news-slider-dots {
  display: flex;
  gap: 6px;
  margin-right: 12px;
}
.news-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 25%, var(--border));
  transition: all 0.3s ease;
  cursor: pointer;
}
.news-dot.active {
  width: 28px;
  background: var(--primary);
}


