:root {
    /* Tông màu hồng tím thanh lịch, dịu mắt chuẩn nhận diện */
    --bg-page: #fdf6fa;              
    --app-bg: #fdf8fd;               
    --purple-border: #de8ce8;        /* Màu viền hồng tím thanh mảnh, vừa vặn không bị quá đậm */
    --card-bg: #ffffff;              
    --purple-brand: #d946ef;         
    --text-title: #3b0764;           
    --text-body: #581c87;            
    --text-muted: #7e22ce;           
    --radius-lg: 14px;               
    --radius-md: 10px;
    --radius-sm: 8px;
    --purple-glow: rgba(222, 140, 232, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-page);
    color: var(--text-title);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ================= CANVAS HOA ANH ĐÀO ================= */
#cosmos-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* ================= KHUNG CHUẨN APP MOBILE ================= */
.app-container {
    width: 100%;
    max-width: 480px;
    background: var(--app-bg);
    min-height: 100vh;
    box-shadow: 0 0 30px var(--purple-glow);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    border-left: 1px solid var(--purple-border);
    border-right: 1px solid var(--purple-border);
}

/* ================= HEADER CHUNG ================= */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(253, 248, 253, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--purple-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #d946ef, #7c3aed);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 3px 10px rgba(217, 70, 239, 0.3);
}

.brand-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.5px;
}

.back-link {
    font-size: 18px;
    color: var(--purple-border);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: 0.2s;
}

.back-link:hover {
    background: rgba(222, 140, 232, 0.15);
}

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

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #d946ef, #9333ea);
    padding: 7px 13px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(217, 70, 239, 0.28);
    transition: 0.2s;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.hamburger-btn span {
    width: 22px;
    height: 2.5px;
    background: var(--purple-border);
    border-radius: 4px;
}

/* ================= DROPDOWN MENU ================= */
.dropdown-nav {
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 1.5px solid var(--purple-border);
    box-shadow: 0 8px 20px rgba(222, 140, 232, 0.12);
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    z-index: 99;
}

.dropdown-nav.active {
    display: flex;
}

.dropdown-nav .nav-item {
    padding: 13px 20px;
    text-decoration: none;
    color: var(--text-title);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #fdf2f8;
}

.dropdown-nav .nav-item i {
    color: var(--purple-border);
    width: 20px;
}

/* ================= NỘI DUNG CHÍNH (INDEX) ================= */
.main-content {
    padding: 20px 18px;
    flex: 1;
}

