/* ========================================================================== 
   ALONET MESSENGER — NEXT-GEN APPLICATION STYLESHEET (V3.0)
   Landing Page (https://zalo.me/ style) + Phone Auth Portal + Protected Chat
   ========================================================================== */

:root {
    /* Palette màu chuẩn Zalo Blue kết hợp Modern Design */
    --brand-primary: #0068FF;
    --brand-primary-hover: #0055D4;
    --brand-primary-light: #EBF3FF;
    --brand-accent: #00B14F;
    --brand-danger: #EE1C25;
    
    /* Giao diện Dark Mode cho Chat App */
    --bg-body: #0B1120;
    --bg-nav-strip: #070D18;
    --bg-sidebar: #FFFFFF;
    --bg-chat-area: #080D1A;
    --bg-composer: #0F172A;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --bg-bubble-incoming: #FFFFFF;
    --bg-bubble-outgoing: #0068FF;
    
    /* Màu Chữ */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-outgoing: #FFFFFF;
    
    /* Đường viền & Đổ bóng */
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-floating: 0 10px 30px rgba(0, 0, 0, 0.4);
    
    /* Kích thước layout Chat */
    --nav-strip-width: 64px;
    --chats-sidebar-width: 330px;
    --info-drawer-width: 320px;
    --header-height: 64px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* Light Theme cho Chat App */
body.light-theme {
    --bg-body: #F0F2F5;
    --bg-nav-strip: #0068FF;
    --bg-sidebar: #FFFFFF;
    --bg-chat-area: #EBF0F7;
    --bg-composer: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --bg-bubble-incoming: #FFFFFF;
    --bg-bubble-outgoing: #0068FF;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-outgoing: #FFFFFF;
    
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-floating: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.alonet-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #FFFFFF;
    color: #1E293B;
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Scrollbar chung */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* ==========================================================================
   PART A: STYLES CHO TRANG CHỦ LANDING PAGE (PHONG CÁCH HTTPS://ZALO.ME/)
   ========================================================================== */

#viewLanding {
    background: #FFFFFF;
    color: #0F172A;
    overflow-y: auto;
    width: 100%;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 1. Landing Header */
.landing-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 74px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 50;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-icon-bubble {
    width: 38px;
    height: 38px;
    background: var(--brand-primary);
    color: #FFFFFF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.3);
}

.logo-icon-bubble svg {
    width: 22px;
    height: 22px;
}

.brand-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0F172A;
}

.landing-nav-links {
    display: flex;
    gap: 28px;
}

.landing-nav-links .nav-link {
    text-decoration: none;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.landing-nav-links .nav-link:hover {
    color: var(--brand-primary);
}

.landing-header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-ghost {
    background: transparent;
    border: 1px solid #CBD5E1;
    color: #334155;
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary-gradient {
    background: linear-gradient(135deg, #0068FF 0%, #0052CC 100%);
    border: none;
    color: #FFFFFF;
    padding: 9px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 104, 255, 0.4);
}

/* 2. Hero Section */
.landing-hero {
    background: linear-gradient(180deg, #F0F6FF 0%, #FFFFFF 100%);
    padding: 60px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E0EFFF;
    color: var(--brand-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 8px var(--brand-primary);
}

.hero-title {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -1px;
    color: #0F172A;
    margin-bottom: 18px;
}

.text-gradient {
    background: linear-gradient(135deg, #0068FF 0%, #00A3FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.hero-cta-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    border: none;
}

.hero-cta-btn.web-btn {
    background: linear-gradient(135deg, #0068FF 0%, #0055D4 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(0, 104, 255, 0.35);
}

.hero-cta-btn.web-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 104, 255, 0.45);
}

.hero-cta-btn.pc-btn {
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    color: #0F172A;
}

.hero-cta-btn.pc-btn:hover {
    border-color: var(--brand-primary);
    background: var(--brand-primary-light);
    transform: translateY(-2px);
}

.cta-btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-btn-icon svg {
    width: 26px;
    height: 26px;
}

.cta-btn-text small {
    display: block;
    font-size: 11px;
    opacity: 0.8;
}

.cta-btn-text strong {
    font-size: 14px;
    font-weight: 800;
}

.hero-store-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #64748B;
}

.store-badges {
    display: flex;
    gap: 10px;
}

.store-badge-item {
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.store-badge-item:hover {
    background: #E2E8F0;
}

/* 3. Hero Visual Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.laptop-frame {
    background: #1E293B;
    border-radius: 16px;
    padding: 10px 10px 0 10px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
    border: 1px solid #334155;
}

.laptop-screen {
    background: #0B1120;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    height: 280px;
    display: flex;
    flex-direction: column;
}

.laptop-top-bar {
    background: #070D18;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.laptop-top-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.screen-title {
    font-size: 11px;
    color: #94A3B8;
    margin-left: 8px;
}

.laptop-chat-preview {
    display: flex;
    flex: 1;
    height: 100%;
}

.preview-sidebar {
    width: 150px;
    background: #0F172A;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 8px;
}

.preview-item.active {
    background: rgba(0, 104, 255, 0.15);
    border: 1px solid rgba(0, 104, 255, 0.3);
}

.p-avatar {
    font-size: 16px;
}

.p-name {
    font-size: 11px;
    font-weight: 700;
    color: #F8FAFC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-msg {
    font-size: 9px;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-main {
    flex: 1;
    background: #080D1A;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-bubble {
    font-size: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    max-width: 80%;
}

.chat-bubble.incoming {
    background: #1E293B;
    color: #F8FAFC;
    align-self: flex-start;
}

.chat-bubble.quote-card {
    background: #111E38;
    border-left: 3px solid #0068FF;
    color: #E2E8F0;
    align-self: flex-start;
}

.chat-bubble.quote-card strong {
    display: block;
    color: #38BDF8;
    margin-bottom: 2px;
}

.chat-bubble.outgoing {
    background: #0068FF;
    color: #FFFFFF;
    align-self: flex-end;
}

.laptop-base {
    height: 12px;
    background: #334155;
    border-radius: 0 0 16px 16px;
    margin: 0 -10px;
}

/* Phone Floating Mockup */
.phone-frame-floating {
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 170px;
    height: 240px;
    background: #0B1120;
    border: 4px solid #1E293B;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    z-index: 10;
}

.phone-notch {
    width: 50px;
    height: 5px;
    background: #1E293B;
    border-radius: 4px;
    margin-bottom: 16px;
}

.phone-content {
    text-align: center;
}

.badge-call {
    font-size: 9px;
    background: rgba(0, 104, 255, 0.2);
    color: #38BDF8;
    padding: 3px 8px;
    border-radius: 10px;
}

.phone-avatar-pulse {
    margin-top: 20px;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0068FF;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    margin: 0 auto 10px auto;
    box-shadow: 0 0 0 6px rgba(0, 104, 255, 0.2);
}

.phone-avatar-pulse h4 {
    font-size: 11px;
    color: #FFFFFF;
    font-weight: 700;
}

.phone-avatar-pulse p {
    font-size: 9px;
    color: #94A3B8;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 15;
}

.floating-badge strong {
    display: block;
    font-size: 12px;
    color: #0F172A;
}

.floating-badge small {
    display: block;
    font-size: 10px;
    color: #64748B;
}

.badge-e2ee {
    top: 20px;
    left: -30px;
}

.badge-files {
    bottom: 20px;
    left: -15px;
}

/* 4. Section Features */
.landing-features {
    padding: 90px 0;
    background: #F8FAFC;
}

.section-heading {
    margin-bottom: 54px;
}

.text-center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: 34px;
    font-weight: 900;
    color: #0F172A;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 16px;
    color: #64748B;
    max-width: 650px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 32px 24px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 104, 255, 0.1);
    border-color: #BFDBFE;
}

.feature-card.highlighted {
    border-color: var(--brand-primary);
    box-shadow: 0 10px 30px rgba(0, 104, 255, 0.12);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.card-icon.blue { background: #EBF3FF; color: #0068FF; }
.card-icon.green { background: #E8F8F0; color: #00B14F; }
.card-icon.purple { background: #F3E8FF; color: #9333EA; }
.card-icon.orange { background: #FFF4E5; color: #F97316; }

.feature-card h3 {
    font-size: 19px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-checks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

/* 5. Section Ecosystem & Construction */
.landing-ecosystem {
    padding: 90px 0;
    background: #FFFFFF;
}

.eco-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.eco-card-preview {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.eco-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.eco-card-header .icon {
    font-size: 32px;
}

.eco-card-header h4 {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
}

.eco-card-header small {
    font-size: 12px;
    color: #64748B;
}

.eco-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qr-sample-box {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: #F8FAFC;
    border-radius: 14px;
}

.qr-sample-box img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
}

.eco-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.spec-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #E2E8F0;
}

.spec-line span {
    color: #64748B;
}

.text-success {
    color: #00B14F;
}

.eco-content .section-desc {
    font-size: 16px;
    color: #475569;
    margin-bottom: 28px;
    line-height: 1.6;
}

.eco-feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.eco-feature-item {
    display: flex;
    gap: 16px;
}

.eco-feature-item .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #EBF3FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.eco-feature-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
}

.eco-feature-item p {
    font-size: 13.5px;
    color: #64748B;
    line-height: 1.5;
}

/* 6. Section Download Platforms */
.landing-download {
    padding: 90px 0;
    background: #F1F5F9;
}

.download-platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.platform-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 36px 24px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.platform-card.primary-highlight {
    border-color: var(--brand-primary);
    box-shadow: 0 10px 30px rgba(0, 104, 255, 0.15);
}

.plat-icon {
    font-size: 44px;
    margin-bottom: 16px;
}

.platform-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 8px;
}

.platform-card p {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 24px;
    min-height: 42px;
}

.btn-plat-cta {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: var(--brand-primary);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-plat-cta:hover {
    background: var(--brand-primary-hover);
}

.btn-plat-cta.secondary {
    background: #F1F5F9;
    color: #0F172A;
    border: 1px solid #CBD5E1;
}

.btn-plat-cta.secondary:hover {
    background: #E2E8F0;
}

.mobile-cta-group {
    display: flex;
    gap: 10px;
}

.btn-mini {
    flex: 1;
    padding: 11px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.btn-mini:hover {
    background: #E2E8F0;
}

/* 7. Landing Footer */
.landing-footer {
    background: #0B1120;
    color: #94A3B8;
    padding: 70px 0 30px 0;
    font-size: 14px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .brand-name {
    color: #FFFFFF;
}

.footer-tagline {
    margin: 14px 0 20px 0;
    font-size: 14px;
    color: #64748B;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #CBD5E1;
}

.footer-contact-info strong {
    color: #38BDF8;
}

.footer-links-col h4 {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-col a {
    text-decoration: none;
    color: #94A3B8;
    transition: color 0.2s ease;
}

.footer-links-col a:hover {
    color: #38BDF8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #64748B;
}


/* ==========================================================================
   PART B: STYLES CỔNG ĐĂNG NHẬP / ĐĂNG KÝ SỐ ĐIỆN THOẠI (CHAT.ZALO.ME STYLE)
   ========================================================================== */

#viewAuth {
    background: linear-gradient(135deg, #E6F0FA 0%, #D8E9F9 50%, #F0F6FF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page-container {
    width: 100%;
    max-width: 460px;
    padding: 30px 20px;
    margin: 0 auto;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.btn-text-back {
    background: transparent;
    border: none;
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-text-back:hover {
    opacity: 0.8;
}

.auth-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 104, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.auth-card-top {
    text-align: center;
    padding: 28px 24px 18px 24px;
}

.auth-title {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 13.5px;
    color: #64748B;
}

/* Tabs: VỚI MÃ QR & VỚI SỐ ĐIỆN THOẠI */
.auth-tabs-row {
    display: flex;
    border-bottom: 1.5px solid #F1F5F9;
}

.auth-tab {
    flex: 1;
    padding: 14px 10px;
    background: transparent;
    border: none;
    font-size: 13.5px;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.auth-tab:hover {
    color: var(--brand-primary);
}

.auth-tab.active {
    color: var(--brand-primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 3px 3px 0 0;
}

.auth-tab-content {
    padding: 28px 24px;
}

/* Tab QR */
.qr-code-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-frame {
    width: 210px;
    height: 210px;
    padding: 8px;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

.qr-code-svg {
    width: 100%;
    height: 100%;
}

.qr-guide-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 18px;
}

.qr-action-row {
    width: 100%;
}

.btn-qr-demo, #btnQuickDemoLogin {
    display: none !important;
}

/* Tab Phone */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phone-group {
    flex-direction: row;
    gap: 8px;
}

.country-code-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    font-size: 14px;
    color: #0F172A;
    background: #FFFFFF;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 104, 255, 0.15);
}

.password-group {
    position: relative;
}

.btn-toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    opacity: 0.6;
}

.btn-toggle-pwd:hover {
    opacity: 1;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
}

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

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

.btn-auth-submit {
    width: 100%;
    padding: 13px;
    background: var(--brand-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.3);
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-auth-submit:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 4px 0;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E2E8F0;
}

.auth-divider span {
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: #94A3B8;
}

.btn-auth-otp-switch {
    width: 100%;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-auth-otp-switch:hover {
    background: var(--brand-primary-light);
}

.auth-card-footer {
    background: #F8FAFC;
    border-top: 1px solid #F1F5F9;
    padding: 16px 24px;
    text-align: center;
    font-size: 13.5px;
    color: #475569;
}

.btn-link-register {
    background: transparent;
    border: none;
    color: var(--brand-primary);
    font-weight: 800;
    cursor: pointer;
    margin-left: 6px;
    font-size: 13.5px;
}

.btn-link-register:hover {
    text-decoration: underline;
}

.auth-bottom-notes {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #64748B;
}

.auth-bottom-notes a {
    color: var(--brand-primary);
    text-decoration: none;
}

/* Modal Đăng Ký Tài Khoản Bằng SĐT */
.alonet-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.register-card {
    background: #FFFFFF;
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalScaleIn 0.25s ease-out;
}

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

.register-header {
    padding: 20px 24px;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.register-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
}

.register-header p {
    font-size: 12px;
    color: #64748B;
}

.btn-close-modal {
    background: #F1F5F9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    color: #64748B;
    cursor: pointer;
}

.register-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
}

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

.btn-send-otp {
    padding: 8px 14px;
    background: #EBF3FF;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.btn-send-otp:hover {
    background: #DBEAFE;
}

.otp-countdown {
    font-size: 12px;
    color: #64748B;
    font-weight: 600;
}

.otp-simulation-banner {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.otp-simulation-banner .icon {
    font-size: 20px;
}

.otp-simulation-banner strong {
    display: block;
    font-size: 12px;
    color: #166534;
}

.otp-simulation-banner p {
    font-size: 12px;
    color: #15803D;
    margin-top: 2px;
}

.otp-highlight {
    background: #DCFCE7;
    padding: 2px 6px;
    border-radius: 4px;
    color: #14532D;
    font-family: monospace;
    font-size: 13px;
}

.otp-input {
    letter-spacing: 6px;
    font-size: 18px;
    font-weight: 800;
}

.text-center {
    text-align: center;
}


/* ==========================================================================
   PART C: STYLES KHÔNG GIAN CHAT WEB APP (ZALO WEB STYLE CHUYÊN NGHIỆP)
   ========================================================================== */

.chat-app-view {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    user-select: none;
    background-color: var(--bg-body);
    color: var(--text-primary);
}

/* 1. Navigation Strip (64px) */
.alonet-nav-strip {
    width: var(--nav-strip-width);
    background-color: var(--bg-nav-strip);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-right: 1px solid var(--border-color);
    z-index: 30;
    flex-shrink: 0;
}

.nav-strip-top, .nav-strip-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.user-my-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0068FF 0%, #00B14F 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 104, 255, 0.4);
    margin-bottom: 8px;
}

.user-status-dot.online {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    background-color: var(--brand-accent);
    border: 2px solid var(--bg-nav-strip);
    border-radius: 50%;
}

.nav-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    font-size: 18px;
}

.nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.nav-icon-btn.active {
    background: rgba(0, 104, 255, 0.2);
    color: var(--brand-primary);
}

.nav-icon-btn.logout-btn:hover {
    background: rgba(238, 28, 37, 0.15);
    color: var(--brand-danger);
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--brand-danger);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* 2. Chats Sidebar (330px) */
.alonet-chats-sidebar {
    width: var(--chats-sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
    z-index: 20;
}

.chats-sidebar-header {
    padding: 14px 16px 8px 16px;
    border-bottom: 1px solid var(--border-color);
}

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

.header-title-row h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: 8px;
}

.icon-circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.chats-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    margin-bottom: 12px;
}

.search-icon {
    font-size: 13px;
    margin-right: 8px;
    opacity: 0.6;
}

.chats-search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    width: 100%;
}

.clear-search-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
}

.chat-filter-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.filter-tab.active {
    background: rgba(0, 104, 255, 0.15);
    color: var(--brand-primary);
    font-weight: 700;
}

.conversations-scroll-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.conversation-item:hover {
    background: var(--bg-card-hover);
}

.conversation-item.active {
    background: rgba(0, 104, 255, 0.18);
    border-left: 3px solid var(--brand-primary);
}

.conv-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.conv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.conv-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background-color: var(--brand-accent);
    border: 2px solid var(--bg-sidebar);
    border-radius: 50%;
}

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

.conv-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.conv-name-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
}

.conv-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-badge {
    color: #38BDF8;
    font-size: 11px;
}

.conv-time {
    font-size: 11px;
    color: var(--text-muted);
}

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

.conv-last-msg {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.conv-unread-pill {
    background-color: var(--brand-danger);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Sidebar Footer */
.chats-sidebar-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.15);
}

.swarm-status-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-accent);
    box-shadow: 0 0 6px var(--brand-accent);
}

.swarm-node-text {
    color: var(--text-secondary);
    font-weight: 600;
}

.pob-shared-text {
    color: var(--brand-primary);
    font-weight: 700;
}

/* 3. Main Chat Viewport */
.alonet-chat-viewport {
    flex: 1;
    background-color: var(--bg-chat-area);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    position: relative;
}

.chat-viewport-header {
    height: var(--header-height);
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mobile-back-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-primary);
    cursor: pointer;
}

.chat-target-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0068FF 0%, #00B14F 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    position: relative;
}

.chat-target-meta {
    min-width: 0;
}

.target-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.target-name-row h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.verified-badge {
    background: #0068FF;
    color: #FFFFFF;
    font-size: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.target-sub-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.e2ee-tag {
    color: var(--brand-accent);
    font-weight: 600;
}

.status-text {
    color: var(--text-muted);
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: rgba(0, 104, 255, 0.15);
    border-color: var(--brand-primary);
}

.header-btn.icon-only {
    padding: 7px 10px;
}

/* Chat Message Stream */
.chat-message-stream {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.e2ee-encryption-banner {
    background: rgba(0, 177, 79, 0.08);
    border: 1px dashed rgba(0, 177, 79, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 auto 10px auto;
    max-width: 600px;
}

.banner-icon {
    font-size: 20px;
}

.banner-body strong {
    font-size: 12.5px;
    color: var(--brand-accent);
}

.banner-body p {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.4;
}

.message-bubble-row {
    display: flex;
    flex-direction: column;
    max-width: 68%;
}

.message-bubble-row.incoming {
    align-self: flex-start;
}

.message-bubble-row.outgoing {
    align-self: flex-end;
}

.msg-sender-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 3px;
    padding-left: 4px;
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.incoming .msg-bubble {
    background-color: var(--bg-bubble-incoming);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 3px;
}

.outgoing .msg-bubble {
    background-color: var(--bg-bubble-outgoing);
    color: var(--text-outgoing);
    border-bottom-right-radius: 3px;
}

.msg-meta-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.incoming .msg-meta-row {
    color: var(--text-muted);
}

/* Card Đặc Biệt Trong Tin Nhắn (Quote Card & VietQR) */
.special-card-body {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    margin-top: 6px;
    border-left: 3px solid var(--brand-primary);
}

.quote-header-title {
    font-size: 13px;
    font-weight: 800;
    color: #38BDF8;
    margin-bottom: 6px;
}

.quote-text-detail {
    font-size: 12px;
    white-space: pre-line;
    color: var(--text-secondary);
}

/* Composer Section */
.chat-composer-section {
    background-color: var(--bg-composer);
    border-top: 1px solid var(--border-color);
    padding: 10px 16px 14px 16px;
}

.composer-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.toolbar-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.composer-input-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.input-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 14px;
}

.input-container textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    resize: none;
    max-height: 120px;
    font-family: inherit;
    line-height: 1.4;
}

.voice-record-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 16px;
}

.send-message-btn {
    background: var(--brand-primary);
    border: none;
    color: #FFFFFF;
    padding: 9px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.35);
}

/* 4. Info Drawer (320px) */
.alonet-info-drawer {
    width: var(--info-drawer-width);
    background-color: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
    overflow-y: auto;
}

.info-drawer-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-drawer-header h4 {
    font-size: 15px;
    font-weight: 800;
}

.close-drawer-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
}

