/* ============================================================================
   REFUND MANAGEMENT SYSTEM — Global Stylesheet
   ============================================================================
   Single CSS file for the entire application.
   Uses CSS custom properties (variables) for consistent theming.
   ============================================================================ */

/* ─── CSS Variables / Design Tokens ─── */
:root {
    /* Primary palette */
    --primary: #0d46a0;
    --primary-dark: #0A2351;
    --primary-hover: #0a367c;
    --primary-light: #e8f0fe;
    --blue-400: #60a5fa;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;

    /* Neutral / Slate scale */
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Status colors */
    --green-100: #dcfce7;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --red-100: #fee2e2;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --amber-100: #fef3c7;
    --amber-600: #d97706;
    --teal-100: #ccfbf1;
    --teal-600: #0d9488;
    --blue-100: #dbeafe;

    /* Spacing & Layout */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--slate-900);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

/* ============================================================================
   LAYOUT: Admin (Sidebar + Main)
   ============================================================================ */

/* ─── Sidebar ─── */
.menu-toggle-btn,
.menu-close-btn,
.sidebar-overlay {
    display: none;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0e1e3d 0%, #0a1628 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
}

.sidebar-brand {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand-icon .material-symbols-outlined {
    font-size: 1.25rem;
}

.sidebar-brand-title {
    font-size: 1rem;
    font-weight: 700;
}

.sidebar-brand-sub {
    font-size: 0.75rem;
    color: var(--slate-400);
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    list-style: none;
    overflow-y: auto;
    scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    color: var(--slate-400);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.sidebar-link.active {
    background: var(--primary);
    color: var(--white);
}

.sidebar-link .material-symbols-outlined {
    font-size: 1.25rem;
}

.sidebar-user {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--white);
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: var(--slate-400);
}

.sidebar-user-dropdown {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--slate-400);
    cursor: pointer;
}

.sidebar-bottom {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    color: var(--slate-400);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}

.sidebar-logout:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

.sidebar-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
    padding: 1rem 1rem 0.25rem 1rem;
}

.sidebar-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* ============================================================================
   COMPONENT: Stat Cards (Dashboard)
   ============================================================================ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
    transition: var(--transition);
}

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

.stat-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--white);
}

.stat-card-blue .stat-card-icon {
    background: linear-gradient(135deg, var(--primary), var(--blue-600));
}

.stat-card-green .stat-card-icon {
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
}

.stat-card-red .stat-card-icon {
    background: linear-gradient(135deg, var(--red-500), #991b1b);
}

.stat-card-purple .stat-card-icon {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.stat-card-amber .stat-card-icon {
    background: linear-gradient(135deg, var(--amber-500), #b45309);
}

.stat-card-info {
    display: flex;
    flex-direction: column;
}

.stat-card-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--slate-800);
    line-height: 1.2;
}

.stat-card-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--slate-500);
    margin-top: 0.125rem;
}

/* ============================================================================
   COMPONENT: Page Banner Button
   ============================================================================ */
.page-banner-btn {
    background: linear-gradient(135deg, var(--primary), var(--blue-600));
    color: var(--white);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.page-banner-btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.page-banner-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

/* ============================================================================
   COMPONENT: Delete Button
   ============================================================================ */
.btn-delete {
    background: var(--white);
    border: 1px solid var(--red-300);
    color: var(--red-600);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.btn-delete:hover {
    background: var(--red-100);
    border-color: var(--red-500);
}

.btn-delete .material-symbols-outlined {
    font-size: 1rem;
}

/* ============================================================================
   COMPONENT: Settings Page
   ============================================================================ */
.settings-form-body {
    padding: 2rem;
}

.settings-field {
    margin-bottom: 1.5rem;
}

.settings-actions {
    padding-top: 1rem;
    border-top: 1px solid var(--slate-200);
}

.logo-upload-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.logo-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    border: 2px dashed var(--slate-300);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--slate-50);
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--slate-400);
    font-size: 0.75rem;
}

.logo-placeholder .material-symbols-outlined {
    font-size: 2rem;
}

.logo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hidden-input {
    display: none;
}

