/* OKX-SMS Professional Stylesheet */
/* Font: Plus Jakarta Sans */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #0f172a;
    --sidebar-bg: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-active: #2563eb;
    --bg-main: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ========== LOGIN PAGE ========== */
.login-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    display: flex;
    width: 900px;
    max-width: 95vw;
    min-height: 560px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.login-brand {
    margin-bottom: 40px;
}

.brand-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.login-brand h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.login-brand p {
    font-size: 15px;
    opacity: 0.85;
    font-weight: 400;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

.feature-item i {
    width: 20px;
    text-align: center;
    opacity: 0.9;
}

.login-right {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-wrapper {
    width: 100%;
    max-width: 340px;
}

.login-form-wrapper h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}

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

.input-wrapper .form-control {
    padding-left: 42px;
    height: 46px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.input-wrapper .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-login {
    width: 100%;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.login-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== APP LAYOUT ========== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.sidebar-nav {
    flex: 1;
    padding: 8px 12px;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.nav-item.active .nav-link {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.nav-item .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sms-balance-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.balance-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.balance-label {
    display: block;
    font-size: 11px;
    color: var(--sidebar-text);
    font-weight: 500;
}

.balance-value {
    display: block;
    font-size: 18px;
    color: white;
    font-weight: 700;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-header {
    height: 64px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-header .sidebar-toggle {
    color: var(--text-primary);
    font-size: 22px;
}

.header-right {
    margin-left: auto;
}

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

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.page-content {
    padding: 28px;
    flex: 1;
}

/* ========== PAGE HEADER ========== */
.page-header {
    margin-bottom: 28px;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ========== STATS CARDS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-sms::before { background: var(--primary); }
.stat-sent::before { background: var(--success); }
.stat-rate::before { background: var(--warning); }
.stat-campaign::before { background: #8b5cf6; }

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-sms .stat-icon { background: var(--info-light); color: var(--primary); }
.stat-sent .stat-icon { background: var(--success-light); color: var(--success); }
.stat-rate .stat-icon { background: var(--warning-light); color: var(--warning); }
.stat-campaign .stat-icon { background: #ede9fe; color: #8b5cf6; }

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

.stat-action {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.stat-action:hover {
    color: var(--primary-dark);
    gap: 10px;
}

.stat-action-text {
    font-size: 13px;
    color: var(--success);
    font-weight: 600;
}

/* ========== CONTENT CARDS ========== */
.content-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-header-custom {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header-custom h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    margin: 0;
}

.card-header-custom h3 i {
    color: var(--primary);
}

.card-body-custom {
    padding: 24px;
}

.view-all-btn {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.view-all-btn:hover {
    color: var(--primary-dark);
}

/* ========== TABLE ========== */
.custom-table {
    margin: 0;
}

.custom-table thead th {
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.custom-table tbody td {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.custom-table tbody tr:hover {
    background: #f8fafc;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

.campaign-name {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.campaign-name i {
    color: var(--primary);
}

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-success {
    background: var(--success-light);
    color: var(--success);
}

.status-pending {
    background: var(--warning-light);
    color: var(--warning);
}

.status-failed {
    background: var(--danger-light);
    color: var(--danger);
}

.status-moderator {
    background: var(--info-light);
    color: var(--info);
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 48px 20px;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

/* ========== QUICK ACTIONS ========== */
.quick-actions {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.quick-action-btn:hover {
    background: var(--primary-light);
    color: var(--text-primary);
    transform: translateX(4px);
}

.qa-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.qa-send { background: var(--info-light); color: var(--primary); }
.qa-campaign { background: #ede9fe; color: #8b5cf6; }
.qa-balance { background: var(--success-light); color: var(--success); }

.qa-info {
    flex: 1;
}

.qa-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.qa-desc {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.quick-action-btn > i:last-child {
    color: var(--text-muted);
    font-size: 12px;
}

/* ========== BUTTONS ========== */
.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: inherit;
    padding: 10px 20px;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-send-sms {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: inherit;
    padding: 14px 32px;
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.btn-send-sms:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-reset {
    background: #f1f5f9;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: inherit;
    padding: 14px 28px;
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.btn-reset:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.btn-detail {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-detail:hover {
    background: var(--primary);
    color: white;
}

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

/* ========== FORMS ========== */
.form-label-custom {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.custom-input {
    height: 46px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    padding: 0 14px;
}

.custom-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.custom-textarea {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.6;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

/* ========== TABS ========== */
.recipient-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.tab-content-custom {
    display: none;
}

.tab-content-custom.active {
    display: block;
}

/* ========== FILE UPLOAD ========== */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.03);
}

.upload-area.has-file {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.03);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 12px;
}

.upload-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--success-light);
    border-radius: var(--radius-sm);
    margin-top: 12px;
    color: var(--success);
    font-weight: 600;
    font-size: 14px;
}

.btn-remove-file {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

/* ========== STICKY CARD ========== */
.sticky-card {
    position: sticky;
    top: 84px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.info-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.info-value {
    font-size: 15px;
    font-weight: 700;
}

.info-tips {
    margin-top: 12px;
}

.info-tips h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.info-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-tips li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.info-tips li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 13px;
}

/* ========== BALANCE PAGE ========== */
.balance-card-large {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.balance-card-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.balance-card-label {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.balance-card-value {
    display: block;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
}

.balance-card-unit {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.7;
}

.balance-card-stats {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.bcs-item {
    flex: 1;
    text-align: center;
}

.bcs-item span {
    display: block;
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.bcs-item strong {
    font-size: 18px;
    font-weight: 700;
}

/* ========== BALANCE PACKAGES ========== */
.balance-packages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.package-option {
    cursor: pointer;
}

.package-option input {
    display: none;
}

.package-card {
    text-align: center;
    padding: 24px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.package-option input:checked + .package-card {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.package-card:hover {
    border-color: var(--primary);
}

.package-amount {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 2px;
}

.package-unit {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.package-price {
    display: block;
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
}

.package-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.package-badge.best {
    background: var(--success);
}

.package-badge.enterprise {
    background: #8b5cf6;
}

/* ========== MODAL ========== */
.custom-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 18px 24px;
}

.custom-modal .modal-title {
    font-size: 16px;
    font-weight: 700;
}

.custom-modal .modal-body {
    padding: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.detail-item {
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
}

.detail-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-message {
    margin-bottom: 20px;
}

.message-box {
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    border-left: 3px solid var(--primary);
}

.numbers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.number-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.number-tag.more {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

/* ========== ALERTS ========== */
.custom-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
}

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

.alert-content {
    flex: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
    }
    .main-content {
        margin-left: 0;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .login-wrapper {
        flex-direction: column;
    }
    .login-left {
        padding: 32px 28px;
    }
    .login-right {
        padding: 32px 28px;
    }
}

@media (max-width: 575px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .page-content {
        padding: 20px 16px;
    }
    .balance-packages {
        grid-template-columns: 1fr;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .login-features {
        display: none;
    }
}

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

.stat-card,
.content-card,
.balance-card-large {
    animation: fadeIn 0.4s ease forwards;
}

.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.15s; }
