/* ═══════════════════════════════════════════════════════════════
   DaNang Rider — Style Sheet
   Aesthetic: Tropical Light · Warm white + teal + gold
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #f8f5f0;
  --bg2:       #ffffff;
  --bg3:       #f0ece6;
  --teal:      #00a887;
  --teal-dark: #007d65;
  --teal-lt:   #e6f7f3;
  --gold:      #d4850a;
  --gold-lt:   #fff8eb;
  --text:      #1a1a2e;
  --text-muted:#6b7280;
  --border:    rgba(0,0,0,0.09);
  --card-bg:   #ffffff;
  --radius:    14px;
  --radius-lg: 24px;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.13);
  --trans:     0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ── Utility ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.section-tag {
  display: inline-block;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-lt);
  border: 1px solid rgba(0,168,135,.25);
  padding: 4px 14px; border-radius: 99px; margin-bottom: 16px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 14px; color: var(--text);
}
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }
.section-header.light h2 { color: var(--text); }
.section-header.light p { color: var(--text-muted) }

/* ═══ HEADER ═══════════════════════════════════════════════════ */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--trans), box-shadow var(--trans);
}
#header.scrolled {
  background: rgba(248,245,240,0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border), var(--shadow);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.logo-icon { font-size: 1.5rem; }
.logo-text { font-weight: 400; color: var(--text); }
.logo-text strong { color: var(--teal); }

.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links a {
  font-size: .9rem; font-weight: 500; padding: 7px 16px; border-radius: 8px;
  color: var(--text-muted); transition: color var(--trans), background var(--trans);
}
.nav-links a:hover { color: var(--text); background: var(--bg3); }
.btn-nav { background: var(--teal) !important; color: #fff !important; font-weight: 600 !important; }
.btn-nav:hover { background: var(--teal-dark) !important; }

.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-switcher { display: flex; gap: 4px; flex-wrap: wrap; }
.lang-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); font-size: .75rem; font-weight: 600;
  padding: 4px 8px; border-radius: 6px; cursor: pointer;
  transition: all var(--trans);
}
.lang-btn:hover { background: var(--teal-lt); color: var(--teal); border-color: rgba(0,168,135,.3); }
.lang-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; display: block; transition: var(--trans); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══ MOBILE MENU ═══════════════════════════════════════════════ */
.mobile-menu {
  display: none; position: fixed;
  top: 70px; left: 0; right: 0; z-index: 99;
  background: rgba(248,245,240,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 12px 20px 24px;
  flex-direction: column; gap: 2px;
  animation: fadeDown .2s ease both;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: .95rem; font-weight: 500; padding: 12px 16px; border-radius: 10px;
  color: var(--text-muted); transition: color var(--trans), background var(--trans);
}
.mobile-menu a:hover { color: var(--text); background: var(--bg3); }
.mobile-menu-book {
  background: var(--teal) !important; color: #fff !important;
  font-weight: 700 !important; text-align: center; margin-top: 6px;
}
.mobile-lang-section {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px 4px;
  border-top: 1px solid var(--border); margin-top: 8px;
}
.mobile-lang-label {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted);
}
.mobile-lang-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.mobile-lang-btns .lang-btn { font-size: .8rem; padding: 6px 12px; }

/* ═══ HERO ══════════════════════════════════════════════════════ */
#hero {
  min-height: 100svh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 120px 0 80px;
  background: linear-gradient(135deg, #e4f5ef 0%, #fdf9f3 55%, #fff3e0 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 65% 35%, rgba(0,168,135,.14) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(212,133,10,.10) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-block; font-size: .8rem; font-weight: 500; letter-spacing: .05em;
  color: var(--gold); background: var(--gold-lt);
  border: 1px solid rgba(212,133,10,.25); border-radius: 99px;
  padding: 6px 18px; margin-bottom: 24px;
  animation: fadeUp .8s ease both;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700; line-height: 1.1; color: var(--text);
  margin-bottom: 22px;
  animation: fadeUp .8s .1s ease both;
}
.hero-title em { font-style: italic; color: var(--teal); }
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 540px; margin-bottom: 36px;
  animation: fadeUp .8s .2s ease both;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px;
  animation: fadeUp .8s .3s ease both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff; font-weight: 700;
  padding: 14px 28px; border-radius: 10px; border: none; cursor: pointer;
  font-size: 1rem; transition: all var(--trans); letter-spacing: .02em;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,168,135,.3); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--text); font-weight: 600;
  padding: 14px 28px; border-radius: 10px;
  border: 1px solid var(--border); font-size: 1rem;
  box-shadow: var(--shadow); transition: all var(--trans);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--teal); font-weight: 600;
  padding: 11px 24px; border-radius: 10px;
  border: 1.5px solid var(--teal); font-size: .9rem;
  cursor: pointer; transition: all var(--trans);
}
.btn-outline:hover { background: var(--teal-lt); }

