/* Font Inter tự host (variable 100-900) — thay cho Google Fonts: bỏ 2 kết nối tới máy chủ ngoài và
   CSS chặn hiển thị. Chỉ 3 bảng chữ web dùng; trình duyệt chỉ tải file có ký tự xuất hiện trên trang. */
/* Thứ tự quan trọng: trình duyệt thử NGƯỢC từ dưới lên -> chữ Việt dùng file vietnamese (10KB), không tải latin-ext (83KB). */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/inter-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/inter-vietnamese.woff2) format("woff2");unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/inter-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* Chạm nhanh trên điện thoại */
/* Bỏ độ trễ chờ "chạm đúp để phóng to" ở link/nút -> bấm là phản hồi ngay.
   Không đổi giao diện; vẫn phóng to bằng 2 ngón tay bình thường. */
a, button, input, select, textarea, label, summary, [onclick], [role="button"] { touch-action: manipulation; }

/* ==============================================================================
   GENZSALE WEB - GENZ SĂN SALE (600PX CONSTRAINED & HIGH AESTHETICS)
   Chuyên trang Săn Sale & Mua Sắm Hoàn Tiền Shopee cho Gen Z
   Màu sắc: Cam Shopee (#EE4D2D), Trắng Sữa (#FAF9F7), Đen Than (#0F172A)
   ============================================================================== */


:root {
  /* Core Brand Colors */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-active: #1E40AF;
  --primary-light: #EFF6FF;
  --primary-border: #DBEAFE;
  --primary-gradient: linear-gradient(135deg, #2563EB 0%, #34A0FA 100%);

  --orange: #EE4D2D;
  --orange-hover: #D73211;
  --orange-light: #FFF1F0;
  --orange-border: #FFD8D3;

  --blue-gradient: linear-gradient(90deg, #34A0FA, #5BBAFA);
  --blue-gradient-start: #34A0FA;
  --blue-gradient-end: #5BBAFA;

  /* Neutrals & Grays (Slate Palette) */
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* Typography Colors */
  --dark-title: #0F172A;
  --dark-label: #1E293B;
  --text-primary: #0F172A;
  --text-muted: #64748B;
  --text-placeholder: #94A3B8;

  /* Borders & Surfaces */
  --border-input: #E2E8F0;
  --border-color: #E2E8F0;
  --border-blue: #DBEAFE;
  --bg-page: #F8FAFC;
  --card-bg: #FFFFFF;
  --app-max-width: 600px;
  --page-content-width: 600px;

  /* Semantic Feedback Tokens */
  --success: #10B981;
  --success-hover: #059669;
  --success-light: #ECFDF5;
  --success-border: #A7F3D0;

  --warning: #F59E0B;
  --warning-hover: #D97706;
  --warning-light: #FFFBEB;
  --warning-border: #FDE68A;

  --error: #EF4444;
  --error-hover: #DC2626;
  --error-light: #FEF2F2;
  --error-border: #FECACA;

  --purple: #8B5CF6;
  --purple-light: #F5F3FF;
  --purple-border: #DDD6FE;

  /* Alpha Overlays & Shadows */
  --overlay-black-10: rgba(0, 0, 0, 0.1);
  --overlay-black-50: rgba(0, 0, 0, 0.5);
  --primary-alpha-10: rgba(37, 99, 235, 0.1);
  --primary-alpha-16: rgba(37, 99, 235, 0.16);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);

  /* Extended Palette — màu hay dùng trong component */
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-500: #6B7280;
  --gray-900: #111827;

  --amber-300: #FDE047;
  --amber-400: #FBBF24;
  --amber-500: #F59E0B;
  --amber-800: #78350F;
  --amber-700: #B45309;
  --amber-600: #D97706;

  --orange-400: #FB923C;
  --orange-500: #F97316;
  --orange-900-tag: #C2410C;

  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-700: #1565C0;
  --blue-900: #0284C7;
  --blue-light-2: #BFDBFE;
  --blue-indigo: #4F46E5;

  --green-100: #DCFCE7;
  --green-50-alt: #F0FDF4;
  --green-700: #15803D;
  --green-600: #16A34A;
  --green-800: #166534;

  --red-100: #FEE2E2;
  --red-700: #B91C1C;

  --yellow-100: #FEF3C7;
  --yellow-200: #FEF9C3;

  --pink-600: #DB2777;

  --indigo-900: #1E1B4B;
  --indigo-800: #312E81;
  --indigo-700: #4338CA;
  --indigo-100-t: #C7D2FE;

  --warm-white: #FFFDFD;
  --orange-light-tag: #FFE4DC;
  --orange-hover-bg: #FFF0EB;

  /* Aliases — tương thích với tên biến cũ */
  --white: #FFFFFF;
  --border-light: #E2E8F0;    /* alias của --border-color */
  --text-secondary: #64748B;  /* alias của --text-muted */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scrollbar-gutter: stable;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--white);
  color: var(--dark-label);
  min-height: 100vh;
  width: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

/* ==============================================================================
   QUY TẮC HIỂN THỊ TỨC THÌ (0MS ZERO-FLASH) CHO TRẠNG THÁI ĐĂNG NHẬP
   Ngăn chặn triệt để hiện tượng nháy (flash) form đăng nhập khi chuyển trang
   ============================================================================== */
html.user-logged-in #account-guest-view {
  display: none !important;
}
html.user-logged-in #account-logged-view {
  display: block !important;
}
html:not(.user-logged-in) #account-logged-view {
  display: none !important;
}

/* ==============================================================================
   TỐI ƯU TỐC ĐỘ PHẢN HỒI (0MS SNAPPY UI) - LOẠI BỎ HIỆU ỨNG LÀM CHẬM TRANG
   Loại bỏ độ trễ và các transition chuyển cảnh gây giật lag hoặc chậm giao diện
   ============================================================================== */
.app-main,
.tab-pane,
.app-wrapper,
.auth-card,
.card-box,
.stat-card,
.wallet-card,
.feature-item,
.setting-tile-item,
.orders-item,
.stat-box,
.quick-action-btn,
.nav-tab-item {
  transition: none !important;
  animation: none !important;
}

a, button, input, select, textarea, [onclick], .nav-tab-item, .setting-tile-item, .stat-subcard {
  touch-action: manipulation;
}

/* ==============================================================================
   APP SHELL WRAPPER (Full-width, nội dung căn giữa chuẩn 1200px)
   ============================================================================== */
.app-wrapper {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-page);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ==============================================================================
   TOP NAVIGATION HEADER (Desktop Nav & Mobile Bar)
   ============================================================================== */
.app-topbar {
  width: 100%;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.topbar-container {
  width: 100%;
  max-width: var(--app-max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-badge {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

/* Logo ảnh của app (thay biểu tượng tia sét) — ảnh đã có nền riêng nên bỏ nền xanh */
.brand-badge--img {
  background: transparent;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.brand-badge--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-badge svg {
  width: 20px;
  height: 20px;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark-title);
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.brand-name span {
  color: var(--primary);
}

/* Desktop Navigation Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}

.desktop-nav-item svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
  transition: transform 0.15s ease;
}

.desktop-nav-item:hover {
  color: var(--primary);
  background: var(--orange-hover-bg);
}

.desktop-nav-item.active {
  color: var(--primary);
  background: transparent;
  box-shadow: none;
}

.desktop-nav-item.active svg {
  stroke-width: 2.2;
}

/* Topbar Action Buttons */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.topbar-support-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.topbar-support-btn svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.topbar-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid var(--blue-light-2);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.topbar-account-btn:hover {
  background: var(--primary-border);
  border-color: var(--blue-300);
}

.topbar-account-btn svg {
  width: 16px;
  height: 16px;
}

/* Topbar Notification Button */
.topbar-notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--dark-title);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.topbar-notif-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

.topbar-notif-btn svg,
.topbar-notif-btn i {
  width: 18px;
  height: 18px;
  color: inherit;
}

.topbar-notif-btn .greeting-notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  line-height: 1;
}

/* ==============================================================================
   MAIN CONTENT CONTAINER (1200px Max-width trên máy tính)
   ============================================================================== */
.app-main {
  flex: 1;
  width: 100%;
  max-width: var(--page-content-width);
  margin: 0 auto;
  padding: 20px 16px 88px 16px;
  display: flex;
  flex-direction: column;
  contain: paint;
}

.tab-pane {
  display: none;
  width: 100%;
}

.tab-pane.active {
  display: block;
}

/* Chống giật layout khi Lucide icon khởi tạo */
[data-lucide] {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
}
svg.lucide {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* View Headings */
.view-header {
  margin-bottom: 16px;
}

.view-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--dark-title);
  letter-spacing: -0.4px;
}

.view-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==============================================================================
   ⭐ HỘP DÁN LINK TẠO LINK HOÀN TIỀN (CHUẨN GIAO DIỆN 100% THEO THIẾT KẾ)
   ============================================================================== */
.link-converter-card {
  background: var(--white);
  border: 1px solid var(--border-color, var(--border-color));
  border-radius: 24px;
  padding: 20px 22px 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
  position: relative;
}

.conv-main-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  flex-wrap: wrap;
}

.conv-title-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.conv-title-icon-box i,
.conv-title-icon-box svg,
.conv-main-title > i,
.conv-main-title > svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--primary);
  stroke-width: 2.3;
}

.conv-features-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.conv-feature-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.conv-feature-item i,
.conv-feature-item svg {
  width: 11.5px !important;
  height: 11.5px !important;
  color: var(--text-muted);
  stroke-width: 2;
  flex-shrink: 0;
}

.conv-platforms-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.conv-platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.conv-plat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.1px;
}

.conv-divider {
  border: none;
  border-top: 1px solid var(--slate-100);
  margin: 0 0 10px 0;
}

/* Subtabs row */
.conv-subtabs-row {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 16px;
}

.conv-subtab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 4px 12px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.conv-subtab-btn:hover {
  color: var(--primary);
}

.conv-subtab-btn.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom-color: var(--primary);
}

/* Input Row */
.conv-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 0;
}

