/* ============================================
   UNI REALTY — Design System
   ============================================ */

:root {
  /* Brand Colors */
  --burgundy: #710014;
  --burgundy-deep: #5a000f;
  --burgundy-soft: #8a0a1f;
  --red-accent: #7F0419;
  --brown: #492310;
  --cream: #FBF5EC;
  --cream-deep: #F2E8D5;
  --white: #FFFFFF;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --line: #e8dfd0;

  /* Gradient — Warm (cam) */
  --grad-warm: linear-gradient(135deg, #F7D046 0%, #F58634 50%, #E63946 100%);
  /* Gradient — Fresh (xanh lá) */
  --grad-fresh: linear-gradient(135deg, #C5D86D 0%, #76A946 50%, #2D5016 100%);
  /* Gradient — Brand */
  --grad-brand: linear-gradient(135deg, #8a0a1f 0%, #710014 50%, #5a000f 100%);

  /* Typography */
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(73, 35, 16, 0.06);
  --shadow-md: 0 10px 30px rgba(113, 0, 20, 0.10);
  --shadow-lg: 0 24px 60px rgba(113, 0, 20, 0.18);

  --container: 1240px;
  --header-h: 84px;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-accent); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; color: var(--burgundy-deep); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(56px, 9vw, 120px) 0; }

/* ============================================
   Utility — Gradient Text
   ============================================ */
.text-grad-warm {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-grad-fresh {
  background: var(--grad-fresh);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-burgundy { color: var(--burgundy); }

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 245, 236, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(73, 35, 16, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}
.nav-menu a {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--brown);
  border-radius: var(--radius-pill);
  transition: all .25s ease;
}
.nav-menu a:hover,
.nav-menu a.active {
  background: var(--burgundy);
  color: var(--white);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--grad-warm);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(230, 57, 70, 0.36); color: var(--white); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: var(--burgundy);
  color: var(--white);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

@media (max-width: 1024px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-menu.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open a { padding: 14px 18px; text-align: left; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius-pill);
  transition: all .25s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(113, 0, 20, 0.22);
}
.btn-primary:hover { background: var(--burgundy-deep); color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(113, 0, 20, 0.32); }

.btn-warm { background: var(--grad-warm); color: var(--white); box-shadow: 0 8px 22px rgba(230, 57, 70, 0.26); }
.btn-warm:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(230, 57, 70, 0.36); }

.btn-fresh { background: var(--grad-fresh); color: var(--white); box-shadow: 0 8px 22px rgba(45, 80, 22, 0.22); }
.btn-fresh:hover { color: var(--white); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
}
.btn-ghost:hover { background: var(--burgundy); color: var(--white); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0 clamp(80px, 12vw, 140px);
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(247, 208, 70, 0.18) 0%, transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(118, 169, 70, 0.16) 0%, transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--burgundy);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-warm);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat .num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--burgundy); }
.hero-stats .stat .label { font-size: 0.88rem; color: var(--ink-soft); }

.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(247, 208, 70, 0.3), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(118, 169, 70, 0.25), transparent 50%),
    var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}
.hero-visual img { width: 60%; max-width: 320px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 16/12; }
}

/* ============================================
   Section heading
   ============================================ */
.sec-head {
  text-align: center;
  margin-bottom: 56px;
}
.sec-head .kicker {
  display: inline-block;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--burgundy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.sec-head h2 { margin-bottom: 14px; }
.sec-head p { max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* Service card */
.svc-card .icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--grad-warm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 26px;
  margin-bottom: 20px;
}
.svc-card:nth-child(even) .icon { background: var(--grad-fresh); }
.svc-card:nth-child(3n) .icon { background: var(--burgundy); }
.svc-card h3 { margin-bottom: 12px; color: var(--burgundy-deep); }
.svc-card p { font-size: 0.96rem; }

/* Team card */
.team-card { text-align: center; padding: 28px 20px; }
.team-card .avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  border: 4px solid var(--cream-deep);
  box-shadow: var(--shadow-md);
}
.team-card h4 { color: var(--burgundy-deep); margin-bottom: 4px; }
.team-card .role { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 12px; }
.team-card .bio { font-size: 0.88rem; color: var(--ink-soft); }

