/* === মূল ভেরিয়েবল এবং বেস স্টাইল === */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Sharp');

:root {
    --primary-color: #7367f0;
    --primary-light: #e9e7fd;
    --primary-dark: #5e50ee;
    --success-color: #28c76f;
    --danger-color: #ea5455;
    --warning-color: #ff9f43;
    
    --background-light: #f8f7fa;
    --card-bg-light: #ffffff;
    --text-color-light: #4E4B66;
    --heading-color-light: #333;
    --border-color-light: #ebe9f1;
    --shadow-light: 0 4px 24px 0 rgba(34, 41, 47, 0.1);
    
    --background-dark: #161d31;
    --card-bg-dark: #283046;
    --text-color-dark: #d0d2d6;
    --heading-color-dark: #ffffff;
    --border-color-dark: #3b4253;
    --shadow-dark: 0 4px 24px 0 rgba(0, 0, 0, 0.2);

    --transition-speed: 0.4s;
}

html {
    /* পুরো লেআউটকে ৮০% জুমে দেখানো হচ্ছে */
    zoom: 0.8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hind Siliguri', sans-serif;
}

body {
    background: var(--background-light);
    color: var(--text-color-light);
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

body.dark-mode {
    background: var(--background-dark);
    color: var(--text-color-dark);
}

/* === ড্যাশবোর্ড কন্টেইনার এবং লেআউট === */
.dashboard-container { display: flex; }
.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 20px;
    transition: all var(--transition-speed) ease;
}
.main-content.full-width { margin-left: 90px; width: calc(100% - 90px); }

/* === সাইডবার === */
.sidebar {
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0; /* ★★★ সমাধান: height: 100vh এর পরিবর্তে top এবং bottom ব্যবহার করা হয়েছে ★★★ */
    background: var(--card-bg-light);
    border-right: 1px solid var(--border-color-light);
    transition: all var(--transition-speed) ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
body.dark-mode .sidebar { background: var(--card-bg-dark); border-right-color: var(--border-color-dark); }
.sidebar.collapsed { width: 90px; }
.sidebar-header {
    display: flex; align-items: center; gap: 15px; padding: 0 25px; height: 70px; flex-shrink: 0;
}
.sidebar-header .logo-icon { font-size: 2.5rem; color: var(--primary-color); }
.sidebar-header .logo-text { font-size: 1.5rem; font-weight: 700; white-space: nowrap; opacity: 1; transition: opacity 0.2s, color var(--transition-speed) ease; }
.sidebar.collapsed .logo-text { opacity: 0; display: none; }
.sidebar-menu { 
    list-style: none; padding: 20px 15px; overflow-y: auto; flex-grow: 1;
    -ms-overflow-style: none; scrollbar-width: none;
}
.sidebar-menu::-webkit-scrollbar { display: none; }
.sidebar-menu .sidebar-header {
    padding: 20px 20px 8px; font-size: 13px; font-weight: 600; color: #a0aec0;
    text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
}
.sidebar.collapsed .sidebar-header { display: none; }
.sidebar-menu-item a {
    display: flex; align-items: center; padding: 14px 20px; color: #626262; text-decoration: none;
    border-radius: 8px; margin-bottom: 8px; transition: all 0.3s ease; white-space: nowrap;
}
body.dark-mode .sidebar-menu-item a { color: #b0b0b0; }
.sidebar-menu-item a:hover, .sidebar-menu-item.active a {
    background-color: var(--primary-color); color: #fff !important; transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(115, 103, 240, 0.4);
}
body.dark-mode .sidebar-menu-item a:hover, body.dark-mode .sidebar-menu-item.active a { box-shadow: 0 4px 12px rgba(115, 103, 240, 0.3); }
.sidebar-menu-item .menu-icon { font-size: 1.6rem; margin-right: 20px; transition: margin 0.3s; }
.sidebar.collapsed .sidebar-menu-item .menu-icon { margin: 0; }
.sidebar.collapsed .sidebar-menu-item a { justify-content: center; }
.sidebar.collapsed .sidebar-menu-item .menu-text { display: none; }

/* --- হেডার --- */
.header {
    display: flex; justify-content: space-between; align-items: center; padding: 10px 20px;
    background: var(--card-bg-light); border-radius: 12px; box-shadow: var(--shadow-light);
    position: sticky; top: 20px; z-index: 999;
}
body.dark-mode .header { background: var(--card-bg-dark); box-shadow: var(--shadow-dark); }
.header-left .toggle-btn { font-size: 1.8rem; cursor: pointer; padding: 8px; border-radius: 50%; transition: all 0.3s; }
.header-left .toggle-btn:hover { background: var(--primary-light); }
body.dark-mode .header-left .toggle-btn:hover { background: rgba(255,255,255,0.1); }
.header-right { display: flex; align-items: center; gap: 20px; }
.dark-mode-toggle { cursor: pointer; font-size: 1.6rem; }
.profile img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--primary-color); }
.profile a { display: block; line-height: 0; }