.conv-pill-input-box {
  flex: 1;
  height: 48px;
  border: 2px solid var(--primary);
  border-radius: 12px;
  background: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.conv-pill-input-box:focus-within {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.conv-input-icon-block {
  width: 46px;
  height: 100%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.conv-text-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--slate-900);
  background: transparent;
  min-width: 0;
}

.conv-clear-btn {
  background: transparent;
  border: none;
  color: #EF4444;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-family: inherit;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.conv-clear-btn:hover {
  color: #DC2626;
}

.conv-submit-btn {
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 0 20px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background-color 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.conv-submit-btn:hover {
  background: var(--primary-hover);
}

.conv-submit-btn:active {
  transform: scale(0.98);
}

/* Chú thích điều hướng hướng dẫn hoàn tiền dưới ô dán link (chỉ hiển thị ở trang chủ) */
.conv-guide-hint {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 8px;
  padding: 0 2px;
  background: transparent;
  border: none;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-muted, #64748B);
  user-select: none;
  flex-wrap: wrap;
}

.conv-guide-hint-icon {
  width: 11px !important;
  height: 11px !important;
  color: var(--primary, #2563EB);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.conv-guide-hint-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11.5px;
  color: var(--primary, #2563EB);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.conv-guide-hint-btn:hover {
  color: var(--primary-hover, #1D4ED8);
  text-decoration: underline;
}

.conv-guide-hint-arrow {
  width: 11px !important;
  height: 11px !important;
  transition: transform 0.15s ease;
}

.conv-guide-hint-btn:hover .conv-guide-hint-arrow {
  transform: translateX(2px);
}

.conv-batch-textarea {
  width: 100%;
  border: 1.5px solid var(--border-input);
  border-radius: 12px;
  padding: 12px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  resize: vertical;
}

.conv-batch-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Result Card */
.conv-result-card {
  border: 1px solid #86EFAC;
  background: var(--white);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.05);
  margin-top: 16px;
}

.conv-success-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success-hover);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.conv-check-icon {
  width: 18px;
  height: 18px;
  color: var(--success-hover);
  stroke-width: 2.3;
}

.conv-prod-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.conv-prod-thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--slate-100);
  background: var(--yellow-100);
}

.conv-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.conv-prod-details {
  flex: 1;
  min-width: 0;
}

.conv-prod-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 6px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.conv-cashback-badge {
  background: var(--success-light);
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-block;
}

.conv-cashback-main {
  font-size: 13.5px;
  color: var(--success-hover);
}

.conv-cashback-main strong {
  font-weight: 800;
  color: #047857;
}

.conv-cashback-sub {
  font-size: 11.5px;
  color: var(--success-hover);
  margin-top: 2px;
  opacity: 0.95;
}

.conv-link-box {
  background: var(--slate-50);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.conv-link-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-placeholder);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.conv-link-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.conv-link-url {
  font-family: monospace;
  font-size: 13.5px;
  color: var(--orange-900-tag);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.conv-btn-copy {
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-family: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.conv-btn-copy:hover {
  background: var(--slate-100);
  border-color: var(--text-placeholder);
}

.conv-btn-buy-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.conv-btn-buy-now:hover {
  background: var(--primary-hover);
}

.conv-btn-buy-now:active {
  transform: scale(0.99);
}

.timeline-slot-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* Deals Grid */
.deals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.deal-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.deal-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.deal-thumb-box {
  width: 100%;
  height: 125px;
  position: relative;
  background: var(--slate-50);
}

.deal-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-mall-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #D0011B;
  color: var(--white);
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.deal-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.deal-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dark-title);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.deal-sale-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.deal-old-price {
  font-size: 11.5px;
  color: var(--text-placeholder);
  text-decoration: line-through;
}

.deal-cashback-badge {
  background: var(--success-light);
  color: var(--success-hover);
  border: 1px solid var(--success-border);
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: auto;
}

.btn-deal-hunt {
  width: 100%;
  height: 32px;
  background: var(--orange-hover-bg);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  font-family: inherit;
}

.btn-deal-hunt:hover {
  background: var(--primary);
  color: var(--white);
}

/* Real-time Ticker (Social Proof) */
.live-cashback-ticker {
  background: var(--warning-light);
  border: 1px solid var(--warning-border);
  border-radius: 12px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--amber-800);
}

.ticker-icon {
  font-size: 14px;
}

.ticker-text {
  flex: 1;
}

/* ==============================================================================
   2. TAB ĐƠN HÀNG (ORDERS)
   ============================================================================== */
.order-status-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 18px;
  scrollbar-width: none;
}

.order-status-tabs::-webkit-scrollbar {
  display: none;
}

.status-tab {
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  font-family: inherit;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.status-tab:hover {
  border-color: var(--slate-300);
  color: var(--dark-title);
}

.status-tab.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--white) !important;
  font-weight: 600;
}

.empty-state-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 50px 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--slate-50);
  color: var(--text-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.empty-state-icon svg {
  width: 30px;
  height: 30px;
}

.empty-state-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark-title);
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto;
}

/* Order Cards */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Orders Summary Grid (2 stats cards on top) */
.orders-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.os-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.os-card-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.os-card-icon,
svg.os-card-icon {
  width: 11.5px !important;
  height: 11.5px !important;
  flex-shrink: 0;
  stroke-width: 2.2;
}

.os-card-icon.pending-icon {
  color: var(--warning);
}

.os-card-icon.confirmed-icon {
  color: #22C55E;
}

.os-card-amount {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 2px;
}

.pending-amount { color: var(--warning); }
.confirmed-amount { color: var(--green-600); }

.os-card-count {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.os-card-hint {
  font-size: 11.5px;
  color: var(--text-placeholder);
  line-height: 1.4;
}

/* Order Card V2 */
.order-card-v2 {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  transition: box-shadow 0.15s ease;
}

.order-card-v2:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.ocv2-main-row {
  display: flex;
  gap: 13px;
  padding: 16px 16px 14px;
}

.ocv2-thumb {
  width: 74px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--slate-50);
}

.ocv2-info { flex: 1; min-width: 0; }

.ocv2-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  width: 100%;
  min-width: 0;
}

.ocv2-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark-title);
  line-height: 1.4;
  max-height: calc(1.4em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
  flex: 1;
  min-width: 0;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 1.1;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.platform-badge.shopee {
  background: #EE4D2D;
}

.platform-badge.lazada {
  background: #0F146D;
}

.platform-badge.tiktok {
  background: #0F172A;
}

.ocv2-status {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  margin-bottom: 7px;
}

.ocv2-status.confirmed { background: var(--green-100); color: var(--green-700); }
.ocv2-status.pending { background: var(--yellow-200); color: var(--amber-700); }
.ocv2-status.cancelled { background: var(--red-100); color: var(--red-700); }

.ocv2-order-val {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ocv2-order-val strong { color: var(--primary); }

.ocv2-commission {
  font-size: 11.5px;
  color: var(--text-placeholder);
  margin-bottom: 8px;
}

.ocv2-id-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 1px;
}

.ocv2-id {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 4px 9px;
  border-radius: 6px;
  font-family: inherit;
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ocv2-id:hover {
  background: #E2E8F0;
  color: #334155;
}

.ocv2-copy-btn {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.ocv2-copy-btn:hover { 
  color: var(--primary); 
}

.ocv2-date {
  font-size: 11.5px;
  color: #94A3B8;
  margin-left: auto;
  font-weight: 500;
}

/* Stats row at bottom of order card */
.ocv2-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--slate-100);
}

.ocv2-stat {
  padding: 11px 6px 12px;
  text-align: center;
  border-right: 1px solid var(--slate-100);
}

.ocv2-stat:last-child { border-right: none; }

.ocv2-stat-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-placeholder);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}

.ocv2-stat-val {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--dark-title);
}

/* Highlight: NHẬN VỀ column */
.ocv2-stat.highlight { background: var(--green-50-alt); }
.highlight-val { color: var(--green-700) !important; }
.ocv2-stat.pending-hl { background: var(--warning-light); }
.pending-val { color: var(--amber-700) !important; }
.ocv2-stat.cancelled-hl { background: var(--error-light); }
.cancelled-val { color: var(--error-hover) !important; font-weight: 800; }

/* ==============================================================================
   3. TAB VÍ TIỀN (WALLET)
   ============================================================================== */
.wallet-balance-card {
  background: var(--blue-gradient);
  border-radius: 22px;
  padding: 24px 22px;
  color: var(--white);
  box-shadow: 0 12px 28px -6px rgba(52, 160, 250, 0.38);
  margin-bottom: 18px;
}

.balance-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.balance-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  opacity: 0.95;
  font-weight: 600;
}

.balance-label svg {
  width: 17px;
  height: 17px;
}