.info-drawer-content {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.target-profile-card {
    text-align: center;
}

.profile-big-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0068FF 0%, #00B14F 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 12px auto;
}

.target-profile-card h3 {
    font-size: 16px;
    font-weight: 800;
}

.profile-meta-tag {
    display: inline-block;
    font-size: 11px;
    color: var(--brand-accent);
    margin: 4px 0 8px 0;
    font-weight: 600;
}

.profile-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.drawer-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.drawer-action-item {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 10px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    cursor: pointer;
}

.drawer-action-item span:last-child {
    font-size: 10px;
    color: var(--text-secondary);
}

.drawer-section {
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 10px;
}

.media-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.media-thumb {
    aspect-ratio: 1;
    background: #1E293B;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.files-preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px;
    border-radius: 8px;
}

.file-info {
    min-width: 0;
}

.file-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.file-size {
    font-size: 10px;
    color: var(--text-muted);
}

.safety-fingerprint code {
    display: block;
    background: #000000;
    padding: 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 11px;
    color: #38BDF8;
    text-align: center;
    margin-bottom: 6px;
}

.safety-fingerprint small {
    font-size: 10px;
    color: var(--text-muted);
}

/* Modals Call & Mini App */
.alonet-call-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.call-modal-card {
    position: relative;
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.call-security-badge {
    background: rgba(0, 177, 79, 0.15);
    color: var(--brand-accent);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.call-avatar-pulse {
    margin: 30px 0 16px 0;
}

.call-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto;
    box-shadow: 0 0 0 8px rgba(0, 104, 255, 0.2);
}

.call-peer-name {
    font-size: 17px;
    font-weight: 800;
}

.call-status {
    font-size: 12px;
    color: var(--text-secondary);
}

.call-footer-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.call-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 18px;
    color: #FFFFFF;
    cursor: pointer;
}