.modal-field-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--white);
    color: var(--slate-700);
    cursor: pointer;
    transition: var(--transition);
}

.modal-field-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-top: 1px solid var(--slate-200);
}

/* ─── Main Content Area ─── */
.admin-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--slate-100);
}

/* ============================================================================
   COMPONENT: Page Banner
   ============================================================================ */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2rem;
    margin: 1.5rem 2rem 0;
    border-radius: var(--radius-xl);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.page-banner-title {
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.page-banner-title .material-symbols-outlined {
    font-size: 1.75rem;
}

.page-banner-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    position: relative;
    z-index: 1;
}

.page-banner-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.page-banner-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

/* ============================================================================
   COMPONENT: Page Content (Main Area)
   ============================================================================ */
.page-content {
    padding: 1.5rem 2rem;
}

/* ============================================================================
   COMPONENT: Image Thumbnails
   ============================================================================ */
.img-thumb-preview {
    max-width: 150px;
    max-height: 120px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    cursor: pointer;
    transition: var(--transition);
}

.img-thumb-preview:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

/* ============================================================================
   COMPONENT: Data Card
   ============================================================================ */
.data-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
    overflow: hidden;
}

.data-card-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--slate-100);
}

.data-card-header .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.25rem;
}

.data-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-900);
}

/* ============================================================================
   COMPONENT: Data Table
   ============================================================================ */
.data-table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--slate-50);
}

.data-table th {
    padding: 0.875rem 1.25rem;
    color: var(--slate-500);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid var(--slate-200);
}

.data-table tr:hover {
    background: var(--slate-50);
}

.data-table td {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--slate-600);
    border-bottom: 1px solid var(--slate-100);
    vertical-align: middle;
}



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

.td-bold {
    font-weight: 600;
    color: var(--slate-900);
}

.td-amount {
    font-weight: 700;
    color: var(--green-700);
}

.td-muted {
    color: var(--slate-400);
    font-size: 0.8rem;
}

.text-truncate-custom {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* ============================================================================
   COMPONENT: Badges
   ============================================================================ */
.badge-status,
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-approved {
    background: var(--green-100);
    color: var(--green-600);
}

.badge-new {
    background: var(--amber-100);
    color: var(--amber-600);
}

.badge-sys-approved {
    background: var(--blue-100);
    color: var(--blue-600);
}

.badge-fin-approved {
    background: var(--green-100);
    color: var(--green-700);
}

.badge-rejected {
    background: var(--red-100);
    color: var(--red-600);
}

.badge-pending {
    background: var(--amber-100);
    color: var(--amber-600);
}

/* ============================================================================
   COMPONENT: Buttons
   ============================================================================ */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary), var(--blue-600));
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition);
}

.btn-primary-gradient:hover {
    box-shadow: var(--shadow-md);
}

.btn-primary-gradient .material-symbols-outlined {
    font-size: 1rem;
}

.btn-edit {
    background: linear-gradient(135deg, var(--primary), var(--blue-600));
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition);
}

.btn-edit:hover {
    box-shadow: var(--shadow-md);
}

.btn-edit .material-symbols-outlined {
    font-size: 1rem;
}

.btn-success-gradient {
    background: var(--green-600);
    border: none;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition);
}

.btn-success-gradient:hover {
    background: var(--green-700);
}

.btn-danger-outline {
    background: var(--white);
    border: 1px solid var(--red-500);
    color: var(--red-600);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition);
}

.btn-danger-outline:hover {
    background: var(--red-100);
}

.btn-ghost {
    background: var(--white);
    border: 1px solid var(--slate-300);
    color: var(--slate-700);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.btn-ghost:hover {
    background: var(--slate-100);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(to right, var(--primary), var(--blue-700));
    color: var(--white);
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-family: inherit;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit .material-symbols-outlined {
    transition: transform 0.2s ease;
}

.btn-submit:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* View-image button */
.btn-doc {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--blue-100);
    color: var(--primary);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-lg);
    font-size: 0.7rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

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

.btn-doc .material-symbols-outlined {
    font-size: 0.875rem;
}

/* ============================================================================
   COMPONENT: Modal
   ============================================================================ */
.modal-header-blue {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: var(--white) !important;
    padding: 1.5rem 2rem !important;
    border-bottom: none !important;
}

.modal-header-blue .modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
}

