/* ═══════════════════════════════════════════════════════════════
   PayUPI – Desktop & Base Styles (desktop.css)
   Covers: all screens ≥ 992px and shared base/reset rules
   ═══════════════════════════════════════════════════════════════ */

/* ───── CSS VARIABLES ───── */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.18);
    --accent: #8b5cf6;
    --sidebar-bg: #0b0f1a;
    --sidebar-w: 272px;
    --body-bg: #f0f2f8;
    --card-bg: #fff;
    --card-border: rgba(226, 232, 240, 0.6);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 4px 20px rgba(99, 102, 241, 0.10), 0 1px 4px rgba(0, 0, 0, 0.04);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --success-dark: #059669;
    --success-light: #ecfdf5;
    --success-border: #a7f3d0;
    --success-text: #065f46;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --danger-dark: #dc2626;
    --info: #3b82f6;
    --info-bg: #eff6ff;
    --whatsapp: #25D366;
    --bg-dark: #0a0e1a;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-xxl: 28px;
    --shadow-card: 0 25px 80px -12px rgba(0, 0, 0, 0.35);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ───── RESET & BASE ───── */
*,
*::before,
*::after {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ───── SCROLLBAR ───── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c8cedb;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a8b8;
}


/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL LAYOUT
   ═══════════════════════════════════════════════════════════════ */

