/* =====================================================
   DIỆU LIÊN — Design System v2 (No Icons)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&family=Montserrat:wght@600;700;800;900&display=swap');

/* ─── Variables ─────────────────────────────────────── */
:root {
  --gold: #C9A227;
  --gold-light: #E0BC55;
  --gold-dark: #9E7D1A;
  --gold-bg: #FDF6E3;
  --gold-pale: #FEFBF0;
  --cream: #F6F1E9;
  --cream-dark: #EDE5D4;
  --dark: #2C2416;
  --dark-2: #3D3025;
  --text: #4A3E30;
  --text-light: #7A6E60;
  --text-muted: #A09080;
  --white: #FFFFFF;
  --border: #E8DFC8;
  --border-light: #F0E8D5;
  --green: #2D9B5E;
  --green-bg: #EBF7F0;
  --red: #C0392B;
  --red-bg: #FCE8E6;
  --orange: #E67E22;
  --orange-bg: #FEF0E0;
  --blue: #2471A3;
  --blue-bg: #EAF4FB;

  --shadow-xs: 0 1px 4px rgba(44, 36, 22, .06);
  --shadow-sm: 0 2px 12px rgba(44, 36, 22, .08);
  --shadow-md: 0 6px 24px rgba(44, 36, 22, .12);
  --shadow-lg: 0 12px 48px rgba(44, 36, 22, .16);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  --font: 'Be Vietnam Pro', sans-serif;
  --font-heading: 'Montserrat', 'Be Vietnam Pro', sans-serif;
  --transition: .22s cubic-bezier(.4, 0, .2, 1);
}

/* ─── Reset ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: pageIn .18s ease both;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: var(--font);
}

/* ─── Typography ────────────────────────────────────── */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
}

h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

/* ─── Brand name highlight ──────────────────────────── */
/* Usage: <span class="brand">Diệu Liên</span> */
.brand {
  background: linear-gradient(135deg, var(--gold-dark) 0%, #E8B93A 50%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 1px 2px rgba(201, 162, 39, 0.25));
}

p {
  line-height: 1.75;
}

/* ─── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: .01em;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, .35);
}

.btn-secondary {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.btn-secondary:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .6);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-dark);
  border-color: var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--dark);
}

.btn-ghost {
  background: var(--cream);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-danger:hover {
  opacity: .85;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ─── Tags / Badges ─────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
}

.tag-gold {
  background: var(--gold-bg);
  color: var(--gold-dark);
}

.tag-green {
  background: var(--green-bg);
  color: var(--green);
}

.tag-red {
  background: var(--red-bg);
  color: var(--red);
}

.tag-orange {
  background: var(--orange-bg);
  color: var(--orange);
}

.tag-blue {
  background: var(--blue-bg);
  color: var(--blue);
}

.tag-dark {
  background: var(--dark);
  color: var(--white);
}

/* ─── Layout ────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 48px;
}

.section-head h2 {
  color: var(--dark);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--text-light);
  max-width: 520px;
}

.section-head.center {
  text-align: center;
}

.section-head.center p {
  margin: 0 auto;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-head-row h2 {
  color: var(--dark);
}

.section-head-row p {
  color: var(--text-light);
  font-size: 13px;
  margin-top: 4px;
}

.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
  white-space: nowrap;
}

.see-all:hover {
  text-decoration: underline;
}

/* ─── Grid ──────────────────────────────────────────── */
.g2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.g3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.g4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media(max-width:1024px) {
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:768px) {

  .g2,
  .g3,
  .g4 {
    grid-template-columns: 1fr;
  }
}

/* ─── Forms ─────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dark-2);
  letter-spacing: .01em;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237A6E60'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 32px;
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media(max-width:600px) {
  .input-row {
    grid-template-columns: 1fr;
  }
}

/* ─── Cards ─────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.card-body {
  padding: 22px;
}

.card-hover {
  transition: transform var(--transition), box-shadow var(--transition);
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ─── Data table ────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1.5px solid var(--border);
  background: var(--cream);
}

.data-table tbody td {
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: var(--gold-pale);
}

/* ─── Progress bar ──────────────────────────────────── */
.progress {
  height: 7px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gold);
  border-radius: var(--r-full);
  transition: width .6s ease;
}

