/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --gold:        #AE7C41;
  --gold-light:  #C9973E;
  --gold-pale:   #F3EBD9;
  --ivory:       #FAFAF7;
  --charcoal:    #1A1A1A;
  --mid:         #3D3D3D;
  --muted:       #7A7A7A;
  --border:      #E5DCCC;
  --white:       #FFFFFF;
  --overlay:     rgba(26,26,26,0.72);

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;

  --ease: cubic-bezier(0.25,0.46,0.45,0.94);
  --r:    4px;
  --desktop-shell: 1520px;
  --desktop-gutter: 48px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--ivory);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── Utility ───────────────────────────────────────────────── */
.container { max-width: var(--desktop-shell); margin: 0 auto; padding: 0 var(--desktop-gutter); }
.section-label { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.section-label::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--gold); }
.display-heading { font-family: var(--serif); font-size: clamp(36px, 5vw, 58px); font-weight: 300; line-height: 1.15; color: var(--charcoal); }
.display-heading em { font-style: italic; color: var(--gold); }
.gold-divider { width: 48px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); margin: 24px 0; }

/* ─── Navigation ────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(250,250,247,0.98); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s var(--ease); }
.nav.scrolled { box-shadow: 0 2px 30px rgba(174,124,65,0.08); }
.nav-inner { max-width: var(--desktop-shell); margin: 0 auto; padding: 0 var(--desktop-gutter); display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.08em; color: var(--charcoal); display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 80px; list-style: none; }
.nav-links a { font-size: 20px; font-weight: 600; letter-spacing: 0.04em; color: var(--mid); transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 0.25s var(--ease); }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }
.btn-book-nav { background: var(--gold); color: var(--white); padding: 10px 24px; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; border: none; cursor: pointer; transition: background 0.2s, transform 0.2s; border-radius: var(--r); }
.btn-book-nav:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Nút Hamburger & Desktop class */
.desktop-only { display: flex; }
.mobile-menu-btn { display: none; background: transparent; color: var(--charcoal); border: none; align-items: center; justify-content: center; cursor: pointer; padding: 5px; margin-right: 15px; }
.mobile-menu-btn i { font-size: 32px; color: var(--gold); }