/* ───── SIDEBAR ───── */
.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--sidebar-bg);
    background-image: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, transparent 40%);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1050;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar .brand {
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sidebar .brand-icon-wrap {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    flex-shrink: 0;
}

.sidebar .brand h5 {
    color: #fff;
    font-weight: 700;
    margin: 0;
    font-size: 15px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.sidebar .brand span {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.02em;
}

.sidebar nav {
    flex: 1;
    padding: 8px 0 20px;
}

.sidebar .nav-section {
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 20px 28px 6px;
}

.sidebar .nav-item {
    padding: 0 12px;
}

.sidebar .nav-link {
    color: #7c8ba5;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 1px 0;
    transition: all var(--transition);
    position: relative;
    text-decoration: none;
}

.sidebar .nav-link:hover {
    color: #d4d9e6;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    font-weight: 600;
}

.sidebar .nav-link.active i {
    color: #fff;
}

.sidebar .nav-link i {
    font-size: 17px;
    width: 22px;
    text-align: center;
    transition: transform var(--transition);
}

.sidebar .nav-link:hover i {
    transform: translateX(2px);
}

/* ───── SIDEBAR OVERLAY (MOBILE) ───── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1049;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
    display: block;
}

/* ───── MAIN CONTENT ───── */
.main-content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ───── TOPBAR ───── */
.topbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 30px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.topbar h5 {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.topbar .admin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar .admin-name {
    font-size: 13.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

.topbar .admin-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    transition: transform var(--transition);
}

.topbar .admin-avatar:hover {
    transform: scale(1.08);
}

/* ───── CONTENT AREA ───── */
.content-area {
    padding: 28px 30px 40px;
}

/* ───── ANIMATIONS ───── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-area {
    animation: fadeInUp 0.35s ease-out;
}


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS – STAT CARDS
   ═══════════════════════════════════════════════════════════════ */

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    transition: transform var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.08);
}

.stat-card .stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-card .stat-label {
    font-size: 12.5px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2px;
}

.stat-card .stat-sub {
    font-size: 12px;
    font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS – CARDS
   ═══════════════════════════════════════════════════════════════ */

.card-custom {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition);
}

.card-custom:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-custom .card-header {
    background: transparent;
    border-bottom: 1px solid var(--card-border);
    padding: 18px 24px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.card-custom .card-header i {
    color: var(--primary);
}

.card-custom .card-body {
    padding: 24px;
}


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS – BADGES
   ═══════════════════════════════════════════════════════════════ */

.badge-success {
    background: var(--success-bg);
    color: var(--success);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    display: inline-block;
    white-space: nowrap;
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    display: inline-block;
    white-space: nowrap;
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    display: inline-block;
    white-space: nowrap;
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    display: inline-block;
    white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS – BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn-action {
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    transition: all var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #7c3aed);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.btn-outline-danger {
    border: 1.5px solid var(--danger);
    color: var(--danger);
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS – TABLES
   ═══════════════════════════════════════════════════════════════ */

table.dataTable,
.table {
    font-size: 13px;
}

.table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e9edf5 !important;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-primary);
}

.table tbody tr {
    transition: background var(--transition);
}

.table-hover tbody tr:hover {
    background: rgba(99, 102, 241, 0.03);
}

.table code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11.5px;
    color: var(--primary-dark);
    font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS – DataTables Full Override
   ═══════════════════════════════════════════════════════════════ */

div.dataTables_wrapper {
    padding: 0;
}

div.dataTables_wrapper .dataTables_length,
div.dataTables_wrapper .dataTables_filter {
    padding: 16px 20px 12px;
}

div.dataTables_wrapper .dataTables_length label,
div.dataTables_wrapper .dataTables_filter label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

div.dataTables_wrapper .row:first-child {
    border-bottom: 1px solid var(--card-border);
    margin: 0;
    background: linear-gradient(180deg, #fafbfd, #f8fafc);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

div.dataTables_wrapper .row:first-child > div {
    padding-top: 14px;
    padding-bottom: 14px;
}

div.dataTables_wrapper .row:last-child {
    border-top: 1px solid var(--card-border);
    margin: 0;
    background: #fafbfd;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

div.dataTables_wrapper .dataTables_length select {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 7px 32px 7px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    background-color: var(--card-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all var(--transition);
    width: auto !important;
    min-width: 70px;
    max-width: 90px;
}

div.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}

div.dataTables_wrapper .dataTables_length select:hover {
    border-color: #c7cdd8;
}

div.dataTables_wrapper .dataTables_filter input {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 8px 14px 8px 36px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--card-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='%2394a3b8'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 15px;
    min-width: 220px;
    transition: all var(--transition);
}

div.dataTables_wrapper .dataTables_filter input::placeholder {
    color: var(--text-muted);
}

div.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='%236366f1'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
}

div.dataTables_wrapper .dataTables_filter input:hover {
    border-color: #c7cdd8;
}

div.dataTables_wrapper .dataTables_info {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 14px 20px;
}

div.dataTables_wrapper .dataTables_paginate {
    padding: 12px 20px 14px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1.5px solid transparent !important;
    border-radius: var(--radius-sm) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    margin: 0 2px !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
    transition: all 0.2s !important;
    min-width: 36px;
    text-align: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.30) !important;
    font-weight: 600 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: #cbd5e1 !important;
    background: transparent !important;
    border-color: transparent !important;
    cursor: default !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    font-weight: 600 !important;
    padding: 6px 10px !important;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    padding-right: 26px !important;
}

table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after {
    opacity: 0.35 !important;
    right: 10px !important;
}

table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after {
    opacity: 0.7 !important;
    color: var(--primary) !important;
}

.dataTables_empty {
    padding: 32px 16px !important;
    color: var(--text-muted);
    font-style: italic;
}


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS – FORMS
   ═══════════════════════════════════════════════════════════════ */

.form-control,
.form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13.5px;
    transition: border-color var(--transition), box-shadow var(--transition);
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.form-text {
    font-size: 12px;
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
}


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS – SELECT2
   ═══════════════════════════════════════════════════════════════ */

.select2-container--bootstrap-5 .select2-selection {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    min-height: 42px;
    font-size: 13.5px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary);
    line-height: 28px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
    color: var(--text-muted);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 8px 14px;
    font-size: 13.5px;
    transition: background var(--transition);
}

.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected] {
    background: var(--primary);
    color: #fff;
}

.select2-container--bootstrap-5 .select2-results__option[aria-selected=true] {
    background: var(--primary-glow);
    color: var(--primary-dark);
}

.select2-container--bootstrap-5 .select2-selection__clear {
    color: var(--text-muted);
}


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS – MODALS
   ═══════════════════════════════════════════════════════════════ */

.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid var(--card-border);
    padding: 20px 24px;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 16px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--card-border);
    padding: 16px 24px;
}


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS – DROPDOWNS
   ═══════════════════════════════════════════════════════════════ */

.dropdown-menu {
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.10);
    padding: 6px;
    font-size: 13px;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.dropdown-item:hover {
    background: #f1f5f9;
}