.call-action-btn.end-call {
    background: var(--brand-danger);
    transform: rotate(135deg);
}

/* Mini App Modal */
.alonet-miniapp-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.miniapp-card {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.miniapp-header {
    padding: 12px 16px;
    background: #1E293B;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.miniapp-header .app-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.miniapp-header .app-icon {
    font-size: 24px;
}

.miniapp-header h4 {
    font-size: 14px;
    font-weight: 800;
}

.miniapp-header small {
    font-size: 10px;
    color: var(--text-muted);
}

.app-controls {
    display: flex;
    gap: 6px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
}

.miniapp-frame-container {
    flex: 1;
    background: #FFFFFF;
}

.miniapp-frame-container iframe {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   RESPONSIVE DESIGN (DESKTOP, TABLET, MOBILE)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle {
        margin: 0 auto 32px auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-store-row {
        justify-content: center;
    }
    .hero-visual {
        margin-top: 40px;
    }
    .eco-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .landing-nav-links {
        display: none;
    }
    .alonet-info-drawer {
        display: none;
    }
}

@media (max-width: 680px) {
    .hero-title {
        font-size: 32px;
    }
    .phone-frame-floating {
        display: none;
    }
    .floating-badge {
        display: none;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .alonet-chats-sidebar {
        width: calc(100vw - var(--nav-strip-width));
    }
    
    .alonet-chat-viewport {
        display: none;
        position: fixed;
        left: var(--nav-strip-width);
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 25;
    }
    
    .chat-app-view.mobile-active-chat .alonet-chats-sidebar {
        display: none;
    }
    .chat-app-view.mobile-active-chat .alonet-chat-viewport {
        display: flex;
    }
    
    .mobile-back-btn {
        display: inline-block;
    }
}

/* ==========================================================================
   STYLES CHO MODAL TẢI ALONET CHO WINDOWS (PC)
   ========================================================================== */
.win-download-card {
    max-width: 520px;
}

.win-feature-alert {
    background: #EBF3FF;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.win-feature-alert .icon {
    font-size: 24px;
}

.win-feature-alert strong {
    font-size: 13px;
    color: #0068FF;
    display: block;
}

.win-feature-alert p {
    font-size: 12px;
    color: #1E40AF;
    margin-top: 2px;
}

.win-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.win-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
    transition: all 0.2s ease;
}

.win-option-item:hover {
    border-color: #93C5FD;
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.08);
}

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

.opt-icon {
    font-size: 22px;
}

.opt-left strong {
    display: block;
    font-size: 13px;
    color: #0F172A;
}

.opt-left small {
    display: block;
    font-size: 11px;
    color: #64748B;
}

.btn-opt-action {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #0F172A;
    transition: all 0.15s ease;
}

.btn-opt-action:hover {
    border-color: #0068FF;
    color: #0068FF;
    background: #EBF3FF;
}

.btn-opt-action.primary {
    background: #0068FF;
    border-color: #0068FF;
    color: #FFFFFF;
}

.btn-opt-action.primary:hover {
    background: #0055D4;
}

.badge-status-ready {
    background: #DCFCE7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

/* ==========================================================================
   CLOUDFLARE R2 PERMANENT VAULT & MATRIX SPECIAL BUBBLE STYLES
   ========================================================================== */
.r2-permanent-vault-section {
    background: #0B1120;
    border: 1px solid #1E293B;
    border-radius: 12px;
    padding: 14px;
    margin-top: 14px;
}

.light-theme .r2-permanent-vault-section {
    background: #F0FDF4;
    border-color: #BBF7D0;
}

.r2-badge-pill {
    background: #10B981 !important;
    color: #FFFFFF !important;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.r2-subtext {
    font-size: 11px;
    color: #94A3B8;
    line-height: 1.45;
    margin: 6px 0 12px 0;
}

.light-theme .r2-subtext {
    color: #166534;
}

.r2-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.r2-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.light-theme .r2-file-card {
    background: #FFFFFF;
    border-color: #DCFCE7;
}

.r2-file-card:hover {
    border-color: #10B981;
    transform: translateX(2px);
}

.r2-file-meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.r2-file-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.r2-file-texts {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.r2-file-title {
    font-size: 12px;
    font-weight: 600;
    color: #F1F5F9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.light-theme .r2-file-title {
    color: #0F172A;
}

.r2-file-size {
    font-size: 10.5px;
    color: #10B981;
    font-weight: 600;
}

.r2-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    transition: all 0.15s ease;
}

.r2-download-btn:hover {
    background: #10B981;
    color: #FFFFFF;
}

/* Thẻ tin nhắn đính kèm Cloudflare R2 Vĩnh Viễn */
.permanent-file-attachment-bubble {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 10px;
    margin-top: 4px;
}

.pfa-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pfa-file-name {
    font-weight: 700;
    font-size: 13px;
    color: #0F172A;
}

.light-theme .pfa-file-name {
    color: #0F172A;
}

.in-chat-mode:not(.light-theme) .pfa-file-name {
    color: #F8FAFC;
}

.pfa-badge-forever {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #059669;
}

.in-chat-mode:not(.light-theme) .pfa-badge-forever {
    color: #34D399;
}

.pfa-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px dashed rgba(16, 185, 129, 0.2);
    font-size: 11.5px;
    color: #64748B;
}

.pfa-download-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0068FF;
    font-weight: 700;
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(0, 104, 255, 0.1);
    border-radius: 6px;
    transition: all 0.15s ease;
}