.modal-header-blue .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header-blue .btn-close:hover {
    opacity: 1;
}

.modal-footer-blue {
    padding: 1.25rem 2rem !important;
    background: var(--slate-50) !important;
    border-top: 1px solid var(--slate-100) !important;
}

.modal-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--slate-100);
}

/* ============================================================================
   COMPONENT: Form Fields (Admin modal)
   ============================================================================ */
.admin-form-group {
    margin-bottom: 1rem;
}

.admin-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    margin-bottom: 0.375rem;
}

.admin-form-input {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--slate-50);
    color: var(--slate-900);
    outline: none;
    transition: var(--transition);
}

.admin-form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 70, 160, 0.1);
}

.admin-form-input[readonly] {
    background: var(--slate-50);
    color: var(--slate-500);
    cursor: not-allowed;
}

/* ============================================================================
   STITCH: Table Toolbar
   ============================================================================ */
.table-toolbar {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--slate-600);
}

.toolbar-select {
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    font-size: 0.875rem;
    background: var(--white);
}

.toolbar-search {
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-lg);
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    width: 250px;
    outline: none;
    transition: var(--transition);
}

.toolbar-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 70, 160, 0.1);
}

/* ============================================================================
   STITCH: Custom Modal Overlay
   ============================================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 35, 81, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.modal-box {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    width: 95%;
    max-width: 640px;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-box-lg {
    max-width: 800px;
}

.modal-box form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.modal-field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    margin-bottom: 0.375rem;
}

.modal-field-wrapper {
    position: relative;
}

.modal-field-icon {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    color: var(--slate-400);
    font-size: 1.125rem;
}

.modal-field-input {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--slate-50);
    color: var(--slate-900);
    outline: none;
    transition: var(--transition);
}

.modal-field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 70, 160, 0.1);
}

.modal-field-input-readonly {
    background: var(--slate-50);
    color: var(--slate-500);
    cursor: not-allowed;
}

.modal-field-input-no-icon {
    padding-left: 1rem;
}

.modal-field-select {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--white);
    cursor: pointer;
    appearance: none;
    outline: none;
}

.modal-hint {
    font-size: 0.75rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.modal-footer {
    padding: 1.25rem 2rem;
    background: var(--slate-50);
    border-top: 1px solid var(--slate-100);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-edit {
    background: linear-gradient(135deg, var(--primary), var(--blue-600));
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition);
}

.btn-edit:hover {
    box-shadow: var(--shadow-md);
}

.btn-edit .material-symbols-outlined {
    font-size: 1rem;
}

.btn-cancel {
    background: var(--white);
    border: 1px solid var(--slate-300);
    color: var(--slate-700);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: var(--slate-100);
}

.btn-save {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-save:hover {
    box-shadow: var(--shadow-md);
}

/* ============================================================================
   STITCH: Filter Bar (History pages)
   ============================================================================ */
.filter-bar {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 0.625rem 1rem;
    width: 360px;
    max-width: 100%;
}

.filter-search-box .material-symbols-outlined {
    color: var(--slate-400);
    font-size: 1.25rem;
}

.filter-search-input {
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--slate-900);
    outline: none;
    flex: 1;
}

.filter-search-input::placeholder {
    color: var(--slate-400);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--white);
    border: 1px solid var(--slate-300);
    color: var(--slate-700);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--slate-50);
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

/* ============================================================================
   STITCH: Phone Cell (History pages)
   ============================================================================ */
.phone-cell {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
}

.phone-number .material-symbols-outlined {
    font-size: 0.875rem;
}

.phone-whatsapp {
    color: var(--green-600);
}

/* ============================================================================
   STITCH: Doc Buttons (History pages)
   ============================================================================ */
.doc-btns {
    display: flex;
    gap: 0.375rem;
}

.doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--blue-100);
    color: var(--primary);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-lg);
    font-size: 0.7rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

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

.doc-btn .material-symbols-outlined {
    font-size: 0.875rem;
}

