/**
 * =====================================================
 * PINGTR UNIFIED CSS - کلاس‌های کاربردی
 * =====================================================
 * این فایل فقط کلاس‌های کمکی اضافه میکنه
 * متغیرهای CSS از app.css (Vite) لود میشه
 */

/* ===== UTILITIES FOR ALIASES ===== */
/* این aliases برای سازگاری با کدهای قدیمی هستن */
:root {
    /* Background alias */
    --bg: var(--color-charcoal-950, #0d0d14);
    --color-charcoal-950: #0d0d14;
    --color-charcoal-900: #141420;
    
    /* Surface aliases */
    --surface: var(--color-surface, #1a1a30);
    --surface-hover: var(--color-surface-hover, #222240);
    --surface-active: var(--color-surface-active, #2a2a50);
    --border: var(--color-border, #2a2a46);
    --border-hover: var(--color-border-hover, #3a3a60);
    --text: var(--color-text, #e8e8ee);
    --text-secondary: var(--color-text-secondary, #b8b8cc);
    --text-dim: var(--color-text-dim, #8888a0);
    --text-muted: var(--text-muted, #5a5a70);
    --accent: var(--color-accent, #f78b26);
    --accent-hover: var(--color-accent-hover, #ffa054);
    --accent-secondary: var(--color-secondary, #f78b26);
    --accent-secondary-hover: var(--color-secondary-hover, #ffa054);
    --accent-dim: var(--color-accent-dim, rgba(247, 139, 38, 0.15));
    --accent-glow: var(--color-accent-glow, rgba(247, 139, 38, 0.4));
    --success: var(--color-success, #f78b26);
    --success-dim: rgba(247, 139, 38, 0.15);
    --danger: var(--color-error, #f87171);
    --danger-dim: rgba(248, 113, 113, 0.15);
    --warning: var(--color-warn, #fbbf24);
    --warning-dim: rgba(251, 191, 36, 0.15);
    --info: #60a5fa;
    --info-dim: rgba(96, 165, 250, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--accent-glow);
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ===== 1. CARDS ===== */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}
.card:hover {
    border-color: var(--color-border-hover, #3a3a60);
    box-shadow: var(--shadow-md);
}
.card-body { padding: 1.5rem; }
.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-hover);
}
.card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-hover);
}
.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.card-subtitle { font-size: 0.875rem; color: var(--text-dim); }

/* ===== 2. BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(247, 139, 38, 0.35);
}
.btn-primary:hover {
    background: var(--color-accent-hover, #ffa054);
    box-shadow: 0 6px 20px rgba(247, 139, 38, 0.45);
}
.btn-secondary {
    background: var(--color-surface-hover);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-secondary:hover {
    background: var(--color-surface-active, #2a2a50);
    border-color: var(--color-border-hover, #3a3a60);
}
.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}
.btn-outline:hover { background: var(--accent-dim); }
.btn-danger {
    background: var(--danger-dim);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.3);
}
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-success {
    background: var(--success-dim);
    color: var(--success);
    border: 1px solid rgba(247, 139, 38, 0.3);
}
.btn-success:hover { background: var(--success); color: #000; }
.btn-ghost {
    background: transparent;
    color: var(--text-dim);
}
.btn-ghost:hover { background: var(--color-surface-hover); color: var(--color-text); }
.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}
.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* ===== 3. FORM ELEMENTS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    color: var(--color-text);
    font-family: inherit;
    transition: all var(--transition-fast);
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover { border-color: var(--color-border-hover, #3a3a60); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder { color: var(--text-dim); }
.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2.5rem;
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}
.form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--color-accent);
}
.form-check-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.form-help { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.4rem; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 0.4rem; }
.form-row { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: flex-start; }
.form-row > * { flex: 1; min-width: 200px; }
.form-hint { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.35rem; }
.charge-form .form-row:last-child { margin-bottom: 0; }

/* ===== 4. TABLES ===== */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.table { width: 100%; border-collapse: collapse; }
.table thead { background: var(--color-surface-hover); }
.table th {
    text-align: right;
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}
.table td {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--color-surface-hover); }
.table-striped tbody tr:nth-child(odd) { background: var(--color-surface); }
.table-striped tbody tr:nth-child(odd):hover { background: var(--color-surface-hover); }

/* ===== 5. BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    white-space: nowrap;
    line-height: 1;
}
.badge svg { width: 12px; height: 12px; }
.badge-primary { background: var(--info-dim); color: var(--info); }
.badge-success { background: var(--success-dim); color: var(--success); }
.badge-danger { background: var(--danger-dim); color: var(--danger); }
.badge-warning { background: var(--warning-dim); color: var(--warning); }
.badge-secondary { background: var(--color-surface-hover); color: var(--text-dim); }
.badge-accent { background: var(--accent-dim); color: var(--color-accent); }
.badge-outline { background: transparent; border: 1px solid currentColor; }

/* ===== 6. ALERTS ===== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.alert-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 0.1rem; }
.alert-success { background: var(--success-dim); border-color: rgba(247, 139, 38, 0.3); color: var(--success); }
.alert-danger { background: var(--danger-dim); border-color: rgba(248, 113, 113, 0.3); color: var(--danger); }
.alert-warning { background: var(--warning-dim); border-color: rgba(251, 191, 36, 0.3); color: var(--warning); }
.alert-info { background: var(--info-dim); border-color: rgba(96, 165, 250, 0.3); color: var(--info); }

/* ===== 7. MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--color-surface-hover);
    color: var(--text-dim);
    transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--color-surface-active, #2a2a50); color: var(--color-text); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-hover);
}
.modal-sm { max-width: 380px; }
.modal-lg { max-width: 700px; }
.modal-xl { max-width: 900px; }

/* ===== 8. AVATAR ===== */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-md { width: 40px; height: 40px; font-size: 0.875rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.25rem; }
.avatar-xl { width: 80px; height: 80px; font-size: 1.75rem; }

/* ===== 9. PAGINATION ===== */
.pagination {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    margin-top: 2rem;
}
.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}
.pagination-item:hover:not(.active):not(.disabled) {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.pagination-item.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.pagination-item.disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 10. TABS ===== */
#pkgTabs.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}
#pkgTabs.tabs .tab {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    margin-bottom: -1px;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    white-space: nowrap;
}
#pkgTabs.tabs .tab:hover { color: var(--color-text); }
#pkgTabs.tabs .tab.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }
#pkgTabs.tabs .tab-count { background: var(--color-charcoal-700); color: var(--text-dim); border-radius: 999px; padding: 2px 8px; font-size: 0.75rem; margin-right: 6px; }
#pkgTabs.tabs .tab.active .tab-count { background: var(--color-accent); color: #fff; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== 11. PROGRESS ===== */
.progress { width: 100%; height: 8px; background: var(--color-surface-hover); border-radius: var(--radius-full); overflow: hidden; }
.progress-bar { height: 100%; background: var(--color-accent); border-radius: var(--radius-full); transition: width var(--transition-slow); }
.progress-bar-success { background: var(--success); }
.progress-bar-danger { background: var(--danger); }
.progress-bar-warning { background: var(--warning); }

/* ===== 12. DROPDOWN ===== */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    padding: 0.5rem;
    z-index: 100;
}
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    cursor: pointer;
}
.dropdown-item:hover { background: var(--color-surface-hover); }
.dropdown-item svg { width: 16px; height: 16px; color: var(--text-dim); }
.dropdown-divider { height: 1px; background: var(--color-border); margin: 0.5rem 0; }

/* ===== 13. PAGE HEADER ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-title { font-size: 1.25rem; font-weight: 700; color: var(--color-text); margin: 0; }
.page-subtitle { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.25rem; }

/* ===== 14. BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}
.breadcrumb-item { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb-item::after { content: '/'; color: var(--color-border); }
.breadcrumb-item:last-child::after { display: none; }
.breadcrumb-item a:hover { color: var(--color-accent); }
.breadcrumb-item.active { color: var(--color-text); }

/* ===== 15. ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-fadeIn { animation: fadeIn 0.3s ease; }
.animate-fadeInUp { animation: fadeInUp 0.4s ease; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* ===== 16. TYPOGRAPHY ===== */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-primary { color: var(--color-text); }
.text-secondary { color: var(--text-secondary); }
.text-dim { color: var(--text-dim); }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-sm { font-size: 0.8rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 17. LAYOUT ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== 18. SPACING ===== */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* ===== 19. DISPLAY ===== */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* ===== 20. BORDERS & SHADOWS ===== */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ===== 21. POSITIONING ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ===== 22. CURSOR & SELECTION ===== */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
.transition { transition: all var(--transition-base); }

/* ===== 23. RESPONSIVE ===== */
@media (max-width: 768px) {
    .btn { padding: 0.55rem 1rem; font-size: 0.85rem; }
    .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
    .card-body { padding: 1rem; }
    .table th, .table td { padding: 0.75rem 1rem; }
    .modal { max-width: calc(100% - 1.5rem); margin: 1rem; }
    .pagination-item { min-width: 36px; height: 36px; padding: 0 0.5rem; }
    .hide-mobile { display: none !important; }
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* ===== 24. SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, var(--color-surface-hover) 25%, var(--color-surface-active, #2a2a50) 50%, var(--color-surface-hover) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-text { height: 1rem; margin-bottom: 0.5rem; }
.skeleton-title { height: 1.5rem; width: 60%; margin-bottom: 0.75rem; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: var(--radius-full); }

/* ===== 25. AUTH PAGES (Login, Register, etc.) ===== */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background:
        radial-gradient(1100px 520px at 85% -10%, rgba(247, 139, 38, 0.1), transparent 62%),
        radial-gradient(900px 480px at 5% 110%, rgba(96, 165, 250, 0.07), transparent 62%),
        var(--color-charcoal-950, #0d0d14);
    background-attachment: fixed;
    overflow-x: hidden;
}
.auth-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.95), rgba(20, 20, 32, 0.97));
    border: 1px solid rgba(247, 139, 38, 0.15);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2.2rem;
    box-shadow: var(--shadow-lg), 0 4px 20px rgba(247, 139, 38, 0.08);
    backdrop-filter: blur(18px);
    animation: cardIn 0.5s ease both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 2.2rem;
    text-align: center;
}
.auth-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(247, 139, 38, 0.3), rgba(247, 139, 38, 0.15));
    border: 1px solid rgba(247, 139, 38, 0.6);
    color: var(--color-accent);
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 0 35px rgba(247, 139, 38, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: logoPulse 3.2s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(247, 139, 38, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 45px rgba(247, 139, 38, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
}
.auth-logo-mark img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}
.auth-logo-text {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    direction: ltr;
    letter-spacing: 0.02em;
    color: var(--color-text);
}
.auth-logo-text span { color: var(--color-accent); }
.auth-logo-sub {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: -0.4rem;
}
.auth-group { margin-bottom: 1.6rem; }
.auth-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.6rem;
    letter-spacing: 0.01em;
}
.auth-input {
    width: 100%;
    padding: 0.95rem 1.1rem;
    background: rgba(13, 13, 20, 0.8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.auth-input:focus {
    border-color: var(--color-accent);
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 0 0 4px rgba(247, 139, 38, 0.15), 0 4px 20px rgba(247, 139, 38, 0.1);
}
.auth-input::placeholder { color: #4a4a6a; }
.auth-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent, #f78b26) 0%, var(--accent-secondary, #ffa054) 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    margin-top: 0.5rem;
    box-shadow: 0 8px 24px rgba(247, 139, 38, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.auth-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover, #ffa054) 0%, var(--accent, #f78b26) 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(247, 139, 38, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.auth-btn:active { transform: translateY(0) scale(0.97); box-shadow: 0 6px 18px rgba(247, 139, 38, 0.3); }
.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.8rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}
.auth-link {
    color: var(--text-dim);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
}
.auth-link:hover { color: var(--color-accent); background: rgba(247, 139, 38, 0.08); }
.auth-foot {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(247, 139, 38, 0.1);
    text-align: center;
    font-size: 0.72rem;
    color: #555;
    font-family: var(--font-mono);
    direction: ltr;
    letter-spacing: 0.03em;
}
@media (max-width: 480px) {
    .auth-card { padding: 2rem 1.5rem 1.8rem; }
    .auth-logo-mark { width: 54px; height: 54px; }
    .auth-input { font-size: 16px; padding: 0.9rem 1rem; }
    .auth-btn { padding: 0.95rem; }
}

/* ===== AUTH LIGHT THEME OVERRIDES ===== */
html[data-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(247, 139, 38, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 4px 20px rgba(247, 139, 38, 0.1);
}
html[data-theme="light"] .auth-label {
    color: #2c3142;
}
html[data-theme="light"] .auth-input {
    background: rgba(255, 255, 255, 0.9);
    border-color: #d0d0e0;
    color: #2c3142;
}
html[data-theme="light"] .auth-input:focus {
    border-color: var(--color-accent);
    background: #fff;
}
html[data-theme="light"] .auth-input::placeholder {
    color: #9aa1b5;
}
html[data-theme="light"] .auth-logo-text {
    color: #2c3142 !important;
}
html[data-theme="light"] .auth-logo-text span {
    color: var(--color-accent) !important;
}
html[data-theme="light"] .auth-logo-sub {
    color: #666680;
}
html[data-theme="light"] .auth-logo-mark {
    background: linear-gradient(135deg, rgba(247, 139, 38, 0.15), rgba(247, 139, 38, 0.05));
    border-color: rgba(247, 139, 38, 0.4);
    box-shadow: 0 0 20px rgba(247, 139, 38, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
html[data-theme="light"] .auth-logo-mark img {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
}
html[data-theme="light"] .auth-link {
    color: #555566;
}
html[data-theme="light"] .auth-link:hover {
    color: var(--color-accent);
}
html[data-theme="light"] .auth-foot {
    color: #7a8194;
    border-color: rgba(247, 139, 38, 0.15);
}

/* ===== 26. ADMIN AUTH PAGE ===== */
.admin-auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(1200px 620px at 80% -10%, rgba(247, 139, 38, 0.1), transparent 60%),
        radial-gradient(1000px 520px at 10% 115%, rgba(96, 165, 250,0.06), transparent 60%),
        var(--color-charcoal-950, #0a0a14);
    overflow: hidden;
}
.admin-auth-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
}
.admin-auth-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}
.admin-auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.admin-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: 0.6rem;
}
.admin-auth-logo-img { height: 32px; width: auto; border-radius: var(--radius-sm); }
.admin-auth-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(247, 139, 38, 0.22), rgba(247, 139, 38, 0.05));
    border: 1px solid rgba(247, 139, 38, 0.35);
    border-radius: var(--radius-md);
    color: var(--color-accent);
    font-size: 1.6rem;
    box-shadow: 0 0 26px rgba(247, 139, 38, 0.28);
}
.admin-auth-subtitle {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

/* ===== WALLET SHARED STYLES ===== */
.wallet-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.wallet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.wallet-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text);
}
.wallet-subtitle {
    font-size: 13px;
    color: var(--color-text-dim);
    margin-top: 4px;
}
.wallet-balance-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.balance-label {
    font-size: 11px;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.balance-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-accent);
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
}
.balance-currency {
    font-size: 12px;
    color: var(--color-text-dim);
    font-weight: 500;
}
.wallet-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 20px;
}
.section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Card Number Display ===== */
.card-number-display {
    font-size: 18px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 14px;
    padding: 14px;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: 10px;
    font-family: monospace;
    font-weight: 700;
    text-align: left;
    direction: ltr;
}

/* ===== Sheba Display ===== */
.sheba-display {
    margin-top: 14px;
    padding: 14px;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: 10px;
}
.sheba-label {
    font-size: 0.68rem;
    color: var(--color-text-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sheba-number {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #f78b26;
    letter-spacing: 0.5px;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
    white-space: nowrap;
}
.sheba-desc {
    font-size: 0.78rem;
    color: var(--color-text-dim);
    margin-top: 6px;
}

/* ===== Wallet Info Box (Guide) ===== */
.wallet-info-box {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 18px;
    font-size: 0.9rem;
    line-height: 1.8;
}
.wallet-info-box > strong {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.wallet-info-list {
    margin: 0 0 12px 20px;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.9;
}
.wallet-info-list li {
    margin-bottom: 6px;
    padding-left: 6px;
}
.messenger-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
}

/* ===== Charge Form ===== */
.charge-form .form-row {
    margin-bottom: 1.1rem;
}
.charge-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* ===== RESPONSIVE FOR WALLET STYLES ===== */
@media (max-width: 768px) {
    .card-number-display {
        font-size: 15px;
        letter-spacing: 0.5px;
    }
    .sheba-number {
        font-size: 0.9rem;
    }
    .wallet-page { padding: 12px; gap: 12px; }
    .wallet-header { flex-direction: column; align-items: flex-start; }
    .wallet-title { font-size: 18px; }
    .balance-amount { font-size: 22px; }
    .wallet-balance-card { padding: 14px; gap: 12px; }
    .wallet-section { padding: 14px; }
    .wallet-info-box { padding: 14px; }
    .wallet-info-list { margin-left: 16px; font-size: 0.8rem; }
    .form-row { flex-direction: column; }
    .form-row > * { min-width: 100%; }
    .charge-form .form-actions { flex-direction: column; }
    .charge-form .form-actions .btn { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
    .wallet-page { padding: 10px; }
    .wallet-actions { grid-template-columns: 1fr; }
    .balance-amount { font-size: 20px; }
    .wallet-balance-card { flex-direction: column; align-items: flex-start; }
    .wallet-info-list { margin-left: 12px; font-size: 0.78rem; }
}

/* ===== Neon template ===== */
html[data-template="neon"] {
    --radius: 14px;
}
html[data-template="neon"] .btn,
html[data-template="neon"] .form-input,
html[data-template="neon"] .form-select,
html[data-template="neon"] .form-textarea,
html[data-template="neon"] .card,
html[data-template="neon"] .card-body,
html[data-template="neon"] .order-card,
html[data-template="neon"] .plan-card,
html[data-template="neon"] .pkg-card,
html[data-template="neon"] .form-card,
html[data-template="neon"] .tab,
html[data-template="neon"] .info-box,
html[data-template="neon"] .badges {
    border-radius: var(--radius);
}
html[data-template="neon"] .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.25);
}
html[data-template="neon"] .btn-primary:hover {
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.45);
    transform: translateY(-1px);
}
html[data-template="neon"][data-theme="light"] .btn-primary {
    box-shadow: 0 0 16px rgba(0, 180, 216, 0.18);
}
html[data-template="neon"] .card,
html[data-template="neon"] .plan-card,
html[data-template="neon"] .pkg-card,
html[data-template="neon"] .order-card,
html[data-template="neon"] .form-card {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255,0.04), rgba(255, 255, 255,0.02));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
html[data-template="neon"][data-theme="light"] .card,
html[data-template="neon"][data-theme="light"] .plan-card,
html[data-template="neon"][data-theme="light"] .pkg-card,
html[data-template="neon"][data-theme="light"] .order-card,
html[data-template="neon"][data-theme="light"] .form-card {
    background: linear-gradient(180deg, rgba(255, 255, 255,0.85), rgba(255, 255, 255,0.65));
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.08);
}
html[data-template="neon"] .navbar,
html[data-template="neon"] .topbar {
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}