.pfa-download-link:hover {
    background: #0068FF;
    color: #FFFFFF;
}

/* ==========================================================================
   ALONET PREVIEWER MODAL (CAD / PDF / EXCEL VIEWER)
   ========================================================================== */
.alonet-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
}

.preview-dialog {
    position: relative;
    width: 92vw;
    max-width: 1100px;
    height: 88vh;
    background: #0F172A;
    border: 1px solid #334155;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #1E293B;
    border-bottom: 1px solid #334155;
}

.preview-file-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-icon {
    font-size: 26px;
}

.preview-title {
    font-size: 15px;
    font-weight: 700;
    color: #F8FAFC;
    margin: 0;
}

.preview-badge {
    font-size: 11px;
    color: #10B981;
    font-weight: 600;
}

.preview-actions-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-btn {
    padding: 7px 12px;
    background: #334155;
    border: 1px solid #475569;
    color: #F1F5F9;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.preview-btn:hover {
    background: #475569;
}

.preview-btn.primary {
    background: #10B981;
    border-color: #10B981;
    color: #FFFFFF;
}

.preview-btn.primary:hover {
    background: #059669;
}

.preview-btn.close {
    background: #EF4444;
    border-color: #EF4444;
    color: #FFFFFF;
    font-weight: 800;
}