.balance-badge {
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.balance-amount {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.balance-amount .currency {
  font-size: 22px;
  font-weight: 600;
}

.balance-meta-row {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 14px;
  font-size: 13px;
}

.meta-label { opacity: 0.85; margin-right: 5px; }
.meta-val { font-weight: 700; }

.balance-actions {
  display: flex;
  gap: 10px;
}

.btn-balance-action {
  flex: 1;
  height: 42px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  border: none;
  font-family: inherit;
}

.btn-balance-action.primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-balance-action.primary:hover {
  background: var(--primary-light);
}

.btn-balance-action.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-balance-action.secondary:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-balance-action svg {
  width: 17px;
  height: 17px;
}

.wallet-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.feature-item:hover {
  border-color: var(--slate-300);
  background: var(--warm-white);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg { width: 19px; height: 19px; }
.feature-text { flex: 1; }
.feature-title { font-size: 14px; font-weight: 700; color: var(--dark-title); }
.feature-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.feature-arrow { width: 17px; height: 17px; color: var(--text-placeholder); }

/* ==============================================================================
   4. TAB TÀI KHOẢN (ACCOUNT / PROFILE)
   ============================================================================== */
.profile-header-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.profile-avatar-box {
  width: 62px;
  height: 62px;
  border-radius: 50% !important;
  background-color: var(--slate-100);
  border: 1.5px solid var(--border-color, #E2E8F0) !important;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: none !important;
}

.profile-avatar-box img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; }
.profile-name { font-size: 17px; font-weight: 800; color: var(--dark-title); }
.profile-email { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.profile-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-top: 4px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.stat-box:hover { border-color: var(--primary); background: var(--warm-white); }
.stat-num { font-size: 16px; font-weight: 800; color: var(--dark-title); }
.stat-label { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

.profile-menu {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 10px;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.menu-item:hover { background: var(--slate-50); }

.menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--slate-100);
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-icon svg { width: 17px; height: 17px; }
.menu-text { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--dark-label); }

.copy-btn-chip {
  font-size: 11.5px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.btn-logout {
  width: 100%;
  height: 44px;
  background: var(--red-100);
  color: var(--error);
  border: none;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  margin-top: 12px;
  margin-bottom: 6px;
  transition: background 0.15s ease;
  font-family: inherit;
}

.btn-logout:hover { background: var(--error-border); }
.btn-logout svg { width: 17px; height: 17px; }

.btn-share-social.zalo {
  background: #0068FF;
  color: var(--white);
}

.btn-share-social.zalo:hover { background: #0056D2; }

.btn-share-social.facebook {
  background: #1877F2;
  color: var(--white);
}

.btn-share-social.facebook:hover { background: var(--blue-700); }

/* ==============================================================================
   AUTH CARD (Form Đăng Nhập / Đăng Ký căn giữa chuẩn ảnh mẫu)
   ============================================================================== */
.auth-card {
  background: var(--card-bg);
  width: 100%;
  border-radius: 22px;
  padding: 36px 28px 30px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06), 0 0 1px 1px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.auth-badge-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--white);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.auth-badge-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.auth-title {
  font-size: 23px;
  font-weight: 800;
  color: var(--dark-title);
  text-align: center;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 24px;
  padding: 0 8px;
}

.auth-pane {
  display: none;
}

.auth-pane.active {
  display: block;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-label);
  margin-bottom: 6px;
}

.input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  color: var(--text-placeholder);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 12px 42px 12px 42px;
  font-size: 14px;
  font-family: inherit;
  color: var(--dark-title);
  background: var(--white);
  border: 1px solid var(--border-input);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-placeholder);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.toggle-password-btn:hover {
  color: var(--dark-label);
}

.form-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--dark-label);
  user-select: none;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  height: 48px;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  background: var(--primary-hover);
}

.btn-submit:active {
  transform: scale(0.99);
}

.btn-submit.loading {
  opacity: 0.8;
  pointer-events: none;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn-submit.loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-switch-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-switch-text a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.auth-switch-text a:hover {
  text-decoration: underline;
}

/* ==============================================================================
   BOTTOM NAVIGATION BAR (Chỉ dành cho điện thoại / mobile)
   ============================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: var(--app-max-width, 600px);
  width: 100%;
  height: 62px;
  background: var(--white);
  border-top: 1px solid var(--border-color);
  display: flex !important;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.nav-tab-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-placeholder);
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  outline: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

.nav-tab-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.nav-tab-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.nav-tab-item:hover {
  color: var(--slate-600);
}

.nav-tab-item.active {
  color: var(--primary);
}

.nav-tab-item.active .nav-tab-icon {
  stroke-width: 2;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  min-width: 280px;
  background: var(--white);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--primary);
  font-size: 13px;
}

.toast-item.success { border-left-color: var(--success); }
.toast-item.error { border-left-color: var(--error); }
.toast-item.warning { border-left-color: var(--warning); }

.toast-item .toast-msg {
  flex: 1;
  color: var(--dark-title);
  font-weight: 600;
}

/* ==============================================================================
   RESPONSIVE BREAKPOINTS (Desktop PC, Tablet, Mobile)
   ============================================================================== */

/* ĐIỀU HƯỚNG CỐ ĐỊNH XUỐNG DƯỚI TOÀN BỘ THEO PHONG CÁCH FLUTTER */
.desktop-nav {
  display: none !important;
}

.bottom-nav {
  display: flex !important;
}

.app-main {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 16px)) !important;
}

@media (min-width: 769px) {
  .bottom-nav {
    max-width: 600px;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    transform: translateZ(0) !important;
    border-radius: 20px 20px 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
    height: 66px;
  }
}

@media (max-width: 768px) {
  .desktop-only-btn,
  .desktop-only-text {
    display: none !important;
  }
  .topbar-support-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

@media (min-width: 769px) {

  /* Tab Đơn Hàng: Thống kê & thẻ đơn hàng gọn gàng */
  .orders-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .os-card {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .os-card-amount {
    font-size: 20px;
  }

  .order-status-tabs {
    gap: 10px;
    margin-bottom: 20px;
  }

  .status-tab {
    padding: 9px 20px;
    font-size: 13.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backface-visibility: hidden;
    will-change: color, background-color, border-color, box-shadow;
  }

  .order-card-v2 {
    border-radius: 20px;
    margin-bottom: 18px;
    transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease;
    backface-visibility: hidden;
    will-change: opacity, transform;
  }

  .order-card-v2:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }

  .ocv2-main-row {
    padding: 22px 22px 18px;
    gap: 18px;
  }

  .ocv2-thumb {
    width: 96px;
    height: 96px;
    border-radius: 12px;
  }

  .ocv2-top-row {
    min-width: 0;
    width: 100%;
    margin-bottom: 8px;
  }

  .ocv2-name {
    font-size: 15.5px;
    line-height: 1.45;
    max-height: calc(1.45em * 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .ocv2-stats-row {
    padding: 0;
  }

  .ocv2-stat {
    padding: 13px 12px 14px;
  }

  .ocv2-stat-val {
    font-size: 15px;
  }

  .wallet-balance-card {
    padding: 28px 30px;
    border-radius: 22px;
    margin-bottom: 0;
  }

  .balance-amount {
    font-size: 38px;
  }

  .wallet-features-list {
    margin-top: 0;
  }

  /* Tab Tài Khoản: Form Auth căn giữa trang trọng */
  .auth-card {
    max-width: 520px;
    margin: 20px auto 40px auto;
    padding: 38px 34px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  }

  .profile-card {
    max-width: var(--page-content-width);
    margin: 20px auto 40px auto;
    padding: 28px 32px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  }
}

/* ĐIỆN THOẠI & MÀN HÌNH NHỎ (<= 768px) */
@media (max-width: 768px) {
  /* Ẩn desktop nav trên điện thoại */
  .desktop-nav {
    display: none !important;
  }

  .desktop-only-btn,
  .desktop-only-text {
    display: none !important;
  }

  /* Hiện thanh menu đáy cố định cho điện thoại */
  .bottom-nav {
    display: flex !important;
  }

  .topbar-container {
    padding: 0 16px;
  }

  .app-main {
    padding: 16px 14px 84px 14px;
  }

  #form-convert-link .btn-convert-submit {
    width: 100%;
  }
}

.footer-simple-links .sep {
  color: var(--slate-300);
}

.footer-simple-copy {
  font-size: 11.5px;
  color: var(--text-placeholder);
}

/* ==============================================================================
   LEADERBOARD & ĐUA TOP STYLING (GIAO DIỆN ĐUA TOP DOANH SỐ)
   ============================================================================== */
/* ==============================================================================
   BẢNG XẾP HẠNG (LEADERBOARD - CHUẨN 100% GIAO DIỆN FLUTTER GENZSALE)
   ============================================================================== */

/* 1. Thanh tiêu đề trên cùng (Top Bar) */
.lb-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.lb-topbar-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--slate-900);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.lb-topbar-back-btn:hover {
  background-color: var(--slate-100);
}

.lb-topbar-back-btn svg {
  width: 28px;
  height: 28px;
}

.lb-topbar-text {
  flex: 1;
}

.lb-topbar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 2px 0;
  letter-spacing: -0.3px;
}

.lb-topbar-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. Bộ lọc tab thời gian: Tháng này | Tháng trước | Tuần này */
.time-filter-tabs {
  display: flex;
  background: transparent;
  padding: 0;
  margin-bottom: 14px;
  gap: 6px;
}

.time-filter-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  font-family: inherit;
  text-align: center;
}

.time-filter-tab:hover {
  color: var(--slate-900);
}