/* --- সাধারণ কম্পোনেন্ট --- */
.page-container { padding-top: 20px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.page-title { color: var(--heading-color-light); margin: 0; font-size: 2rem; font-weight: 700; }
body.dark-mode .page-title { color: var(--heading-color-dark); }
.breadcrumbs { color: #888; margin: 0; font-size: 14px; }
.content-card { background: var(--card-bg-light); border-radius: 12px; box-shadow: var(--shadow-light); padding: 25px; }
body.dark-mode .content-card { background: var(--card-bg-dark); box-shadow: var(--shadow-dark); }

/* --- বাটন --- */
.btn {
    padding: 10px 22px; border: none; border-radius: 8px; font-size: 16px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; transition: all 0.3s;
}
.btn .fas, .btn .far, .btn .material-icons-sharp { font-size: 1.2rem; }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); box-shadow: 0 2px 8px rgba(115, 103, 240, 0.5); }
.btn-secondary { background-color: #f8f7fa; color: #555; border: 1px solid var(--border-color-light); }
body.dark-mode .btn-secondary { background-color: #3b4253; color: var(--text-color-dark); border-color: #4a5165; }
.btn-secondary:hover { background-color: #e9ecef; }
body.dark-mode .btn-secondary:hover { background-color: #4a5165; }

/* --- টেবিল এবং সংশ্লিষ্ট কম্পোনেন্ট --- */
.card-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.search-box { position: relative; }
.search-box .fas, .search-box .fa-search { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #adb5bd; }
.search-box input {
    padding: 12px 15px 12px 45px; border: 1px solid var(--border-color-light); border-radius: 8px;
    font-size: 16px; min-width: 250px; background: transparent; color: var(--text-color-light);
}
body.dark-mode .search-box input { border-color: var(--border-color-dark); color: var(--text-color-dark); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color-light); }
body.dark-mode .data-table th, body.dark-mode .data-table td { border-bottom-color: var(--border-color-dark); }
.data-table th { color: #888; font-weight: 600; text-transform: uppercase; font-size: 13px; }
.data-table td { font-weight: 500; }
.actions a { text-decoration: none; font-weight: 600; margin-left: 20px; }
.actions .fas, .actions .far { margin-right: 5px; }
.action-edit { color: var(--primary-color); }
.action-delete { color: var(--danger-color); }
.action-copy { color: var(--success-color); }
.card-footer { padding-top: 20px; display: flex; justify-content: flex-end; }
.pagination-controls { display: flex; align-items: center; gap: 10px; }
.pagination-controls select {
    padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border-color-light);
    background: transparent; color: var(--text-color-light);
}
body.dark-mode .pagination-controls select { border-color: var(--border-color-dark); color: var(--text-color-dark); }
.status-badge { padding: 5px 12px; border-radius: 16px; font-size: 12px; font-weight: bold; text-transform: uppercase; }
.status-badge.status-completed, .status-badge.status-connected, .status-badge.status-verified { background-color: #dcfce7; color: #22c55e; }
.status-badge.status-pending, .status-badge.status-received { background-color: #fef9c3; color: #f59e0b; }
.status-badge.status-failed, .status-badge.status-cancelled, .status-badge.status-disconnected { background-color: #fee2e2; color: #ef4444; }

/* --- ফর্ম এলিমেন্ট --- */
.form-group, .select-wrapper { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea, .select-wrapper select {
    width: 100%; padding: 12px 15px; border: 1px solid var(--border-color-light); border-radius: 8px;
    font-size: 16px; box-sizing: border-box; background: transparent; color: var(--text-color-light); transition: border-color 0.3s;
}
body.dark-mode .form-group input, body.dark-mode .form-group textarea, body.dark-mode .select-wrapper select {
    border-color: var(--border-color-dark); color: var(--text-color-dark);
}
.form-group input:focus, .form-group textarea:focus, .select-wrapper select:focus {
    outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px var(--primary-light);
}
body.dark-mode .form-group input:focus, body.dark-mode .form-group textarea:focus, body.dark-mode .select-wrapper select:focus {
    box-shadow: 0 0 0 2px rgba(115, 103, 240, 0.3);
}
.select-wrapper { position: relative; }
.select-wrapper::after {
    content: '\e5c5'; font-family: 'Material Icons Sharp'; position: absolute; top: 50%; right: 15px;
    transform: translateY(-50%); pointer-events: none; color: #888;
}
.select-wrapper select { -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.toggle-switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: .4s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: ""; height: 20px; width: 20px;
    left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(22px); }

/* --- মডাল --- */
.modal {
    display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px);
}
.modal-content {
    background-color: var(--card-bg-light); margin: 10% auto; padding: 30px; border: none; width: 90%; max-width: 550px;
    border-radius: 12px; box-shadow: var(--shadow-light);
}
body.dark-mode .modal-content { background-color: var(--card-bg-dark); box-shadow: var(--shadow-dark); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--border-color-light); }
body.dark-mode .modal-header { border-bottom-color: var(--border-color-dark); }
.modal-header h2 { margin: 0; font-size: 1.5rem; color: var(--heading-color-light); }
body.dark-mode .modal-header h2 { color: var(--heading-color-dark); }
.close-button { color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.modal-footer { display: flex; justify-content: flex-end; padding-top: 20px; gap: 10px; }

/* === জেনারেল সেটিংস, API সেটিংস, ব্র্যান্ড আইকন === */
.settings-tabs {
    display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--border-color-light);
    margin-bottom: 15px; padding-left: 5px;
}
body.dark-mode .settings-tabs { border-bottom-color: var(--border-color-dark); }
.tab-item {
    display: flex; align-items: center; gap: 8px; padding: 15px 5px; text-decoration: none;
    color: #6c757d; font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.tab-item .fas { font-size: 16px; }
.tab-item:hover { color: var(--primary-color); }
.tab-item.active { color: var(--primary-color); font-weight: 600; border-bottom-color: var(--primary-color); }
.tab-badge {
    background-color: var(--primary-light); color: var(--primary-color); padding: 4px 10px;
    border-radius: 16px; font-size: 12px; font-weight: 500; margin-left: 6px;
}
.settings-section { padding: 25px 5px; border-top: 1px solid var(--border-color-light); }
body.dark-mode .settings-section { border-top-color: var(--border-color-dark); }
.settings-section:first-child { border-top: none; padding-top: 10px; }
.settings-section h3 { margin: 0 0 5px 0; font-size: 1.2rem; color: var(--heading-color-light); }
body.dark-mode .settings-section h3 { color: var(--heading-color-dark); }
.settings-section p { margin: 0 0 25px 0; color: #888; }
.form-group small { display: block; margin-top: 8px; color: #888; font-size: 13px; }
.settings-actions {
    padding: 20px; border-top: 1px solid var(--border-color-light); margin: 25px -25px -25px -25px;
    display: flex; justify-content: flex-end; background-color: #fcfcfc;
    border-bottom-left-radius: 12px; border-bottom-right-radius: 12px;
}
body.dark-mode .settings-actions { border-top-color: var(--border-color-dark); background-color: #242b3d; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.form-grid-3-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.form-group-color {
    display: flex; align-items: center; border: 1px solid var(--border-color-light); border-radius: 8px;
    padding-left: 12px; background-color: var(--card-bg-light);
}
body.dark-mode .form-group-color { border-color: var(--border-color-dark); background-color: var(--card-bg-dark); }
.form-group-color:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 2px var(--primary-light); }
body.dark-mode .form-group-color:focus-within { box-shadow: 0 0 0 2px rgba(115, 103, 240, 0.3); }
.form-group-color input[type="text"] { border: none !important; flex-grow: 1; padding: 12px 0 !important; font-size: 16px; box-shadow: none !important; outline: none !important; width: 100%; }
.form-group-color input[type="color"] { width: 38px; height: 30px; border: none; background: none; padding: 0 4px; cursor: pointer; border-radius: 0 7px 7px 0; }
.input-with-prefix {
    display: flex; align-items: center; border: 1px solid var(--border-color-light);
    border-radius: 8px; background-color: var(--card-bg-light);
}
body.dark-mode .input-with-prefix { border-color: var(--border-color-dark); background-color: var(--card-bg-dark); }
.input-with-prefix span {
    padding: 0 15px; background-color: #f8f9fa; border-right: 1px solid var(--border-color-light); color: #6c757d;
    align-self: stretch; display: flex; align-items: center; border-top-left-radius: 8px; border-bottom-left-radius: 8px;
}
body.dark-mode .input-with-prefix span { background-color: #3b4253; border-right-color: var(--border-color-dark); }
.input-with-prefix input { border: none !important; flex-grow: 1; }
.api-card { margin-bottom: 25px; }
.api-card .card-header h3 { margin: 0 0 5px 0; font-size: 1.3rem; color: var(--heading-color-light); }
body.dark-mode .api-card .card-header h3 { color: var(--heading-color-dark); }
.api-card .card-header p { margin: 0 0 15px 0; color: #888; font-size: 0.95rem; }
.input-with-actions {
    display: flex; align-items: center; border: 1px solid var(--border-color-light);
    border-radius: 8px; padding-right: 8px; transition: border-color 0.3s;
}
body.dark-mode .input-with-actions { border-color: var(--border-color-dark); }
.input-with-actions:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 2px var(--primary-light); }
body.dark-mode .input-with-actions:focus-within { box-shadow: 0 0 0 2px rgba(115, 103, 240, 0.3); }
.input-with-actions input {
    flex-grow: 1; border: none !important; outline: none !important; padding: 12px 15px !important;
    font-size: 16px; background-color: transparent !important; color: var(--text-color-light) !important;
}
body.dark-mode .input-with-actions input { color: var(--text-color-dark) !important; }
.input-with-actions .actions { display: flex; gap: 5px; }
.input-with-actions .icon-btn {
    background: none; border: none; cursor: pointer; font-size: 1.1rem; color: #888;
    padding: 8px; border-radius: 50%; transition: background-color 0.2s, color 0.2s;
}
.input-with-actions .icon-btn:hover { background-color: #f0f0f0; color: var(--primary-color); }
body.dark-mode .input-with-actions .icon-btn:hover { background-color: #3b4253; }
.logo-uploader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; align-items: flex-start; }
.label-with-tooltip { display: flex; align-items: center; gap: 8px; }
.label-with-tooltip .fa-question-circle { color: #adb5bd; cursor: help; }
.image-uploader {
    border: 2px dashed var(--border-color-light); border-radius: 12px; padding: 10px; text-align: center;
    cursor: pointer; transition: all 0.2s; background-color: var(--background-light); position: relative;
    display: flex; align-items: center; justify-content: center; min-height: 140px;
}
body.dark-mode .image-uploader { border-color: var(--border-color-dark); background-color: #1a2236; }
.image-uploader:hover, .image-uploader.drag-over { border-color: var(--primary-color); }
.image-uploader.has-preview { border-style: solid; padding: 0; background-color: transparent; }
.image-uploader input[type="file"] { display: none; }
.image-uploader .uploader-content { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.image-uploader .uploader-text { color: #6c757d; }
.image-uploader .browse-link { color: var(--primary-color); font-weight: 500; text-decoration: underline; }
.image-uploader.uploader-round { width: 140px; height: 140px; border-radius: 50%; }
.preview-container { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.remove-image-btn {
    position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: none;
    background-color: rgba(0, 0, 0, 0.5); color: white; font-size: 16px; font-weight: bold; cursor: pointer;
    display: flex; align-items: center; justify-content: center; line-height: 1; opacity: 0; transition: opacity 0.2s;
}
.preview-container:hover .remove-image-btn { opacity: 1; }
.image-uploader .image-preview { max-width: calc(100% - 20px); max-height: calc(100% - 20px); object-fit: contain; border-radius: 8px; }
.uploader-round .image-preview { width: calc(100% - 20px); height: calc(100% - 20px); border-radius: 50%; object-fit: cover; }

/* --- রিপোর্ট পেজ --- */
.report-filters { display: flex; gap: 10px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.report-card {
    background-color: var(--card-bg-light); border-radius: 12px; padding: 20px;
    box-shadow: var(--shadow-light); border: 1px solid transparent; transition: all 0.3s ease;
}
body.dark-mode .report-card { background-color: var(--card-bg-dark); box-shadow: var(--shadow-dark); }
.report-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.report-card .card-header { display: flex; justify-content: space-between; align-items: center; color: #888; margin-bottom: 15px; }
.report-card .card-title { font-weight: 600; font-size: 1rem; }
.report-card .card-body .amount {
    font-size: 2.2rem; font-weight: 700; margin: 0 0 8px 0; color: var(--heading-color-light);
}
body.dark-mode .report-card .card-body .amount { color: var(--heading-color-dark); }
.report-card .card-body .stats { margin: 0; color: #777; }
body.dark-mode .report-card .card-body .stats { color: #aaa; }
.report-card .card-body .stats .success-rate { color: var(--success-color); font-weight: 600; }

/* --- Update Notification --- */
.update-notification-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6);
    z-index: 1050; display: none; align-items: center; justify-content: center;
}
.update-notification-modal {
    background-color: var(--card-bg-light); padding: 30px; border-radius: 12px;
    box-shadow: var(--shadow-light); width: 90%; max-width: 450px; text-align: center; position: relative;
}
body.dark-mode .update-notification-modal { background-color: var(--card-bg-dark); box-shadow: var(--shadow-dark); }
.update-notification-modal h3 { margin-top: 0; font-size: 1.5rem; color: var(--primary-color); display: flex; align-items: center; justify-content: center; }
.update-notification-modal h3 .material-icons-sharp { font-size: 1.8rem; margin-right: 5px; }
.update-notification-close-btn {
    position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2rem; color: #aaa; cursor: pointer; line-height: 1;
}

/* --- ডকুমেন্টেশন পেজ --- */
.page-container > .content-card + .content-card { margin-top: 25px; }
.content-card h3 {
    font-size: 1.4rem; color: var(--heading-color-light); margin-bottom: 15px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color-light);
}
body.dark-mode .content-card h3 { color: var(--heading-color-dark); border-bottom-color: var(--border-color-dark); }
.content-card h4 {
    font-size: 1.1rem; color: var(--heading-color-light); margin-top: 20px; margin-bottom: 10px;
}
body.dark-mode .content-card h4 { color: var(--heading-color-dark); }
.content-card p, .content-card ol, .content-card ul {
    line-height: 1.7; margin-bottom: 15px; color: #6e6b8a;
}
body.dark-mode .content-card p, body.dark-mode .content-card ol, body.dark-mode .content-card ul { color: #b4b7bd; }
.content-card ol, .content-card ul { padding-left: 25px; }
.content-card li { margin-bottom: 8px; }
.content-card pre {
    background-color: #282c34; color: #abb2bf; padding: 20px; border-radius: 8px; overflow-x: auto;
    white-space: pre-wrap; word-wrap: break-word; font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem; margin: 20px 0; border: 1px solid var(--border-color-dark);
}
.content-card p code, .content-card li code, .content-card h4 code {
    background-color: var(--primary-light); color: var(--primary-dark); padding: 3px 7px;
    border-radius: 5px; font-size: 0.9em; font-weight: 600;
}
body.dark-mode .content-card p code, body.dark-mode .content-card li code, body.dark-mode .content-card h4 code {
    background-color: rgba(115, 103, 240, 0.2); color: #a399ff;
}
.content-card pre code { padding: 0; background: none; color: inherit; font-size: inherit; }

/* Billing, Devices, SMS Data পেজের জন্য অতিরিক্ত স্টাইল */
.billing-container { display: flex; flex-wrap: wrap; gap: 30px; }
.billing-sidebar { flex: 0 0 220px; background-color: var(--card-bg-light); border-radius: 12px; padding: 15px; align-self: flex-start; }
body.dark-mode .billing-sidebar { background-color: var(--card-bg-dark); }
.billing-sidebar nav ul { list-style-type: none; padding: 0; margin: 0; }
.billing-sidebar nav ul li a { display: block; padding: 12px 18px; text-decoration: none; color: var(--text-color-light); border-radius: 8px; font-weight: 500; transition: background-color 0.2s, color 0.2s; }
body.dark-mode .billing-sidebar nav ul li a { color: var(--text-color-dark); }
.billing-sidebar nav ul li.active a { background-color: var(--primary-light); color: var(--primary-color); }
body.dark-mode .billing-sidebar nav ul li.active a { background-color: rgba(115, 103, 240, 0.2); color: #a399ff; }
.billing-main { flex: 1; min-width: 0; }
.billing-content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 20px; }
.account-balance, .plan-quota { padding: 25px; background-color: var(--card-bg-light); border-radius: 12px; box-shadow: var(--shadow-light); }
body.dark-mode .account-balance, body.dark-mode .plan-quota { background-color: var(--card-bg-dark); box-shadow: var(--shadow-dark); }
.account-balance h3, .plan-quota h3 { margin-top: 0; font-size: 1.3rem; color: var(--heading-color-light); }
body.dark-mode .account-balance h3, body.dark-mode .plan-quota h3 { color: var(--heading-color-dark); }
.account-balance .balance { font-size: 2.2rem; font-weight: 700; color: var(--primary-color); margin: 10px 0; }
.account-balance .availability { color: #888; margin-bottom: 20px; }
.quota-item { margin-top: 15px; }
.quota-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 500; }
.quota-bar { background-color: #e9ecef; border-radius: 8px; height: 10px; overflow: hidden; }
body.dark-mode .quota-bar { background-color: #3b4253; }
.quota-progress { background-color: var(--primary-color); height: 100%; }
.plan-allocation { margin-top: 20px; background-color: var(--background-light); padding: 15px; border-radius: 8px; }
body.dark-mode .plan-allocation { background-color: var(--background-dark); }
.plan-allocation p { margin-top: 0; font-weight: 600; }
.plan-allocation ul { list-style-type: none; padding: 0; margin: 10px 0 0 0; color: #6c757d; }
body.dark-mode .plan-allocation ul { color: #b4b7bd; }
.plan-allocation ul li { display: flex; justify-content: space-between; margin-bottom: 5px; }
.billing-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 1001; display: none; align-items: center; justify-content: center; }
.billing-modal-overlay.open { display: flex; }
.billing-modal-content { background-color: var(--card-bg-light); padding: 30px; border-radius: 12px; box-shadow: var(--shadow-dark); width: 100%; max-width: 700px; }
body.dark-mode .billing-modal-content { background-color: var(--card-bg-dark); }
.billing-modal-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; margin-bottom: 20px; }
.close-modal-btn { background: none; border: none; font-size: 28px; font-weight: bold; cursor: pointer; color: #aaa; }
.amount-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; margin-top: 10px; }
.amount-btn { padding: 15px; border: 1px solid var(--border-color-light); border-radius: 8px; background-color: transparent; cursor: pointer; font-size: 16px; font-weight: 500; text-align: center; transition: all 0.2s; color: var(--text-color-light); }
body.dark-mode .amount-btn { border-color: var(--border-color-dark); color: var(--text-color-dark); }
.amount-btn:hover { border-color: #adb5bd; }
.amount-btn.active { border-color: var(--primary-color); background-color: var(--primary-light); color: var(--primary-color); }
body.dark-mode .amount-btn.active { background-color: rgba(115, 103, 240, 0.2); }
.billing-modal-footer { display: flex; justify-content: flex-start; gap: 10px; margin-top: 25px; }
#purchase-summary { margin-top: 20px; padding: 15px; background-color: var(--background-light); border-radius: 8px; text-align: center; }
body.dark-mode #purchase-summary { background-color: var(--background-dark); }
#insufficient-balance-warning { color: var(--danger-color); display: none; margin-top: 5px; }
.side-panel-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1001; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.side-panel-overlay.open { opacity: 1; visibility: visible; }
.side-panel { position: fixed; top: 0; right: -850px; width: 100%; max-width: 800px; height: 100%; background-color: var(--background-light); box-shadow: var(--shadow-dark); transition: right 0.4s ease-in-out; display: flex; flex-direction: column; }
body.dark-mode .side-panel { background-color: var(--background-dark); }
.side-panel-overlay.open .side-panel { right: 0; }
.side-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 25px; background-color: var(--card-bg-light); border-bottom: 1px solid var(--border-color-light); flex-shrink: 0; }
body.dark-mode .side-panel-header { background-color: var(--card-bg-dark); border-bottom-color: var(--border-color-dark); }
.side-panel-header h3 { margin: 0; font-size: 1.2rem; color: var(--heading-color-light); }
body.dark-mode .side-panel-header h3 { color: var(--heading-color-dark); }
.close-panel-btn { background: none; border: none; font-size: 28px; cursor: pointer; color: #888; }
.side-panel-body { padding: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 25px; overflow-y: auto; flex-grow: 1; }
.panel-card { background-color: var(--card-bg-light); border: 1px solid var(--border-color-light); border-radius: 12px; padding: 20px; }
body.dark-mode .panel-card { background-color: var(--card-bg-dark); border-color: var(--border-color-dark); }
.panel-card-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid var(--border-color-light); }
body.dark-mode .panel-card-header { border-bottom-color: var(--border-color-dark); }
.panel-card-header h4 { margin: 0; font-size: 1rem; color: var(--heading-color-light); }
body.dark-mode .panel-card-header h4 { color: var(--heading-color-dark); }
.panel-card-body h2 { font-size: 1.4rem; margin-top: 0; color: var(--heading-color-light); }
body.dark-mode .panel-card-body h2 { color: var(--heading-color-dark); }
.panel-card-body .subtitle { color: var(--primary-color); font-weight: bold; margin-top: -10px; display: block; margin-bottom: 15px; }
.features-list { list-style: none; padding: 0; margin: 20px 0; }
.features-list li { margin-bottom: 12px; color: var(--text-color-light); display: flex; align-items: center; gap: 10px; }
body.dark-mode .features-list li { color: var(--text-color-dark); }
.features-list .fas { color: var(--success-color); }
.download-btn { width: 100%; justify-content: center; padding: 12px; }
.qr-section { text-align: center; }
.qr-code-container { margin-top: 20px; padding: 10px; border: 1px solid var(--border-color-light); border-radius: 8px; display: inline-block; background: white; }
.qr-code-container img { max-width: 100%; height: auto; display: block; }
@media (max-width: 768px) { .side-panel { max-width: 100%; right: -100%; } .side-panel-body { grid-template-columns: 1fr; } }
.filter-tabs-container { text-align: center; margin-bottom: 20px; }
.filter-tabs { display: inline-flex; flex-wrap: wrap; gap: 10px; padding: 8px; background-color: var(--card-bg-light); border-radius: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.04); border: 1px solid var(--border-color-light); }
body.dark-mode .filter-tabs { background-color: var(--card-bg-dark); border-color: var(--border-color-dark); }
.filter-tab { padding: 8px 18px; text-decoration: none; color: #555; border-radius: 8px; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; transition: background-color 0.2s, color 0.2s; }
body.dark-mode .filter-tab { color: var(--text-color-dark); }
.filter-tab .fas { font-size: 14px; color: #888; transition: color 0.2s; }
.filter-tab:hover { background-color: #f0f0f0; }
body.dark-mode .filter-tab:hover { background-color: #3b4253; }
.filter-tab.active { background-color: var(--primary-light); color: var(--primary-color); }
body.dark-mode .filter-tab.active { background-color: rgba(115, 103, 240, 0.2); color: #a399ff; }
.filter-tab.active .fas { color: var(--primary-color); }
body.dark-mode .filter-tab.active .fas { color: #a399ff; }
.form-section { padding: 10px 0; }
.form-row { display: flex; flex-wrap: wrap; gap: 25px; margin-bottom: 20px; }
.form-row:last-child { margin-bottom: 0; }
.form-group.half-width { width: calc(50% - 12.5px); flex-grow: 1; }
.form-group.third-width { width: calc(33.333% - 17px); flex-grow: 1; }
.form-group textarea { resize: vertical; min-height: 80px; }
@media (max-width: 768px) { .form-row { flex-direction: column; gap: 20px; } .form-group.half-width, .form-group.third-width { width: 100%; } }