.preview-body {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0B1120;
    padding: 20px;
}

.preview-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.preview-zoom-target {
    transition: transform 0.15s ease;
    transform-origin: center center;
}

.preview-full-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* CAD Mode */
.cad-viewer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cad-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 700;
}

.cad-layer-toggles {
    display: flex;
    gap: 14px;
}

.cad-layer-toggles label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #E2E8F0;
    cursor: pointer;
}

.cad-canvas-wrap {
    border: 2px solid #334155;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

/* PDF Mode */
.pdf-page-sheet {
    background: #FFFFFF;
    color: #0F172A;
    width: 700px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13.5px;
    line-height: 1.6;
}

.pdf-mock-header {
    text-align: center;
}

.pdf-table-mock {
    margin: 16px 0;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    overflow: hidden;
}

.ptm-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1.5fr;
    padding: 8px 12px;
    border-bottom: 1px solid #E2E8F0;
    font-size: 12.5px;
}

.ptm-row.head {
    background: #F1F5F9;
    font-weight: 700;
}

.pdf-signature-row {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    text-align: center;
}

.sig-box {
    width: 45%;
    padding: 12px;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    background: #F8FAFC;
}

/* Excel Mode */
.excel-viewer-container {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 24px;
    width: 900px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.excel-sheet-header {
    margin-bottom: 14px;
    font-weight: 800;
    color: #1E293B;
    font-size: 13px;
}

.excel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    color: #0F172A;
}

.excel-table th, .excel-table td {
    border: 1px solid #CBD5E1;
    padding: 9px 12px;
    text-align: left;
}

.excel-table th {
    background: #059669;
    color: #FFFFFF;
    font-weight: 700;
}

.excel-table tr.total-row {
    background: #F0FDF4;
}

/* ==========================================================================
   ALONET SMART CONTRACT & DYNAMIC VIETQR MODAL
   ========================================================================== */
.alonet-contract-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contract-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
}

.contract-modal-dialog {
    position: relative;
    width: 90vw;
    max-width: 680px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contract-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #0F172A;
    color: #FFFFFF;
}

.cmh-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cmh-icon {
    font-size: 24px;
}

.cmh-title-wrap h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.cmh-title-wrap small {
    color: #94A3B8;
    font-size: 11px;
}

.contract-btn-close {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 20px;
    cursor: pointer;
}

.contract-btn-close:hover {
    color: #FFFFFF;
}

.contract-modal-body {
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
    color: #0F172A;
}

.step-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #0068FF;
    text-transform: uppercase;
    margin: 0 0 16px 0;
}

.contract-form-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.contract-form-grid .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contract-form-grid label {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
}

.contract-input {
    padding: 10px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 13.5px;
    background: #F8FAFC;
    color: #0F172A;
}

.contract-input:focus {
    outline: none;
    border-color: #0068FF;
    background: #FFFFFF;
}

.btn-contract-primary {
    width: 100%;
    padding: 12px;
    background: #0068FF;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-contract-primary:hover {
    background: #0055D4;
}

.quote-preview-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.qpc-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748B;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.qpc-table {
    width: 100%;
    font-size: 12.5px;
    border-collapse: collapse;
    margin-top: 10px;
}

.qpc-table th, .qpc-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #E2E8F0;
}

.qpc-total-row td {
    font-weight: 800;
    color: #10B981;
    font-size: 14px;
    border-bottom: none;
}

.otp-sign-box {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 10px;
    padding: 16px;
}

.osb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 800;
    color: #166534;
    margin-bottom: 12px;
}

.btn-req-otp {
    padding: 6px 12px;
    background: #10B981;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.btn-req-otp:hover {
    background: #059669;
}

.osb-input-row {
    display: flex;
    gap: 10px;
}

.contract-input.otp {
    width: 150px;
    text-align: center;
    font-size: 16px;
    letter-spacing: 4px;
    font-weight: 800;
}

.btn-sign-now {
    flex: 1;
    background: #166534;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    font-size: 13px;
}

.btn-sign-now:hover {
    background: #14532D;
}

.otp-toast-banner {
    margin-top: 10px;
    padding: 8px 12px;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 6px;
    font-size: 12px;
    color: #92400E;
}

/* Thẻ tin nhắn Hợp đồng đã ký */
.contract-signed-card {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    border-radius: 12px;
    padding: 14px;
    margin-top: 6px;
}