.time-filter-tab.active {
  background: var(--white);
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* 3. Thẻ bục vinh danh Top 3 (Podium Card) */
.podium-card {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 20px 8px 0 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  margin-bottom: 20px;
}

/* Hạt trang trí lơ lửng & confetti */
.podium-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.p-star, .p-diamond, .p-heart {
  position: absolute;
  user-select: none;
  font-weight: 700;
  opacity: 0.85;
  /* animation optimized */
}

.p-star-1 { font-size: 13px; animation-delay: 0s; }
.p-star-2 { font-size: 15px; }
.p-dia-1  { font-size: 8px; }
.p-heart-1 { font-size: 12px; }
.p-star-3 { font-size: 14px; }
.p-dia-2  { font-size: 9px; }

/* Bóng nền đất dưới bục (Ground shadow) */
.podium-ground-shadow {
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 18px;
  background: rgba(219, 234, 254, 0.85);
  border-radius: 50px;
  z-index: 1;
}

/* 3 Cột bục vinh danh */
.podium-columns {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  max-width: 500px;
  margin: 0 auto;
}

.podium-col {
  flex: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.podium-col.rank-1 {
  flex: 36;
}

/* Vương miện vector */
.podium-crown-wrap {
  margin-bottom: 4px;
  display: flex;
  justify-content: center;
}

.crown-svg {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

.crown-gold {
  /* animation optimized */
}

/* Avatar Monogram chữ cái viết tắt (100% Tròn) */
.podium-avatar-mono {
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

.podium-col.rank-1 .podium-avatar-mono {
  width: 78px;
  height: 78px;
  font-size: 24px;
  border: 3px solid var(--warning);
  background: var(--warning-light);
  color: var(--warning-hover);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  border-radius: 50% !important;
}

.podium-col.rank-2 .podium-avatar-mono {
  width: 66px;
  height: 66px;
  font-size: 18px;
  border: 2.5px solid var(--text-placeholder);
  background: var(--slate-100);
  color: var(--text-muted);
  box-shadow: 0 3px 8px rgba(148, 163, 184, 0.25);
  border-radius: 50% !important;
}

.podium-col.rank-3 .podium-avatar-mono {
  width: 66px;
  height: 66px;
  font-size: 18px;
  border: 2.5px solid var(--orange-500);
  background: var(--orange-light);
  color: var(--orange-900-tag);
  box-shadow: 0 3px 8px rgba(249, 115, 22, 0.25);
  border-radius: 50% !important;
}

/* Tên người dùng */
.podium-user-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--slate-900);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  padding: 0 2px;
}

.podium-col.rank-1 .podium-user-name {
  font-size: 14.5px;
}

/* Tiền hoa hồng (không có chữ Thưởng) */
.podium-user-comm {
  font-size: 13.5px;
  font-weight: 900;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

.podium-col.rank-1 .podium-user-comm {
  font-size: 15px;
  color: var(--warning-hover);
}

.podium-col.rank-2 .podium-user-comm {
  color: var(--text-muted);
}

.podium-col.rank-3 .podium-user-comm {
  color: var(--orange-900-tag);
}

/* Số lượng đơn hàng */
.podium-user-orders {
  font-size: 11.5px;
  color: var(--text-placeholder);
  font-weight: 500;
  margin-bottom: 6px;
}

/* Khối bục vinh danh 3D (#1, #2, #3) */
.podium-pillar-3d {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 2px;
  border-radius: 16px 16px 12px 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.podium-pillar-3d .pillar-top-cap {
  height: 14px;
  width: 100%;
  border-radius: 16px 16px 0 0;
}

.podium-pillar-3d .pillar-front-face {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 12px 12px;
  padding-bottom: 6px;
}

/* Cột hạng 1 (Vàng hoàng gia với vòng nguyệt quế) */
.pillar-rank-1 {
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.18);
}

.pillar-rank-1 .pillar-top-cap {
  background: var(--warning-light);
  border: 1.2px solid var(--amber-300);
  border-bottom: none;
}

.pillar-rank-1 .pillar-front-face {
  height: 124px;
  background: linear-gradient(180deg, var(--warning-light) 0%, var(--amber-300) 100%);
  border: 1.2px solid var(--warning);
  border-top: none;
}

.laurel-wreath-box {
  position: relative;
  width: 82px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wreath-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wreath-number {
  position: relative;
  z-index: 2;
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(180, 83, 9, 0.6);
  line-height: 1;
}

.pillar-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.pillar-rank-1 .pillar-label {
  color: var(--amber-700);
}

/* Cột hạng 2 (Bạc / Sky đồng bộ nắp trên) */
.pillar-rank-2 .pillar-top-cap {
  background: var(--primary-light);
  border: 1.2px solid var(--blue-300);
  border-bottom: none;
}

.pillar-rank-2 .pillar-front-face {
  height: 88px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--blue-light-2) 100%);
  border: 1.2px solid var(--blue-300);
  border-top: none;
}

.pillar-num-text {
  font-size: 30px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 2px;
}

.pillar-rank-2 .pillar-num-text {
  text-shadow: 0 2px 4px rgba(2, 132, 199, 0.35);
}

.pillar-rank-2 .pillar-label {
  font-size: 11.5px;
  color: var(--blue-900);
}

/* Cột hạng 3 (Đồng / Cam đồng bộ nắp trên) */
.pillar-rank-3 .pillar-top-cap {
  background: var(--orange-light);
  border: 1.2px solid var(--orange-500);
  border-bottom: none;
}

.pillar-rank-3 .pillar-front-face {
  height: 76px;
  background: linear-gradient(180deg, var(--orange-light) 0%, #FFEDD5 100%);
  border: 1.2px solid var(--orange-500);
  border-top: none;
}

.pillar-rank-3 .pillar-num-text {
  font-size: 28px;
  text-shadow: 0 2px 4px rgba(194, 65, 12, 0.35);
}

.pillar-rank-3 .pillar-label {
  font-size: 11.5px;
  color: var(--orange-900-tag);
}

/* 4. Tiêu đề danh sách */
.lb-section-heading {
  font-size: 16px;
  font-weight: 800;
  color: var(--slate-900);
  margin: 20px 0 10px 0;
}

/* 5. Danh sách từ hạng 4 đến hạng 20 (Runners Up) */
.runners-up-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  margin-bottom: 14px;
}

.runner-up-tile {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  transition: background-color 0.15s ease;
}

.runner-up-tile:hover {
  background-color: var(--slate-50);
}

.runner-up-tile:not(:last-child) {
  border-bottom: 1px solid var(--slate-100);
}

.ru-rank-num {
  width: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ru-avatar-mono {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  border: 1.5px solid var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  margin: 0 12px;
}

.ru-user-info {
  flex: 1;
  min-width: 0;
}

.ru-user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.ru-user-orders {
  font-size: 11.5px;
  color: var(--text-placeholder);
  font-weight: 500;
}

.ru-commission {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--slate-900);
  flex-shrink: 0;
  margin-left: 12px;
}

/* 6. Banner gợi ý dán link ở cuối bảng xếp hạng */
.lb-join-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 30px;
}

.lb-join-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.lb-join-rocket {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lb-join-rocket svg {
  width: 22px;
  height: 22px;
}

.lb-join-text {
  flex: 1;
  min-width: 0;
}

.lb-join-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 3px;
}

.lb-join-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* My Rank Card (khi người dùng đã có thứ hạng) */
.my-rank-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--primary-light);
  border: 1.5px solid var(--border-blue, #DBEAFE);
  border-radius: 16px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}

.my-rank-badge {
  width: 34px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.my-rank-badge.out-of-top {
  color: var(--text-muted);
}

.my-rank-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.my-rank-info {
  flex: 1;
  min-width: 0;
}

.my-rank-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.my-rank-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-rank-you-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--white);
  border-radius: 999px;
  padding: 1px 7px;
  flex-shrink: 0;
}

.my-rank-orders {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.my-rank-commission {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 4px;
  text-align: right;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .podium-columns {
    gap: 4px;
  }
  .podium-col.rank-1 .podium-avatar-mono {
    width: 66px;
    height: 66px;
    font-size: 20px;
  }
  .podium-col.rank-2 .podium-avatar-mono,
  .podium-col.rank-3 .podium-avatar-mono {
    width: 56px;
    height: 56px;
    font-size: 16px;
  }
  .laurel-wreath-box {
    width: 68px;
    height: 52px;
  }
  .wreath-number {
    font-size: 26px;
  }
  .pillar-num-text {
    font-size: 24px;
  }
}

/* ==============================================================================
   FLUTTER-STYLE HOME COMPONENTS (MATCHING FLUTTER APP CODE IN GIT)
   ============================================================================== */

/* 1. Greeting & Notification Header */
.greeting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.greeting-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-title);
  letter-spacing: -0.4px;
}

.greeting-notif-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-title);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.greeting-notif-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.greeting-notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--error);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 2. Flutter Wallet Section */
.flutter-wallet-section {
  margin-bottom: 20px;
}

.wallet-card-blue {
  position: relative;
  width: 100%;
  background: var(--blue-gradient);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(52, 160, 250, 0.35);
  overflow: hidden;
  padding: 20px 22px;
  color: var(--white);
  margin-bottom: 12px;
}

.wallet-circle-1 {
  position: absolute;
  right: -20px;
  top: -30px;
  bottom: -30px;
  width: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

.wallet-circle-2 {
  position: absolute;
  right: -10px;
  bottom: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.wallet-cat-mascot {
  position: absolute;
  right: 12px;
  bottom: 0;
  height: 100%;
  max-height: 155px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.wallet-card-content {
  position: relative;
  z-index: 2;
  max-width: 65%;
}

.wallet-label-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
}

.wallet-eye-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.wallet-balance-num {
  font-size: 34px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.btn-withdraw-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 18px;
  background: var(--white);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-withdraw-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

/* 3 Stats Subcards Row */
.wallet-stats-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-subcard {
  position: relative;
  border-radius: 18px;
  padding: 12px 14px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}

.stat-subcard:hover {
  transform: translateY(-2px);
}

.stat-subcard.received {
  background: var(--success-light);
  border: 1.2px solid var(--success-border);
}

.stat-subcard.pending {
  background: var(--warning-light);
  border: 1.2px solid var(--warning-border);
}

.stat-subcard.commission {
  background: var(--primary-light);
  border: 1.2px solid var(--primary-border);
}

.subcard-val {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--dark-title);
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.subcard-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 3px;
  margin-bottom: 12px;
}

.subcard-corner-img {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 36px;
  height: 36px;
  object-fit: contain;
  pointer-events: none;
}

/* 3. Platform Icons with Real Images (Phong cách Flutter: Không viền, không bóng, không hiệu ứng dê chuột) */
.conv-plat-icon-real {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: none;
}

.conv-platform-item:hover,
.conv-platform-item:hover .conv-plat-icon-real {
  transform: none;
  box-shadow: none;
  border: none;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-title);
  letter-spacing: -0.2px;
}

.flutter-utilities-section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 22px;
}

.utilities-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.utilities-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary-light, var(--primary-light));
  color: var(--primary, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.utilities-header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-title, var(--gray-900));
  letter-spacing: -0.2px;
}

.flutter-utilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.utility-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--dark-title, var(--gray-900));
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 14px;
  transition: transform 0.15s ease;
}

.utility-item:hover {
  transform: translateY(-2px);
}

.utility-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.utility-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dark-title, var(--slate-900));
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.1px;
}

@media (max-width: 640px) {
  .flutter-utilities-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .flutter-utilities-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
  .utility-label {
    font-size: 11.5px;
  }
}

/* 5. Flutter Community Channels (Zalo, Telegram) */
.flutter-channels-section {
  margin-bottom: 22px;
}

.channel-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.channel-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-title);
  letter-spacing: -0.2px;
}

.channel-card-box {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.channel-item-row {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.channel-item-row:hover {
  background: var(--slate-50);
}

.channel-item-row + .channel-item-row {
  border-top: 1px solid var(--border-color);
}

.channel-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

.channel-item-info {
  flex: 1;
  min-width: 0;
}

.channel-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-title);
  margin-bottom: 2px;
}

.channel-item-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.channel-action-btn {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.channel-action-btn.zalo-btn {
  background: var(--primary-light);
  color: var(--primary);
}

.channel-action-btn.zalo-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.channel-action-btn.tele-btn {
  background: #E0F2FE;
  color: var(--blue-900);
}

.channel-action-btn.tele-btn:hover {
  background: var(--blue-900);
  color: var(--white);
}

.channel-icon-instagram {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(45deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(221, 42, 123, 0.25);
}

.channel-action-btn.instagram-btn {
  background: #FDF2F8;
  color: var(--pink-600);
}

.channel-action-btn.instagram-btn:hover {
  background: var(--pink-600);
  color: var(--white);
}

/* ==============================================================================
   FLUTTER MODAL DIALOGS (HIGH-PERFORMANCE & BEAUTIFUL SMOOTH UI)
   ============================================================================== */
.flutter-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
  user-select: none;
  -webkit-user-select: none;
}

.flutter-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.flutter-modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: none;
  transition: none;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  user-select: none;
  -webkit-user-select: none;
}