/* ============================================================================
   STITCH: Pagination Bar
   ============================================================================ */
.pagination-bar {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--slate-100);
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.pagination-info strong {
    color: var(--slate-900);
}

.pagination-btns {
    display: flex;
    gap: 0.25rem;
}

.page-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    background: var(--white);
    color: var(--slate-600);
    font-family: inherit;
    transition: var(--transition);
}

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

.page-btn-active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============================================================================
   STITCH: History table header (gray instead of blue)
   ============================================================================ */
.data-table-history thead {
    background: var(--slate-50);
}

.data-table-history th {
    color: var(--slate-500);
    font-weight: 700;
    border-bottom: 2px solid var(--slate-200);
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .filter-search-box {
        width: 100%;
    }
}

.admin-form-hint {
    font-size: 0.75rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

/* ============================================================================
   COMPONENT: DataTables Overrides
   ============================================================================ */
.dataTables_wrapper {
    padding: 0;
    padding-bottom: 30px;
}

/* DataTables toolbar row */
.dataTables_wrapper .d-flex {
    display: flex !important;
}

.dataTables_filter {
    margin-bottom: 0;
    padding: 0;
}

.dataTables_filter label {
    font-weight: 500;
    color: var(--slate-600);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.dataTables_filter input {
    border: 1px solid var(--slate-300) !important;
    border-radius: var(--radius-lg) !important;
    padding: 0.625rem 1rem !important;
    font-size: 0.875rem;
    transition: var(--transition);
    width: 280px;
    outline: none;
    font-family: inherit;
}

.dataTables_filter input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(13, 70, 160, 0.1);
}

.dataTables_length {
    padding: 0;
}

.dataTables_length label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--slate-600);
    font-size: 0.875rem;
}

.dataTables_length select {
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: var(--white);
    font-family: inherit;
    cursor: pointer;
}

.dataTables_info {
    color: var(--slate-500);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0;
}

/* DataTables sort icon color fix — slate on gray header */
.data-table thead .sorting::before,
.data-table thead .sorting::after,
.data-table thead .sorting_asc::before,
.data-table thead .sorting_asc::after,
.data-table thead .sorting_desc::before,
.data-table thead .sorting_desc::after {
    opacity: 0.4 !important;
    color: var(--slate-400) !important;
}

.data-table thead .sorting_asc::after,
.data-table thead .sorting_desc::before {
    opacity: 1 !important;
    color: var(--slate-700) !important;
}

/* DataTables pagination */
.paginate_button {
    padding: 0.5rem 0.875rem !important;
    margin: 0 0.125rem !important;
    border: 1px solid var(--slate-300) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--slate-600) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    font-weight: 500 !important;
    font-size: 0.8rem !important;
    background: var(--white) !important;
}

.paginate_button:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
}

.paginate_button.disabled,
.paginate_button.disabled:hover {
    background: var(--slate-50) !important;
    color: var(--slate-400) !important;
    border-color: var(--slate-200) !important;
    cursor: not-allowed !important;
}

.dataTables_paginate {
    padding: 0 !important;
    display: flex;
    gap: 0.25rem;
}

/* DataTables "No data" message */
.dataTables_empty {
    text-align: center;
    padding: 2rem !important;
    color: var(--slate-500);
    font-style: italic;
}

/* ============================================================================
   PAGE: Refund Request Form (Public)
   ============================================================================ */

/* ─── Site Header ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: linear-gradient(to right, var(--primary), #09357a);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 40px 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo-icon {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.header-logo-img {
    height: 2.25rem;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.header-logo-icon .material-symbols-outlined {
    font-size: 1.5rem;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.header-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.lang-toggle .material-symbols-outlined {
    font-size: 1.125rem;
}

.lang-toggle-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ─── Main Content ─── */
.main-content {
    flex: 1;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f6f7f8 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.content-wrapper {
    max-width: 56rem;
    margin: 0 auto;
}

.page-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.page-intro-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.page-intro-text {
    color: var(--slate-500);
}

/* ─── Form Card ─── */
.form-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border: 1px solid rgba(226, 232, 240, 0.6);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.form-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), #60a5fa, var(--primary));
}