.hero-section {
    text-align: center;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 4px;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(90deg, #7c3aed, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

/* ================= 4 Ô NÚT THAO TÁC GỌN GÀNG ================= */
.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    box-shadow: 0 2px 8px var(--purple-glow);
    border: 1px solid var(--purple-border);
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: left;
    min-height: 52px;
}

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

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

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

.btn-text strong {
    font-size: 12.5px;
    color: #1f2937;
    line-height: 1.25;
}

.btn-text span {
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
}

.btn-register { background: #fffaf5; border-color: #fed7aa; }
.btn-register .btn-icon { background: #f97316; color: #ffffff; }

.btn-login { background: #fdf8fd; border-color: var(--purple-border); }
.btn-login .btn-icon { background: #a855f7; color: #ffffff; }

.btn-service { background: #f0fdf4; border-color: #a7f3d0; }
.btn-service .btn-icon { background: #10b981; color: #ffffff; }

.btn-zalo { background: #f0f9ff; border-color: #bae6fd; }
.btn-zalo .btn-icon { background: #0284c7; color: #ffffff; }


/* ================= SECTION VPS LÀ GÌ & FAQ ================= */
.info-section, .faq-section { 
    margin-top: 32px; 
}

.section-heading, .faq-title { 
    text-align: center; 
    margin-bottom: 18px; 
}

.section-heading h2, .faq-title { 
    font-size: 21px; 
    font-weight: 800; 
    color: var(--text-title); 
}

.section-heading p { 
    font-size: 12.5px; 
    color: var(--text-muted); 
    margin-top: 4px; 
}

.info-cards { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.info-card {
    background: #ffffff;
    border: 1px solid var(--purple-border);
    padding: 14px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 8px var(--purple-glow);
}

.info-card-icon { 
    font-size: 18px; 
    margin-top: 2px; 
    width: 24px; 
    text-align: center; 
}

.icon-display { color: #111827; }
.icon-bolt { color: #eab308; }
.icon-globe { color: #3b82f6; }

.info-card-content h3 { 
    font-size: 14px; 
    font-weight: 700; 
    color: #1f2937; 
    margin-bottom: 4px; 
}

.info-card-content p { 
    font-size: 12px; 
    color: #4b5563; 
    line-height: 1.5; 
}

.faq-accordion { 
    display: flex; 
    flex-direction: column; 
    gap: 9px; 
}

.faq-item {
    border: 1px solid var(--purple-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 6px var(--purple-glow);
}

.faq-question {
    width: 100%;
    padding: 13px 15px;
    background: #ffffff;
    border: none;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question span { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.faq-question i { 
    font-size: 9px; 
    color: #9ca3af; 
    transition: transform 0.25s ease; 
}

.faq-item.active .faq-question i { 
    transform: rotate(90deg); 
    color: var(--purple-border); 
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 15px;
    background: #fdf8fd;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.55;
}

.faq-item.active .faq-answer { 
    padding: 10px 15px 14px; 
}

/* ================= TRANG AUTH (CĂN GIỮA DỌC HOÀN TOÀN) ================= */
.auth-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding-top: 10px;
}

.brand-badge-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    width: 100%;
}

.brand-badge-center .brand-name {
    font-size: 21px;
    font-weight: 800;
    color: var(--text-title);
}

.auth-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--purple-border);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    box-shadow: 0 4px 16px var(--purple-glow);
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 23px;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 5px;
}

.auth-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

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

.form-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-title);
}

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

.input-icon {
    position: absolute;
    left: 13px;
    color: #9ca3af;
    font-size: 13.5px;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 11px 13px 11px 38px;
    background: #fdf8fd;
    border: 1px solid #e9c3f0;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-title);
    outline: none;
    transition: all 0.2s;
}

.input-wrapper input.input-no-icon {
    padding-left: 13px;
}

.input-wrapper input:focus {
    background: #ffffff;
    border-color: var(--purple-border);
    box-shadow: 0 0 0 3px rgba(222, 140, 232, 0.2);
}

.toggle-password {
    position: absolute;
    right: 13px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 13.5px;
}

.forgot-wrapper {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: -2px;
    margin-bottom: 2px;
}

.forgot-link {
    font-size: 12px;
    font-weight: 600;
    color: #9333ea;
    text-decoration: none !important;
}

.forgot-link:hover {
    color: var(--purple-brand);
    text-decoration: underline !important;
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

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

.select-wrapper select {
    width: 100%;
    padding: 11px 26px 11px 11px;
    background: #fdf8fd;
    border: 1px solid #e9c3f0;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    color: var(--text-title);
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s;
}

.select-wrapper select:focus {
    background: #ffffff;
    border-color: var(--purple-border);
    box-shadow: 0 0 0 3px rgba(222, 140, 232, 0.2);
}

.select-icon {
    position: absolute;
    right: 11px;
    font-size: 9.5px;
    color: #9ca3af;
    pointer-events: none;
}

.btn-submit {
    width: 100%;
    padding: 13px;
    margin-top: 6px;
    background: linear-gradient(135deg, #d946ef, #7c3aed);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(217, 70, 239, 0.32);
    transition: transform 0.15s, box-shadow 0.15s;
}

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

.auth-footer {
    text-align: center;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 6px;
}

.auth-footer a {
    color: var(--purple-brand);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

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

/* ================= TRANG DASHBOARD: SỐ DƯ & THANH TAB ================= */
.balance-card {
    background: linear-gradient(135deg, #ffffff, #fcf8fd);
    border: 1px solid var(--purple-border);
    margin: 14px 18px 8px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 14px var(--purple-glow);
}

.balance-info {
    display: flex;
    flex-direction: column;
}

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

.balance-amount {
    font-size: 19px;
    font-weight: 800;
    color: #c026d3;
    letter-spacing: -0.5px;
}

.balance-amount small {
    font-size: 12px;
    font-weight: 700;
}

.btn-recharge-top {
    background: linear-gradient(135deg, #d946ef, #7c3aed);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(217, 70, 239, 0.3);
}

/* Thanh tab viên thuốc trượt ngang (image_7.png) */
.pill-nav-container {
    padding: 6px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pill-nav-container::-webkit-scrollbar {
    display: none;
}

.pill-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1e9f8;
    padding: 5px;
    border-radius: 30px;
    border: 1px solid var(--purple-border);
    white-space: nowrap;
}

.pill-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12.5px;
    font-weight: 700;
    color: #6b5a82;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-btn.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}

/* Tab panes */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

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

.panel-header {
    margin-bottom: 14px;
}

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

.panel-header p {
    font-size: 12px;
    color: var(--text-muted);
}

/* 4 Ô Thống kê 2x2 (cloudsale.vn) */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-box {
    background: #ffffff;
    border: 1px solid var(--purple-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-title {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
}

.stat-icon {
    font-size: 12px;
}

.icon-blue { color: #2563eb; }
.icon-grey { color: #9ca3af; }
.icon-green { color: #10b981; }
.icon-red { color: #ef4444; }

.stat-value {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-title);
    margin-top: 4px;
    display: block;
}

/* Filter badges */
.filter-badges {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.badge-item {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--purple-border);
    color: var(--text-title);
    white-space: nowrap;
}

.badge-item.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Search box */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--purple-border);
    border-radius: var(--radius-md);
    padding: 9px 12px;
    margin-bottom: 14px;
}

.search-box i {
    color: #9ca3af;
    font-size: 13px;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 12.5px;
    width: 100%;
}

/* Thẻ quản lý VPS / Proxy (cloudsale.vn) */
.server-card {
    background: #ffffff;
    border: 1px solid var(--purple-border);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px var(--purple-glow);
}

.server-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px dashed #f0e6f5;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.server-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-title);
    display: flex;
    align-items: center;
    gap: 6px;
}

.edit-pen {
    font-size: 11px;
    color: #9ca3af;
    cursor: pointer;
}

.server-ip-box {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.ip-text {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.btn-copy, .btn-eye {
    background: none;
    border: none;
    color: #8b5cf6;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
}

.status-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
}

.status-running { background: #dcfce7; color: #15803d; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }
.status-ip { background: #e0f2fe; color: #0369a1; }

.server-status-wrap {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.server-status-wrap small {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 2px;
}

.server-credential {
    background: #fdf8fd;
    border-radius: var(--radius-md);
    padding: 8px 10px;
    margin-bottom: 10px;
}

.cred-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    margin: 4px 0;
}

.cred-label {
    color: #6b7280;
}

.cred-val {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.secret-input {
    border: none;
    background: transparent;
    font-size: 12px;
    width: 100px;
    outline: none;
}

.server-specs {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.5;
}

.os-text {
    color: #7e22ce;
    font-weight: 600;
}

.server-dates {
    display: flex;
    flex-direction: column;
    font-size: 10.5px;
    color: #9ca3af;
    margin-top: 4px;
}

.btn-action-control {
    width: 100%;
    margin-top: 10px;
    padding: 9px;
    background: #ffffff;
    border: 1px solid var(--purple-border);
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-title);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-action-control:hover {
    background: #faf4fd;
}

.btn-quick-copy {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    background: #f3e8ff;
    border: 1px dashed var(--purple-border);
    border-radius: var(--radius-md);
    font-size: 11.5px;
    font-weight: 700;
    color: #7e22ce;
    cursor: pointer;
}

.proxy-warning-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
}

.proxy-warning-card .warn-head {
    font-weight: 700;
    color: #b45309;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Modal Popup gửi lệnh điều khiển VPS */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.modal-header h3 {
    font-size: 15px;
    color: var(--text-title);
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.btn-api-cmd {
    padding: 10px;
    background: #fdf8fd;
    border: 1px solid var(--purple-border);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-title);
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-api-cmd:hover {
    background: #f3e8ff;
}

/* Bảng giá gói mua */
.price-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-plan-card {
    background: #ffffff;
    border: 1px solid var(--purple-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: relative;
}

.plan-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #d946ef;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
}

.plan-price {
    font-size: 20px;
    font-weight: 800;
    color: #7952f5;
    margin: 6px 0 10px;
}

.plan-price span {
    font-size: 12px;
    color: #9ca3af;
}

.plan-features {
    list-style: none;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 14px;
}

.plan-features i {
    color: #10b981;
    margin-right: 6px;
}

.btn-buy-plan {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* Hộp thông tin nạp tiền */
.banking-info-box {
    background: #fdf8fd;
    border: 1px dashed var(--purple-border);
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: 13px;
    line-height: 1.7;
}

.copy-badge {
    background: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--purple-border);
    cursor: pointer;
    font-weight: 700;
    color: #7c3aed;
}

.btn-logout {
    font-size: 17px;
    color: #ef4444;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 6px;
}

.alert-box {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    text-align: center;
}

.alert-box.success {
    background: #e6f9ed;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.alert-box.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ================= FOOTER ================= */
.footer {
    padding: 20px;
    text-align: center;
    font-size: 11.5px;
    color: var(--purple-border);
    border-top: 1px solid var(--purple-border);
    margin-top: auto;
    background: #fdf8fd;
}

/* ================= KHUNG TRẮNG TINH KHI CHƯA MUA (EMPTY STATE) ================= */
.empty-state-box {
    background: #ffffff;
    border: 1px dashed var(--purple-border);
    border-radius: var(--radius-lg);
    padding: 36px 20px;
    text-align: center;
    margin-top: 10px;
}

.empty-state-box i {
    font-size: 38px;
    color: #d8b4fe;
    margin-bottom: 10px;
}

.empty-state-box p {
    font-size: 13.5px;
    color: #6b7280;
    margin-bottom: 14px;
}

.btn-pill-action {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* ================= DROPDOWN MENU THAO TÁC VPS CHUẨN VIDEO ================= */
.action-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.btn-action-control {
    width: 100%;
    margin-top: 10px;
    padding: 9px 14px;
    background: #ffffff;
    border: 1px solid var(--purple-border);
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-title);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.arrow-down {
    font-size: 10px;
    color: #9ca3af;
}

.vps-dropdown-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--purple-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(76, 29, 149, 0.15);
    z-index: 1000;
    padding: 6px 0;
}

.vps-dropdown-menu.show {
    display: block;
    animation: fadeIn 0.15s ease;
}

.vps-dropdown-menu .menu-item {
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.vps-dropdown-menu .menu-item:hover {
    background: #fdf4ff;
    color: #7c3aed;
}

.vps-dropdown-menu .menu-item i {
    width: 16px;
    color: #7c3aed;
    font-size: 12px;
}

/* Menu con đa cấp (Submenu) */
.has-submenu {
    display: block !important;
}

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

.sub-arrow {
    font-size: 10px;
    color: #9ca3af;
}

.submenu-box {
    display: none;
    background: #faf5ff;
    border-top: 1px solid #f3e8ff;
    border-bottom: 1px solid #f3e8ff;
    margin-top: 6px;
    padding: 4px 0;
}

.has-submenu:hover .submenu-box {
    display: block;
}

.submenu-item {
    padding: 8px 14px 8px 30px;
    font-size: 12px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.submenu-item:hover {
    background: #f3e8ff;
    color: #7c3aed;
}

.cycle-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 14px;
    background: #fdf8fd;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--purple-border);
}

.cycle-selector label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-title);
}

.cycle-select {
    border: 1px solid var(--purple-border);
    background: #ffffff;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    outline: none;
    cursor: pointer;
}

/* ================= BỘ KHUNG CHUẨN 100% THEO CLOUDSALE.VN ================= */
.cs-body-bg {
    background-color: #f8fafc !important;
}

.cs-top-nav-row {
    margin-bottom: 16px;
}

.btn-cs-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: all 0.15s ease;
}

.btn-cs-back:hover {
    background: #fdf4ff;
    color: var(--primary-color);
    border-color: #d8b4fe;
}

/* BỐ CỤC 2 CỘT CHÍNH */
.cs-order-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 950px) {
    .cs-order-layout {
        grid-template-columns: 1fr;
    }
}

/* THẺ KHUNG BÊN TRÁI (WHITE CARD) */
.cs-box-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.cs-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.cs-box-header.justify-between {
    justify-content: space-between;
}

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

.cs-step-badge {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 800;
}

.cs-box-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.cs-header-hint {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* KHUNG TĂNG GIẢM SỐ LƯỢNG (STEPPER) */
.cs-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cs-stepper-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.cs-stepper-box.small {
    border-radius: 8px;
}

.btn-step-act {
    background: #fdf4ff;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-color);
    cursor: pointer;
    transition: background 0.15s;
}

.cs-stepper-box.small .btn-step-act {
    width: 32px;
    height: 32px;
    font-size: 15px;
}

.btn-step-act:hover {
    background: #fae8ff;
}

.cs-stepper-box input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    color: #1e293b;
    outline: none;
}

.cs-stepper-box.small input {
    width: 44px;
    height: 32px;
    font-size: 13px;
}

.cs-quick-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pill-qty-opt {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}

.pill-qty-opt:hover {
    border-color: #d8b4fe;
    color: var(--primary-color);
}

.pill-qty-opt.active {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

/* KHUNG 3 LINH KIỆN MUA THÊM */
.cs-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.cs-addon-cell {
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    background: #f8fafc;
}

.addon-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.addon-title i {
    color: var(--primary-color);
}

.addon-sub-price {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 8px;
}

/* KHUNG CHU KỲ THANH TOÁN (HỘP VUÔNG + CHECKMARK TRÊN TRÁI) */
.cs-cycles-flex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 10px;
}

.cs-cycle-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 6px;
    text-align: center;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
}

.cs-cycle-item:hover {
    border-color: #d8b4fe;
}

.cs-cycle-item.active {
    border-color: var(--primary-color);
    background: #fdf4ff;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.cs-check-icon {
    display: none;
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 12px;
    color: var(--primary-color);
}

.cs-cycle-item.active .cs-check-icon {
    display: block;
}

.cs-discount-tag {
    position: absolute;
    top: -8px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 8px;
}

.cycle-name {
    font-size: 11.5px;
    font-weight: 800;
    color: #1e293b;
}

.cycle-val {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--primary-color);
    margin-top: 4px;
}

/* KHUNG CHỌN HỆ ĐIỀU HÀNH */
.cs-os-tab-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.btn-os-category {
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
}

.btn-os-category span {
    font-size: 11px;
    opacity: 0.8;
}

.btn-os-category.active {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.cs-os-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}

.btn-os-choice {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 11px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}

.btn-os-choice:hover {
    border-color: #d8b4fe;
}

.btn-os-choice.active {
    border-color: var(--primary-color);
    background: #faf5ff;
    color: var(--primary-color);
    font-weight: 800;
    box-shadow: 0 0 0 1px var(--primary-color);
}

.cs-memo-field {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.cs-memo-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.cs-memo-field label span {
    font-weight: 400;
    color: #94a3b8;
}

.cs-memo-field input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    outline: none;
}

/* ================= CỘT PHẢI: TÓM TẮT ĐƠN HÀNG (STICKY PANEL) ================= */
.cs-summary-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    position: sticky;
    top: 20px;
}

.cs-sum-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 14px;
}

.cs-sum-head i {
    font-size: 18px;
    color: var(--primary-color);
}

.cs-sum-head h4 {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.cs-sum-head span {
    font-size: 11.5px;
    color: #64748b;
}

.cs-sum-plan-box {
    background: #faf5ff;
    border: 1px solid #f3e8ff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 14px;
}

.plan-head-row {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.plan-sub-specs {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
}

.cs-sum-details-list {
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.detail-line {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: #475569;
    margin-bottom: 8px;
}

.detail-line.addon-highlight {
    color: var(--primary-color);
    font-weight: 600;
}





.cs-sum-total-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cs-sum-total-group span {
    font-size: 12.5px;
    font-weight: 800;
    color: #1e293b;
}

.big-total-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
}

.cs-auto-renew-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 18px;
}

.btn-create-order-action {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
    transition: opacity 0.15s;
}

.btn-create-order-action:hover {
    opacity: 0.95;
}

/* ================= CSS RIÊNG CHO TRANG PROXY ================= */
.cs-proxy-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.cs-proxy-card-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s;
}

.cs-proxy-card-item:hover {
    border-color: #d8b4fe;
    background: #fdf4ff;
}

.cs-proxy-card-item.active {
    border-color: var(--primary-color);
    background: #fdf4ff;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.px-head-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.px-flag-em {
    font-size: 17px;
}

.px-name-text {
    font-size: 14px;
    color: #1e293b;
}

.px-cat-desc {
    font-size: 11.5px;
    color: #64748b;
    margin: 4px 0 10px;
}

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

.px-price-val span {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}

.cs-proto-switch-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.btn-proto-choice {
    padding: 8px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.btn-proto-choice i {
    display: none;
}

.btn-proto-choice.active {
    border-color: var(--primary-color);
    background: #fdf4ff;
    color: var(--primary-color);
}

.btn-proto-choice.active i {
    display: inline-block;
}

.header-bal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fdf4ff;
    border: 1px solid #e9d5ff;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12.5px;
    color: var(--primary-color);
}

/* ================= CSS THẺ QUẢN LÝ VPS & PROXY CHUẨN ẢNH 19, 20, 21 ================= */
.copy-toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cs-mgmt-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.cs-mgmt-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    position: relative;
}

.cs-mgmt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 14px;
}

.cs-name-edit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #0f172a;
}

.btn-edit-icon {
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
}
.btn-edit-icon:hover {
    color: #7c3aed;
}

.cs-ip-copy-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    margin-top: 4px;
}

.badge-status-pill {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    display: inline-block;
}
.status-green {
    background: #dcfce7;
    color: #15803d;
}
.status-gray {
    background: #f1f5f9;
    color: #64748b;
}

.renew-hint-text {
    display: block;
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 4px;
    text-align: right;
}

/* KHUNG TÀI KHOẢN & MẬT KHẨU */
.cs-mgmt-creds-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.cred-item-row label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}

.cred-input-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 3px 6px;
}

.cred-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    background: transparent;
    padding: 4px 6px;
}

.btn-copy-mini, .btn-eye-mini {
    background: transparent;
    border: none;
    color: #7c3aed;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 13px;
}

/* THÔNG TIN CẤU HÌNH & HẠN SỬ DỤNG */
.cs-mgmt-specs-info {
    margin-bottom: 12px;
}
.spec-label-title {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}
.spec-value-line {
    font-size: 13.5px;
    color: #0f172a;
    margin: 2px 0;
}
.spec-os-line {
    font-size: 12px;
    color: #64748b;
}

.cs-mgmt-dates-grid {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #475569;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    margin-bottom: 14px;
}

.date-sub {
    font-size: 11px;
    color: #94a3b8;
}

.date-countdown {
    font-size: 12px;
    font-weight: 800;
}

/* NÚT THAO TÁC VPS & MENU DROPDOWN */
.cs-mgmt-action-wrap {
    position: relative;
    width: 100%;
}

.btn-vps-action-trigger {
    width: 100%;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.btn-vps-action-trigger:hover {
    border-color: #c084fc;
    color: #7c3aed;
}

.cs-action-menu-popup {
    display: none;
    position: absolute;
    bottom: 45px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
    z-index: 100;
    padding: 6px;
}

.cs-action-menu-popup.show {
    display: block;
}

.cs-menu-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s;
}

.cs-menu-opt:hover {
    background: #fdf4ff;
    color: #7c3aed;
}

.cs-menu-opt .opt-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs-menu-opt i {
    width: 16px;
}

.icon-blue { color: #2563eb; }
.icon-green { color: #16a34a; }
.icon-cyan { color: #0891b2; }
.icon-red { color: #dc2626; }
.icon-purple { color: #7c3aed; }
.icon-orange { color: #ea580c; }

.cs-menu-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}

.sub-indicator {
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.2s;
}

.has-sub-expand.expanded .sub-indicator {
    transform: rotate(90deg);
}

/* SUBMENU MỞ DƯỚI DẠNG ACCORDION TIỆN CHO MOBILE */
.cs-submenu-list {
    display: none;
    background: #f8fafc;
    border-radius: 8px;
    margin: 4px 6px;
    padding: 4px;
}

.cs-submenu-list.open {
    display: block;
}

.cs-submenu-opt {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-submenu-opt:hover {
    background: #ffffff;
    color: #7c3aed;
}

/* PROXY DETAILS */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cred-val-copy {
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-copy-proxy-full {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: #faf5ff;
    border: 1px dashed #d8b4fe;
    color: #7c3aed;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}
/* ================= LOADING SPINNER & TOAST CHUẨN CLOUDSALE ================= */
.loading-overlay-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}
.loading-overlay-backdrop.show {
    display: flex;
}
.loading-spinner-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.spinner-ring {
    width: 44px;
    height: 44px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spinRing 0.8s linear infinite;
}
@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-spinner-modal h4 {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px;
}
.loading-spinner-modal p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* THANH TOAST NỔI TRÊN ĐẦU */
.top-toast-bar {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(22, 101, 52, 0.15);
    z-index: 9999999;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.top-toast-bar.show {
    top: 20px;
}
.toast-icon {
    color: #16a34a;
    font-size: 16px;
}

/* ================= MODAL DIALOGS ================= */
.cs-modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.cs-modal-backdrop.show {
    display: flex;
}
.cs-modal-box {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 45px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}
.cs-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.cs-modal-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}
.btn-close-modal {
    font-size: 16px;
    color: #94a3b8;
    cursor: pointer;
}
.cs-modal-body {
    padding: 18px 20px;
}
.cs-modal-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 0 0 18px 18px;
}
.btn-modal-action {
    flex: 1;
    padding: 11px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
}
.btn-modal-cancel {
    padding: 11px 18px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* THÀNH PHẦN BÊN TRONG MODAL */
.m-step-group {
    margin-bottom: 16px;
}
.m-step-head {
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.m-num {
    width: 20px; height: 20px;
    background: #2563eb; color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px;
}
.btn-gen-pass {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.m-field {
    margin-bottom: 10px;
}
.m-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}
.m-field input, .cs-select-styled {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}
.cs-input-disabled {
    background: #f1f5f9;
    color: #64748b;
}
.pass-rules-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11px;
    color: #64748b;
}
.pass-rules-box ul {
    margin: 4px 0 0 16px;
    padding: 0;
}
.cs-alert-yellow {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11.5px;
    color: #92400e;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.cs-alert-red {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11.5px;
    color: #991b1b;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.fee-display-card, .renew-price-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    font-size: 12.5px;
}
.fee-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #475569;
}
.specs-pill-summary {
    display: flex;
    gap: 8px;
}
.specs-pill-summary span {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
}
.addon-line-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
}
.stepper-mini {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}
.stepper-mini button {
    background: #f1f5f9;
    border: none;
    width: 28px; height: 28px;
    font-weight: 700; color: #2563eb;
    cursor: pointer;
}
.stepper-mini input {
    width: 36px; height: 28px;
    border: none; text-align: center;
    font-weight: 800; font-size: 12px;
    outline: none;
}

/* REALTIME MONITOR */
.monitor-meter-row {
    margin-bottom: 12px;
}
.meter-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
}
.meter-bar {
    width: 100%; height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}
.meter-fill {
    height: 100%;
    background: #16a34a;
    border-radius: 4px;
}
.mock-chart-visual {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 70px;
    margin-top: 10px;
    padding-top: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.chart-col {
    flex: 1;
    background: #dcfce7;
    border-radius: 4px 4px 0 0;
    border: 1px solid #86efac;
}