.flutter-modal-overlay.active .flutter-modal-card {
  transform: none;
}

.flutter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color, var(--border-color));
  background: var(--white);
}

.flutter-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--dark-title, var(--slate-900));
  letter-spacing: -0.3px;
}

.flutter-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--red-100);
  color: var(--error);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.flutter-modal-close:hover {
  background: var(--error-border);
  color: var(--error-hover);
}

.flutter-modal-close svg {
  width: 18px;
  height: 18px;
}

.flutter-modal-body {
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 70vh;
}

.modal-tab-item {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.modal-tab-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.modal-tab-item.active {
  background: var(--white);
  color: var(--primary, var(--primary));
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.modal-tab-item.active svg {
  color: var(--primary, var(--primary));
}

.modal-pane-content.active {
  display: block;
}

/* Prevent accidental text selection on all interactive elements */
.ref-earnings-box,
.ref-earnings-history-btn,
.ref-smart-copy-btn,
.ref-vip-code-container,
.ref-vip-btn-outline,
.ref-vip-btn-solid,
.btn-submit,
.modal-tab-item,
.flutter-modal-card {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* ==============================================================================
   COMMON SUBPAGES (LOGIN SESSIONS, EDIT PROFILE, BANK ACCOUNT)
   ============================================================================== */
.subpage-header-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border-color, var(--gray-200));
  position: sticky;
  top: 0;
  z-index: 50;
}

.subpage-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-title, var(--gray-900));
  text-decoration: none;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.subpage-back-btn:hover {
  background: var(--gray-200);
}

.subpage-header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-title, var(--gray-900));
  flex: 1;
}

.avatar-edit-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 12px;
}

.avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50% !important;
  background-color: var(--slate-100);
  color: var(--dark-title);
  font-size: 34px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-color, #E2E8F0) !important;
  box-shadow: none !important;
  object-fit: cover;
  overflow: hidden;
}

.edit-profile-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border-color, var(--border-color));
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
}

.card-section-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-placeholder);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.form-field-group {
  margin-bottom: 18px;
}

.form-field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-placeholder);
  pointer-events: none;
}

.form-input-text {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background: var(--slate-50);
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-900);
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.form-input-text:disabled {
  background: var(--slate-100);
  color: var(--text-placeholder);
  cursor: not-allowed;
}

.form-field-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

.form-field-hint.locked {
  color: var(--text-placeholder);
}

.form-field-hint.applied {
  color: var(--success-hover, #059669);
  font-weight: 600;
}

.save-profile-btn {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

/* 6. Flutter Sale Tips Cards */
.flutter-sale-tips-section {
  margin-bottom: 24px;
}

.tips-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tips-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tips-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tips-header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-title);
  letter-spacing: -0.2px;
}

.tips-see-all {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
}

.tips-see-all:hover {
  color: var(--primary);
}

.sale-tips-grid {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sale-tips-grid::-webkit-scrollbar {
  display: none;
}

.sale-tip-card {
  flex: 0 0 220px;
  width: 220px;
  scroll-snap-align: start;
  background: var(--card-bg, var(--white));
  border-radius: 18px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.sale-tip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.tip-card-banner {
  width: 100%;
  height: 125px;
  object-fit: cover;
  display: block;
}

.tip-card-body {
  padding: 12px 14px 14px 14px;
}

.tip-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.tip-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
}

.tip-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-title);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  letter-spacing: -0.15px;
  min-height: 2.7em;
}

@media (max-width: 580px) {
  .sale-tips-grid {
    gap: 10px !important;
  }
  .sale-tip-card {
    flex: 0 0 215px !important;
    width: 215px !important;
  }
  .tip-card-banner {
    height: 105px !important;
  }
  .tip-card-body {
    padding: 10px 12px 12px 12px !important;
  }
  .tip-card-title {
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    min-height: 2.7em !important;
  }
}

/* ==============================================================================
   FLUTTER ACCOUNT VIEW COMPONENTS
   ============================================================================== */
.account-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border-color);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 14px;
}

.account-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50% !important;
  border: 1.5px solid var(--border-color, #E2E8F0) !important;
  background-color: var(--slate-100);
  color: var(--dark-title);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
  object-fit: cover;
  overflow: hidden;
  box-shadow: none !important;
}

.account-user-meta {
  flex: 1;
  min-width: 0;
}

.account-user-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark-title);
  margin-bottom: 2px;
}

.account-user-email {
  font-size: 13px;
  color: var(--text-muted);
}

.account-commission-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 5px;
}

.account-btn-edit {
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--slate-50);
  border: 1px solid var(--border-color);
  color: var(--dark-title);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.account-btn-edit:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--border-blue);
}

/* Setting Sections */
.setting-section-group {
  margin-bottom: 18px;
}

.setting-section-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-left: 4px;
}

.theme-option-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white) !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.theme-option-btn.active svg {
  color: var(--white) !important;
}

.setting-card-box {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.setting-tile-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  text-decoration: none;
  color: var(--dark-title);
  transition: background-color 0.15s ease;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.setting-tile-item:hover {
  background-color: var(--slate-50);
}

.setting-tile-item + .setting-tile-item {
  border-top: 1px solid var(--slate-100);
}

.setting-tile-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-50);
  color: var(--slate-600);
  flex-shrink: 0;
}

.setting-tile-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.setting-tile-badge {
  font-size: 11.5px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 9px;
  border-radius: 10px;
}

.setting-tile-arrow {
  color: var(--text-placeholder);
  width: 16px;
  height: 16px;
}

.account-app-version {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 24px;
  margin-bottom: 12px;
}

/* ==============================================================================
   FLUTTER ORDERS VIEW COMPONENTS
   ============================================================================== */
.orders-guide-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  margin-bottom: 14px;
}

.orders-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.orders-guide-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.orders-guide-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orders-guide-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-title);
}

.orders-guide-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

.orders-guide-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.bank-chip-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.amount-chips-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 16px;
}

.amount-chip {
  flex: 1;
  text-align: center;
  padding: 6px;
  border-radius: 10px;
  background: var(--slate-50);
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-title);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.amount-chip:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--border-blue);
}

/* ==============================================================================
   THÔNG BÁO (NOTIFICATIONS) - CHUẨN GIAO DIỆN FLUTTER NOTIFICATIONSVIEW
   ============================================================================== */
.notif-container {
  max-width: var(--page-content-width);
  margin: 0 auto;
  padding: 0 16px 80px 16px;
}

.notif-subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 14px 0;
  margin-bottom: 8px;
}

.notif-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-primary);
  text-decoration: none;
  background: transparent;
  transition: background 0.15s ease;
  cursor: pointer;
}

.notif-back-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.notif-header-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin: 0;
}

.notif-mark-read-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.notif-mark-read-btn:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

/* 2. Thanh tab lọc thông báo theo danh mục */
.notif-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.notif-filter-tabs::-webkit-scrollbar {
  display: none;
}

.notif-tab-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--border-light);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  user-select: none;
}

.notif-tab-item.active {
  background: var(--primary-light);
  border: 1.4px solid var(--primary);
  color: var(--primary);
  font-weight: 800;
}

/* Ẩn mặc định — JS chỉ bật khi thật sự có thông báo chưa đọc (trước đây hiện đỏ 1-2 giây lúc mở trang) */
.notif-tab-dot {
  display: none;
  position: absolute;
  top: 1px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--error);
  border: 1.5px solid var(--white);
}

/* 3. Danh sách thông báo (NotificationTile items) */
.notif-card-list {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.notif-tile-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.15s ease;
  background: var(--white);
}

.notif-tile-item.unread {
  background: var(--slate-50);
}

.notif-tile-item:hover {
  background: var(--slate-100);
}

.notif-tile-icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.notif-tile-unread-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warning);
  border: 2px solid var(--white);
}

.notif-tile-content {
  flex: 1;
  min-width: 0;
}

.notif-tile-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.notif-tile-item.unread .notif-tile-title {
  font-weight: 800;
  color: var(--slate-900);
}

.notif-tile-desc {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.42;
  margin-bottom: 6px;
}

.notif-tile-time {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.notif-separator {
  height: 1px;
  background: var(--border-light);
  margin-left: 76px;
}

/* 4. Màn hình trống thông báo (Empty state) */
/* Khung đang tải của trang Thông báo */
.notif-skeleton-row { cursor: default; pointer-events: none; }
.notif-skeleton-icon,
.notif-skeleton-line {
  background: linear-gradient(90deg, #EEF1F5 25%, #F6F8FA 50%, #EEF1F5 75%);
  background-size: 200% 100%;
  animation: notif-skeleton-shimmer 1.2s ease-in-out infinite;
}
.notif-skeleton-icon { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.notif-skeleton-line { height: 12px; border-radius: 6px; margin: 6px 0; width: 70%; }
.notif-skeleton-line.short { width: 40%; }
@keyframes notif-skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .notif-skeleton-icon, .notif-skeleton-line { animation: none; } }

.notif-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.notif-empty-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
}

.notif-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.notif-empty-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.45;
}
/* ==============================================================================
   FLUTTER WALLET VIEW - 100% MATCHING FLUTTER WALLET_VIEW.DART
   ============================================================================== */
.wallet-balance-hero {
  width: 100%;
  background: linear-gradient(135deg, #42A5F5 0%, #1E88E5 100%);
  border-radius: 20px;
  box-shadow: 0 10px 18px rgba(30, 136, 229, 0.28);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.wallet-balance-hero .circle-dec-1 {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.wallet-balance-hero .circle-dec-2 {
  position: absolute;
  left: -20px;
  bottom: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

.wallet-balance-hero-content {
  position: relative;
  z-index: 2;
  padding: 18px 18px 16px 18px;
}

.hero-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-balance-label-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.hero-icon-circle svg {
  width: 17px;
  height: 17px;
}

.hero-balance-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.hero-rate-pill {
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--white);
}

.hero-rate-pill svg {
  width: 13px;
  height: 13px;
}

.hero-balance-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.8px;
  margin-top: 10px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.20);
  margin-bottom: 12px;
}

.hero-pending-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-pending-row svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.70);
}