.csc-header {
    font-weight: 800;
    color: #15803D;
    font-size: 13.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.csc-detail {
    font-size: 12.5px;
    color: #166534;
    white-space: pre-line;
    line-height: 1.5;
}

/* ==========================================================================
   ALONET MINI APP STORE MODAL & ECOSYSTEM STYLES
   ========================================================================== */
.alonet-appstore-modal, .alonet-migration-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.appstore-backdrop, .migration-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.appstore-dialog, .migration-dialog {
    position: relative;
    width: 90vw;
    max-width: 860px;
    height: 85vh;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.appstore-header, .migration-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #0F172A;
    color: #FFFFFF;
}

.appstore-title-wrap, .migration-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.appstore-logo-icon, .migration-icon {
    font-size: 28px;
}

.appstore-title-wrap h3, .migration-title-wrap h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
}

.appstore-title-wrap small, .migration-title-wrap small {
    color: #94A3B8;
    font-size: 11.5px;
}

.appstore-btn-close, .migration-btn-close {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 20px;
    cursor: pointer;
}

.appstore-btn-close:hover, .migration-btn-close:hover {
    color: #FFFFFF;
}

.appstore-search-bar {
    padding: 12px 24px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.appstore-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    font-size: 13.5px;
    background: #FFFFFF;
}

.appstore-search-input:focus {
    outline: none;
    border-color: #0068FF;
}

.appstore-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    background: #F1F5F9;
}

.appstore-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.appstore-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 104, 255, 0.08);
    border-color: #93C5FD;
}

.app-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.app-card-icon {
    font-size: 36px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-card-meta {
    flex: 1;
}

.app-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-card-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
}

.app-card-badge {
    background: #DCFCE7;
    color: #166534;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
}

.app-card-author {
    display: block;
    font-size: 11.5px;
    color: #64748B;
    margin-top: 2px;
}

.app-card-rating {
    display: block;
    font-size: 11px;
    color: #D97706;
    font-weight: 700;
    margin-top: 4px;
}

.app-card-desc {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.app-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.app-tag-pill {
    background: #EFF6FF;
    color: #1E40AF;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-launch-app {
    width: 100%;
    padding: 10px;
    background: #0068FF;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-launch-app:hover {
    background: #0055D4;
}

/* ==========================================================================
   ALONET ZALO DATA MIGRATION WIZARD STYLES
   ========================================================================== */
.migration-dialog {
    max-width: 640px;
    height: auto;
    max-height: 85vh;
}

.migration-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #0F172A;
}

.migration-card-step {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 18px;
}

.migration-card-step h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 800;
    color: #0068FF;
}

.mig-desc {
    font-size: 12.5px;
    color: #64748B;
    margin: 0 0 12px 0;
}

.migration-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    margin-bottom: 12px;
    background: #FFFFFF;
}

.btn-mig-primary {
    width: 100%;
    padding: 11px;
    background: #10B981;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13.5px;
    cursor: pointer;
}

.btn-mig-primary:hover {
    background: #059669;
}

.vcf-upload-box {
    border: 2px dashed #93C5FD;
    background: #EFF6FF;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    color: #1E40AF;
    font-weight: 600;
    transition: background 0.15s ease;
}

.vcf-upload-box:hover {
    background: #DBEAFE;
}

.migration-status-box {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    border-radius: 10px;
    padding: 16px;
}

.msb-header {
    margin-bottom: 6px;
}

.msb-badge {
    background: #166534;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

/* ==========================================================================
   ALONET SECURITY VERIFICATION & UNICORN DASHBOARD STYLES
   ========================================================================== */
.alonet-security-modal, .alonet-dashboard-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-backdrop, .dashboard-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.security-dialog, .dashboard-dialog {
    position: relative;
    width: 90vw;
    max-width: 650px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-dialog {
    max-width: 800px;
}

.security-header, .dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #0F172A;
    color: #FFFFFF;
}

.sh-title-wrap, .dh-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sh-icon, .dh-icon {
    font-size: 26px;
}

.sh-title-wrap h4, .dh-title-wrap h3 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
}

.sh-title-wrap small, .dh-title-wrap small {
    color: #94A3B8;
    font-size: 11px;
}

.sh-btn-close, .dh-btn-close {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 20px;
    cursor: pointer;
}

.sh-btn-close:hover, .dh-btn-close:hover {
    color: #FFFFFF;
}

.security-body, .dashboard-body {
    padding: 24px;
    overflow-y: auto;
    color: #0F172A;
}

.sec-desc {
    font-size: 13px;
    color: #475569;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.safety-numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    font-family: Consolas, monospace;
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: 1px;
}

.sec-qr-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    padding: 16px;
    margin-top: 18px;
}

.sec-qr-canvas-wrap {
    background: #FFFFFF;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.sec-qr-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sec-qr-info strong {
    font-size: 13px;
    color: #1E3A8A;
}

.sec-qr-info small {
    font-size: 11.5px;
    color: #475569;
    line-height: 1.4;
}

.btn-verify-trust {
    margin-top: 8px;
    padding: 8px 14px;
    background: #10B981;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.btn-verify-trust:hover {
    background: #059669;
}

/* Dashboard KPIs */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.kpi-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kpi-card.blue { border-left: 4px solid #0068FF; }
.kpi-card.green { border-left: 4px solid #10B981; }
.kpi-card.orange { border-left: 4px solid #F59E0B; }
.kpi-card.purple { border-left: 4px solid #8B5CF6; }

.kpi-label {
    font-size: 11.5px;
    color: #64748B;
    font-weight: 700;
}

.kpi-val {
    font-size: 22px;
    font-weight: 900;
    color: #0F172A;
}

.kpi-sub {
    font-size: 10.5px;
    color: #10B981;
    font-weight: 700;
}

.chart-container-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.ccb-header {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #64748B;
    margin-bottom: 12px;
}

.chart-legend-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748B;
    padding-top: 8px;
    border-top: 1px solid #E2E8F0;
}

.conduit-perf-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #0F172A;
    color: #F8FAFC;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 12px;
}

.cpb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   ALONET UNICORN TOUR & LIVE SCENARIO BAR
   ========================================================================== */
.unicorn-tour-bar {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
    background: #0F172A;
    border: 1px solid #334155;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    gap: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.unicorn-tour-bar.collapsed .utb-actions-row {
    display: none;
}

.utb-pill-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: #F8FAFC;
    cursor: pointer;
}

.utb-badge {
    background: linear-gradient(135deg, #FF0080, #7928CA);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.utb-btn-minimize {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 12px;
    cursor: pointer;
    margin-left: auto;
}

.utb-btn-minimize:hover {
    color: #FFFFFF;
}

.utb-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.utb-action-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #1E293B;
    border: 1px solid #334155;
    color: #F1F5F9;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.utb-action-chip:hover {
    background: #334155;
    border-color: #0068FF;
    transform: translateY(-1px);
}

.utb-action-chip.highlight {
    background: #0068FF;
    border-color: #0068FF;
    color: #FFFFFF;
}

.utb-action-chip.highlight:hover {
    background: #0055D4;
}

/* ==========================================================================
   NÚT MỜI BẠN BÈ ZALO & MODAL MIGRATION WIZARD MỚI
   ========================================================================== */
.btn-invite-zalo-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0068FF 0%, #0084FF 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 18px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 104, 255, 0.35);
    transition: all 0.2s ease;
}