/* News card */
.news-card { padding: 0; overflow: hidden; }
.news-card .thumb {
  aspect-ratio: 16/10;
  background: var(--grad-brand);
  position: relative;
}
.news-card .thumb::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(247, 208, 70, 0.4), transparent),
    radial-gradient(50% 50% at 20% 80%, rgba(118, 169, 70, 0.3), transparent);
}
.news-card .body { padding: 26px; }
.news-card .meta {
  display: flex; gap: 12px; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 10px;
}
.news-card .meta .tag { color: var(--burgundy); font-weight: 600; }
.news-card h4 { margin-bottom: 10px; color: var(--burgundy-deep); }
.news-card .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-weight: 600; font-size: 0.92rem;
}

/* Privilege tier card */
.tier-card {
  position: relative;
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1.5px solid rgba(113, 0, 20, 0.18);
  transition: all .3s ease;
}
.tier-card:not(.featured):hover {
  border-color: var(--burgundy);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(113, 0, 20, 0.10);
}
.tier-card.featured {
  background: var(--grad-brand);
  color: var(--white);
  border: none;
  transform: scale(1.03);
}
.tier-card.featured h3, .tier-card.featured .price { color: var(--white); }
.tier-card.featured p, .tier-card.featured li { color: rgba(255,255,255,0.86); }
.tier-card .badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  padding: 6px 16px;
  background: var(--grad-warm);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
}
.tier-card .tier-name { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; color: var(--burgundy); }
.tier-card.featured .tier-name { color: rgba(255,255,255,0.7); }
.tier-card .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; margin-bottom: 6px; color: var(--burgundy-deep); }
.tier-card ul { list-style: none; margin: 24px 0; }
.tier-card li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 0.95rem;
}
.tier-card li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 8px;
  color: #76A946;
  font-weight: 700;
}
.tier-card.featured li::before { color: #F7D046; }

/* ============================================
   Forms
   ============================================ */
.form-wrap {
  background: var(--white);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.form-row.full { grid-template-columns: 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brown);
}
.form-group label .req { color: var(--red-accent); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(113, 0, 20, 0.08);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; justify-content: center; margin-top: 8px; }

/* ============================================
   Toast / Notification
   ============================================ */
.toast-container {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  min-width: 280px; max-width: 380px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 4px solid var(--burgundy);
  transform: translateX(420px);
  opacity: 0;
  transition: transform .42s cubic-bezier(.16,1,.3,1), opacity .3s ease;
  pointer-events: auto;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.hide { transform: translateX(420px); opacity: 0; }
.toast.success { border-left-color: #76A946; }
.toast.error { border-left-color: #E63946; }
.toast.loading { border-left-color: #F58634; }
.toast .icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}
.toast.success .icon { background: #76A946; }
.toast.error .icon { background: #E63946; }
.toast.loading .icon { background: #F58634; }
.toast.loading .icon::after {
  content: '';
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast .icon-glyph { font-size: 18px; }

/* Button busy state */
.btn[disabled] { opacity: 0.7; cursor: not-allowed; pointer-events: none; }
.btn.busy .btn-spin {
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================
   CTA banner
   ============================================ */
.cta-banner {
  background: var(--grad-brand);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px);
}
.cta-banner::before { width: 320px; height: 320px; background: rgba(247, 208, 70, 0.3); top: -120px; right: -80px; }
.cta-banner::after { width: 280px; height: 280px; background: rgba(118, 169, 70, 0.25); bottom: -100px; left: -60px; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 28px; max-width: 600px; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--burgundy-deep);
  color: rgba(255,255,255,0.78);
  padding: 72px 0 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h5 { color: var(--white); font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin-bottom: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer img.foot-logo { height: 56px; width: auto; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: 0.94rem; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--white); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   Page hero (sub pages)
   ============================================ */
.page-hero {
  padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 6vw, 70px);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(247, 208, 70, 0.16) 0%, transparent 60%),
    radial-gradient(40% 40% at 0% 100%, rgba(118, 169, 70, 0.14) 0%, transparent 60%),
    var(--cream);
  text-align: center;
}
.page-hero .breadcrumb {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.page-hero .breadcrumb a { color: var(--burgundy); }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { max-width: 680px; margin: 0 auto; font-size: 1.08rem; }

/* ============================================
   Login box
   ============================================ */
.login-wrap {
  max-width: 460px;
  margin: 0 auto;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  text-align: center;
}
.login-card h2 { margin-bottom: 8px; font-size: 1.7rem; }
.login-card p.note { font-size: 0.95rem; margin-bottom: 30px; }
.login-card .form-row { text-align: left; }
.login-card .small { font-size: 0.85rem; margin-top: 18px; }

/* Member dashboard */
.member-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}
@media (max-width: 860px) { .member-grid { grid-template-columns: 1fr; } }
.member-side {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--line);
  height: fit-content;
}
.member-side .avatar-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  margin: 0 auto 14px;
}
.member-side h4 { text-align: center; }
.member-side .tier-badge {
  display: block; text-align: center;
  margin: 6px 0 18px;
  padding: 6px 10px;
  background: var(--grad-warm);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em;
}
.member-menu { list-style: none; }
.member-menu li a {
  display: block; padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--brown); font-weight: 500; font-size: 0.94rem;
}
.member-menu li a:hover, .member-menu li a.active { background: var(--cream); color: var(--burgundy); }
.member-main { display: flex; flex-direction: column; gap: 24px; }
.member-stat {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 540px) { .member-stat { grid-template-columns: 1fr; } }
.stat-box {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 22px;
}
.stat-box .num { font-family: var(--font-display); font-size: 2rem; color: var(--burgundy); }
.stat-box .label { font-size: 0.86rem; color: var(--ink-soft); }

/* News list */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .news-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-list { grid-template-columns: 1fr; } }
.news-filter {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 40px;
}
.news-filter button {
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--brown);
  border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 500;
  transition: all .2s ease;
}
.news-filter button.active, .news-filter button:hover {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--grad-brand);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(247, 208, 70, 0.18); filter: blur(20px);
}
.contact-info-card > * { position: relative; }
.contact-info-card h3 { color: var(--white); margin-bottom: 22px; }
.contact-info-card .info-row {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px;
}
.contact-info-card .info-row .ic {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.14);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.contact-info-card .info-row .label { font-size: 0.82rem; opacity: 0.72; }
.contact-info-card .info-row .value { font-weight: 600; font-size: 0.98rem; }

/* Process timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
@media (max-width: 800px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .timeline { grid-template-columns: 1fr; } }
.tl-step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 24px; position: relative;
}
.tl-step .num {
  width: 38px; height: 38px;
  background: var(--grad-warm);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}
.tl-step h4 { margin-bottom: 8px; color: var(--burgundy-deep); }
.tl-step p { font-size: 0.92rem; }

/* Animation on scroll */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   Member dashboard — Tabs
   ============================================ */
.dash-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--white);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  margin-bottom: 28px;
  width: fit-content;
  flex-wrap: wrap;
}
.dash-tabs button {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brown);
  transition: all .2s ease;
}
.dash-tabs button:hover { color: var(--burgundy); }
.dash-tabs button.active {
  background: var(--burgundy);
  color: var(--white);
}
.dash-panel { display: none; }
.dash-panel.active { display: block; }