/* MOBILE SIDE DRAWER */
.mobile-drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; opacity: 0; visibility: hidden; transition: 0.3s; }
.mobile-drawer-overlay.active { opacity: 1; visibility: visible; }
.mobile-drawer { position: fixed; top: 0; left: -320px; width: 300px; height: 100%; background: var(--white); z-index: 1001; box-shadow: 2px 0 20px rgba(0,0,0,0.15); transition: left 0.3s ease; display: flex; flex-direction: column; }
.mobile-drawer.active { left: 0; }
.drawer-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.close-drawer-btn { background: none; border: none; color: var(--charcoal); cursor: pointer; }
.drawer-user { padding: 25px 20px; background: var(--gold-pale); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 15px; }
.drawer-user .avatar { width: 50px; height: 50px; background: var(--gold); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.drawer-user .name { font-weight: 700; color: var(--charcoal); font-size: 16px; margin-bottom: 2px; }
.drawer-user .role { font-size: 13px; color: var(--gold); font-weight: 600; text-transform: uppercase; }
.drawer-links { list-style: none; padding: 20px 0; margin: 0; flex: 1; overflow-y: auto; }
.drawer-links li a { display: flex; align-items: center; gap: 15px; padding: 14px 25px; color: var(--charcoal); font-weight: 600; text-decoration: none; font-size: 15px; }
.drawer-links li a:hover { background: var(--ivory); color: var(--gold); border-left: 4px solid var(--gold); padding-left: 21px; }
.drawer-links li a i { color: var(--gold); font-size: 22px; }
.drawer-footer { padding: 25px; border-top: 1px solid var(--border); }
.btn-drawer-auth { width: 100%; padding: 14px; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; text-transform: uppercase; }
#drawerLoginBtn { background: var(--gold); color: white; }
.btn-logout { background: #D32F2F !important; color: white !important; }

/* MOBILE BOTTOM TASKBAR */
.mobile-bottom-bar { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 -4px 15px rgba(0,0,0,0.06); z-index: 99; justify-content: space-around; align-items: center; padding: 8px 10px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.tab-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; transition: color 0.2s; width: 60px; }
.tab-item i { font-size: 24px; }
.tab-item.active, .tab-item:hover { color: var(--gold); }
.center-action { position: relative; top: -20px; color: var(--charcoal); }
.center-btn { width: 56px; height: 56px; background: var(--gold); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(174,124,65,0.4); border: 4px solid var(--white); margin-bottom: 4px; transition: transform 0.2s; }
.center-action:active .center-btn { transform: scale(0.95); }

/* ─── Hero & Services & Booking (Cấu trúc PC mặc định) ─── */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; padding-top: 76px; position: relative; }
.hero-left { display: flex; flex-direction: column; justify-content: center; padding: 90px 72px 90px var(--desktop-gutter); max-width: 760px; }
.hero-tagline { font-size: 11px; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.hero-tagline::before { content: ''; display: block; width: 36px; height: 1px; background: var(--gold); }
.hero-h1 { font-family: var(--serif); font-size: clamp(44px, 5.5vw, 68px); font-weight: 300; line-height: 1.1; color: var(--charcoal); margin-bottom: 30px; }
.hero-h1 span { color: var(--gold); font-style: italic; }
.hero-sub { font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--muted); max-width: 480px; margin-bottom: 48px; }
.hero-cta { display: flex; align-items: center; gap: 24px; }
.btn-primary { background: var(--gold); color: var(--white); padding: 16px 36px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; border: none; cursor: pointer; transition: all 0.25s var(--ease); border-radius: var(--r); display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(174,124,65,0.3); }
.btn-secondary-text { font-size: 13px; font-weight: 400; color: var(--mid); display: flex; align-items: center; gap: 8px; cursor: pointer; transition: color 0.2s; }
.btn-secondary-text:hover { color: var(--gold); }
.hero-stats { display: flex; gap: 40px; margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.stat-num { font-family: var(--serif); font-size: 36px; font-weight: 300; color: var(--charcoal); line-height: 1; }
.stat-num sup { font-size: 18px; color: var(--gold); }
.stat-label { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; margin-top: 4px; }

.hero-right { position: relative; overflow: hidden; background: var(--charcoal); }
.hero-img-bg { position: absolute; inset: 0; background: linear-gradient(145deg, #1A1410 0%, #2A1F10 40%, #1A1410 100%); }
.hero-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 20%, rgba(174,124,65,0.18) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(174,124,65,0.10) 0%, transparent 40%); }
.hero-visual-frame { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 620px; height: 600px; border: 2px solid rgba(174,124,65,0.35); display: flex; align-items: center; justify-content: center; }
.hero-visual-frame::before, .hero-visual-frame::after { content: ''; position: absolute; border: 1px solid rgba(174,124,65,0.15); }
.hero-visual-frame::before { inset: 12px; } .hero-visual-frame::after { inset: -12px; }
.hero-inner-icon { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-icon-ring { width: 100px; height: 100px; border: 1px solid rgba(174,124,65,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-icon-ring::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(174,124,65,0.25); border-radius: 50%; }
.hero-icon-svg { color: var(--gold); opacity: 0.9; }
.hero-panel-text { color: rgba(255,255,255,0.7); font-family: var(--serif); font-size: 28px; font-style: italic,bold; text-align: center; letter-spacing: 0.03em; line-height: 1.5; }
.hero-panel-text strong { display: block; font-style: normal; font-weight: 500; font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }

.services { padding: 120px 0; background: var(--white); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; gap: 20px; }
.services-header-left { max-width: 640px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); }
.service-card { background: var(--white); padding: 48px 40px; cursor: pointer; transition: all 0.3s var(--ease); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; }
.service-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.service-card:hover { background: var(--ivory); }
.service-card:hover::before { transform: scaleX(1); }
.expert-img-wrapper { width: 120px; height: 120px; margin-bottom: 20px; border-radius: 50%; border: 2px solid var(--border); padding: 4px; transition: border-color 0.3s, background 0.3s; background: var(--white); }
.service-card:hover .expert-img-wrapper { border-color: var(--gold); background: var(--gold-pale); }
.expert-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; object-position: bottom center; }
.service-name { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--charcoal); margin-bottom: 10px; }
.service-desc { font-size: 14px; color: var(--muted); }
.service-arrow { position: absolute; top: 20px; right: 20px; color: var(--gold); opacity: 0; transition: all 0.25s; }
.service-card:hover .service-arrow { transform: translate(-4px, 4px); opacity: 1; }

.booking-section { padding: 120px 0; background: var(--ivory); position: relative; overflow: hidden; }
.booking-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 96px; align-items: start; }
.booking-info-desc { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 48px; }
.booking-steps { display: flex; flex-direction: column; gap: 28px; }
.booking-step { display: flex; gap: 20px; align-items: flex-start; }
.step-num { font-family: var(--serif); font-size: 32px; font-weight: 300; color: var(--gold); opacity: 0.35; line-height: 1; flex-shrink: 0; width: 32px; }
.step-content h4 { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--charcoal); margin-bottom: 4px; }
.step-content p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.booking-form-card { background: var(--white); border: 1px solid var(--border); padding: 56px 52px; border-radius: 6px; box-shadow: 0 4px 40px rgba(0,0,0,0.04); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mid); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px; border: 1px solid var(--border); background: var(--ivory); color: var(--charcoal); font-family: var(--sans); font-size: 15px; border-radius: var(--r); outline: none; transition: 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(174,124,65,0.1); background: var(--white); }
.calendar-preview { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
.cal-header { background: var(--charcoal); color: var(--white); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; font-weight: 500; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--white); }
.cal-day-name { font-size: 11px; text-align: center; padding: 10px 4px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.cal-day { font-size: 13px; text-align: center; padding: 12px 4px; cursor: pointer; color: var(--mid); transition: 0.15s; margin: 2px; border-radius: 4px; }
.cal-day:hover:not(.disabled):not(.empty) { background: var(--gold-pale); color: var(--gold); }
.cal-day.selected { background: var(--gold); color: var(--white); font-weight: bold; }
.cal-day.disabled { color: var(--border); cursor: default; }
.time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.time-slot { padding: 12px 4px; border: 1px solid var(--border); text-align: center; font-size: 13px; color: var(--mid); cursor: pointer; border-radius: var(--r); transition: 0.15s; background: var(--ivory); font-weight: 500; }
.time-slot:hover:not(.unavailable) { border-color: var(--gold); color: var(--gold); background: var(--white); }
.time-slot.selected { background: var(--gold); border-color: var(--gold); color: var(--white); }
.time-slot.unavailable { color: var(--border); cursor: default; text-decoration: line-through; opacity: 0.5; }
.btn-submit { width: 100%; padding: 16px; background: var(--gold); color: var(--white); border: none; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: 0.25s; border-radius: var(--r); display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-submit:hover { background: var(--gold-light); box-shadow: 0 6px 24px rgba(174,124,65,0.35); }

.toast { position: fixed; bottom: 32px; right: 32px; background: var(--charcoal); color: var(--white); padding: 18px 28px; border-left: 4px solid var(--gold); border-radius: 4px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); font-size: 15px; font-weight: 500; z-index: 1000; display: none; align-items: center; gap: 15px; animation: slideIn 0.3s var(--ease); }
.toast.show { display: flex; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-icon { color: var(--gold); }

/* ─── TỐI ƯU MOBILE RESPONSIVE CHUẨN APP ─── */
@media (max-width: 960px) {
  body { font-size: 14px; padding-bottom: 75px !important; }
  .container { padding: 0 16px !important; max-width: 100% !important; overflow-x: hidden; }
  .desktop-only { display: none !important; }
  .mobile-menu-btn { display: flex; }
  .mobile-bottom-bar { display: flex; } 
  
  .nav { position: fixed; height: auto; }
  .nav-inner { padding: 0 16px !important; height: 60px !important; justify-content: center !important; position: relative; }
  .mobile-menu-btn { position: absolute; left: 16px; }
  .nav-logo img { height: 40px !important; width: auto !important; }

  .hero { grid-template-columns: 1fr !important; padding-top: 70px !important; }
  .hero-left { padding: 30px 16px 40px !important; max-width: 100% !important; text-align: center; }
  .hero-tagline { justify-content: center; margin-bottom: 16px; }
  .hero-tagline::before { display: none; }
  .hero-h1 { font-size: 38px !important; margin-bottom: 20px; line-height: 1.2; }
  .hero-sub { margin: 0 auto 30px !important; }
  .hero-cta { flex-direction: column !important; gap: 16px !important; width: 100%; }
  .hero-cta .btn-primary, .hero-cta .btn-secondary-text { width: 100% !important; justify-content: center !important; padding: 14px !important; }
  .hero-stats { justify-content: center !important; gap: 20px !important; margin-top: 40px !important; padding-top: 30px !important; flex-wrap: wrap; }
  .hero-right { display: none !important; }

  #personalBookingsBlock { padding: 20px 16px !important; margin: 30px auto 0 !important; width: 100% !important; }
  #personalListWrapper > div { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; padding: 15px !important; }
  #personalListWrapper button { width: 100% !important; justify-content: center; }

  .services { padding: 60px 0 !important; }
  .services-header { text-align: center; align-items: center !important; flex-direction: column; }
  .gold-divider { margin: 16px auto !important; }
  .services-grid { grid-template-columns: 1fr !important; gap: 20px !important; background: transparent !important; }
  .service-card { padding: 30px 20px !important; border: 1px solid var(--border); border-radius: 8px; }

  .booking-section { padding: 60px 0 !important; }
  .booking-layout { grid-template-columns: 1fr !important; gap: 40px !important; }
  .booking-info { text-align: center; }
  .booking-steps { text-align: left; }
  .booking-form-card { padding: 30px 16px !important; border-radius: 8px !important; }
  .form-title { font-size: 22px !important; text-align: center; margin-bottom: 30px; }
  
  .time-slots { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
  .why-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
  .cta-banner { padding: 60px 20px !important; }
  .cta-banner h2 { font-size: 26px !important; }
  
  .toast { width: 90%; left: 5%; right: 5%; bottom: 85px; }
}

@media (max-width: 480px) {
  .time-slots { grid-template-columns: repeat(2, 1fr) !important; }
}

/* =========================================================
   HIỆU ỨNG SPINNER CHỐNG SPAM CLICK (Double-click)
   ========================================================= */
.btn-loading {
    position: relative;
    pointer-events: none; /* Khóa hoàn toàn chuột/cảm ứng */
    opacity: 0.7;
}
.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px; height: 20px;
    top: calc(50% - 10px); right: 15px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
}
@keyframes btnSpin { 100% { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════
   GLOBAL UX ENHANCEMENTS — Toast, Confirm Modal, Skeleton, Ripple
   ═══════════════════════════════════════════════════════════════ */

/* ─── TOAST NOTIFICATION SYSTEM ─────────────────────────────── */
#toastContainer {
  position: fixed; bottom: 24px; right: 24px; z-index: 99999;
  display: flex; flex-direction: column-reverse; gap: 10px;
  pointer-events: none;
}
.ever-toast {
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; max-width: 400px;
  padding: 14px 18px; border-radius: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: #fff; box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  pointer-events: all; cursor: pointer;
  animation: toastIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
  backdrop-filter: blur(4px);
}
.ever-toast.toast-out { animation: toastOut 0.3s ease forwards; }
.ever-toast i { font-size: 20px; flex-shrink: 0; }
.ever-toast.toast-success { background: linear-gradient(135deg,#2B8A3E,#27ae60); }
.ever-toast.toast-error   { background: linear-gradient(135deg,#c0392b,#e74c3c); }
.ever-toast.toast-warning { background: linear-gradient(135deg,#e67e22,#f39c12); }
.ever-toast.toast-info    { background: linear-gradient(135deg,#1565C0,#1976D2); }
.ever-toast.toast-gold    { background: linear-gradient(135deg,var(--gold),var(--gold-light)); }
@keyframes toastIn  { from { opacity:0; transform:translateX(60px) scale(0.9); } to { opacity:1; transform:translateX(0) scale(1); } }
@keyframes toastOut { from { opacity:1; transform:translateX(0) scale(1); } to { opacity:0; transform:translateX(60px) scale(0.9); } }
@media (max-width: 600px) {
  #toastContainer { bottom: 80px; right: 12px; left: 12px; }
  .ever-toast { min-width: unset; max-width: 100%; }
}

/* ─── CONFIRM MODAL ─────────────────────────────────────────── */
#everConfirmOverlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,26,26,0.6); z-index: 99998;
  align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
#everConfirmOverlay.open { display: flex; animation: fadeInOv 0.2s ease; }
@keyframes fadeInOv { from{opacity:0} to{opacity:1} }
.ever-confirm-box {
  background: #fff; border-radius: 12px; padding: 32px;
  max-width: 400px; width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  animation: confirmPop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes confirmPop { from{opacity:0;transform:scale(0.85)} to{opacity:1;transform:scale(1)} }
.ever-confirm-icon { font-size: 40px; margin-bottom: 12px; }
.ever-confirm-title { font-size: 18px; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.ever-confirm-msg   { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.ever-confirm-btns  { display: flex; gap: 10px; }
.ever-confirm-btns button { flex: 1; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; font-family: var(--sans); transition: all 0.2s; }
.ever-confirm-ok     { background: var(--gold); color: white; }
.ever-confirm-ok:hover { background: var(--gold-light); transform: translateY(-1px); }
.ever-confirm-ok.danger  { background: #e53935; }
.ever-confirm-ok.danger:hover { background: #c62828; }
.ever-confirm-cancel { background: #f5f5f5; color: var(--charcoal); }
.ever-confirm-cancel:hover { background: #eee; }

/* ─── SKELETON LOADING ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0ece4 25%, #faf7f0 50%, #f0ece4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.skeleton-line  { height: 14px; margin-bottom: 10px; border-radius: 4px; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-card  { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.skeleton-avatar{ width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }

/* ─── PAGE TRANSITIONS ──────────────────────────────────────── */
.page-enter { animation: pageEnter 0.4s ease both; }
@keyframes pageEnter { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* ─── RIPPLE BUTTON EFFECT ──────────────────────────────────── */
.btn-ripple { position: relative; overflow: hidden; }
.btn-ripple .ripple-wave {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0); animation: rippleAnim 0.5s linear;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ─── LOADING BUTTON STATE ──────────────────────────────────── */
.btn-loading { position: relative; pointer-events: none; opacity: 0.75; }
.btn-loading::after {
  content: "";
  position: absolute; width: 16px; height: 16px;
  top: calc(50% - 8px); right: 12px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin { 100% { transform: rotate(360deg); } }

/* ─── CHẤM CÔNG PROFILE WIDGET ──────────────────────────────── */
.att-stat-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 12px;
  margin-bottom: 20px;
}
.att-stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 12px; text-align: center;
}
.att-stat-card .att-num { font-size: 26px; font-weight: 700; font-family: var(--serif); color: var(--charcoal); }
.att-stat-card .att-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }
.att-stat-card.green .att-num { color: #2B8A3E; }
.att-stat-card.orange .att-num { color: #E65100; }
.att-stat-card.red   .att-num { color: #C62828; }
.att-stat-card.blue  .att-num { color: #1565C0; }
.att-stat-card.gold  .att-num { color: var(--gold); }

/* Lịch calendar nhỏ gọn */
.mini-cal-grid {
  display: grid; grid-template-columns: repeat(7,1fr); gap: 4px;
  font-size: 12px; text-align: center;
}
.mini-cal-grid .cal-hdr { font-weight: 600; color: var(--muted); padding: 4px 0; font-size: 10px; }
.mini-cal-cell {
  padding: 5px 2px; border-radius: 6px; font-size: 12px;
  border: 1px solid transparent; position: relative; cursor: default;
}
.mini-cal-cell.mc-full    { background: #E8F5E9; color: #2E7D32; border-color: #C8E6C9; font-weight: 700; }
.mini-cal-cell.mc-half    { background: #FFF3E0; color: #E65100; border-color: #FFE0B2; font-weight: 700; }
.mini-cal-cell.mc-absent  { background: #FFEBEE; color: #C62828; border-color: #FFCDD2; font-weight: 700; }
.mini-cal-cell.mc-trip    { background: #E0F7FA; color: #00838F; border-color: #B2EBF2; font-weight: 700; }
.mini-cal-cell.mc-leave   { background: #E8F5E9; color: #388E3C; font-style:italic; border-color: #C8E6C9; font-weight: 700; }
.mini-cal-cell.mc-holiday { background: #F3E5F5; color: #7B1FA2; border-color: #E1BEE7; font-weight: 700; }
.mini-cal-cell.mc-weekend { color: var(--muted); background: transparent; }
.mini-cal-cell.mc-today   { box-shadow: 0 0 0 2px var(--gold); }
.mini-cal-cell.mc-empty   { background: transparent; border: none; }
.att-dot-red  { width:5px;height:5px;border-radius:50%;background:#e53935;position:absolute;top:2px;right:2px; }
.att-dot-blue { width:5px;height:5px;border-radius:50%;background:#1565C0;position:absolute;bottom:2px;right:2px; }