.dropdown-item.text-danger:hover {
    background: var(--danger-bg);
}


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS – CODE & PRE
   ═══════════════════════════════════════════════════════════════ */

pre.code-block {
    background: #0c1222;
    color: #e2e8f0;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    overflow-x: auto;
    line-height: 1.7;
    border: 1px solid rgba(255, 255, 255, 0.06);
}


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS – API DOC STYLES
   ═══════════════════════════════════════════════════════════════ */

.api-endpoint {
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    padding: 20px;
    transition: border-color var(--transition);
    overflow: visible;
}

.api-endpoint .table-wrap {
    overflow-x: auto;
    overflow-y: visible;
}

.api-endpoint .table-wrap .table {
    min-width: 500px;
    margin-bottom: 0;
}

.api-endpoint code {
    word-break: break-all;
}

.api-endpoint:hover {
    border-color: var(--primary-light);
}

.method-badge {
    background: var(--success);
    color: #fff;
    padding: 3px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS – USER INFO PANEL
   ═══════════════════════════════════════════════════════════════ */

.info-panel {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--card-border);
}

.info-panel .info-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2px;
}


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS – EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */

.empty-state {
    text-align: center;
    padding: 48px 20px;
}

.empty-state i {
    font-size: 48px;
    color: #dde1e9;
    margin-bottom: 12px;
    display: block;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS – ALERTS
   ═══════════════════════════════════════════════════════════════ */

.alert {
    border-radius: var(--radius-sm);
    font-size: 13.5px;
}


/* ═══════════════════════════════════════════════════════════════
   ADMIN LOGIN PAGE
   ═══════════════════════════════════════════════════════════════ */

body.login-page {
    background: #080b16;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

body.login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 600px at 20% 30%, rgba(99, 102, 241, 0.12), transparent),
        radial-gradient(ellipse 500px 500px at 80% 70%, rgba(139, 92, 246, 0.10), transparent),
        radial-gradient(ellipse 400px 400px at 50% 50%, rgba(59, 130, 246, 0.06), transparent);
    animation: bgShiftLogin 12s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes bgShiftLogin {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.08) rotate(2deg); }
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: 0;
    animation: orbFloat 8s ease-in-out infinite alternate;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.25);
    top: -80px;
    left: -60px;
    animation-duration: 10s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(139, 92, 246, 0.20);
    bottom: -60px;
    right: -40px;
    animation-duration: 12s;
    animation-delay: -4s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(59, 130, 246, 0.15);
    top: 50%;
    left: 60%;
    animation-duration: 9s;
    animation-delay: -2s;
}

@keyframes orbFloat {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.1); }
}

.login-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 44px 40px 40px;
    max-width: 430px;
    width: 100%;
    position: relative;
    z-index: 1;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: cardEntry 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntry {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card h2 {
    font-weight: 700;
    color: #fff;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.login-card .subtitle {
    color: #7c8ba5;
    font-size: 14px;
}

.brand-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.40);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(99, 102, 241, 0.40); }
    50% { box-shadow: 0 8px 35px rgba(99, 102, 241, 0.55); }
}

.brand-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

/* Login form controls (dark theme) */
body.login-page .form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 14px;
    color: #fff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.login-page .form-control::placeholder {
    color: #5a6578;
}

body.login-page .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    color: #fff;
}

body.login-page .form-label {
    font-weight: 600;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 6px;
}

body.login-page .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 12px;
    padding: 13px 24px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

body.login-page .btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

body.login-page .btn-primary:hover::after {
    transform: translateX(100%);
}

body.login-page .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #7c3aed);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
}

body.login-page .alert {
    border-radius: 12px;
    font-size: 13.5px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}


/* ═══════════════════════════════════════════════════════════════
   INSTALL PAGE
   ═══════════════════════════════════════════════════════════════ */

body.install-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.install-card h2 {
    font-weight: 700;
    color: #0f172a;
}

.install-card .subtitle {
    color: #64748b;
    font-size: 14px;
}

.step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.step-dot {
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: #e2e8f0;
    transition: all 0.3s;
}

.step-dot.active {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.step-dot.done {
    background: #22c55e;
}

body.install-page .form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    font-size: 14px;
}

body.install-page .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