.hero-pending-val {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--white);
}

/* Quick Stats Row: Tổng đã nhận & Từ giới thiệu */
.wallet-stats-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 18px;
}

.wallet-stat-tile {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.wallet-stat-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wallet-stat-icon-box svg {
  width: 17px;
  height: 17px;
}

.wallet-stat-icon-box.success {
  background: var(--success-light);
  color: var(--success);
}

.wallet-stat-icon-box.primary {
  background: var(--primary-light);
  color: var(--primary);
}

.wallet-stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wallet-stat-val {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--dark-title);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Flutter Withdraw Card */
.flutter-withdraw-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.flutter-withdraw-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--dark-title);
  margin-bottom: 14px;
}

.flutter-withdraw-header svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.flutter-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--slate-50);
  border: 1px solid var(--border-input);
  border-radius: 14px;
  padding: 0 14px;
  height: 48px;
  transition: border-color 0.15s ease;
}

.flutter-input-box:focus-within {
  border-color: var(--primary);
  background: var(--white);
}

.flutter-input-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-title);
  outline: none;
  font-family: inherit;
}

.flutter-input-box input::placeholder {
  color: var(--text-placeholder);
  font-weight: 500;
}

.flutter-input-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.flutter-input-icon svg {
  width: 18px;
  height: 18px;
}

.flutter-withdraw-notice {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.flutter-withdraw-notice svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.flutter-bank-tile {
  background: var(--slate-50);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  margin-bottom: 18px;
}

.flutter-bank-tile:hover {
  background: var(--slate-100);
  border-color: var(--slate-300);
}

.flutter-bank-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flutter-bank-icon-circle svg {
  width: 18px;
  height: 18px;
}

.flutter-bank-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.flutter-bank-sublabel {
  font-size: 11.5px;
  color: var(--text-muted);
}

.flutter-bank-maintext {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flutter-bank-maintext.warning {
  color: var(--warning-hover);
}

.flutter-bank-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.flutter-bank-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-flutter-withdraw {
  width: 100%;
  height: 52px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-family: inherit;
  box-shadow: none;
}

.btn-flutter-withdraw:hover {
  background: var(--primary-hover);
}

.btn-flutter-withdraw:active {
  transform: translateY(1px);
}

.btn-flutter-withdraw svg {
  width: 19px;
  height: 19px;
}

/* Flutter Setting Section & Tile */
.flutter-setting-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.flutter-setting-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background-color 0.12s ease;
  border-bottom: 1px solid var(--border-color);
}

.flutter-setting-tile:last-child {
  border-bottom: none;
}

.flutter-setting-tile:hover {
  background-color: var(--slate-50);
}

.flutter-setting-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flutter-setting-icon-box svg {
  width: 17px;
  height: 17px;
}

.flutter-setting-title-box {
  flex: 1;
}

.flutter-setting-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-title);
}

.flutter-setting-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 12px;
}

.flutter-setting-arrow {
  color: var(--text-placeholder);
  width: 18px;
  height: 18px;
}


@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* ==============================================================================
   ARTICLES & ARTICLE DETAIL VIEW (FLUTTER APP MATCHING)
   ============================================================================== */
.sale-tip-card-full {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border-color, var(--gray-200));
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  display: block;
  margin-bottom: 16px;
}

.sale-tip-card-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.sale-tip-card-banner-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
  overflow: hidden;
}

.sale-tip-card-banner-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sale-tip-card-badge-floating {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--error);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 800;
  padding: 3.5px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.sale-tip-card-content {
  padding: 14px 16px 16px;
}

.sale-tip-tag-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3.5px 10px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 8px;
}

.sale-tip-tag-pill.tag-guide {
  background: var(--primary-light);
  color: var(--primary);
}

.sale-tip-tag-pill.tag-sale {
  background: var(--primary-light);
  color: var(--primary);
}

.sale-tip-tag-pill.tag-hot {
  background: var(--red-100);
  color: var(--error);
}

.sale-tip-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-title, var(--gray-900));
  line-height: 1.35;
  margin-bottom: 6px;
}

.sale-tip-card-summary {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted, var(--gray-500));
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sale-tip-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.sale-tip-card-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted, var(--gray-500));
}

.sale-tip-card-readmore {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary, var(--primary));
}

/* Article Detail Styles */
.article-detail-container {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border-color, var(--gray-200));
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.article-detail-banner {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.article-detail-body {
  padding: 18px;
}

.article-detail-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  background: var(--red-100);
  color: var(--error);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.article-detail-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark-title, var(--gray-900));
  line-height: 1.35;
  margin-bottom: 10px;
}

.article-detail-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted, var(--gray-500));
  margin-bottom: 16px;
}

.article-detail-divider {
  height: 1px;
  background: var(--border-color, var(--gray-200));
  margin: 16px 0;
}

.article-summary-quote {
  width: 100%;
  padding: 12px 14px;
  background: var(--primary-light);
  border-left: 3.5px solid var(--primary, var(--primary));
  border-radius: 10px;
  color: var(--primary, var(--primary));
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 20px;
}

.article-content-body {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--dark-title, #1F2937);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.article-content-body a.content-link {
  color: var(--primary, var(--primary));
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ==============================================================================
   REFERRAL VIEW (MATCHING FLUTTER REFERRALVIEW 100%)
   ============================================================================== */
.ref-vip-card-flutter {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #34A0FA 0%, #5BBAFA 100%);
  border-radius: 20px;
  padding: 16px;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(52, 160, 250, 0.35);
  margin-bottom: 16px;
  overflow: hidden;
}

.ref-vip-card-flutter .ref-circle-1 {
  position: absolute;
  right: -25px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.ref-vip-card-flutter .ref-circle-2 {
  position: absolute;
  left: -30px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

.ref-vip-card-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ref-vip-card-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.ref-vip-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.3px;
}

.ref-vip-code-container {
  background: rgba(255, 255, 255, 0.18);
  border: 1.2px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background-color 0.15s ease;
}

.ref-vip-code-container:hover {
  background: rgba(255, 255, 255, 0.28);
}

.ref-vip-code-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 2px;
}

/* Smart Link Card */
.ref-smart-card {
  background: var(--white);
  border: 1px solid var(--border-color, var(--gray-200));
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}

.ref-smart-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ref-smart-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-smart-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-title, var(--gray-900));
}

.ref-smart-sub {
  font-size: 11.5px;
  color: var(--text-muted, var(--gray-500));
}

.ref-smart-input-box {
  background: var(--slate-50);
  border: 1px solid var(--border-color, var(--gray-200));
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ref-smart-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary, var(--primary));
  outline: none;
}

.ref-smart-copy-btn {
  padding: 6px 12px;
  background: var(--primary, var(--primary));
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.ref-smart-copy-btn:hover {
  opacity: 0.9;
}

/* Earnings Station Card */
.ref-earnings-card {
  background: var(--white);
  border: 1px solid var(--border-color, var(--gray-200));
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}

.ref-earnings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.ref-earnings-box {
  padding: 16px 12px 14px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border-color, var(--gray-200));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ref-earnings-box-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.ref-earnings-box-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ref-earnings-box-icon i,
.ref-earnings-box-icon svg {
  width: 12px;
  height: 12px;
}

.box-friends .ref-earnings-box-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.box-commission .ref-earnings-box-icon {
  background: var(--yellow-100);
  color: var(--warning-hover);
}

.ref-earnings-box-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted, var(--gray-500));
}

.ref-earnings-box-val {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 0;
  text-align: center;
}

.box-friends .ref-earnings-box-val {
  color: var(--primary);
}

.box-commission .ref-earnings-box-val {
  color: var(--warning-hover);
}

.ref-earnings-box-sub {
  display: none !important;
}

.ref-earnings-history-btn {
  width: 100%;
  padding: 10px;
  background: var(--slate-50);
  border: 1px solid var(--border-color, var(--gray-200));
  border-radius: 12px;
  color: var(--primary, var(--primary));
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.12s ease;
  font-family: inherit;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.ref-earnings-history-btn:hover {
  background: var(--slate-100);
}

.ref-earnings-history-btn:active {
  background: var(--border-color);
}

/* Exclusive Benefits Grid */
.ref-benefits-section {
  margin-bottom: 16px;
}

.ref-benefits-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark-title, var(--gray-900));
  margin-bottom: 10px;
}

.ref-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ref-benefit-item {
  background: var(--white);
  border: 1px solid var(--border-color, var(--gray-200));
  border-radius: 16px;
  padding: 14px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ref-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.ref-benefit-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark-title, var(--gray-900));
  margin-bottom: 4px;
}

.ref-benefit-item-desc {
  font-size: 11.5px;
  color: var(--text-muted, var(--gray-500));
  line-height: 1.3;
}

/* How It Works Card */
.ref-how-card {
  background: var(--white);
  border: 1px solid var(--border-color, var(--gray-200));
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.ref-how-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--dark-title, var(--gray-900));
  margin-bottom: 16px;
}

.ref-step-timeline-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ref-step-left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ref-step-circle-outer {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-step-circle-inner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary, var(--primary));
  color: var(--white);
  font-size: 13.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-step-line {
  width: 2px;
  height: 48px;
  background: var(--border-color, var(--gray-200));
}

.ref-step-content-col {
  flex: 1;
  padding-bottom: 14px;
}

.ref-step-heading {
  font-size: 14px;
  font-weight: 550;
  color: var(--dark-title, var(--gray-900));
  margin-bottom: 3px;
}

.ref-step-desc {
  font-size: 13px;
  color: var(--text-muted, var(--gray-500));
  line-height: 1.45;
}