/* ─── Form Sections ─── */
.form-section {
    margin-bottom: 2.5rem;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--slate-100);
    margin-bottom: 1.5rem;
}

.section-header-spread {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--slate-100);
    margin-bottom: 1.5rem;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    padding: 0.5rem;
    background: #e8f0fe;
    border-radius: var(--radius-lg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-800);
}

/* ─── Form Grid ─── */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-col-span-2 {
    grid-column: 1 / -1;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ─── Field ─── */
.field-group {
    display: flex;
    flex-direction: column;
}

.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.field-required {
    color: var(--red-500);
    font-weight: 400;
}

.field-wrapper {
    position: relative;
}

.field-input {
    width: 100%;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--slate-900);
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}

.field-input::placeholder {
    color: var(--slate-400);
}

.field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 70, 160, 0.1);
}

.field-input.is-invalid {
    border-color: var(--red-500);
}

.field-input-upper {
    text-transform: uppercase;
}

.field-select {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 0.75rem 2.5rem 0.75rem 2.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--slate-900);
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.field-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 70, 160, 0.1);
}

.field-icon-left {
    position: absolute;
    left: 0.75rem;
    top: 0.85rem;
    color: var(--slate-400);
    pointer-events: none;
    transition: var(--transition);
}

.field-icon-right {
    position: absolute;
    right: 1rem;
    top: 0.85rem;
    color: var(--slate-400);
    pointer-events: none;
}

.field-group:focus-within .field-icon-left {
    color: var(--primary);
}

.field-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--slate-500);
}

.field-error {
    font-size: 0.8rem;
    color: var(--red-500);
    margin-top: 0.25rem;
}

.field-textarea {
    width: 100%;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--slate-900);
    outline: none;
    resize: none;
    transition: var(--transition);
}

.field-textarea::placeholder {
    color: var(--slate-400);
}

.field-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 70, 160, 0.1);
}

/* ─── Banking Box ─── */
.banking-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--slate-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--slate-100);
}

/* ─── Toggle Switch ─── */
.toggle-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 0.75rem;
}

.toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
    background: var(--slate-200);
    border-radius: 9999px;
    transition: var(--transition);
}

.toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--white);
    border: 1px solid var(--slate-300);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-input:checked+.toggle-track {
    background: var(--primary);
}

.toggle-input:checked+.toggle-track::after {
    transform: translateX(1.25rem);
    border-color: var(--white);
}

.toggle-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    transition: var(--transition);
}

.toggle-label:hover .toggle-text {
    color: var(--primary);
}

/* ─── Upload Card ─── */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.upload-card-wrapper {
    display: flex;
    flex-direction: column;
}

.upload-card-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 0.75rem;
}

.upload-card {
    position: relative;
    cursor: pointer;
}

.upload-card-body {
    height: 12rem;
    border: 2px dashed var(--slate-300);
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--slate-50);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.upload-card:hover .upload-card-body {
    background: #e8f0fe;
    border-color: var(--primary);
}

.upload-card-body.is-invalid {
    border-color: var(--red-500);
}

.upload-card-body.captured {
    border-color: #22c55e;
    border-style: solid;
    background: rgba(34, 197, 94, 0.05);
}

.upload-icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.upload-card:hover .upload-icon-circle {
    transform: scale(1.1);
}

.upload-icon-circle .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.5rem;
}

.upload-card-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-600);
}

.upload-card-hint {
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-top: 0.25rem;
}

#id-placeholder,
#personal-placeholder,
#agent-placeholder,
#auth-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.upload-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-xl);
    display: none;
}

.upload-card-body video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    display: none;
}

.upload-card-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.75rem;
    border-top: 1px solid var(--slate-100);
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    border: none;
}

.upload-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--blue-600));
    color: var(--white);
}

.upload-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(13, 70, 160, 0.3);
    transform: translateY(-1px);
}

.upload-btn-secondary {
    background: var(--white);
    color: var(--slate-600);
    border: 1.5px solid var(--slate-300);
}

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

.upload-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