/* ============================================
   Academy — Video courses
   ============================================ */
.dash-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-section-head h3 { color: var(--burgundy-deep); margin-bottom: 4px; }
.dash-section-head .desc { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 960px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-thumb {
  aspect-ratio: 16/9;
  background: var(--grad-brand);
  position: relative;
  overflow: hidden;
}
.video-thumb::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 70% 30%, rgba(247, 208, 70, 0.32), transparent 60%),
    radial-gradient(50% 50% at 30% 80%, rgba(118, 169, 70, 0.25), transparent 60%);
}
.video-thumb .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  background: rgba(255,255,255,0.92);
  color: var(--burgundy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  z-index: 1;
  transition: transform .25s ease;
}
.video-card:hover .video-thumb .play { transform: translate(-50%, -50%) scale(1.08); }
.video-thumb .duration {
  position: absolute;
  bottom: 10px; right: 10px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  z-index: 1;
}
.video-thumb .level {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 10px;
  background: var(--grad-warm);
  color: white;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  z-index: 1;
  text-transform: uppercase;
}
.video-body { padding: 18px 20px 20px; }
.video-body h4 { font-family: var(--font-body); font-size: 1.02rem; line-height: 1.4; margin-bottom: 8px; color: var(--burgundy-deep); }
.video-body .meta {
  display: flex; gap: 14px; align-items: center;
  font-size: 0.82rem; color: var(--ink-soft);
}
.video-body .meta .author { font-weight: 600; color: var(--brown); }

/* Academy — Search bar */
.acad-search {
  position: relative;
  margin-bottom: 20px;
}
.acad-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.acad-search input:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 4px rgba(113, 0, 20, 0.08);
}
.acad-search::before {
  content: '🔍';
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  opacity: 0.6;
}