.hero-stats { display: flex; align-items: center; gap: 24px; animation: fadeUp .8s .4s ease both; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.5rem; font-weight: 700; color: var(--teal); line-height: 1; }
.stat span { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 1; }
.scroll-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); opacity: .6;
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ═══ SERVICES ══════════════════════════════════════════════════ */
#services { padding: 100px 0; background: var(--bg2); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px; position: relative;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0,168,135,.25); }
.service-card.featured { border-color: rgba(0,168,135,.35); background: linear-gradient(135deg, #e6f7f3, #f0faf7); }
.service-icon { font-size: 2.4rem; margin-bottom: 18px; }
.service-card h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; margin-bottom: 10px; color: var(--text); }
.service-card p { color: var(--text-muted); font-size: .9rem; }
.badge {
  position: absolute; top: 18px; right: 18px;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #fff;
  background: var(--teal); padding: 4px 10px; border-radius: 99px;
}

/* ═══ TOURS ═════════════════════════════════════════════════════ */
#tours { padding: 100px 0; background: linear-gradient(180deg, #e8f4f0 0%, #f0ece6 100%); }
.trip-toggle { display: flex; justify-content: center; margin-bottom: 48px; }
.toggle-btn {
  background: #fff; color: var(--text-muted);
  border: 1.5px solid var(--border); cursor: pointer;
  padding: 11px 28px; font-size: .9rem; font-weight: 600; transition: all var(--trans);
}
.toggle-btn:first-child { border-radius: 10px 0 0 10px; border-right: none; }
.toggle-btn:last-child  { border-radius: 0 10px 10px 0; }
.toggle-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }

.tours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tour-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform var(--trans), box-shadow var(--trans);
}
.tour-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tour-card-img { height: 160px; background-size: cover; background-position: center; position: relative; }
.tour-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.5));
}
.tour-dist { position: absolute; bottom: 12px; left: 16px; font-size: .75rem; color: rgba(255,255,255,.95); font-weight: 500; z-index: 1; }
.tour-card-body { padding: 20px; }
.tour-route { font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; color: var(--text); }
.tour-prices { display: flex; flex-direction: column; gap: 8px; }
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); border-radius: 8px; padding: 9px 14px;
  border: 1px solid var(--border);
}
.price-row .vehicle { font-size: .85rem; color: var(--text-muted); }
.price-row .amount { font-weight: 700; color: var(--gold); font-size: .95rem; }

.tours-note { margin-top: 48px; display: flex; justify-content: center; }
.note-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--gold-lt); border: 1px solid rgba(212,133,10,.25);
  border-radius: var(--radius-lg); padding: 24px 32px;
  max-width: 680px; flex-wrap: wrap;
}
.note-icon { font-size: 1.8rem; }
.note-card p { flex: 1; color: var(--text-muted); min-width: 200px; }

/* ═══ GALLERY ═══════════════════════════════════════════════════ */
#gallery { padding: 100px 0 60px; overflow: hidden; background: var(--bg2); }
.gallery-track {
  display: flex; gap: 16px; margin-top: 24px;
  animation: galleryScroll 30s linear infinite; width: max-content;
}
.gallery-track:hover { animation-play-state: paused; }
.gallery-item {
  width: 300px; height: 220px; border-radius: var(--radius);
  background-image: var(--bg); background-size: cover; background-position: center;
  position: relative; overflow: hidden; flex-shrink: 0; cursor: pointer; box-shadow: var(--shadow);
}
.gallery-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--trans);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-size: .85rem; font-weight: 600; color: #fff; }

/* ═══ BOOKING ═══════════════════════════════════════════════════ */
#booking { padding: 100px 0; background: var(--bg); }
.booking-wrapper { max-width: 820px; margin: 0 auto; }
.booking-form {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .83rem; font-weight: 600; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; color: var(--text); padding: 12px 16px; font-size: .95rem;
  transition: border-color var(--trans), box-shadow var(--trans); outline: none; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,168,135,.12); }