/* ─── Submit ─── */
.form-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-100);
    margin-top: 2.5rem;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(to right, var(--primary), #1d4ed8);
    color: var(--white);
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-family: inherit;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn .material-symbols-outlined {
    transition: transform 0.2s ease;
}

.submit-btn:hover .material-symbols-outlined {
    transform: translateX(4px);
}

.form-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-top: 1rem;
}

.form-disclaimer a {
    color: var(--primary);
    text-decoration: none;
}

.form-disclaimer a:hover {
    text-decoration: underline;
}

/* ─── Alert Boxes ─── */
.alert-modern {
    border-radius: var(--radius-xl);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border: none;
}

.alert-danger-modern {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
}

.alert-danger-modern .alert-heading {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--red-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.alert-danger-modern p,
.alert-danger-modern li {
    font-size: 0.85rem;
    color: var(--red-500);
}

/* ─── Char Counter ─── */
.field-char-counter {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--slate-400);
    font-weight: 500;
}

/* ─── Loading Overlay ─── */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--slate-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── Contact Support Panel ─── */
.contact-info-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary), var(--blue-600));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(13, 70, 160, 0.4);
    z-index: 1000;
    transition: var(--transition);
    font-size: 1.25rem;
    border: none;
}

.contact-info-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(13, 70, 160, 0.5);
}

.contact-info-section {
    display: none;
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 380px;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.contact-info-section.show {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--slate-100);
}

.contact-info-header {
    background: linear-gradient(135deg, var(--primary), #09357a);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    position: relative;
}

.contact-info-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.contact-info-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.contact-info-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.25rem 0 0;
}

.contact-info-content {
    padding: 1rem 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--slate-100);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #e8f0fe;
    color: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.contact-icon.whatsapp-icon {
    background: #dcfce7;
    color: #16a34a;
}

.contact-text h6 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-700);
    margin: 0 0 0.25rem;
}

.contact-text p {
    font-size: 0.75rem;
    color: var(--slate-500);
    margin: 0;
}

.contact-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.contact-number:hover {
    text-decoration: underline;
}

/* ─── Form Responsive ─── */
@media (min-width: 768px) {
    .form-card {
        padding: 2.5rem;
    }

    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .banking-box {
        grid-template-columns: 1fr 1fr;
    }

    .upload-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 640px) {
    .main-content {
        padding: 3rem 1.5rem;
    }
}

/* Navigation bar (public layout) */
/* ============================================================================
   COMPONENT: Public Navigation Bar
   ============================================================================ */
.public-nav {
    background: var(--white);
    border-bottom: 1px solid var(--slate-100);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

.public-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.public-nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.public-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.125rem;
}

.public-nav-logo .material-symbols-outlined {
    font-size: 1.5rem;
}

.public-nav-brand {
    letter-spacing: 0.05em;
}

.public-nav-links {
    display: flex;
    gap: 0.25rem;
}

.public-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
    text-decoration: none;
    transition: var(--transition);
}

.public-nav-link:hover {
    background: var(--slate-100);
    color: var(--primary);
}

.public-nav-link.active {
    background: var(--blue-100);
    color: var(--primary);
    font-weight: 600;
}

.public-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.public-nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.public-nav-avatar {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--blue-600));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.public-nav-username {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
}

.public-nav-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--red-500);
    background: none;
    border: 1px solid var(--slate-200);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.public-nav-logout:hover {
    background: var(--red-100);
    border-color: var(--red-500);
}

/* ============================================================================
   PAGE: Login (Split-Screen)
   ============================================================================ */
.login-page {
    display: flex;
    min-height: 100vh;
    background: var(--white);
}

.login-brand-panel {
    display: none;
    width: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    overflow: hidden;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.login-logo-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.login-brand-content {
    position: relative;
    z-index: 1;
}

.login-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.login-hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 400px;
}

.login-brand-footer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

/* Right-side login form */
.login-form-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    position: relative;
    background: var(--white);
}

.login-form-container {
    width: 100%;
    max-width: 420px;
}

.login-form-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.login-form-subtitle {
    color: var(--slate-500);
    margin-bottom: 2rem;
}

.login-field-group {
    margin-bottom: 1.25rem;
}

.login-field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.login-field-wrapper {
    position: relative;
}