/* ─── Rating stars (text only, no icon) ─────────────── */
.stars {
  color: var(--gold);
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 14px;
}

/* ─── Divider ───────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
}

/* ─── Notification pill ─────────────────────────────── */
.notif-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
}

/* ─── Scroll bar ────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* ─── Animations ────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeUp .45s ease forwards;
}

/* ─── Page Transition ───────────────────────────────── */
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes progressRun {
  from {
    width: 0%;
    opacity: 1;
  }

  to {
    width: 100%;
    opacity: 0;
  }
}

/* Top progress bar */
#nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 99999;
  display: none;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px rgba(201, 162, 39, .6);
}

#nav-progress.running {
  display: block;
  animation: progressRun .4s ease forwards;
}

/* ─── Toast ─────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--dark);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: fadeUp .3s ease;
  max-width: 320px;
}

.toast.toast-success {
  border-left: 4px solid var(--green);
}

.toast.toast-error {
  border-left: 4px solid var(--red);
}

.toast.toast-info {
  border-left: 4px solid var(--gold);
}

/* ─── Modal ─────────────────────────────────────────── */
.modal-wrap {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
}

.modal-wrap.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 36px;
  width: 90%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  color: var(--dark);
  font-size: 20px;
}

.modal-close {
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

.modal-close:hover {
  color: var(--dark);
}

/* ─── Dashboard layout ──────────────────────────────── */
.dl-layout {
  display: flex;
  min-height: 100vh;
  background: var(--cream);
}

.dl-sidebar {
  width: 224px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.dl-sidebar-logo {
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
}

.dl-sidebar-nav {
  flex: 1;
  padding: 10px 0;
}

.dl-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
}

.dl-sidebar-nav a:hover {
  background: var(--gold-pale);
  color: var(--gold-dark);
}

.dl-sidebar-nav a.active {
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
}

.dl-sidebar-nav .nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.dl-sidebar-nav a.active .nav-dot {
  background: var(--dark);
}

.dl-sidebar-foot {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
}

.dl-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dl-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.dl-topbar h1 {
  font-size: 21px;
  font-weight: 800;
  color: var(--dark);
}

.dl-content {
  padding: 28px 32px;
  flex: 1;
  overflow-y: auto;
}

/* ─── Icon-free metric card ─────────────────────────── */
.metric-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
}

.metric-card .mc-label {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 6px;
  font-weight: 500;
}

.metric-card .mc-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-card .mc-trend {
  font-size: 12px;
  font-weight: 600;
}

.mc-trend-up {
  color: var(--green);
}

.mc-trend-down {
  color: var(--red);
}

/* ─── Panel ─────────────────────────────────────────── */
.panel {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

/* ─── Horizontal person card ────────────────────────── */
.person-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.person-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-dark);
  flex-shrink: 0;
  overflow: hidden;
}

.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.person-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Accent line  ──────────────────────────────────── */
.gold-line {
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 10px 0 16px;
}

.gold-line.center {
  margin-left: auto;
  margin-right: auto;
}

/* ─── Header ────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-xs);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-wrap img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
}

.logo-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}

.logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.main-nav a {
  padding: 8px 15px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--gold-bg);
  color: var(--gold-dark);
  font-weight: 600;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ─── Header auth buttons (shown when not logged in) ─── */
.btn-auth-login {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--r-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  border: 1.5px solid var(--border);
  background: transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-auth-login:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-pale);
}

.btn-auth-register {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--r-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  background: var(--gold);
  border: 1.5px solid var(--gold);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-auth-register:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-1px);
}


/* Mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}

@media(max-width:768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    border-radius: var(--r-sm);
  }
}

/* ─── Footer ────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .7);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-name {
  color: var(--white);
}

.footer-brand .logo-sub {
  color: rgba(255, 255, 255, .4);
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .55);
  margin: 14px 0 0;
}

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul a {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--gold-light);
}

.footer-address {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer-address strong {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .3);
}

@media(max-width:1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media(max-width:640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ─── Responsive sidebar ────────────────────────────── */
@media(max-width:900px) {
  .dl-sidebar {
    display: none;
  }

  .dl-content {
    padding: 20px;
  }

  .dl-topbar {
    padding: 0 20px;
  }
}