body.install-page .form-label {
    font-weight: 500;
    font-size: 13px;
    color: #475569;
    margin-bottom: 4px;
}

body.install-page .btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
}

body.install-page .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

body.install-page .alert {
    border-radius: 10px;
    font-size: 14px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════
   SUCCESS / PAYMENT STATUS PAGE
   ═══════════════════════════════════════════════════════════════ */

body.success-page {
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

body.success-page::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 40%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    animation: bgShiftSuccess 20s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes bgShiftSuccess {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, 3%) rotate(3deg); }
}

body.success-page .card {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border-radius: var(--radius-xxl);
    max-width: 460px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    animation: cardEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardEnter {
    0% { opacity: 0; transform: translateY(30px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

body.success-page .card-header {
    padding: 36px 28px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.success-page .card-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -30%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

body.success-page .card-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

body.success-page .card-header.success {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
}

body.success-page .card-header.pending {
    background: linear-gradient(135deg, var(--warning), var(--warning-dark));
}

body.success-page .card-header.failed {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
}

.status-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    position: relative;
    z-index: 1;
    animation: iconPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes iconPop {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.status-icon svg {
    width: 38px;
    height: 38px;
    color: #fff;
}

body.success-page .card-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

body.success-page .card-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.amount-big {
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    margin-top: 14px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.03em;
    line-height: 1;
}

.amount-big span {
    font-size: 24px;
    font-weight: 600;
    opacity: 0.85;
}

.details {
    padding: 28px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 700;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.detail-value.success-text { color: var(--success); }
.detail-value.pending-text { color: var(--warning); }
.detail-value.failed-text { color: var(--danger); }

.btn-actions {
    padding: 0 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: var(--whatsapp);
    color: #fff;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.5s;
}

.whatsapp-btn:hover::before { left: 100%; }

.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    color: #fff;
}

.whatsapp-btn:active { transform: translateY(0); }

.whatsapp-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-redirect {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-redirect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.5s;
}

.btn-redirect:hover::before { left: 100%; }

.btn-redirect:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    color: #fff;
}

.btn-redirect:active { transform: translateY(0); }

.auto-redirect {
    text-align: center;
    padding: 0 28px 24px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.auto-redirect span {
    font-weight: 700;
    color: var(--text-secondary);
}


/* ═══════════════════════════════════════════════════════════════
   TEST PAYMENT PAGE
   ═══════════════════════════════════════════════════════════════ */

body.test-page {
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

body.test-page::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: bgShiftTest 20s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes bgShiftTest {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, 3%) rotate(3deg); }
}

.test-card {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border-radius: var(--radius-xxl);
    max-width: 440px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    animation: cardEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card-top {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 40px 28px 32px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.card-top::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -30%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.card-top::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
}

.card-top h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}

.card-top p {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.card-body-custom {
    padding: 32px 28px 28px;
}

.whatsapp-note {
    background: var(--success-light);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: 13px;
    color: var(--success-text);
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    font-weight: 500;
}

.whatsapp-note svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: #25D366;
    margin-top: 1px;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.amount-btn {
    padding: 16px 8px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    cursor: pointer;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 800;
    font-size: 20px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    position: relative;
}

.amount-btn:hover {
    border-color: var(--primary-light);
    background: #f5f3ff;
}

.amount-btn.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.amount-btn.active::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.amount-btn small {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0;
}

.amount-btn.active small {
    color: var(--primary-light);
}

/* Test form controls */
body.test-page .form-group {
    margin-bottom: 20px;
}

body.test-page .form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

body.test-page .form-control {
    width: 100%;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border: 2px solid var(--border);
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--surface);
    outline: none;
}

body.test-page .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

body.test-page .form-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

.btn-pay {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: var(--radius-md);
    padding: 18px;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    width: 100%;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.01em;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-pay::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s;
}

.btn-pay:hover::before { left: 100%; }

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.btn-pay:active { transform: translateY(0); }

.secure-note {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.secure-note svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 16px;
}

.back-link a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link a:hover {
    color: var(--primary);
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: var(--radius-md);
    font-size: 13px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════
   ADMIN BODY (for pages with sidebar)
   ═══════════════════════════════════════════════════════════════ */

body.admin-page {
    background: var(--body-bg);
}
