/* ==========================================================================
   PROXY CSS - PREMIUM DARK MODE STYLE
   ========================================================================== */

:root {
    --bg-dark: #0b0f19;
    --panel-bg: rgba(17, 24, 39, 0.7);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.35);
    --warning: #f59e0b;
    --danger: #ef4444;
    --card-hover: rgba(255, 255, 255, 0.03);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Glow Background */
.glow-bg {
    position: absolute;
    top: -20%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(16, 185, 129, 0.05) 50%, rgba(0,0,0,0) 100%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

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

/* Header */
.main-header {
    backdrop-filter: blur(12px);
    background-color: rgba(11, 15, 25, 0.8);
    border-bottom: 1px solid var(--panel-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.logo-icon {
    font-size: 26px;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #fff;
}

.nav-links a.active {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 4px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0 40px;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-section .subtitle {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto;
}

/* Layout Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    margin-bottom: 40px;
    align-items: start;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.col-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Panels */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: border-color 0.3s ease;
}

.panel:hover {
    border-color: rgba(59, 130, 246, 0.2);
}

.panel-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 14px;
}

.panel-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-primary {
    color: var(--primary);
}

/* Proxy Types Grid */
.proxy-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.proxy-type-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.proxy-type-card:hover {
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Thẻ Proxy FPT Private (Màu đỏ cam thương hiệu) */
.proxy-type-card.card-fpt:hover {
    border-color: rgba(243, 112, 33, 0.4);
}

.proxy-type-card.card-fpt.active {
    background: rgba(243, 112, 33, 0.03);
    border-color: #f37021;
    box-shadow: 0 0 20px rgba(243, 112, 33, 0.15);
}

.proxy-type-card.card-fpt .card-badge {
    background: rgba(243, 112, 33, 0.1);
    color: #f37021;
    border: 1px solid rgba(243, 112, 33, 0.2);
}

.proxy-type-card.card-fpt.active .card-icon {
    color: #f37021;
}

/* Thẻ Proxy FPT Share (Màu vàng cam thương hiệu) */
.proxy-type-card.card-fpt-share:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.proxy-type-card.card-fpt-share.active {
    background: rgba(245, 158, 11, 0.03);
    border-color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.proxy-type-card.card-fpt-share .card-badge {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.proxy-type-card.card-fpt-share.active .card-icon {
    color: #f59e0b;
}

/* Thẻ Proxy VNPT (Màu xanh dương thương hiệu) */
.proxy-type-card.card-vnpt:hover {
    border-color: rgba(0, 112, 210, 0.4);
}

.proxy-type-card.card-vnpt.active {
    background: rgba(0, 112, 210, 0.03);
    border-color: #0070d2;
    box-shadow: 0 0 20px rgba(0, 112, 210, 0.15);
}

.proxy-type-card.card-vnpt .card-badge {
    background: rgba(0, 112, 210, 0.1);
    color: #0070d2;
    border: 1px solid rgba(0, 112, 210, 0.2);
}

.proxy-type-card.card-vnpt.active .card-icon {
    color: #0070d2;
}

.card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}

.card-icon {
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.proxy-type-card h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    border-top: 1px solid var(--panel-border);
    padding-top: 12px;
    margin-top: auto;
}

.card-price .unit {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.stock-badge {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-badge.in-stock {
    color: var(--accent);
}

.stock-badge.out-of-stock {
    color: var(--danger);
}

/* Forms */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-with-icon input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 14px 12px 42px;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-sans);
    transition: all 0.25s ease;
}

#input-name {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
    font-size: 16px;
    font-weight: 500;
}

#input-name::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--accent) !important;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.35) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.shake-error {
    animation: shake 0.15s ease-in-out 2;
    border-color: var(--danger) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4) !important;
}

.input-helper {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.qty-selector {
    display: flex;
    max-width: 160px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.qty-selector input {
    width: 100%;
    border: none;
    background: transparent;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 0;
    -moz-appearance: textfield;
}

.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-qty {
    background: rgba(255, 255, 255, 0.03);
    border: none;
    color: var(--text-muted);
    width: 48px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-qty:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Calculator */
.calculator-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

.text-discount {
    color: var(--accent);
}

.calc-total {
    border-top: 1px solid var(--panel-border);
    padding-top: 8px;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.calc-total span:last-child {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Buttons */
.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn {
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-large {
    padding: 14px 24px;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--panel-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* Price Table */
.price-table-wrapper {
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.price-table th, 
.price-table td {
    padding: 12px;
    border-bottom: 1px solid var(--panel-border);
}

.price-table th {
    color: var(--text-muted);
    font-weight: 500;
}

.price-table tbody tr {
    transition: background 0.2s ease;
}

.price-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.price-table tbody tr.active-row {
    background: rgba(255, 255, 255, 0.02);
}

.price-table tbody tr.active-row td:first-child {
    color: #fff;
    font-weight: 600;
}

.price-table td.active-cell-fpt-private {
    color: #f37021 !important;
    font-weight: 700;
    font-size: 14.5px;
    text-shadow: 0 0 8px rgba(243, 112, 33, 0.4);
}

.price-table td.active-cell-vnpt-private {
    color: #0070d2 !important;
    font-weight: 700;
    font-size: 14.5px;
    text-shadow: 0 0 8px rgba(0, 112, 210, 0.4);
}

.price-table td.active-cell-fpt-share {
    color: #f59e0b !important;
    font-weight: 700;
    font-size: 14.5px;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.price-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Result Panel */
.result-panel {
    margin-bottom: 40px;
    animation: fadeIn 0.4s ease-out;
}

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

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.result-meta p {
    font-size: 14px;
    color: var(--text-muted);
}

.result-meta strong {
    color: #fff;
    margin-left: 4px;
}

.proxy-list-wrapper {
    margin-bottom: 24px;
}

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

.proxy-list-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.proxy-list-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px;
    color: #34d399;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    resize: vertical;
    outline: none;
}

.proxy-list-textarea:focus {
    border-color: rgba(52, 211, 153, 0.4);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.detail-table th, 
.detail-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--panel-border);
}

.detail-table th {
    color: var(--text-muted);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.1);
}

.td-proxy {
    font-family: 'Courier New', Courier, monospace;
    color: #34d399;
    font-weight: 600;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.25s ease-out;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(8px);
}

.modal-card {
    background: #111827;
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    width: 480px;
    max-width: 90%;
    z-index: 1001;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--panel-border);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-body {
    padding: 24px;
}

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

.payment-warn {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.qr-container {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.qr-container img {
    display: block;
    width: 220px;
    height: 220px;
}

.qr-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 28px;
    color: var(--primary);
}

.payment-details {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pay-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pay-row span {
    font-size: 12px;
    color: var(--text-muted);
}

.text-xl {
    font-size: 22px;
    font-family: var(--font-heading);
}

.copy-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 8px 12px;
}

.text-memo {
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.btn-copy-inline {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.payment-status-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 24px;
}

.payment-status-box span {
    font-size: 13px;
    color: var(--text-muted);
}

.modal-actions {
    display: flex;
    justify-content: center;
}

.modal-actions .btn {
    width: 100%;
}

.btn-card-desc {
    display: none;
}

.proxy-desc-banner {
    display: none;
}

.mobile-sticky-bar {
    display: none;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.qty-name-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-end;
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR MOBILE DEVICES (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px !important;
    }
    
    .header-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: auto !important;
        padding: 46px 10px 8px !important; /* Thu gọn dòng 1 cho logo và nút login */
        position: relative !important;
        gap: 8px !important;
    }
    
    .logo {
        position: absolute !important;
        top: 12px !important;
        left: 10px !important;
        font-size: 20px !important;
        margin: 0 !important;
    }
    
    .logo-icon {
        font-size: 22px !important;
    }

    #btn-admin-login {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        margin: 0 !important;
        font-size: 11.5px !important;
        padding: 6px 10px !important;
        border-radius: 6px !important;
        z-index: 10 !important;
    }
    
    .nav-links {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important; /* Dàn đều 5 nút ở dòng 2 */
        gap: 6px !important;
        margin-top: 5px !important;
    }
    
    .nav-links a:not(#btn-admin-login), .nav-links button#btn-history {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 11.5px !important;
        padding: 7px 4px !important;
        gap: 3px !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
    }

    .hero-section {
        padding: 15px 0 10px !important; /* Giảm một nửa khoảng trống Hero */
    }

    .hero-section h1 {
        font-size: 22px !important; /* Thu gọn tiêu đề */
        line-height: 1.3 !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 6px !important;
    }

    .hero-section .subtitle {
        font-size: 13px !important;
        line-height: 1.4 !important;
        padding: 0 5px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .panel {
        padding: 14px 12px !important; /* Thu hẹp padding của khung */
        border-radius: 10px !important;
    }

    .panel-header {
        margin-bottom: 12px !important; /* Thu hẹp margin tiêu đề */
    }

    .panel-header h2 {
        font-size: 15.5px !important; /* Thu gọn tiêu đề panel */
    }

    .proxy-types-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* Dàn ngang 3 card trên 1 hàng */
        gap: 8px !important;
    }

    .proxy-type-card {
        padding: 10px 4px !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
    }

    /* Ẩn các phần tử rườm rà trên card nhỏ */
    .proxy-type-card .card-icon, 
    .proxy-type-card .card-badge, 
    .proxy-type-card .card-desc, 
    .proxy-type-card .btn-card-desc {
        display: none !important;
    }

    .proxy-type-card h3 {
        font-size: 12px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    .proxy-type-card .card-price {
        font-size: 13.5px !important;
        margin-top: 4px !important;
        font-weight: 800 !important;
        color: var(--primary) !important;
    }

    .proxy-type-card .card-price .unit {
        display: none !important;
    }

    /* Banner mô tả động */
    .proxy-desc-banner {
        display: block !important;
        margin-top: 12px !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid var(--panel-border) !important;
        padding: 10px 12px !important;
        border-radius: 8px !important;
        font-size: 12.5px !important;
        line-height: 1.5 !important;
        color: var(--text-muted) !important;
        text-align: left !important;
    }

    .qty-name-row {
        grid-template-columns: 105px 1fr !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .qty-name-row label {
        font-size: 11px !important;
        white-space: nowrap !important;
        margin-bottom: 4px !important;
    }

    .qty-selector {
        width: 100% !important;
        max-width: 100% !important;
    }

    .qty-selector .btn-qty {
        width: 32px !important;
    }

    .qty-selector input {
        padding: 6px 0 !important;
    }

    .form-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .form-actions .btn {
        width: 100% !important;
    }

    .modal-card {
        width: 95% !important;
        border-radius: 14px !important;
    }

    .modal-body {
        padding: 16px !important;
    }

    body {
        padding-bottom: 80px !important; /* Dành khoảng trống đáy tránh đè đè chữ */
    }

    .mobile-sticky-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: rgba(11, 15, 25, 0.95) !important;
        backdrop-filter: blur(12px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 12px 20px !important;
        justify-content: space-between !important;
        align-items: center !important;
        z-index: 999 !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5) !important;
        box-sizing: border-box !important;
    }

    .sticky-price-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        text-align: left !important;
    }

    .sticky-label {
        font-size: 10px !important;
        color: var(--text-muted) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        font-weight: 600 !important;
    }

    .sticky-total {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: var(--accent) !important;
        font-family: var(--font-heading) !important;
    }

    #btn-sticky-order {
        padding: 10px 18px !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%) !important;
        box-shadow: 0 4px 15px var(--primary-glow) !important;
        border: none !important;
        color: #fff !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        width: auto !important; /* Không bắt buộc 100% */
    }
}