.btn-invite-zalo-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.5);
    filter: brightness(1.1);
}

.btn-invite-zalo-pill .pill-icon {
    font-size: 14px;
}

/* Kiểu dáng hộp thoại mời bạn bè Zalo */
.highlight-invite {
    background: rgba(0, 104, 255, 0.08) !important;
    border: 1px solid rgba(0, 104, 255, 0.35) !important;
}

.step-badge-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.step-badge-title .badge-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #0068FF;
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.step-badge-title h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.invite-preview-box {
    margin: 10px 0;
}

.invite-msg-area {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 12.5px;
    line-height: 1.5;
    font-family: inherit;
    resize: none;
}

.invite-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-mig-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1E293B;
    border: 1px solid #475569;
    color: #FFFFFF;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-mig-secondary:hover {
    background: #334155;
    border-color: #0068FF;
}

/* ==========================================================================
   TIN NHẮN: QUICK ACTIONS (REACTIONS, REPLY, COPY) & REACTION BADGE
   ========================================================================== */
.msg-bubble-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.msg-quick-actions {
    position: absolute;
    top: -18px;
    right: 8px;
    background: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2px 6px;
    display: none;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10;
    transition: opacity 0.15s ease;
}

.incoming .msg-quick-actions {
    right: auto;
    left: 8px;
}

.msg-bubble-wrapper:hover .msg-quick-actions {
    display: flex;
}

.quick-act-btn {
    background: transparent;
    border: none;
    font-size: 13px;
    padding: 3px 5px;
    cursor: pointer;
    border-radius: 6px;
    color: #F1F5F9;
    line-height: 1;
    transition: transform 0.1s ease, background 0.15s ease;
}

.quick-act-btn:hover {
    transform: scale(1.25);
    background: rgba(255, 255, 255, 0.1);
}

.msg-reactions-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 11px;
    margin-top: 4px;
    width: fit-content;
}

/* ==========================================================================
   CONSTRUCTION WORKFLOW MODALS (TẠM ỨNG DUYỆT CHI & NHẬT KÝ THI CÔNG)
   ========================================================================== */
.alonet-workflow-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.workflow-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
}

.workflow-modal-card {
    position: relative;
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    color: #F8FAFC;
    animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-modal-card.log-card-size {
    max-width: 580px;
}

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

.wf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.wf-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wf-icon {
    font-size: 26px;
}

.wf-title-wrap h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #FFFFFF;
}

.wf-title-wrap small {
    display: block;
    font-size: 11.5px;
    color: #94A3B8;
    margin-top: 2px;
}

.wf-btn-close {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.wf-btn-close:hover {
    color: #FFFFFF;
}

.wf-modal-body {
    padding: 20px;
}

.wf-form-group {
    margin-bottom: 14px;
}

.wf-form-row {
    display: flex;
    gap: 12px;
}

.wf-form-group.half {
    flex: 1;
}

.wf-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #CBD5E1;
    margin-bottom: 6px;
}

.wf-input {
    width: 100%;
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 12px;
    color: #F8FAFC;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.wf-input:focus {
    border-color: #0068FF;
}

.wf-input.amount-big {
    font-size: 20px;
    font-weight: 800;
    color: #38BDF8;
}

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

.wf-amount-input-box .currency-tag {
    position: absolute;
    right: 14px;
    font-weight: 800;
    color: #94A3B8;
    font-size: 14px;
}

.wf-hint {
    display: block;
    font-size: 11.5px;
    color: #38BDF8;
    margin-top: 4px;
    font-style: italic;
}

.wf-input.textarea {
    resize: vertical;
    line-height: 1.5;
}

.wf-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-wf-cancel {
    background: transparent;
    border: 1px solid #475569;
    color: #CBD5E1;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-wf-primary {
    background: linear-gradient(135deg, #0068FF 0%, #0084FF 100%);
    border: none;
    color: #FFFFFF;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.35);
}

.btn-wf-primary:hover {
    filter: brightness(1.1);
}

.log-photo-picker-row {
    display: flex;
    gap: 10px;
}

.photo-thumb-item {
    flex: 1;
    padding: 12px;
    background: #1E293B;
    border: 2px dashed #475569;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #94A3B8;
    cursor: pointer;
    transition: all 0.15s ease;
}

.photo-thumb-item.selected {
    border-color: #0068FF;
    background: rgba(0, 104, 255, 0.15);
    color: #38BDF8;
}

/* ==========================================================================
   CARDS: APPROVAL ADVANCE & CONSTRUCTION LOG IN CHAT BUBBLES
   ========================================================================== */
.approval-advance-card, .construction-log-card {
    background: #0F172A;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 6px;
    width: 330px;
    max-width: 100%;
}

.aac-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #1E293B;
    border-bottom: 1px solid #334155;
}

.aac-icon {
    font-size: 22px;
}

.aac-title {
    font-size: 11px;
    font-weight: 800;
    color: #38BDF8;
    letter-spacing: 0.4px;
}

.aac-sub {
    font-size: 10.5px;
    color: #94A3B8;
}

.advance-status-badge {
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
}

.advance-status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
    border: 1px solid #F59E0B;
}

.advance-status-badge.approved {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border: 1px solid #10B981;
}

.advance-status-badge.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #F87171;
    border: 1px solid #EF4444;
}

.aac-body {
    padding: 12px;
}

.aac-amount {
    font-size: 24px;
    font-weight: 900;
    color: #F8FAFC;
    margin-bottom: 4px;
}

.aac-reason {
    font-size: 13px;
    color: #E2E8F0;
    line-height: 1.4;
    margin-bottom: 6px;
}

.aac-meta {
    font-size: 10.5px;
    color: #94A3B8;
}

.advance-actions-row {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid #334155;
}

.btn-adv-action {
    flex: 1;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
}

.btn-adv-action.approve {
    background: #10B981;
    color: #FFFFFF;
}

.btn-adv-action.approve:hover {
    background: #059669;
}

.btn-adv-action.reject {
    background: #334155;
    color: #F87171;
}

.btn-adv-action.reject:hover {
    background: #475569;
}

.advance-approved-box {
    padding: 10px 12px;
    background: rgba(16, 185, 129, 0.08);
    border-top: 1px solid rgba(16, 185, 129, 0.3);
}

.aab-text {
    font-size: 11.5px;
    color: #34D399;
    margin-bottom: 8px;
}

.aab-qr-preview {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px;
}

.aab-qr-header {
    font-size: 11px;
    font-weight: 800;
    color: #38BDF8;
    margin-bottom: 6px;
}

.aab-qr-details {
    font-size: 11px;
    line-height: 1.6;
    color: #CBD5E1;
}

.qr-info-line code {
    background: #0F172A;
    padding: 1px 4px;
    border-radius: 4px;
    color: #38BDF8;
}