/* Filter pills (dùng cho tab Tài liệu) */
.acad-filter button {
  padding: 7px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--brown);
  border-radius: var(--radius-pill);
  font-size: 0.86rem; font-weight: 500;
  transition: all .2s ease;
  cursor: pointer;
}
.acad-filter button.active, .acad-filter button:hover {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

/* Document grid trong series */
.series-body .doc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1080px) { .series-body .doc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .series-body .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .series-body .doc-grid { grid-template-columns: 1fr; } }

/* Academy — Series accordion */
.acad-series {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.acad-series.open {
  box-shadow: var(--shadow-md);
  border-color: rgba(113, 0, 20, 0.18);
}
.series-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  transition: background .2s ease;
}
.series-head:hover { background: var(--cream); }
.acad-series.open .series-head { border-bottom: 1px solid var(--line); }
.series-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--grad-brand);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.acad-series[data-color="fresh"] .series-icon { background: var(--grad-fresh); }
.acad-series[data-color="warm"] .series-icon { background: var(--grad-warm); }
.acad-series[data-color="burgundy"] .series-icon { background: var(--burgundy); }
.acad-series[data-color="brown"] .series-icon { background: var(--brown); }
.acad-series[data-color="deep"] .series-icon { background: var(--burgundy-deep); }
.series-head-info { flex: 1; min-width: 0; }
.series-head-info h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--burgundy-deep);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.series-meta {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.series-meta strong { color: var(--burgundy); font-weight: 600; }
.series-meta .pill {
  padding: 2px 10px;
  background: var(--cream);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brown);
}
.series-meta .pill.required {
  background: var(--grad-warm);
  color: white;
}
.series-meta .pill.new {
  background: var(--grad-fresh);
  color: white;
}
.series-toggle {
  width: 36px; height: 36px;
  background: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--burgundy);
  font-size: 14px;
  font-weight: 700;
  transition: transform .3s ease, background .2s ease;
  flex-shrink: 0;
}
.acad-series.open .series-toggle {
  transform: rotate(180deg);
  background: var(--burgundy);
  color: white;
}
.series-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.16,1,.3,1);
}
.acad-series.open .series-body { max-height: 8000px; }
.series-body-inner {
  padding: 22px;
}
.series-body .video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 960px) { .series-body .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .series-body .video-grid { grid-template-columns: 1fr; } }
.series-cta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.series-cta .progress {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.series-cta .progress-bar {
  flex: 1;
  height: 6px;
  background: var(--cream);
  border-radius: 3px;
  overflow: hidden;
}
.series-cta .progress-bar .fill {
  height: 100%;
  background: var(--grad-fresh);
  border-radius: 3px;
  transition: width .4s ease;
}

/* ============================================
   Sales Tools — Document/Resource grid
   ============================================ */
.proj-selector {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.proj-selector label {
  display: flex; flex-direction: column;
  font-size: 0.82rem; font-weight: 600;
  color: var(--brown); gap: 6px;
  flex: 1; min-width: 180px;
}
.proj-selector select, .proj-selector input {
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.94rem;
  background: var(--cream);
  color: var(--ink);
}
.proj-selector select:focus, .proj-selector input:focus {
  outline: none; border-color: var(--burgundy);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1080px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tool-grid { grid-template-columns: 1fr; } }

.tool-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all .25s ease;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--burgundy);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.tool-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: white;
}
.tool-icon.pdf { background: linear-gradient(135deg, #E63946, #B5202B); }
.tool-icon.xls { background: linear-gradient(135deg, #76A946, #2D5016); }
.tool-icon.ppt { background: linear-gradient(135deg, #F58634, #C95F1A); }
.tool-icon.img { background: linear-gradient(135deg, #8a0a1f, #5a000f); }
.tool-icon.video { background: linear-gradient(135deg, #6c5ce7, #4834d4); }
.tool-icon.zip { background: linear-gradient(135deg, #F7D046, #C99A0F); color: var(--brown); }

.tool-card h5 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--burgundy-deep);
  line-height: 1.35;
}
.tool-card .tool-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 0.8rem; color: var(--ink-soft);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.tool-card .badge-new {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--grad-fresh);
  color: white;
  border-radius: 4px;
}

/* Modal — Video player */
.modal {
  position: fixed; inset: 0;
  background: rgba(26, 10, 16, 0.85);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}
.modal.open { display: flex; }
.modal-box {
  background: var(--ink);
  border-radius: var(--radius-md);
  max-width: 960px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.16);
  color: white;
  border-radius: 50%;
  z-index: 2;
  font-size: 20px;
}
.modal-video { aspect-ratio: 16/9; }
.modal-video iframe { width: 100%; height: 100%; border: 0; }