.form-group textarea { resize: vertical; }
.radio-group { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 4px; }
.radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; color: var(--text); }
.radio-label input { width: auto; accent-color: var(--teal); }

.btn-submit { width: 100%; justify-content: center; padding: 15px; font-size: 1rem; position: relative; }
.btn-spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}

.success-message {
  text-align: center; padding: 60px 40px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); animation: fadeUp .5s ease both; box-shadow: var(--shadow);
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.success-message h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 12px; color: var(--teal); }
.success-message p { color: var(--text-muted); margin-bottom: 24px; }

/* ═══ CONTACT ═══════════════════════════════════════════════════ */
#contact { padding: 100px 0; background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,3vw,2.5rem); margin-bottom: 14px; color: var(--text); }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; }
.contact-channels { display: flex; flex-wrap: wrap; gap: 10px; }
.channel {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 16px; font-size: .88rem; font-weight: 500; color: var(--text);
  transition: all var(--trans);
}
.channel:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-lt); transform: translateY(-1px); }
.contact-form-wrap {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow);
}
.contact-form-wrap form { display: flex; flex-direction: column; gap: 18px; }

/* ═══ FOOTER ════════════════════════════════════════════════════ */
footer { padding: 48px 0; background: var(--text); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand .logo { margin-bottom: 8px; }
.footer-brand .logo-text { color: rgba(255,255,255,.9); }
.footer-brand .logo-text strong { color: var(--teal); }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.45); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.45); transition: color var(--trans); }
.footer-links a:hover { color: var(--teal); }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.3); width: 100%; text-align: center; }

/* ═══ ANIMATIONS ════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50%       { transform: translateY(10px); opacity: .15; }
}
@keyframes galleryScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ═══ RESPONSIVE ════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .lang-switcher { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .booking-form { padding: 24px 20px; }
  .hero-stats { gap: 14px; }
  .stat strong { font-size: 1.2rem; }
  .note-card { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ═══ TOUR GALLERY DIALOG ═══════════════════════════════════════ */
.tour-gallery-hint {
  position: absolute; top: 12px; right: 12px;
  font-size: .72rem; font-weight: 600;
  background: rgba(0,0,0,.45); color: #fff;
  padding: 4px 10px; border-radius: 99px; z-index: 2;
  backdrop-filter: blur(4px);
}
.tour-dialog-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.65); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.tour-dialog-overlay.open { display: flex; }
.tour-dialog {
  background: #fff; border-radius: 24px;
  width: 100%; max-width: 760px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.25);
  position: relative;
  animation: scaleIn .25s ease both;
}
.dialog-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  background: rgba(0,0,0,.12); border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1rem; color: #333; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.dialog-close:hover { background: rgba(0,0,0,.22); }
.dialog-header {
  padding: 28px 28px 0;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.dialog-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--text); margin: 0;
}
.dialog-header span {
  font-size: .82rem; color: var(--text-muted); background: var(--bg);
  padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border);
}
.dialog-slideshow {
  position: relative; margin: 20px 0 0;
  height: 380px; overflow: hidden;
}
.slide-track { width: 100%; height: 100%; }
.slide {
  display: none; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  position: relative;
}
.slide.active { display: block; animation: slideFadeIn .35s ease both; }
.slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  color: #fff; padding: 24px 20px 16px;
  font-size: .9rem; font-weight: 500;
}
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: rgba(255,255,255,.85); border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 50%;
  font-size: 1.1rem; color: var(--text);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  transition: background .2s, transform .2s;
  display: flex; align-items: center; justify-content: center;
}
.slide-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.slide-prev { left: 14px; }
.slide-next { right: 14px; }
.slide-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 14px 0 4px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.dot.active { background: var(--teal); transform: scale(1.35); }
.dialog-footer {
  padding: 16px 28px 28px; display: flex; justify-content: center;
}
.dialog-footer .btn-primary { min-width: 200px; justify-content: center; }