.login-field-input {
    width: 100%;
    height: 3.5rem;
    padding-left: 3rem;
    padding-right: 1rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
    color: var(--slate-900);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.login-field-input::placeholder {
    color: var(--slate-400);
}

.login-field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 70, 160, 0.1);
}

.login-field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
}

.login-field-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--slate-400);
    cursor: pointer;
}

.login-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.login-remember input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 4px;
    accent-color: var(--primary);
}

.login-remember span {
    font-size: 0.875rem;
    color: var(--slate-600);
}

.login-forgot {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.login-forgot:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 3.5rem;
    background: linear-gradient(to right, var(--primary), var(--blue-600));
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    transition: var(--transition);
}

.login-btn:hover {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.login-btn .material-symbols-outlined {
    transition: transform 0.2s ease;
}

.login-btn:hover .material-symbols-outlined {
    transform: translateX(4px);
}

.login-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--slate-400);
    margin-top: 2rem;
}

/* Login error alerts */
.login-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.login-alert-error {
    background: var(--red-100);
    color: var(--red-600);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.login-alert-success {
    background: var(--green-100);
    color: var(--green-700);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

/* ============================================================================
   PAGE: Refund Form (Public-facing)
   ============================================================================ */
.refund-page-bg {
    background: linear-gradient(135deg, #f6f7f8 0%, var(--slate-200) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Form Header ─── */
.form-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: linear-gradient(to right, var(--primary), #09357a);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.form-header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.form-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-header-logo-icon {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.form-header-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.form-header-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.form-lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
}

.form-lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.form-lang-toggle.lang-active {
    background: rgba(255, 255, 255, 0.25);
}

/* ─── Form Card ─── */
.form-main-content {
    flex: 1;
    padding: 3rem 1rem;
}

.form-content-wrapper {
    max-width: 56rem;
    margin: 0 auto;
}

.form-page-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.form-page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.form-page-text {
    color: var(--slate-500);
}

.form-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-glass);
    border: 1px solid rgba(226, 232, 240, 0.6);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.form-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--blue-400), var(--primary));
}

/* ─── Form Sections ─── */
.form-section {
    margin-bottom: 2.5rem;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--slate-100);
    margin-bottom: 1.5rem;
}

.section-icon {
    padding: 0.5rem;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-800);
}

/* ─── Form Fields ─── */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.field-required {
    color: var(--red-500);
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.field-wrapper {
    position: relative;
}

.field-input {
    width: 100%;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--slate-900);
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}

.field-input::placeholder {
    color: var(--slate-400);
}

.field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 70, 160, 0.1);
}

.field-input.is-invalid {
    border-color: var(--red-500);
}

.field-select {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 0.75rem 2.5rem 0.75rem 2.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--slate-900);
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.field-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 70, 160, 0.1);
}

.field-textarea {
    width: 100%;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--slate-900);
    outline: none;
    resize: none;
    transition: var(--transition);
}

.field-textarea::placeholder {
    color: var(--slate-400);
}

.field-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 70, 160, 0.1);
}

.field-icon-left {
    position: absolute;
    left: 0.75rem;
    top: 0.85rem;
    color: var(--slate-400);
    pointer-events: none;
    transition: var(--transition);
}

.field-icon-right {
    position: absolute;
    right: 1rem;
    top: 0.85rem;
    color: var(--slate-400);
    pointer-events: none;
}

.field-group:focus-within .field-icon-left {
    color: var(--primary);
}

.field-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--slate-500);
}

.field-error {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--red-500);
    font-weight: 500;
}

/* ─── Upload Card ─── */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.upload-card-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 0.75rem;
}

.upload-card {
    position: relative;
    cursor: pointer;
}

.upload-card-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: pointer;
}

.upload-card-body {
    height: 12rem;
    border: 2px dashed var(--slate-300);
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--slate-50);
    transition: var(--transition);
}

.upload-card:hover .upload-card-body {
    background: var(--primary-light);
    border-color: var(--primary);
}

.upload-icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.upload-card:hover .upload-icon-circle {
    transform: scale(1.1);
}

.upload-icon-circle .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.5rem;
}

.upload-card-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-600);
}