.btn-pay-now-qr {
    width: 100%;
    margin-top: 8px;
    padding: 7px;
    background: #0068FF;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.advance-rejected-box {
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.08);
    border-top: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 11.5px;
    color: #F87171;
}

/* THẺ NHẬT KÝ THI CÔNG NGÀY */
.clc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #1E293B;
    border-bottom: 1px solid #334155;
}

.clc-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clc-icon {
    font-size: 22px;
}

.clc-title {
    font-size: 11px;
    font-weight: 800;
    color: #38BDF8;
}

.clc-date {
    font-size: 10px;
    color: #94A3B8;
}

.clc-weather-pill {
    font-size: 18px;
}

.clc-body {
    padding: 12px;
}

.clc-section {
    margin-bottom: 8px;
    font-size: 12px;
}

.clc-label {
    color: #94A3B8;
}

.clc-value {
    color: #F8FAFC;
}

.clc-desc {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #E2E8F0;
    line-height: 1.4;
    background: #1E293B;
    padding: 8px;
    border-radius: 6px;
}

.clc-quality-badge {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #34D399;
}

.clc-footer-actions {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid #334155;
}

.btn-clc-action {
    width: 100%;
    padding: 8px 10px;
    background: #0068FF;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-clc-action:hover {
    background: #0055D4;
}

/* ==========================================================================
   ALONET ZALO QR SYNC UI (PHƯƠNG ÁN A)
   ========================================================================== */
.highlight-qr-sync {
    background: linear-gradient(135deg, rgba(0, 104, 255, 0.08) 0%, rgba(16, 185, 129, 0.06) 100%);
    border: 1.5px solid rgba(0, 104, 255, 0.35) !important;
}

.qr-sync-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    padding: 14px;
    background: var(--bg-surface, #ffffff);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.qr-display-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    min-height: 260px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 2px dashed #CBD5E1;
    padding: 10px;
}

.qr-placeholder {
    text-align: center;
    color: #64748B;
    font-size: 13px;
}

.qr-placeholder .qr-icon-large {
    font-size: 42px;
    margin-bottom: 6px;
}

.zalo-qr-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 104, 255, 0.15));
}

.qr-actions-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 320px;
}

.qr-status-indicator {
    font-size: 13px;
    color: #334155;
    text-align: center;
    min-height: 20px;
    transition: all 0.2s ease;
}

/* ==========================================================================
   ALONET SMART VIETNAMESE STICKER SUGGESTION UI (PHƯƠNG ÁN B)
   ========================================================================== */
.alonet-sticker-popover {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 12px;
    right: 12px;
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: stkSlideUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stkSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stk-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stk-popover-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #0068FF;
}

.stk-hint-nav {
    font-size: 10px;
    color: #94A3B8;
}

.stk-popover-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
}

.stk-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: var(--bg-hover, #F8FAFC);
    border: 1.5px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    min-width: 64px;
}

.stk-item:hover, .stk-item.active {
    background: rgba(0, 104, 255, 0.08);
    border-color: #0068FF;
    transform: translateY(-2px) scale(1.04);
}

.stk-emoji {
    font-size: 26px;
    line-height: 1.2;
}

.stk-badge-label {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

/* Bong bóng hiển thị nhãn dán trong cuộc trò chuyện */
.chat-sticker-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: transparent !important;
}

.stk-bubble-emoji {
    font-size: 54px;
    line-height: 1.1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    animation: stkPopIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes stkPopIn {
    0% { transform: scale(0.6); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.stk-bubble-badge {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #0068FF;
    background: rgba(0, 104, 255, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
}











/* ==========================================================================
   ALONET MOBILE INSTALL SMART BANNER & COMPLIANCE MODAL (PWA & PDPA)
   ========================================================================== */
.alonet-mobile-install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(90deg, #1E293B 0%, #0F172A 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    border-bottom: 2px solid #0068FF;
    animation: bannerSlideDown 0.3s ease;
}

@keyframes bannerSlideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

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

.banner-app-icon {
    font-size: 28px;
    background: #0068FF;
    padding: 4px;
    border-radius: 8px;
}

.banner-text {
    display: flex;
    flex-direction: column;
}

.banner-text strong {
    font-size: 13.5px;
    color: #F8FAFC;
}

.banner-text small {
    font-size: 11px;
    color: #94A3B8;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-banner-install {
    background: #10B981;
    color: #FFFFFF;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-banner-install:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-banner-dismiss {
    background: transparent;
    color: #94A3B8;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

.btn-banner-dismiss:hover {
    color: #FFFFFF;
}

/* Modal Pháp Lý & Bảo Vệ Dữ Liệu Cá Nhân (PDPA / Nghị định 13/2023/NĐ-CP) */
.alonet-compliance-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compliance-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.compliance-dialog {
    position: relative;
    width: 90%;
    max-width: 620px;
    max-height: 85vh;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.compliance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.compliance-header h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
}

.compliance-btn-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #64748B;
    cursor: pointer;
}

.compliance-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
}

.compliance-section {
    margin-bottom: 18px;
}

.compliance-section h5 {
    margin: 0 0 6px 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #0068FF;
}

.compliance-section p {
    margin: 0;
}

/* Ẩn hoàn toàn nút chuyển giao diện tối */
#btnToggleTheme, .theme-toggle-btn { display: none !important; }

/* ==========================================================================
   ALONET SYSTEM STATS & ZALO AUTH GATE STYLING
   ========================================================================== */
.auth-system-stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 104, 255, 0.08);
    border: 1px solid rgba(0, 104, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    color: #0068FF;
    margin-bottom: 12px;
}

.pulse-dot {
    font-size: 10px;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.5; transform: scale(0.9); }
}

.qr-status-text {
    font-size: 12.5px;
    color: #334155;
    font-weight: 600;
    margin: 8px 0;
    text-align: center;
}

.btn-auth-zalo-scan {
    background: #0068FF;
    color: #FFFFFF;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-auth-zalo-scan:hover {
    background: #0055D4;
    transform: translateY(-1px);
}

.sidebar-community-stats {
    font-size: 11.5px;
    color: #475569;
    background: #F1F5F9;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    text-align: center;
    border: 1px solid #E2E8F0;
}

.alonet-zalo-login{display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px;margin:0 0 12px;border:1px solid #dbeafe;border-radius:18px;background:#f8fbff;text-align:center}.alonet-zalo-login h3{margin:0;color:#163b72;font-size:18px}.alonet-zalo-login p{max-width:340px;margin:0;color:#52627a;font-size:13px;line-height:1.5}.alonet-zalo-login canvas{width:220px;height:220px;padding:8px;background:#fff;border:1px solid #e2e8f0;border-radius:12px}.alonet-zalo-login [role=status]{min-height:20px;color:#334155;font-size:13px}.auth-divider{display:flex;align-items:center;gap:12px;margin:8px 0 16px;color:#64748b;font-size:12px}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:#e2e8f0}