/* ═══ CHAT BUBBLE ════════════════════════════════════════════════ */
.chat-bubble {
  position: fixed; bottom: 28px; right: 28px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 6px 24px rgba(0,168,135,.45);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.chat-bubble:hover { transform: scale(1.1); box-shadow: 0 10px 36px rgba(0,168,135,.55); }
.chat-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--teal); opacity: .5;
  animation: pulsRing 2.5s ease-out infinite;
}
.chat-dialog {
  display: none; position: fixed;
  bottom: 96px; right: 24px; z-index: 149;
  width: 340px; background: #fff;
  border-radius: 22px; box-shadow: 0 20px 70px rgba(0,0,0,.18);
  overflow: hidden;
  animation: scaleInBR .22s ease both;
  transform-origin: bottom right;
}
.chat-dialog.open { display: block; }

/* Header */
.chat-dialog-header {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 38px; height: 38px; background: rgba(255,255,255,.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.chat-header-name { font-weight: 700; color: #fff; font-size: .95rem; }
.chat-header-status { font-size: .72rem; color: rgba(255,255,255,.8); margin-top: 1px; }
.chat-close-btn {
  background: rgba(255,255,255,.2); border: none; color: #fff;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  font-size: .85rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s; flex-shrink: 0;
}
.chat-close-btn:hover { background: rgba(255,255,255,.35); }

/* Body */
.chat-dialog-body { padding: 16px; }
.chat-dialog-sub { font-size: .78rem; color: var(--text-muted); margin-bottom: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

/* Channel icon grid */
.chat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 14px;
}
.chat-ch-card {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 6px; border-radius: 12px;
  border: 1.5px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  cursor: pointer;
}
.chat-ch-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.chat-ch-card-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: transform .18s;
}
.chat-ch-card:hover .chat-ch-card-icon { transform: scale(1.08); }
.chat-ch-card-name { font-size: .65rem; font-weight: 600; color: var(--text-muted); text-align: center; }

/* Per-channel colors */
.chat-ch-card--wa   .chat-ch-card-icon { background: #25D366; }
.chat-ch-card--kakao .chat-ch-card-icon { background: #FAE100; color: #3A1D1D; }
.chat-ch-card--line  .chat-ch-card-icon { background: #00B900; }
.chat-ch-card--wechat .chat-ch-card-icon { background: #07C160; }
.chat-ch-card--zalo  .chat-ch-card-icon { background: #0068FF; }
.chat-ch-card--fb    .chat-ch-card-icon { background: #1877F2; }
.chat-ch-card--ig    .chat-ch-card-icon { background: linear-gradient(45deg,#F58529,#DD2A7B,#8134AF,#515BD4); }

.chat-ch-card--wa:hover   { border-color: #25D366; }
.chat-ch-card--kakao:hover { border-color: #FAE100; }
.chat-ch-card--line:hover  { border-color: #00B900; }
.chat-ch-card--wechat:hover { border-color: #07C160; }
.chat-ch-card--zalo:hover  { border-color: #0068FF; }
.chat-ch-card--fb:hover    { border-color: #1877F2; }
.chat-ch-card--ig:hover    { border-color: #DD2A7B; }

/* QR preview */
.chat-qr-preview {
  text-align: center;
  border-top: 1px solid var(--border); padding-top: 14px;
  animation: fadeUp .2s ease both;
}
.chat-qr-preview.visible { display: block; }
.chat-qr-preview-label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted); margin-bottom: 10px;
}
.chat-qr-preview-img {
  display: inline-block; padding: 8px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.chat-qr-preview-img img { width: 150px; height: 150px; display: block; border-radius: 4px; }
.chat-qr-hint { font-size: .7rem; color: var(--text-muted); margin-top: 8px; }

/* ─── Contact section channel cards ─── */
.channel {
  position: relative; overflow: hidden;
}
.channel--wa   { border-left: 3px solid #25D366; }
.channel--kakao { border-left: 3px solid #FAE100; }
.channel--line  { border-left: 3px solid #00B900; }
.channel--wechat { border-left: 3px solid #07C160; }
.channel--zalo  { border-left: 3px solid #0068FF; }
.channel--fb    { border-left: 3px solid #1877F2; }
.channel--ig    { border-left: 3px solid #DD2A7B; }
.channel svg { flex-shrink: 0; }

/* ═══ EXTRA ANIMATIONS ══════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.93); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes scaleInBR {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideFadeIn {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulsRing {
  0%   { transform: scale(1);   opacity: .5; }
  80%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (max-width: 600px) {
  .chat-dialog { width: calc(100vw - 32px); right: 16px; bottom: 88px; }
  .dialog-slideshow { height: 240px; }
  .dialog-header { padding: 20px 20px 0; }
  .dialog-footer { padding: 12px 20px 20px; }
}