/* ==============================================================================
   FEEDBACK MODAL & BOTTOM SHEET (GÓP Ý & PHẢN HỒI)
   ============================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 24px 16px;
  }
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.feedback-modal-card {
  background: var(--white);
  width: 100%;
  max-width: 100%;
  border-radius: 24px 24px 0 0;
  padding: 20px 20px 32px 20px;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-sizing: border-box;
  margin: 0;
}

@media (min-width: 640px) {
  .feedback-modal-card {
    max-width: 480px;
    border-radius: 24px;
    padding: 24px 28px 28px 28px;
    transform: translateY(20px) scale(0.95);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    margin: auto;
  }
}

.modal-overlay.active .feedback-modal-card {
  transform: translateY(0) scale(1);
}

.feedback-sheet-handle {
  width: 38px;
  height: 4.5px;
  background: var(--border-color);
  border-radius: 9999px;
  margin: 0 auto 16px auto;
}

@media (min-width: 640px) {
  .feedback-sheet-handle {
    display: none;
  }
}

.feedback-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.feedback-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-900);
}

.feedback-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--slate-100);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.feedback-modal-close-btn:hover {
  background: var(--border-color);
  color: var(--slate-900);
}

.feedback-modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.feedback-form-group {
  margin-bottom: 20px;
}

.feedback-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 8px;
}

.feedback-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border-color);
  background: var(--slate-50);
  font-size: 14px;
  color: var(--slate-900);
  font-family: inherit;
  resize: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.feedback-textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.feedback-submit-btn {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: none;
  transition: opacity 0.15s ease;
  font-family: inherit;
}

.feedback-submit-btn:hover {
  opacity: 0.95;
  box-shadow: none;
}

.feedback-submit-btn:active {
  transform: translateY(0);
}

.feedback-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.modal-tab-item {
  flex: 1;
  padding: 9px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
  font-family: inherit;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.modal-tab-item.active {
  background: var(--white);
  color: var(--primary, var(--primary));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}




/* ==============================================================================
   🚀 RENDERING PERFORMANCE & GPU HARDWARE ACCELERATION
   ============================================================================== */
.bottom-nav,
.subpage-header-bar,
.bank-picker-sheet,
.modal-content {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.flutter-modal-body,
.modal-pane-content,
.bank-picker-list {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* 🖼️ IMAGE DECODING & LOADING OPTIMIZATIONS */
img {
  max-width: 100%;
}

img.tip-card-banner,
img.article-detail-banner,
.sale-tip-card-banner-wrapper img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.ocv2-thumb,
#res-product-img,
.conv-plat-icon-real,
.channel-icon-img,
.subcard-corner-img,
.wallet-cat-mascot {
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
}

/* ⚡ LUCIDE SVG ICON PERFORMANCE OPTIMIZATIONS */
svg.lucide,
i[data-lucide] {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  speak: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==============================================================================
   BANK ACCOUNT & SUBPAGE STYLING DEFAULTS
   ============================================================================== */
.bank-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.bank-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-color, var(--border-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-title, var(--slate-900));
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.bank-back-btn:hover {
  background: var(--slate-100);
  border-color: var(--slate-300);
}
.bank-page-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark-title, var(--slate-900));
  letter-spacing: -0.3px;
}
.app-info-banner {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.app-info-banner svg {
  width: 20px;
  height: 20px;
  color: var(--primary, var(--primary));
  flex-shrink: 0;
  margin-top: 1px;
}
.app-info-banner-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--primary-active);
  font-weight: 500;
}
.bank-form-card {
  background: var(--white);
  border: 1px solid var(--border-color, var(--border-color));
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bank-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bank-form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-title, var(--slate-900));
}
.bank-form-label .required {
  color: var(--error);
  margin-left: 2px;
}
.bank-input-container {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--slate-50);
  border: 1px solid var(--border-input, var(--border-color));
  border-radius: 14px;
  padding: 0 14px;
  height: 48px;
  transition: all 0.15s ease;
}
.bank-input-container:focus-within {
  border-color: var(--primary, var(--primary));
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.bank-input-prefix {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-right: 10px;
}
.bank-input-prefix svg {
  width: 18px;
  height: 18px;
}
.bank-input-container input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--dark-title, var(--slate-900));
  font-family: inherit;
}
.bank-input-container input::placeholder {
  color: var(--text-placeholder);
  font-weight: 400;
}
.bank-input-suffix {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.bank-input-suffix svg {
  width: 18px;
  height: 18px;
}
.btn-save-bank {
  width: 100%;
  height: 50px;
  background: var(--primary, var(--primary));
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.btn-save-bank:hover {
  background: var(--primary-hover);
}
.btn-save-bank:active {
  transform: translateY(1px);
}
.btn-save-bank svg {
  width: 19px;
  height: 19px;
}
.bank-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.bank-picker-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.bank-picker-sheet {
  width: 100%;
  max-width: 680px;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  animation: sheetSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.bank-picker-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--slate-300);
  margin: 12px auto 8px auto;
}
.bank-picker-header {
  padding: 10px 20px 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color, var(--border-color));
}
.bank-picker-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark-title, var(--slate-900));
}
.bank-picker-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted, var(--text-muted));
  padding: 4px;
}
.bank-picker-search {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color, var(--border-color));
}
.bank-search-box {
  display: flex;
  align-items: center;
  background: var(--slate-50);
  border: 1px solid var(--border-input, var(--border-color));
  border-radius: 12px;
  padding: 0 12px;
  height: 42px;
}
.bank-search-box svg {
  width: 16px;
  height: 16px;
  color: var(--text-placeholder);
  margin-right: 8px;
}
.bank-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--dark-title, var(--slate-900));
}
.bank-picker-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bank-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.12s ease;
}
.bank-picker-item:hover {
  background: var(--slate-100);
}
.bank-picker-item.active {
  background: var(--primary-light);
}
.bank-item-text {
  flex: 1;
  min-width: 0;
}
.bank-item-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dark-title, var(--slate-900));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bank-item-sub {
  font-size: 11.5px;
  color: var(--text-muted, var(--text-muted));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.bank-item-check {
  color: var(--primary, var(--primary));
  display: none;
}
.bank-picker-item.active .bank-item-check {
  display: block;
}

/* ==============================================================================
   GOOGLE SOCIAL AUTH BUTTON & DIVIDER STYLING
   ============================================================================== */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0;
  color: var(--text-muted, var(--text-placeholder));
  font-size: 12.5px;
  font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color, var(--border-color));
}
.auth-divider span {
  padding: 0 10px;
}

.google-auth-wrap { margin-bottom: 16px; }
.google-auth-wrap .btn-google-auth { margin-bottom: 0; }

.btn-google-auth {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  color: var(--slate-800);
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.btn-google-auth:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.btn-google-auth:active {
  transform: translateY(1px);
}
.btn-google-auth svg.google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==============================================================================
   WITHDRAW HISTORY VIEW STYLING (FLUTTER PARITY)
   ============================================================================== */
.withdraw-summary-card {
  background: var(--white);
  border: 1px solid var(--border-color, var(--border-color));
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.withdraw-summary-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.withdraw-summary-label {
  font-size: 12px;
  color: var(--text-muted, var(--text-muted));
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.withdraw-summary-val {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.3px;
}
.withdraw-summary-val.success {
  color: var(--primary, var(--primary));
}
.withdraw-summary-val.pending {
  color: var(--warning-hover);
}
.withdraw-summary-sub {
  font-size: 11.5px;
  color: var(--text-muted, var(--text-muted));
  margin-top: 2px;
}
.withdraw-summary-divider {
  width: 1px;
  height: 48px;
  background: var(--border-color, var(--border-color));
  margin: 0 14px;
}

.ref-history-summary .withdraw-summary-col {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ref-history-summary .withdraw-summary-label {
  justify-content: center;
}

.ref-history-summary .withdraw-summary-val {
  text-align: center;
}

.ref-history-summary .withdraw-summary-divider {
  height: 38px;
}

.withdraw-filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.withdraw-filter-pill {
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--border-color, var(--border-color));
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  font-family: inherit;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.withdraw-filter-pill.active {
  background: var(--primary, var(--primary));
  border-color: var(--primary, var(--primary));
  color: var(--white);
  font-weight: 600;
  box-shadow: none;
}
.withdraw-filter-count {
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--slate-100);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.withdraw-filter-pill.active .withdraw-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-weight: 600;
}

.withdraw-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.withdraw-section-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark-title, var(--slate-900));
}
.withdraw-section-sub {
  font-size: 11.5px;
  color: var(--text-muted, var(--text-muted));
}

.withdraw-tx-card {
  background: var(--white);
  border: 1px solid var(--border-color, var(--border-color));
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.withdraw-tx-row1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.withdraw-tx-bank-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.withdraw-tx-bank-info {
  flex: 1;
  min-width: 0;
}
.withdraw-tx-bank-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-title, var(--slate-900));
}
.withdraw-tx-bank-num {
  font-size: 12px;
  color: var(--text-muted, var(--text-muted));
}

.withdraw-status-badge {
  padding: 4.5px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.withdraw-status-badge.success {
  background: var(--success-light);
  color: var(--success-hover);
}
.withdraw-status-badge.pending {
  background: var(--warning-light);
  color: var(--warning-hover);
}
.withdraw-status-badge.failed {
  background: var(--error-light);
  color: var(--error);
}
.withdraw-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.withdraw-status-badge.success .withdraw-status-dot { background: var(--success-hover); }
.withdraw-status-badge.pending .withdraw-status-dot { background: var(--warning-hover); }
.withdraw-status-badge.failed .withdraw-status-dot { background: var(--error); }

.withdraw-tx-divider {
  height: 1px;
  background: var(--border-color, var(--border-color));
  margin-bottom: 10px;
}

.withdraw-tx-row2 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.withdraw-tx-label {
  font-size: 11.5px;
  color: var(--text-muted, var(--text-muted));
}
.withdraw-tx-amount {
  font-size: 17px;
  font-weight: 900;
  color: var(--dark-title, var(--slate-900));
  letter-spacing: -0.3px;
}
.withdraw-tx-code {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
}
.withdraw-tx-time {
  font-size: 11.5px;
  color: var(--text-placeholder);
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
  margin-top: 2px;
}

.withdraw-empty-card {
  background: var(--white);
  border: 1px solid var(--border-color, var(--border-color));
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.withdraw-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.withdraw-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-title, var(--slate-900));
  margin-bottom: 4px;
}
.withdraw-empty-desc {
  font-size: 12.5px;
  color: var(--text-muted, var(--text-muted));
  max-width: 320px;
}

/* ==============================================================================
   SUBPAGE HEADER BAR (INSIDE 600PX APP-MAIN CONTAINER - MATCHING LOGIN SESSIONS)
   ============================================================================== */