.upload-card-hint {
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-top: 0.25rem;
}

/* ─── Form Alert ─── */
.form-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-alert-info {
    background: var(--blue-100);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--blue-600);
}

.form-alert-danger {
    background: var(--red-100);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: var(--red-600);
}

.form-alert-success {
    background: var(--green-100);
    border: 1px solid rgba(22, 163, 74, 0.15);
    color: var(--green-700);
}

/* ─── Form Footer ─── */
.form-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-100);
    margin-top: 2.5rem;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-top: 1rem;
}

.form-disclaimer a {
    color: var(--primary);
}

.form-disclaimer a:hover {
    text-decoration: underline;
}

/* ============================================================================
   COMPONENT: Phone Cell (Doc buttons in table)
   ============================================================================ */
.phone-cell {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
}

.phone-number .material-symbols-outlined {
    font-size: 0.875rem;
}

.phone-whatsapp {
    color: var(--green-600);
}

/* ============================================================================
   COMPONENT: Finance Modal Extras
   ============================================================================ */
.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.modal-info-box {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.modal-info-label {
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-bottom: 0.25rem;
}

.modal-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-900);
}

.modal-bank-box {
    background: var(--green-100);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-amount-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-amount-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
    margin-bottom: 0.5rem;
}

.modal-amount-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.modal-amount-badge {
    display: inline-block;
    background: var(--green-100);
    color: var(--green-700);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ============================================================================
   UTILITY
   ============================================================================ */
.text-truncate-custom {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    display: inline-block;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.img-thumb-preview {
    max-width: 150px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    cursor: pointer;
    transition: var(--transition);
}

.img-thumb-preview:hover {
    box-shadow: var(--shadow-md);
}

/* Page-level content wrapper */
.page-content {
    padding: 1.5rem 2rem 2rem;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (min-width: 768px) {
    .form-card {
        padding: 2.5rem;
    }

    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .upload-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .login-brand-panel {
        display: flex;
    }

    .login-form-panel {
        width: 50%;
        padding: 3rem;
    }
}

@media (max-width: 1200px) {
    .page-banner {
        margin: 1rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 1.5rem;
        left: 1rem;
        background: var(--white);
        border: 1px solid var(--slate-200);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        color: var(--slate-900);
        cursor: pointer;
        width: 40px;
        height: 40px;
        z-index: 50;
    }

    .menu-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--white);
        border-radius: 50%;
        width: 32px;
        height: 32px;
        position: absolute;
        top: 1rem;
        right: 1rem;
        cursor: pointer;
        z-index: 50;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 990;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sidebar-overlay.overlay-open {
        opacity: 1;
        visibility: visible;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: var(--shadow-xl);
    }

    .admin-sidebar.sidebar-open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .page-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin: 1rem;
    }

    .admin-topbar {
        padding: 0.75rem 1rem;
    }

    .page-content {
        padding: 1rem;
    }

    .modal-info-grid {
        grid-template-columns: 1fr;
    }

    .modal-bank-box {
        grid-template-columns: 1fr;
    }

    .dataTables_filter input {
        width: 100% !important;
    }
}

/* ============================================================================
   COMPONENT: Modern Preloader
   ============================================================================ */
.modern-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.8, 0, 0.2, 1), visibility 0.6s;
}

.modern-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-brand {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 2rem;
    background: white;
    box-shadow: 0 10px 30px rgba(13, 70, 160, 0.15), inset 0 0 0 2px rgba(13, 70, 160, 0.1);
}

.preloader-brand::before,
.preloader-brand::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--blue-400);
    animation: spin 1.5s linear infinite;
}

.preloader-brand::after {
    width: 80%;
    height: 80%;
    border-top-color: var(--blue-600);
    border-right-color: transparent;
    border-bottom-color: var(--primary-light);
    animation: spin-reverse 2s linear infinite;
}

.preloader-icon {
    font-size: 2.5rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--blue-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
}

.preloader-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--slate-700);
    position: relative;
}

.preloader-text::after {
    content: '...';
    position: absolute;
    animation: text-dots 1.5s steps(4, end) infinite;
    width: 1.5em;
    text-align: left;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}



@keyframes text-dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}