/* ===== PHUONGIOS - SHARED STYLES (Rewrite 2026) ===== */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  --bg: #f4f6f9;
  --card: #fff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(37,99,235,0.15);
  --green: #16a34a; --green-bg: #f0fdf4;
  --orange: #d97706; --orange-bg: #fffbeb;
  --purple: #7c3aed; --purple-bg: #f5f3ff;
  --red: #e11d48; --red-bg: #fff1f2;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Be Vietnam Pro',sans-serif; background:var(--bg); color:var(--text); }
a { text-decoration:none; color:inherit; transition:all .2s; }
ul { list-style:none; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* ===== HEADER ===== */
.header {
  background:var(--card); padding:10px 0;
  box-shadow:var(--shadow-sm);
  position:sticky; top:0; z-index:1000;
}
.header .container { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.logo { display:flex; align-items:center; gap:8px; font-family:'Be Vietnam Pro',sans-serif; font-size:22px; font-weight:800; color:var(--primary-dark); letter-spacing:-0.5px; }
.logo img { height:38px; width:auto; object-fit:contain; }
.logo span { color:var(--primary); }
.nav-links { display:flex; gap:4px; }
.nav-links a {
  font-size:14px; font-weight:500; color:var(--muted);
  padding:8px 14px; border-radius:8px;
}
.nav-links a:hover, .nav-links a.active { color:var(--primary); background:#eff6ff; }
.header-right { display:flex; align-items:center; gap:12px; }
.lang-switch {
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.lang-btn {
  min-width:44px;
  height:34px;
  padding:0 14px;
  border-radius:10px;
  border:1.5px solid var(--border);
  background:#fff;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  font-family:'Be Vietnam Pro',sans-serif;
  transition:all .2s ease;
}
.lang-btn:hover {
  border-color:var(--primary);
  color:var(--primary);
  transform:translateY(-1px);
}
.lang-btn.active {
  background:linear-gradient(135deg,var(--primary),#1d4ed8);
  color:#fff;
  border-color:transparent;
  box-shadow:0 8px 20px rgba(37,99,235,0.22);
}
.balance-badge {
  background:var(--green-bg); color:var(--green);
  padding:7px 14px; border-radius:20px;
  font-weight:600; font-size:13px;
  display:flex; align-items:center; gap:6px;
}
.user-badge {
  display:flex; align-items:center; gap:8px;
  padding:6px 14px 6px 8px; border-radius:20px;
  background:#f1f5f9; cursor:pointer; position:relative;
}
.user-avatar-sm {
  width:28px; height:28px; border-radius:50%;
  background:var(--primary-gradient); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:12px;
}
.user-badge span { font-size:13px; font-weight:600; }
.user-dropdown {
  position:absolute; top:44px; right:0;
  background:var(--card); border-radius:12px;
  box-shadow:0 8px 30px rgba(0,0,0,0.12);
  border:1px solid var(--border);
  min-width:180px; overflow:hidden;
  display:none; z-index:200;
}
.user-dropdown.show { display:block; }
.user-dropdown a {
  display:flex; align-items:center; gap:10px;
  padding:11px 16px; font-size:13.5px; font-weight:500;
}
.user-dropdown a:hover { background:#f8fafc; }
.user-dropdown a.danger { color:var(--red); }

/* ===== BUTTONS ===== */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 22px; border-radius:10px;
  font-weight:600; font-size:14px; cursor:pointer; border:none;
  transition:all .2s; font-family:'Be Vietnam Pro',sans-serif;
}
.btn-primary { background:var(--primary); color:#fff; }
.btn-primary:hover { background:#1d4ed8; transform:translateY(-2px); box-shadow:0 4px 12px rgba(37,99,235,0.3); }
.btn-success { background:var(--green); color:#fff; }
.btn-success:hover { background:#15803d; }
.btn-outline { background:#fff; color:var(--primary); border:1.5px solid var(--primary); }
.btn-outline:hover { background:#eff6ff; }
.btn-danger { background:var(--red); color:#fff; }
.btn-white { background:#fff; color:var(--primary); }
.btn-white:hover { background:#eff6ff; transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.1); }
.btn-outline-white { background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.25); backdrop-filter:blur(4px); }
.btn-outline-white:hover { background:rgba(255,255,255,.22); transform:translateY(-2px); }
.btn-sm { padding:7px 14px; font-size:13px; }
.btn-block { width:100%; justify-content:center; }
.btn:disabled { opacity:.5; cursor:not-allowed; transform:none; }

/* ===== CARDS ===== */
.card {
  background:var(--card); border-radius:var(--radius);
  box-shadow:var(--shadow-md); padding:24px;
}

/* ===== BADGES ===== */
.badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 10px; border-radius:20px;
  font-size:11.5px; font-weight:600;
}
.badge-success { background:var(--green-bg); color:var(--green); }
.badge-warning { background:var(--orange-bg); color:var(--orange); }
.badge-danger { background:var(--red-bg); color:var(--red); }
.badge-info { background:#eff6ff; color:var(--primary); }
.badge-danger { background:var(--red-bg); color:var(--red); }
.badge-purple { background:var(--purple-bg); color:var(--purple); }

/* ===== FORM ===== */
.form-group { margin-bottom:18px; }
.form-group label { display:block; font-size:13px; font-weight:600; color:var(--muted); margin-bottom:7px; }
.form-control {
  width:100%; padding:11px 14px; border-radius:10px;
  border:1.5px solid var(--border); font-size:14px;
  font-family:'Be Vietnam Pro',sans-serif; background:#fafafa; transition:border .2s;
}
.form-control:focus { outline:none; border-color:var(--primary); background:#fff; }
.form-error { font-size:12px; color:var(--red); margin-top:5px; display:none; }
.form-error.show { display:block; }

/* ===== SECTION ===== */
.section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.section-title { font-size:20px; font-weight:700; display:flex; align-items:center; gap:10px; }

/* ===== PRODUCT GRID ===== */
.product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }
.product-card {
  background:var(--card); border-radius:var(--radius);
  box-shadow:var(--shadow-md); padding:22px;
  display:flex; flex-direction:column; gap:12px;
  transition:transform .25s, box-shadow .25s;
  border:1px solid transparent;
}
.product-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-lg); border-color:#dbeafe; }
.product-header { display:flex; align-items:center; gap:14px; }
.product-icon {
  width:52px; height:52px; min-width:52px; min-height:52px;
  max-width:52px; max-height:52px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; flex-shrink:0; overflow:hidden;
}
.product-icon img {
  width:52px; height:52px; max-width:52px; max-height:52px;
  object-fit:cover; border-radius:12px; display:block;
}
.product-icon.game { background:linear-gradient(135deg,#1a1a2e,#16213e); color:#f59e0b; }
.product-icon.cert { background:linear-gradient(135deg,#f5f3ff,#ede9fe); color:var(--purple); }
.product-icon.ff { background:linear-gradient(135deg,#ff6b35,#f7931e); }
.product-icon.lq { background:linear-gradient(135deg,#1a3a5c,#2980b9); }
.product-icon.bbp { background:linear-gradient(135deg,#1b5e20,#43a047); }
.product-icon.cf { background:linear-gradient(135deg,#b71c1c,#e53935); }
.product-icon.apple { background:linear-gradient(135deg,#f5f5f5,#e0e0e0); }
.product-name { font-size:16px; font-weight:700; color:var(--text); }
.product-cat { font-size:12px; color:var(--muted); margin-top:2px; }
.product-desc { font-size:13.5px; color:#555; line-height:1.65; flex:1; }
.product-tags { display:flex; gap:6px; flex-wrap:wrap; }
.tag { font-size:11px; font-weight:600; padding:3px 10px; border-radius:20px; background:#eff6ff; color:var(--primary); }
.tag.hot { background:var(--red-bg); color:var(--red); }
.tag.cert { background:var(--purple-bg); color:var(--purple); }
.tag.new { background:var(--green-bg); color:var(--green); }
.product-footer {
  display:flex; justify-content:space-between; align-items:center;
  padding-top:14px; border-top:1px solid var(--border); margin-top:auto;
}
.product-price { font-size:17px; font-weight:700; color:var(--primary); }
.product-stock { font-size:12px; color:var(--muted); }
.product-stock.in-stock { color:var(--green); }
.product-stock.out { color:var(--red); }

/* ===== TABLE ===== */
.table-wrap { background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow-md); overflow-x:auto; }
table { width:100%; border-collapse:collapse; }
thead tr { background:#f8fafc; }
th { padding:13px 16px; font-size:12px; font-weight:700; color:var(--muted); text-align:left; letter-spacing:.5px; text-transform:uppercase; border-bottom:1px solid var(--border); }
td { padding:14px 16px; font-size:13.5px; border-bottom:1px solid #f3f4f6; vertical-align:middle; }
tr:last-child td { border:none; }
tr:hover td { background:#f8fafc; }

/* ===== STATS ===== */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; margin-bottom:28px; }
.stat-card {
  background:var(--card); padding:20px; border-radius:var(--radius);
  box-shadow:var(--shadow-md); display:flex; align-items:center; gap:16px;
}
.stat-icon {
  width:50px; height:50px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; font-size:20px;
}
.stat-label { font-size:12px; color:var(--muted); font-weight:500; margin-bottom:4px; }
.stat-value { font-size:20px; font-weight:700; }

/* ===== HERO ===== */
.hero {
  background:var(--primary-gradient); color:#fff;
  padding:70px 0; position:relative; overflow:hidden;
}
.hero::before {
  content:''; position:absolute; top:-80px; right:-80px;
  width:300px; height:300px;
  background:rgba(255,255,255,.06); border-radius:50%;
}
.hero::after {
  content:''; position:absolute; bottom:-60px; left:30%;
  width:200px; height:200px;
  background:rgba(255,255,255,.04); border-radius:50%;
}
.hero-content { position:relative; z-index:1; max-width:620px; }
.hero h1 { font-size:36px; font-weight:800; margin-bottom:16px; line-height:1.3; letter-spacing:-0.5px; }
.hero p { font-size:16px; opacity:.9; line-height:1.7; margin-bottom:28px; }
.hero-btns { display:flex; gap:12px; flex-wrap:wrap; }

/* ===== PAGE HERO ===== */
.page-hero { background:var(--primary-gradient); color:#fff; padding:36px 0; margin-bottom:32px; }
.page-hero h1 { font-size:24px; font-weight:800; margin-bottom:4px; }
.page-hero p { opacity:.85; font-size:14px; }

/* ===== AUTH ===== */
.auth-wrap { width:100%; max-width:440px; padding:20px; margin:0 auto; }
.auth-logo { text-align:center; margin-bottom:28px; }
.auth-logo p { font-size:14px; color:rgba(255,255,255,0.6); margin-top:6px; }
.auth-logo img { filter:brightness(0) invert(1); }
.auth-card {
  background:rgba(255,255,255,0.05); border-radius:20px; padding:36px;
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  box-shadow:0 8px 32px rgba(0,0,0,0.5), 0 0 15px rgba(99,102,241,0.08);
  border:1px solid rgba(99,102,241,0.25);
}
.auth-tabs {
  display:flex; border-radius:10px; padding:4px; margin-bottom:28px; gap:4px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(99,102,241,0.15);
}
.auth-tab {
  flex:1; padding:9px; text-align:center; border-radius:8px;
  font-size:14px; font-weight:600; cursor:pointer; border:none;
  background:transparent; color:rgba(255,255,255,0.5); transition:all .2s;
  font-family:'Be Vietnam Pro',sans-serif;
}
.auth-tab.active { background:rgba(99,102,241,0.25); color:#fff; box-shadow:0 0 12px rgba(99,102,241,0.2); }
.auth-card label { color:rgba(255,255,255,0.85); }
.auth-card .form-control {
  background:rgba(255,255,255,0.06); color:#fff;
  border:1px solid rgba(99,102,241,0.3);
}
.auth-card .form-control:focus {
  border-color:rgba(99,102,241,0.7);
  box-shadow:0 0 12px rgba(99,102,241,0.3), 0 0 4px rgba(99,102,241,0.2);
}
.auth-card .form-control::placeholder { color:rgba(255,255,255,0.3); }
.auth-card .input-icon > i { color:rgba(99,102,241,0.5); }
.auth-card .toggle-pw { color:rgba(255,255,255,0.4) !important; }
.auth-card .btn-primary { box-shadow:0 0 20px rgba(99,102,241,0.3), 0 4px 15px rgba(37,99,235,0.3); }
.auth-form { display:none; }
.auth-form.active { display:block; }
.input-icon { position:relative; }
.input-icon i { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:14px; pointer-events:none; }
.input-icon .form-control { padding-left:40px; }
.input-icon .toggle-pw { position:absolute; right:14px; top:50%; transform:translateY(-50%); cursor:pointer; color:var(--muted); font-size:14px; pointer-events:auto; }

/* ===== DASHBOARD LAYOUT ===== */
.dash-tabs { display:flex; background:var(--card); border-bottom:1px solid var(--border); position:sticky; top:54px; z-index:999; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.dash-tabs::-webkit-scrollbar { display:none; }
.dash-tabs .container { display:flex; gap:0; flex-shrink:0; }
.dash-tab {
  padding:14px 22px; font-size:14px; font-weight:600;
  color:var(--muted); border:none; background:none;
  cursor:pointer; border-bottom:3px solid transparent;
  transition:all .2s; display:flex; align-items:center; gap:7px;
  font-family:'Be Vietnam Pro',sans-serif;
}
.dash-tab:hover { color:var(--primary); }
.dash-tab.active { color:var(--primary); border-bottom-color:var(--primary); }
.dash-page { display:none; padding:30px 0 60px; }
.dash-page.active { display:block; }

/* ===== DEPOSIT ===== */
.deposit-layout { display:grid; grid-template-columns:1fr 400px; gap:24px; }
.amount-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:18px; }
.amount-btn {
  padding:14px 8px; border-radius:10px; border:2px solid var(--border);
  background:var(--card); font-weight:700; font-size:15px; cursor:pointer;
  text-align:center; transition:all .2s; font-family:'Be Vietnam Pro',sans-serif;
}
.amount-btn:hover, .amount-btn.selected { border-color:var(--primary); background:#eff6ff; color:var(--primary); }
.qr-box { text-align:center; padding:20px; background:#f8fafc; border-radius:12px; margin-bottom:16px; }
.qr-box img { max-width:200px; border-radius:8px; }
.summary-box { background:#f8fafc; border-radius:10px; padding:16px; margin-bottom:16px; }
.sum-row { display:flex; justify-content:space-between; font-size:13.5px; margin-bottom:8px; }
.sum-row:last-child { margin:0; font-weight:700; font-size:15px; border-top:1px dashed var(--border); padding-top:10px; }
.info-box { background:var(--orange-bg); border:1px solid #fde68a; border-radius:10px; padding:12px 14px; font-size:13px; color:#92400e; display:flex; gap:10px; margin-bottom:16px; }

/* ===== UDID SECTION ===== */
.udid-section {
  background:linear-gradient(135deg,#f8fafc,#f1f5f9);
  border:1px solid var(--border);
  border-radius:var(--radius); padding:28px;
  margin-top:20px;
}
.udid-section h3 { font-size:18px; font-weight:700; margin-bottom:12px; display:flex; align-items:center; gap:10px; }
.udid-steps { display:grid; gap:14px; margin-top:16px; }
.udid-step {
  display:flex; gap:14px; align-items:flex-start;
  background:#fff; padding:16px; border-radius:10px;
  box-shadow:var(--shadow-sm);
}
.udid-step-num {
  width:32px; height:32px; border-radius:50%;
  background:var(--primary); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:14px; flex-shrink:0;
}
.udid-step-text { font-size:13.5px; line-height:1.6; }
.udid-step-text strong { color:var(--primary); }

/* ===== KEY REVEAL ===== */
.key-box {
  background:#1a1a2e; color:#22c55e; padding:14px 18px;
  border-radius:10px; font-family:monospace; font-size:14px;
  word-break:break-all; margin:12px 0; cursor:pointer;
  position:relative;
}
.key-box:hover::after { content:'Click để copy'; position:absolute; top:-24px; right:0; font-size:11px; color:var(--muted); font-family:'Be Vietnam Pro',sans-serif; }

/* ===== MODAL ===== */
.modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  z-index:2000; display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .25s;
}
.modal-overlay.show { opacity:1; pointer-events:all; }
.modal {
  background:#fff; border-radius:20px; padding:32px;
  width:90%; max-width:480px; box-shadow:0 20px 60px rgba(0,0,0,.2);
  transform:translateY(20px); transition:transform .25s;
  max-height:90vh; overflow-y:auto;
}
.modal-overlay.show .modal { transform:translateY(0); }
.modal-close { position:absolute; top:16px; right:16px; width:34px; height:34px; border-radius:8px; border:1px solid var(--border); background:#fff; cursor:pointer; font-size:16px; }

/* ===== TOAST ===== */
.toast {
  position:fixed; bottom:24px; right:24px;
  background:#1e293b; color:#fff; padding:13px 20px;
  border-radius:12px; font-size:13.5px; font-weight:500;
  box-shadow:0 8px 30px rgba(0,0,0,0.18);
  opacity:0; transform:translateY(10px); transition:all .3s;
  z-index:9999; pointer-events:none; max-width:360px;
}
.toast.show { opacity:1; transform:translateY(0); }
.toast.error { background:#dc2626; }
.toast.success { background:#16a34a; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align:center; padding:60px 20px; color:var(--muted); }
.empty-state i { font-size:48px; margin-bottom:16px; opacity:.3; }
.empty-state p { font-size:14px; margin-bottom:16px; }

/* ===== LOADING ===== */
.loading { text-align:center; padding:40px; color:var(--muted); }
.spinner { display:inline-block; width:24px; height:24px; border:3px solid var(--border); border-top-color:var(--primary); border-radius:50%; animation:spin .6s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ===== FOOTER ===== */
.footer {
  background:var(--card); padding:28px 0;
  border-top:1px solid var(--border);
  text-align:center; font-size:13px; color:var(--muted);
  margin-top:60px;
}
.mini-table { width:100%; border-collapse:collapse; }
.mini-table th, .mini-table td { padding:8px 10px; text-align:left; border-bottom:1px solid var(--border); }
.mini-table th { font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.5px; }
.mini-table tr:hover { background:rgba(0,0,0,.02); }
.footer-links {
  display:flex; justify-content:center; gap:18px; flex-wrap:wrap;
  margin-top:12px; padding-top:12px; border-top:1px solid var(--border);
}
.footer-links a {
  color:var(--muted); text-decoration:none; font-size:12px; transition:color .2s;
}
.footer-links a:hover { color:var(--primary); }

/* ===== RESPONSIVE ===== */
@media(max-width:900px) {
  .deposit-layout { grid-template-columns:1fr; }
}
@media(max-width:768px) {
  .nav-links { display:none; }
  .header .container { flex-wrap:wrap; }
  .header-right { width:100%; justify-content:flex-end; flex-wrap:wrap; }
  .hero h1 { font-size:26px; }
  .hero { padding:45px 0; }
  .product-grid { grid-template-columns:1fr; }
  .amount-grid { grid-template-columns:repeat(2,1fr); }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .dash-tab { padding:10px 12px; font-size:12px; white-space:nowrap; }
  .dash-page { padding:16px 0 60px; }
  .container { padding:0 10px; }
  table { font-size:11px; }
  th,td { padding:8px 6px; }
  .card { padding:12px; border-radius:10px; }
  .section-title { font-size:16px; }
  .stat-card { padding:10px 12px; }
  .stat-value { font-size:18px; }
  .stat-label { font-size:10px; }
  .stat-icon { width:36px; height:36px; font-size:14px; }
  .udid-section { padding:20px; }
  .mini-table { font-size:11px; }
  .mini-table th, .mini-table td { padding:7px 5px; }
}
@media(max-width:480px) {
  .stats-grid { grid-template-columns:1fr 1fr 1fr; gap:6px; }
  .stat-card { padding:8px; }
  .stat-value { font-size:16px; }
  .stat-icon { width:30px; height:30px; font-size:12px; }
  .dash-tab { padding:8px 10px; font-size:11px; gap:4px; }
  .dash-tab i { font-size:12px; }
}


/* MOBILE BOTTOM NAV */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #fff;
    display: none;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 768px) {
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 75px; }
}
.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 11px;
    gap: 4px;
    flex: 1;
}
.mobile-bottom-nav .nav-item.active { color: #6366f1; }
.mobile-bottom-nav .nav-item i { font-size: 20px; }
.mobile-bottom-nav .nav-item-center { position: relative; top: -15px; }
.mobile-bottom-nav .nav-icon-circle {
    width: 50px;
    height: 50px;
    background: #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(99,102,241,0.4);
}

/* BOTTOM MENU MODAL */
.bottom-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none !important;
    visibility: hidden;
    opacity: 0;
}
.bottom-menu-overlay.show { display: block !important; visibility: visible; opacity: 1; }
.bottom-menu-content {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-menu-overlay.show .bottom-menu-content { bottom: 0; }
.bottom-menu-handle {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 0 auto 20px;
}
.bottom-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.menu-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}
.menu-grid-icon {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 18px;
}
.menu-grid-text { font-size: 11px; color: #475569; text-align: center; }

/* FLOATING SUPPORT BUTTON */
.floating-support {
    position: fixed;
    right: 20px;
    bottom: 85px;
    z-index: 1001;
}
.support-btn {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99,102,241,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.support-btn:active { transform: scale(0.9); }
.support-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 250px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}
.support-menu.show { display: flex; animation: slideUp 0.3s ease; }
.support-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #334155;
    font-size: 14px;
    transition: background 0.2s;
}
.support-item:hover { background: #f8fafc; }
.support-item i { font-size: 18px; }

/* BEAUTIFUL WEB CHAT */
.chat-widget-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 3000;
}
.chat-widget-container.show { display: flex; animation: chatOpen 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28); }
.chat-widget-header {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-widget-header-left { display: flex; align-items: center; gap: 12px; }
.chat-widget-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.chat-widget-title-box h4 { margin: 0; font-size: 16px; font-weight: 600; }
.chat-widget-title-box p { margin: 0; font-size: 12px; opacity: 0.8; }
.chat-widget-header-right button { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; opacity: 0.8; }
.chat-widget-body { flex: 1; padding: 20px; overflow-y: auto; background: #f8fafc; display: flex; flex-direction: column; gap: 10px; }
.chat-widget-welcome { text-align: center; margin-top: 40px; color: #64748b; }
.chat-widget-welcome-icon { font-size: 40px; margin-bottom: 15px; color: #cbd5e1; }
.chat-msg-item {
    align-self: flex-end;
    background: #6366f1;
    color: #fff;
    padding: 10px 15px;
    border-radius: 18px 18px 0 18px;
    font-size: 14px;
    max-width: 80%;
    box-shadow: 0 2px 5px rgba(99,102,241,0.2);
}
.chat-widget-footer { padding: 15px; background: #fff; display: flex; gap: 10px; border-top: 1px solid #e2e8f0; }
.chat-widget-footer input { flex: 1; border: 1px solid #e2e8f0; border-radius: 20px; padding: 8px 16px; font-size: 14px; outline: none; }
.chat-widget-footer input:focus { border-color: #6366f1; }
.chat-send-btn { background: none; border: none; color: #6366f1; font-size: 20px; cursor: pointer; }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes chatOpen { from { opacity: 0; transform: scale(0.8) translateY(100px); } to { opacity: 1; transform: scale(1) translateY(0); } }

@media (max-width: 480px) {
    .chat-widget-container { width: 100%; height: 100%; right: 0; bottom: 0; border-radius: 0; }
}

/* ===== CHAT MESSAGES ===== */
.chat-msg-item { max-width:80%; padding:8px 12px; border-radius:12px; font-size:13px; line-height:1.4; margin-bottom:6px; word-break:break-word; }
.chat-msg-user { background:var(--primary); color:#fff; margin-left:auto; border-bottom-right-radius:4px; }
.chat-msg-admin { background:#f0f0f0; color:var(--text); margin-right:auto; border-bottom-left-radius:4px; }