.subpage-header-bar {
  width: 100%;
  max-width: var(--app-max-width, 600px);
  margin: 0 auto 12px auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border-bottom: 1px solid var(--border-color, var(--gray-200));
  position: relative;
  z-index: 50;
}

.subpage-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-color, var(--border-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-title, var(--slate-900));
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.subpage-back-btn:hover {
  background: var(--slate-100);
  border-color: var(--slate-300);
}

.subpage-back-btn:active {
  transform: translateY(1px);
}

.subpage-header-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark-title, var(--slate-900));
  letter-spacing: -0.3px;
  flex: 1;
}

/* ==============================================================================
   LIVE CASHBACK TICKER BANNER (WITH TOP MARGIN GAP)
   ============================================================================== */
.live-cashback-ticker {
  margin-top: 14px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--warning-light);
  border: 1px solid var(--warning-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--amber-700);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
}
.live-cashback-ticker .ticker-icon {
  font-size: 15px;
  flex-shrink: 0;
}
.live-cashback-ticker .ticker-text {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-cashback-ticker .ticker-text strong {
  color: var(--amber-800);
  font-weight: 700;
}

/* ==============================================================================
   PAGINATION WIDGET STYLING (10 ITEMS PER PAGE)
   ============================================================================== */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 24px;
  user-select: none;
  -webkit-user-select: none;
}

.pagination-btn {
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border-color, var(--border-color));
  color: var(--dark-title, var(--slate-900));
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  font-family: inherit;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--slate-100);
  border-color: var(--slate-300);
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-num-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border-color, var(--border-color));
  color: var(--slate-600);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.pagination-num:hover:not(.active) {
  background: var(--slate-100);
  border-color: var(--slate-300);
  color: var(--dark-title, var(--slate-900));
}

.pagination-num.active {
  background: var(--primary, var(--primary));
  border-color: var(--primary, var(--primary));
  color: var(--white);
  font-weight: 600;
}

/* ==========================================================================
   WITHDRAW NOTICE CARD (Thẻ Lưu Ý Khi Rút Tiền - Tương thích Flutter)
   ========================================================================== */
.withdraw-notice-card {
  background: #FFFDF5;
  border: 1px solid var(--warning-border);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.05);
  transition: all 0.2s ease;
}

.withdraw-notice-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.withdraw-notice-icon {
  width: 18px;
  height: 18px;
  color: var(--amber-700);
  flex-shrink: 0;
}

.withdraw-notice-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-700);
}

.withdraw-notice-content {
  padding-left: 26px;
}

.withdraw-notice-content p {
  margin: 0 0 5px 0;
  font-size: 13px;
  line-height: 1.55;
  color: #574D42;
}

.withdraw-notice-content p:last-child {
  margin-bottom: 0;
}

.withdraw-notice-content strong {
  font-weight: 700;
  color: #292524;
}



/* ==============================================================================
   MISSING & SHARED UTILITY CLASSES
   Các class dùng trong HTML nhưng chưa có định nghĩa chung
   ============================================================================== */

/* Subpage app-main padding (dùng cho các trang con không có padding-top riêng) */
.app-main--subpage {
  padding: 16px 16px 88px 16px !important;
}

/* Icon sizes — thay thế inline style="width:Xpx; height:Xpx" */
.icon-12 { width: 12px; height: 12px; flex-shrink: 0; }
.icon-13 { width: 13px; height: 13px; flex-shrink: 0; }
.icon-14 { width: 14px; height: 14px; flex-shrink: 0; }
.icon-15 { width: 15px; height: 15px; flex-shrink: 0; }
.icon-16 { width: 16px; height: 16px; flex-shrink: 0; }
.icon-17 { width: 17px; height: 17px; flex-shrink: 0; }
.icon-18 { width: 18px; height: 18px; flex-shrink: 0; }
.icon-20 { width: 20px; height: 20px; flex-shrink: 0; }
.icon-22 { width: 22px; height: 22px; flex-shrink: 0; }
.icon-24 { width: 24px; height: 24px; flex-shrink: 0; }
.icon-26 { width: 26px; height: 26px; flex-shrink: 0; }
.icon-30 { width: 30px; height: 30px; flex-shrink: 0; }

/* Icon color shortcuts */
.icon-primary { color: var(--primary); }
.icon-warning { color: var(--warning); }

/* Refresh / action button (subpage-header nút làm mới) */
.subpage-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.subpage-action-btn:hover {
  background: var(--gray-100);
}

/* Text utilities */
.text-muted-color  { color: var(--text-muted); }

/* Missing classes used in HTML ----------------------------------------- */

/* profile-display-name (edit_profile.html) */
.profile-display-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark-title);
  text-align: center;
}

/* required-star (edit_profile.html form labels) */
.required-star {
  color: var(--error);
  margin-left: 2px;
}

/* form-input-suffix (edit_profile.html) */
.form-input-suffix {
  position: absolute;
  right: 14px;
  color: var(--text-placeholder);
  pointer-events: none;
}

/* articles-list-container (articles.html) */
.articles-list-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* btn-text (text-only button) */
.btn-text {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.btn-text:hover { background: var(--primary-light); }

/* btn-secondary */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background: var(--white);
  color: var(--dark-title);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* meta-item (metadata chip hiển thị icon + text) */
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

/* wallet-flutter-container */
.wallet-flutter-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: var(--page-content-width);
  margin: 0 auto;
}

/* ==============================================================================
   REFERRAL HISTORY & COMMISSION LIST ITEM CLASSES
   Thay thế inline styles lặp lại trong referral_history.html
   ============================================================================== */

/* Referral friend list item card */
.ref-friend-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ref-friend-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Avatar circle with initial letter */
.ref-friend-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ref-friend-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-title);
}

.ref-friend-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ref-friend-right {
  text-align: right;
}

.ref-friend-amount {
  font-size: 14px;
  font-weight: 800;
  color: var(--green-800);
}

.ref-friend-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 3px;
}

.ref-friend-badge.activated {
  color: var(--green-800);
  background: var(--green-100);
}

.ref-friend-badge.new {
  color: var(--primary);
  background: var(--primary-light);
}

/* Commission transaction item */
.ref-commission-card {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ref-commission-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ref-commission-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-title);
}

.ref-commission-amount {
  font-size: 15px;
  font-weight: 900;
  color: var(--green-800);
}

.ref-commission-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* Tab bar inline style replacement (referral_history tab bar) */
.tab-bar-pill {
  display: flex;
  background: var(--slate-100);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 16px;
}

.tab-bar-pill .modal-tab-item {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  background: transparent;
  color: var(--text-muted);
  transition: background 0.12s ease, color 0.12s ease;
}

.tab-bar-pill .modal-tab-item.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ==============================================================================
   TẠO LINK HOÀN TIỀN & LỊCH SỬ TẠO LINK (CREATE LINK & HISTORY VIEW)
   ============================================================================== */
.create-link-user-card {
  background: radial-gradient(circle at top right, rgba(52, 160, 250, 0.08) 0%, #FFFFFF 65%);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.create-link-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.create-link-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: block;
}

.create-link-avatar-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #FFFFFF;
}

.create-link-user-info {
  flex: 1;
  min-width: 0;
}

.create-link-greeting {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--dark-title, #1E293B);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.create-link-greeting strong {
  color: var(--primary, #2563EB);
  font-weight: 800;
}

.create-link-userid-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--slate-100, #F1F5F9);
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-500, #64748B);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.create-link-userid-pill:hover {
  background: #E2E8F0;
  color: #1E293B;
}

.create-link-user-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.badge-vip-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid #FCD34D;
  color: #B45309;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.15);
}

.badge-sub-info {
  font-size: 11.5px;
  font-weight: 600;
  color: #94A3B8;
  margin-top: 3px;
}

.create-link-box-card {
  background: var(--white);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 16px;
  padding: 18px 20px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  margin-bottom: 14px;
}

.create-link-card-header {
  margin-bottom: 14px;
}

.create-link-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.create-link-platforms-logos {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
}

.platform-mini-logo {
  width: 21px;
  height: 21px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  display: block;
}

.create-link-card-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.create-link-card-icon.primary {
  background: #EFF6FF;
  color: var(--primary, #2563EB);
}

.create-link-card-icon.amber {
  background: #FEF3C7;
  color: #D97706;
}

.create-link-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark-title, #1E293B);
  letter-spacing: -0.3px;
}

.create-link-card-desc {
  font-size: 12.5px;
  color: var(--text-muted, #64748B);
  margin: 0;
}

.create-link-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.create-link-input-wrap {
  flex: 1;
  position: relative;
}

.create-link-input {
  width: 100%;
  height: 44px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13.5px;
  color: #1E293B;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.create-link-input:focus {
  border-color: var(--primary, #2563EB);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #FFFFFF;
}

.create-link-submit-btn {
  height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.1s, box-shadow 0.15s;
}

.create-link-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.38);
}

.create-link-submit-btn:active {
  transform: translateY(0);
}

.create-link-history-card {
  background: var(--white);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.create-link-item-list {
  display: flex;
  flex-direction: column;
}

.create-link-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #F1F5F9;
  position: relative;
  transition: background-color 0.15s;
}

.create-link-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#home-link-history-container .create-link-item:nth-child(n+5) {
  display: none !important;
}

#home-link-history-container .create-link-item:nth-child(4) {
  border-bottom: none;
  padding-bottom: 0;
}

.create-link-item:first-child {
  padding-top: 6px;
}

.create-link-item-img-wrap {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
  position: relative;
}

.create-link-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.create-link-item-content {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
}

.create-link-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.create-link-item-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #2563EB;
}

.create-link-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.45;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.create-link-item-comm {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}

.create-link-item-comm .comm-val {
  color: #EA580C;
  font-weight: 700;
}

.create-link-item-btn {
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--blue-gradient, linear-gradient(135deg, #34A0FA 0%, #5BBAFA 100%));
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.create-link-item-btn:hover {
  opacity: 0.92;
  box-shadow: none;
}

.create-link-item-btn:active {
  opacity: 0.85;
}

/* Modal Tạo Link Thành Công (Nền trắng đặc, bóng mờ cao cấp, căn giữa chuẩn mobile & desktop) */
.create-link-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.create-link-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.create-link-modal-card {
  background: #FFFFFF !important;
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: scale(0.9) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.create-link-modal-overlay.active .create-link-modal-card {
  transform: scale(1) translateY(0);
}


