/* ==========================================================================
   STYLE SHEET FOR SCAM WARNING & GDV VERIFICATION SYSTEM
   Version: 3.2.0 (Production Grade - Dynamic Theme, UI Enhancements & Performance)
   ========================================================================== */

/* ==========================================================================
   1. CẤU HÌNH BIẾN (DESIGN SYSTEM VARIABLES)
   ========================================================================== */
   :root {
    /* Brand Colors */
    --primary-red: #e50914;
    --primary-red-hover: #b80710;
    --primary-red-light: #fef2f2;
    --primary-red-border: #fee2e2;
    --primary-blue: #007bff;
    --primary-blue-hover: #0056b3;
    --primary-blue-light: #eef6ff;
    
    /* Neutral Colors (Light Theme Default) */
    --bg-main: #f4f6f9;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-focus: #3b82f6;
  
    /* State Colors */
    --success-color: #16a34a;
    --success-light: #f0fdf4;
    --warning-color: #f59e0b;
    --warning-light: #fffbe0;
    --warning-border: #ffe564;
    --danger-color: #dc2626;
    --info-color: #0284c7;
    --info-light: #f0f9ff;
  
    /* Elevation & Shadows */
    --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);
    --shadow-red: 0 4px 14px rgba(229, 9, 20, 0.25);
    --shadow-blue: 0 4px 14px rgba(0, 123, 255, 0.25);
  
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
  
    /* Transitions & Animation Duration */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography System */
    --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Safe Area Heights for Mobile Devices */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  }
  
  /* Dark Mode Support (Tự động theo OS & Hỗ trợ Override qua Class .dark-theme) */
  @media (prefers-color-scheme: dark) {
    :root {
      --bg-main: #0f172a;
      --card-bg: #1e293b;
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --text-light: #64748b;
      --border-color: #334155;
      --primary-red-light: rgba(229, 9, 20, 0.15);
      --primary-red-border: rgba(229, 9, 20, 0.3);
      --primary-blue-light: rgba(0, 123, 255, 0.15);
      --warning-light: rgba(245, 158, 11, 0.15);
      --warning-border: rgba(245, 158, 11, 0.3);
      --info-light: rgba(2, 132, 199, 0.15);
    }
  }
  
  body.dark-theme {
    --bg-main: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --border-color: #334155;
    --primary-red-light: rgba(229, 9, 20, 0.15);
    --primary-red-border: rgba(229, 9, 20, 0.3);
    --primary-blue-light: rgba(0, 123, 255, 0.15);
    --warning-light: rgba(245, 158, 11, 0.15);
    --warning-border: rgba(245, 158, 11, 0.3);
    --info-light: rgba(2, 132, 199, 0.15);
  }
  
  /* ==========================================================================
     2. RESET & BASE STYLES
     ========================================================================== */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
  }
  
  html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
  }
  
  body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.5;
    padding-bottom: calc(75px + var(--safe-area-bottom));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-synthesis: none;
  }
  
  /* Khóa cuộn trang khi mở Modal */
  body.no-scroll {
    overflow: hidden !important;
  }
  
  input, button, textarea, select {
    font: inherit;
    color: inherit;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Accessibility Focus States */
  :focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
  }
  
  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg-main);
  }
  ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-pill);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
  
  /* ==========================================================================
     3. UTILITY CLASSES (TIỆN ÍCH CHUNG & NÂNG CẤP)
     ========================================================================== */
  .text-red { color: var(--primary-red) !important; }
  .text-blue { color: var(--primary-blue) !important; }
  .text-dark { color: var(--text-main) !important; }
  .text-muted { color: var(--text-muted) !important; font-size: 0.85rem; }
  .text-success { color: var(--success-color) !important; }
  .text-warning { color: var(--warning-color) !important; }
  .text-center { text-align: center !important; }
  .text-right { text-align: right !important; }
  .text-left { text-align: left !important; }
  .font-bold { font-weight: 700 !important; }
  .font-extrabold { font-weight: 800 !important; }
  
  .margin-top-15 { margin-top: 15px !important; }
  .margin-bottom-15 { margin-bottom: 15px !important; }
  .gap-10 { gap: 10px !important; }
  .d-flex { display: flex !important; }
  .align-center { align-items: center !important; }
  .justify-between { justify-content: space-between !important; }
  
  .dot-red {
    color: var(--primary-red);
    font-weight: bold;
    margin-right: 4px;
  }
  
  .copy-icon {
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 6px;
    transition: var(--transition-fast);
    display: inline-block;
    user-select: none;
  }
  .copy-icon:hover {
    color: var(--primary-blue);
    transform: scale(1.15);
  }
  
  /* Badge & View Count */
  .view-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
  }

  /* Custom Status Badges (Nâng cấp mới) */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
  }
  .badge-danger { background: var(--primary-red-light); color: var(--primary-red); border: 1px solid var(--primary-red-border); }
  .badge-success { background: var(--success-light); color: var(--success-color); border: 1px solid rgba(22, 163, 74, 0.2); }
  .badge-warning { background: var(--warning-light); color: var(--warning-color); border: 1px solid var(--warning-border); }
  .badge-info { background: var(--info-light); color: var(--info-color); border: 1px solid rgba(2, 132, 199, 0.2); }

  /* Accessible Screen Reader Only Class */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  /* ==========================================================================
     4. TOP HEADER
     ========================================================================== */
  .top-header {
    background: var(--card-bg);
    padding: calc(12px + var(--safe-area-top)) 20px 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  
  .logo {
    font-weight: 800;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    transition: var(--transition-fast);
  }
  .logo:hover {
    opacity: 0.9;
  }
  .logo span { color: var(--primary-red); }
  
  .user-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .btn-user-auth {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: var(--transition-fast);
    outline: none;
  }
  .btn-user-auth:hover {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
    box-shadow: var(--shadow-red);
  }
  
  /* ==========================================================================
     5. MAIN CONTAINER & HERO SECTION
     ========================================================================== */
  .main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
    width: 100%;
    min-height: calc(100vh - 150px);
  }
  
  .page { 
    display: none; 
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  .page.active { 
    display: block; 
    opacity: 1;
  }
  
  .hero-center {
    text-align: center;
    margin-bottom: 25px;
  }
  
  .big-lock-icon {
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 8px;
    display: inline-block;
    animation: floatIcon 3s ease-in-out infinite;
    will-change: transform;
  }
  
  @keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
  
  .main-title {
    font-size: 1.65rem;
    color: var(--primary-red);
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.3;
  }
  
  .sub-red { 
    font-size: 1.1rem; 
    color: var(--primary-red); 
    font-weight: 600;
  }
  
  .hero-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* ==========================================================================
     6. SEARCH & BANNER NOTICES
     ========================================================================== */
  .search-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 4px 6px 4px 18px;
    margin: 0 auto 20px auto;
    max-width: 580px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
  }
  
  .search-box:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px var(--primary-blue-light);
  }
  
  .search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    background: transparent;
    color: var(--text-main);
  }
  
  .search-box input::placeholder {
    color: var(--text-light);
  }
  
  .search-box button {
    background: transparent;
    border: none;
    padding: 8px 14px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: var(--radius-pill);
    transition: var(--transition-fast);
  }
  
  .search-box button:hover {
    color: var(--primary-blue);
    background: var(--primary-blue-light);
  }
  
  .banner-notice {
    background: var(--primary-red-light);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 0.88rem;
    border: 1px solid var(--primary-red-border);
    color: var(--primary-red);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
  }
  
  /* ==========================================================================
     7. CARDS, STATS & GDV GRID
     ========================================================================== */
  .section-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
  }
  
  .section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .scam-item {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .scam-item:hover {
    background: var(--bg-main);
    padding-left: 12px;
  }
  
  .scam-item:last-child { border-bottom: none; }
  
  .scam-value {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
  }
  
  .scam-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .stats-box-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
  }
  
  .stats-box-header {
    background: var(--bg-main);
    padding: 14px 20px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
  }
  
  .stats-card-item {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .stats-card-item:last-child { border-bottom: none; }
  
  .stats-label { color: var(--text-muted); font-size: 0.95rem; font-weight: 600; }
  .stats-number { font-size: 1.9rem; font-weight: 800; color: var(--primary-blue); margin: 6px 0; }
  .stats-sub { font-size: 0.82rem; color: var(--text-light); }
  
  /* GDV Filter Tabs */
  .gdv-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
  }
  
  .gdv-filter-btn {
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
  }
  
  .gdv-filter-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
  }
  
  .gdv-filter-btn.active {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
    box-shadow: var(--shadow-red);
  }
  
  /* GDV Group Containers */
  .gdv-group-box {
    border: 2px solid var(--primary-red);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    margin-bottom: 28px;
    background: var(--card-bg);
    position: relative;
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.06);
  }
  
  .gdv-group-title {
    text-align: center;
    color: var(--primary-red);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
  }
  
  .gdv-group-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background-color: var(--primary-red);
    border-radius: var(--radius-pill);
  }
  
  /* GDV Cards Grid */
  .gdv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    content-visibility: auto; /* Tối ưu hiệu năng render */
  }
  
  .gdv-card {
    text-align: center;
    cursor: pointer;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    background: transparent;
  }
  
  .gdv-card:hover {
    transform: translateY(-3px);
    background: var(--bg-main);
  }
  
  .gdv-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    margin: 0 auto 8px auto;
    display: block;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
  }
  
  .gdv-card:hover .gdv-avatar {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
  }
  
  .gdv-name {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-main);
  }
  
  /* ==========================================================================
     8. FORMS & ADVANCED INPUTS (BIỂU MẪU NHẬP LIỆU)
     ========================================================================== */
  .form-container {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
  }
  
  .form-notice {
    font-size: 0.88rem;
    color: var(--warning-color);
    margin-bottom: 20px;
    line-height: 1.5;
    background: var(--warning-light);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--warning-border);
  }
  
  .form-group {
    margin-bottom: 18px;
    position: relative;
  }
  
  .form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
  }
  
  .form-group input, 
  .form-group textarea, 
  .form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    outline: none;
    background: var(--card-bg);
    color: var(--text-main);
    transition: var(--transition-fast);
  }
  
  .form-group input:focus, 
  .form-group textarea:focus, 
  .form-group select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-light);
  }

  /* Form Validation States (Nâng cấp) */
  .form-group.is-valid input,
  .form-group.is-valid textarea {
    border-color: var(--success-color);
  }
  .form-group.is-invalid input,
  .form-group.is-invalid textarea {
    border-color: var(--danger-color);
    animation: shakeWarning 0.3s ease-in-out;
  }
  .invalid-feedback {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
  }
  
  .radio-group {
    margin: 16px 0;
    font-size: 0.88rem;
    line-height: 1.8;
  }
  
  .btn-submit-red {
    width: 100%;
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 13px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  .btn-submit-red:hover {
    background: var(--primary-red-hover);
    transform: translateY(-1px);
  }

  .btn-submit-red:disabled {
    background: var(--text-light);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
  }
  
  .image-preview-flex {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
  }
  
  .thumb-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    position: relative;
  }

  /* Drag & Drop File Area (Nâng cấp) */
  .file-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    background: var(--bg-main);
    cursor: pointer;
    transition: var(--transition-fast);
  }
  .file-drop-zone:hover, .file-drop-zone.dragover {
    border-color: var(--primary-blue);
    background: var(--primary-blue-light);
  }
  
  /* ==========================================================================
     9. BÌNH LUẬN (COMMENT SECTION)
     ========================================================================== */
  .comment-section {
    margin-top: 24px;
  }
  
  .comment-form-box {
    background: var(--bg-main);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
  }
  
  .comment-form-box textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    resize: vertical;
    font-size: 0.9rem;
    background: var(--card-bg);
    color: var(--text-main);
    transition: var(--transition-fast);
  }
  
  .comment-form-box textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-light);
  }
  
  .comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
  .comment-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
  }
  
  .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }
  
  .comment-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
  }
  
  .comment-author-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
  }
  
  .comment-time {
    font-size: 0.78rem;
    color: var(--text-light);
  }
  
  .comment-body {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
    word-break: break-word;
  }
  
  /* ==========================================================================
     10. MODAL, TOAST & ANIMATIONS
     ========================================================================== */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 16px;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  
  .modal-overlay.active { 
    display: flex; 
    opacity: 1;
  }
  
  .modal-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 650px;
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  
  .modal-close-btn {
    position: absolute;
    top: 14px; 
    right: 16px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
  }
  
  .modal-close-btn:hover {
    background: var(--bg-main);
    color: var(--text-main);
  }
  
  /* Verified Badge Animation */
  @keyframes verifiedPulse {
    0% {
      transform: scale(1);
      filter: drop-shadow(0 0 2px rgba(0, 123, 255, 0.4));
    }
    50% {
      transform: scale(1.15);
      filter: drop-shadow(0 0 8px rgba(0, 123, 255, 0.7));
    }
    100% {
      transform: scale(1);
      filter: drop-shadow(0 0 2px rgba(0, 123, 255, 0.4));
    }
  }
  
  .verified-badge {
    display: inline-block;
    color: var(--primary-blue);
    animation: verifiedPulse 2.2s infinite ease-in-out;
    margin-left: 6px;
    vertical-align: middle;
    will-change: transform, filter;
  }

  /* Toast Notifications (Nâng cấp) */
  .toast-container {
    position: fixed;
    top: calc(20px + var(--safe-area-top));
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
  }

  .toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 380px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInToast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .toast.toast-success { border-left: 4px solid var(--success-color); }
  .toast.toast-error { border-left: 4px solid var(--danger-color); }
  .toast.toast-warning { border-left: 4px solid var(--warning-color); }

  @keyframes slideInToast {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }

  @keyframes shakeWarning {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
  }

  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
  }
  
  /* Skeleton Loading Placeholder (Nâng cấp) */
  .skeleton {
    background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-main) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: var(--radius-sm);
  }

  @keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }
  
  /* ==========================================================================
     11. GDV PROFILE COMPONENT
     ========================================================================== */
  .gdv-profile-container {
    width: 100%;
    max-width: 800px;
    margin: 10px auto 0 auto;
  }
  
  .gdv-profile-header {
    text-align: center;
    margin-bottom: 18px;
  }
  
  .gdv-avatar-wrapper .gdv-avatar-img,
  .gdv-profile-header img {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid var(--border-color);
    margin: 0 auto 12px auto !important;
    display: block;
    box-shadow: var(--shadow-md);
  }
  
  .gdv-profile-header .gdv-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .gdv-action-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    margin: 16px 0;
    width: 100%;
  }
  
  .btn-gdv-social {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition-fast);
  }
  
  .btn-gdv-social.btn-red {
    background: var(--primary-red);
    box-shadow: var(--shadow-red);
  }
  
  .btn-gdv-social.btn-red:hover {
    background: var(--primary-red-hover);
  }
  
  .gdv-check-warning {
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
  }
  
  .gdv-grid-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 18px;
  }
  
  .gdv-card-box {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-color);
  }
  
  .gdv-card-box.border-red {
    border: 1.5px solid var(--primary-red);
  }
  
  .box-title {
    font-size: 0.98rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
  }
  
  .box-content-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }
  
  .box-content-flex.align-center {
    align-items: center;
  }
  
  .info-text-list p {
    font-size: 0.85rem;
    margin-bottom: 8px;
    word-break: break-word;
    color: var(--text-main);
  }
  
  .qr-code-box .qr-img {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    object-fit: contain;
  }
  
  .shield-icon-box i {
    font-size: 2.4rem;
    color: var(--primary-blue);
  }
  
  .sub-title {
    font-size: 0.9rem;
    margin: 8px 0;
    color: var(--text-muted);
  }
  
  .bank-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
  }
  
  .bank-list li {
    font-size: 0.88rem;
    margin-bottom: 8px;
    color: var(--text-main);
  }
  
  /* ==========================================================================
     12. FULLSCREEN PROFILE MODE
     ========================================================================== */
  #profile-modal.active {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: var(--bg-main) !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
    padding: 0 !important;
  }
  
  #profile-modal .modal-card,
  #profile-modal #modal-content-body {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    max-height: none !important;
    border-radius: 0 !important;
    padding: calc(24px + var(--safe-area-top)) 16px calc(80px + var(--safe-area-bottom)) 16px !important;
    background: var(--bg-main) !important;
    box-shadow: none !important;
  }
  
  #profile-modal .modal-close-btn {
    position: fixed !important;
    top: calc(16px + var(--safe-area-top)) !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 0, 0, 0.12) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    color: var(--text-main) !important;
    z-index: 100000 !important;
    border: none !important;
    cursor: pointer !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: var(--transition-fast) !important;
  }
  
  #profile-modal .modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.25) !important;
  }
  
  /* ==========================================================================
     13. NAVIGATION & ADMIN PANEL
     ========================================================================== */
  .bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: calc(62px + var(--safe-area-bottom));
    padding-bottom: var(--safe-area-bottom);
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
  }
  
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.72rem;
    cursor: pointer;
    flex: 1;
    transition: var(--transition-fast);
  }
  
  .nav-item i { font-size: 1.2rem; margin-bottom: 2px; }
  .nav-item.active { color: var(--primary-red); font-weight: 700; }
  
  .nav-item.center-add {
    position: relative;
    top: -14px;
  }
  
  .add-circle {
    width: 48px;
    height: 48px;
    background: var(--primary-red);
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.35rem;
    box-shadow: var(--shadow-red);
    transition: var(--transition-fast);
  }
  
  .add-circle:hover {
    transform: scale(1.08);
    background: var(--primary-red-hover);
  }
  
  /* Admin Controls */
  .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
  }
  
  .admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
  }
  
  .tab-btn {
    flex: 1;
    padding: 10px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-fast);
  }
  
  .tab-btn.active {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
    box-shadow: var(--shadow-red);
  }
  
  .admin-tab-content { display: none; }
  .admin-tab-content.active { display: block; }
  
  .btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
  }
  
  .btn-outline { border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-main); }
  .btn-outline:hover { background: var(--bg-main); }
  .btn-success { background: var(--success-color); color: #fff; }
  .btn-success:hover { background: #15803d; }
  .btn-danger { background: var(--danger-color); color: #fff; }
  .btn-danger:hover { background: #b91c1c; }
  
  /* ==========================================================================
     14. FOOTER
     ========================================================================== */
  .site-footer {
    background: var(--bg-main);
    color: var(--text-main);
    padding: 40px 20px calc(85px + var(--safe-area-bottom)) 20px;
    margin-top: 40px;
    font-size: 0.88rem;
    border-top: 1px solid var(--border-color);
  }
  
  .footer-top {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
  }
  
  .footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-title {
    color: var(--text-main);
    font-size: 0.98rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .title-underline {
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 6px;
    display: inline-block;
  }
  
  .footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
  }
  
  .footer-links a:hover {
    color: var(--primary-red);
  }
  
  .social-icons {
    display: flex;
    gap: 12px;
  }
  
  .social-icons a {
    color: var(--text-main);
    background: var(--card-bg);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
  }
  
  .social-icons a:hover {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
    transform: translateY(-3px);
  }
  
  .footer-bottom {
    max-width: 1000px;
    margin: 30px auto 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .footer-logo {
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 800;
  }
  
  .footer-sub-links {
    font-size: 0.82rem;
  }
  
  .footer-sub-links a {
    color: var(--text-muted);
    margin: 0 6px;
    transition: var(--transition-fast);
  }
  
  .footer-sub-links a:hover {
    color: var(--primary-red);
  }
  
  .copyright {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
  }

  /* TOOLTIP SYSTEM (Nâng cấp) */
  [data-tooltip] {
    position: relative;
    cursor: pointer;
  }
  [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    z-index: 100;
  }
  [data-tooltip]:hover::after {
    opacity: 1;
  }
  
  /* ==========================================================================
     15. MEDIA QUERIES & PRINT STYLES (RESPONSIVE & PRINTING)
     ========================================================================== */
  @media (max-width: 768px) {
    .main-container {
      padding: 16px 12px;
    }
    .gdv-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }
  }
  
  @media (max-width: 580px) {
    .gdv-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
    .gdv-grid-info {
      grid-template-columns: 1fr;
    }
    .main-title {
      font-size: 1.4rem;
    }
  }
  
  @media (max-width: 400px) {
    .gdv-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Optimized Print Layout */
  @media print {
    body {
      background: #fff !important;
      color: #000 !important;
      padding-bottom: 0 !important;
    }
    .top-header, .bottom-nav, .site-footer, .btn-submit-red, .modal-close-btn {
      display: none !important;
    }
    .main-container, .modal-card {
      max-width: 100% !important;
      box-shadow: none !important;
      border: none !important;
    }
  }

/* ==========================================================================
   BONG BÓNG CHAT NỔI - DRAGGABLE FLOATING CHAT BUBBLE
   ========================================================================== */
#floating-chat-widget {
  position: fixed;
  right: 18px;
  bottom: calc(90px + var(--safe-area-bottom, 0px)); /* mặc định né thanh nav dưới */
  z-index: 9500;
  touch-action: none;
  user-select: none;
}

.chat-bubble-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: grab;
  background: linear-gradient(135deg, #FF334B 0%, #FF0033 100%);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(255, 0, 51, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.chat-bubble-btn:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.chat-bubble-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.5);
  animation: chatBubblePulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes chatBubblePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 0, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 51, 0); }
}

.chat-bubble-menu {
  position: absolute;
  right: 0;
  bottom: 70px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

#floating-chat-widget.open .chat-bubble-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--text-main, #1e293b);
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chat-menu-item:hover {
  transform: translateX(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.chat-menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.chat-icon-zalo      { background: #0068ff; }
.chat-icon-telegram  { background: #229ed9; }
.chat-icon-facebook  { background: #1877f2; }

@media (max-width: 480px) {
  #floating-chat-widget {
    right: 12px;
    bottom: calc(80px + var(--safe-area-bottom, 0px));
  }
  .chat-bubble-btn {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }
}
/* ============================================================================
   FINAL MOBILE FIX - GDV SOCIAL BUTTONS & FLOATING CHAT LABELS
   Giữ nút/liên kết nằm ngang trên điện thoại, không tự xuống dòng.
   ============================================================================ */

/* Nút Messenger + Facebook trong hồ sơ GDV: luôn nằm chung 1 hàng, chia đều chiều rộng */
.gdv-action-btns {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: normal !important;
  padding: 2px 2px 6px !important;
}

.gdv-action-btns .btn-gdv-social {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.gdv-action-btns .btn-gdv-social i {
  flex: 0 0 auto !important;
}

/* Menu của bong bóng chat: luôn giữ icon + chữ trên cùng một hàng */
.chat-bubble-menu {
  width: max-content !important;
  max-width: none !important;
  align-items: flex-end !important;
  white-space: nowrap !important;
}

.chat-menu-item {
  width: max-content !important;
  max-width: none !important;
  min-width: max-content !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.chat-menu-label {
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: max-content !important;
  max-width: none !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.chat-menu-icon {
  flex: 0 0 34px !important;
}

@media (max-width: 480px) {
  .gdv-action-btns {
    justify-content: center !important;
    gap: 8px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .gdv-action-btns .btn-gdv-social {
    padding: 9px 8px !important;
    font-size: 0.8rem !important;
    gap: 6px !important;
  }

  .chat-menu-item {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 360px) {
  .gdv-action-btns .btn-gdv-social {
    font-size: 0.72rem !important;
    padding: 8px 4px !important;
    gap: 4px !important;
  }
}