/* ================================================================
   CSS Custom Properties
   ================================================================ */
:root {
    --pcf-brand-primary: #0758F5;
    --pcf-brand-dark: #1a1a1a;
    --pcf-text-primary: #333;
    --pcf-text-secondary: #6b7280;
    --pcf-text-muted: #9ca3af;
    --pcf-bg-card: #ffffff;
    --pcf-bg-page: #f5f5f5;
    --pcf-border-light: #e0e0e0;
    --pcf-border-lighter: #e5e7eb;
    --pcf-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --pcf-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --pcf-radius-card: 12px;
    --pcf-radius-input: 10px;
    --pcf-spacing-card: 20px;
    --pcf-touch-target: 48px;
}

.form_body {
    text-align: start;
}

.login_email {
    border: 1px solid rgba(0, 0, 0, .1);
    font-size: 13px;
    height: 48px;
    background: #F5F5F5;
    border-radius: 10px;
    color: #000;
}

.login-btn {
    width: 100%;
    margin: 20px 0;
}

.background-none {
    background: none;
}

/* Profile Media Sections Styling */
.media-card {
    background: #fff;
    border: 1px solid var(--pcf-border-light);
    border-radius: var(--pcf-radius-card);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: var(--pcf-shadow-card);
}

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

.media-thumbnail {
    position: relative;
    width: 100%;
    height: 120px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.placeholder-icon {
    font-size: 48px;
    color: #6c757d;
    opacity: 0.6;
}

.video-placeholder {
    font-size: 48px;
    color: var(--pcf-brand-primary);
    opacity: 0.8;
}

.media-thumbnail .status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: var(--pcf-radius-card);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.media-thumbnail .status-badge.verified {
    background: #d4edda;
    color: #155724;
}

.media-thumbnail .status-badge.missing {
    background: #f8d7da;
    color: #721c24;
}

.media-thumbnail .status-badge.info {
    background: #d1ecf1;
    color: #0c5460;
}

.media-info h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #343a40;
}

.missing-text {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.completion-status {
    margin-top: 20px;
}

.completion-status .alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.completion-status .alert i {
    font-size: 18px;
}

/* Upload Form Styling */
.upload-form {
    margin-top: 10px;
}

.upload-section {
    position: relative;
    display: inline-block;
    width: 100%;
}

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

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--pcf-brand-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.upload-btn:hover {
    background: #0647d4;
    color: white;
    text-decoration: none;
}

.upload-btn i {
    font-size: 14px;
}

/* Inline Profile Editing Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.edit-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.save-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-label {
    font-weight: 600;
    color: #343a40;
    width: 30%;
    vertical-align: top;
    padding-top: 12px;
}

.field-value {
    position: relative;
    transition: all 0.3s ease;
}

.field-value.editing {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 8px;
}

.display-value {
    display: inline;
    color: #495057;
    line-height: 1.5;
}

.edit-input {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.edit-input:focus {
    outline: none;
    border-color: var(--pcf-brand-primary);
    box-shadow: 0 0 0 2px rgba(7, 88, 245, 0.25);
}

.edit-input:hover {
    border-color: var(--pcf-brand-primary);
}

/* Button styles for inline editing */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    color: var(--pcf-brand-primary);
    border-color: var(--pcf-brand-primary);
    background-color: transparent;
}

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

.btn-success {
    color: white;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-secondary {
    color: #6c757d;
    background-color: transparent;
    border-color: #6c757d;
}

.btn-secondary:hover {
    color: white;
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Master View Styling */
.master-view-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    margin: 0;
}

.master-view-banner .alert {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Top Avatar Styling */
.top-avatar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 8px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.top-avatar:hover {
    background: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.top-avatar a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #343a40;
    text-decoration: none;
    font-family: 'Gilmer-Medium', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.top-avatar a:hover {
    color: var(--pcf-brand-primary);
    text-decoration: none;
}

.top-avatar i {
    font-size: 20px;
    color: var(--pcf-brand-primary);
}

.dashboard_content {
    margin-top: 60px;
    /* Add space for master view banner */
    flex: 1;
    padding: 20px;
    min-height: calc(100vh - 60px);
}

/* ================================ Modern Sidebar Styling ================================== */

/* Sidebar Base Styles */
#sidebar {
    min-width: 280px;
    max-width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

#sidebar.collapsed {
    transform: translateX(-100%);
}

/* Sidebar Header */
.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.sidebar-header .toggle-icon.desktop-toggle {
    font-size: 20px;
    color: #343a40;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-header .toggle-icon.desktop-toggle:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    filter: brightness(1.1);
}

.logo-text {
    font-family: 'Gilmer-Bold', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Navigation Styles */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 4px 12px;
    position: relative;
}

#sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--pcf-radius-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Gilmer-Medium', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

#sidebar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(7, 88, 245, 0.1) 0%, rgba(7, 88, 245, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--pcf-radius-card);
}

#sidebar .nav-link:hover::before {
    opacity: 1;
}

#sidebar .nav-link:hover {
    color: #ffffff;
    background: rgba(7, 88, 245, 0.15);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(7, 88, 245, 0.2);
}

#sidebar .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(7, 88, 245, 0.2) 0%, rgba(7, 88, 245, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(7, 88, 245, 0.3);
}

#sidebar .nav-link.active::before {
    opacity: 1;
}

/* Navigation Icon */
.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.nav-icon i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-icon i {
    transform: scale(1.1);
    color: #4A9EFF;
}

.nav-link.active .nav-icon i {
    color: #4A9EFF;
}

/* Navigation Text */
.nav-text {
    flex: 1;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

#sidebar .nav-link:hover .nav-text {
    color: #ffffff;
}

/* Navigation Indicator */
.nav-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #4A9EFF 0%, var(--pcf-brand-primary) 100%);
    border-radius: 0 2px 2px 0;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
    height: 24px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.nav-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    margin: 0 20px 16px 20px;
}

/* Logout Link Special Styling */
.logout-item .nav-link {
    color: rgba(255, 107, 107, 0.8) !important;
}

.logout-item .nav-link:hover {
    color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.1);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.logout-item .nav-link.active {
    color: rgba(255, 107, 107, 0.8) !important;
    background: rgba(255, 107, 107, 0.1);
}

.logout-item .nav-link:hover .nav-icon i {
    color: #ff6b6b;
}

.logout-item .nav-link:hover .nav-indicator {
    background: linear-gradient(180deg, #ff6b6b 0%, #ff5252 100%);
}

/* Content Area Adjustments */
#content {
    margin-left: 280px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    width: calc(100% - 280px);
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
}

#content.expanded {
    margin-left: 0;
    width: 100%;
}

/* Toggle Icon Improvements */
.toggle-icon {
    font-size: 20px;
    cursor: pointer;
    color: #343a40;
    z-index: 1046;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    padding: 10px;
}

.toggle-icon:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsiveness */

/* Scrollbar Styling for Sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Animation for sidebar items */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

.nav-item {
    animation: slideInFromLeft 0.3s ease forwards;
}

.nav-item:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-item:nth-child(2) {
    animation-delay: 0.15s;
}

.nav-item:nth-child(3) {
    animation-delay: 0.2s;
}

.nav-item:nth-child(4) {
    animation-delay: 0.25s;
}

.nav-item:nth-child(5) {
    animation-delay: 0.3s;
}

.nav-item:nth-child(6) {
    animation-delay: 0.35s;
}

.nav-item:nth-child(7) {
    animation-delay: 0.4s;
}

.nav-item:nth-child(8) {
    animation-delay: 0.45s;
}

/* ================================ Address Autocomplete Styling ================================ */

/* Address autocomplete wrapper */
.address-autocomplete-wrapper {
    width: 100%;
    position: relative;
}

/* Address suggestions dropdown */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    display: none;
    margin-top: -1px;
}

/* Individual suggestion item */
.address-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.address-suggestion-item:hover {
    background-color: #f8f9fa;
    color: var(--pcf-brand-primary);
    padding-left: 20px;
}

.address-suggestion-item:active {
    background-color: #e9ecef;
}

.address-suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

/* Loading state */
.address-suggestion-loading {
    padding: 12px 16px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

/* Input field focus state for autocomplete */
#address_input {
    transition: all 0.3s ease;
}

#address_input:focus {
    border-color: var(--pcf-brand-primary);
    box-shadow: 0 0 0 3px rgba(7, 88, 245, 0.15);
    border-radius: 8px 8px 0 0;
}

#address_input:focus+.address-suggestions {
    border-top: 1px solid var(--pcf-brand-primary);
}

/* Mobile Optimizations for Address Autocomplete */

/* Scrollbar styling for suggestions */
.address-suggestions::-webkit-scrollbar {
    width: 6px;
}

.address-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 8px 0;
}

.address-suggestions::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.address-suggestions::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ================================ Dashboard Pages Common Styles ================================ */

/* Page Header Styles */
.page-header-section {
    margin-bottom: 2rem;
}

.page-header-section h2 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
}

.page-header-section p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Badge Styles for Dashboard Pages */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 0.25rem;
}

.badge-completed {
    background-color: #28a745;
    color: white;
}

.badge-pending {
    background-color: #ffc107;
    color: #000;
}

.badge-failed {
    background-color: #dc3545;
    color: white;
}

.badge-timeout {
    background-color: #dc3545;
    color: white;
}

.badge-processing {
    background-color: #17a2b8;
    color: white;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

/* Button Styles */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin: 0 2px;
}

/* Payment Type Fields (Beneficiaries) */
.payment-type-fields {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    background-color: #f8f9fa;
}

/* Table Styles */
.table-area {
    overflow-x: auto;
}

.table-light {
    background-color: #f8f9fa;
    font-size: 0.9em;
}

/* ================================ Responsive Design - Tablet ================================ */

/* ================================ Responsive Design - Mobile ================================ */

/* ================================ Extra Small Devices ================================ */

/* ================================ Transactions Page Redesign ================================ */

/* Transactions Container */
.transactions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    box-sizing: border-box;
}

/* Transactions Header */
.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--pcf-border-light);
}

.transactions-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.transactions-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--pcf-border-light);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 250px;
}

.search-box i {
    color: #6c757d;
    font-size: 14px;
    margin-right: 8px;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
    color: #343a40;
}

.search-box input::placeholder {
    color: #adb5bd;
}

/* Export Button */
.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--pcf-brand-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: #0647d4;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 88, 245, 0.3);
}

/* Transactions Table Wrapper */
.transactions-table-wrapper {
    background: white;
    border-radius: var(--pcf-radius-card);
    overflow-x: auto;
    box-shadow: var(--pcf-shadow-card);
    width: 100%;
    box-sizing: border-box;
}

/* Transactions Table */
.transactions-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    margin: 0;
    box-sizing: border-box;
}

.transactions-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.transactions-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Align amount column to the right */
.transactions-table thead th:nth-child(6) {
    text-align: right;
}

.transactions-table tbody td:nth-child(6) {
    text-align: right;
}

.transactions-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.transactions-table tbody tr:hover {
    background-color: #fafbfc;
}

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

.transactions-table tbody td {
    padding: 18px 20px;
    font-size: 14px;
    color: #343a40;
    vertical-align: middle;
}

/* Transaction Date */
.transaction-date {
    color: #6c757d;
    font-size: 13px;
}

/* Transaction Amount - Desktop Color Coding */
.transaction-amount {
    font-weight: 600;
    font-size: 15px;
}

/* Color-coded amounts - Fintech standard (Desktop) */
.transaction-type-deposit .transaction-amount,
.transaction-type-topup .transaction-amount,
.transaction-type-credit .transaction-amount {
    color: #28a745 !important;
    /* Green for money IN */
}

.transaction-type-deposit .transaction-amount:before,
.transaction-type-topup .transaction-amount:before,
.transaction-type-credit .transaction-amount:before {
    content: '+';
    margin-right: 2px;
}

.transaction-type-transfer .transaction-amount,
.transaction-type-withdrawal .transaction-amount,
.transaction-type-payment .transaction-amount {
    color: #dc3545 !important;
    /* Red for money OUT */
}

.transaction-type-transfer .transaction-amount:before,
.transaction-type-withdrawal .transaction-amount:before,
.transaction-type-payment .transaction-amount:before {
    content: '-';
    margin-right: 2px;
}

.transaction-type-fee .transaction-amount {
    color: #6c757d !important;
    /* Gray for fees */
}

.transaction-type-fee .transaction-amount:before {
    content: '-';
    margin-right: 2px;
}

/* Transaction Type Badge */
.transaction-type-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
    text-align: center;
}

.transaction-type-badge.transaction-type-deposit {
    background: #d4edda;
    color: #155724;
}

.transaction-type-badge.transaction-type-withdrawal {
    background: #fff3cd;
    color: #856404;
}

.transaction-type-badge.transaction-type-transfer {
    background: #d1ecf1;
    color: #0c5460;
}

.transaction-type-badge.transaction-type-fee {
    background: #e2e3e5;
    color: #383d41;
}

/* Transaction Description */
.transaction-description strong {
    display: block;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 2px;
}

.transaction-description small {
    color: #6c757d;
    font-size: 12px;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.status-badge.status-completed,
.status-badge.status-success {
    background: #28a745;
    color: white;
}

.status-badge.status-pending {
    background: #ffc107;
    color: #000;
}

.status-badge.status-failed,
.status-badge.status-timeout {
    background: #dc3545;
    color: white;
}

.status-badge.status-processing {
    background: #17a2b8;
    color: white;
}

/* Transaction Amount */
.transaction-amount {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

/* Fee Row Styling */
.fee-row {
    background-color: #f8f9fa;
}

.fee-row:hover {
    background-color: #f1f3f5 !important;
}

/* No Transactions */
.no-transactions {
    text-align: center;
    padding: 100px 20px;
}

.no-transactions .headline-area h2 {
    font-size: 24px;
    color: #343a40;
    margin-bottom: 10px;
}

.no-transactions .headline-area p {
    font-size: 16px;
    color: #6c757d;
}

/* ================================ Mobile Responsiveness ================================ */



/* ================================ Dashboard Page Headers (Transactions-style) ================================ */
/* Consistent header styling across all Prime Circle Finance dashboard pages */
/* Based on Transactions page design - optimized for desktop and mobile */

/* Main page title - primary header for all dashboard pages */
.pcf-page-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--pcf-border-light);
    line-height: 1.3;
    font-family: 'Gilmer-Bold', sans-serif;
}

/* Section headers within pages - for subsections and content blocks */
.pcf-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pcf-border-light);
    line-height: 1.4;
    font-family: 'Gilmer-Bold', sans-serif;
}

/* Header wrapper with controls - for pages with action buttons/search */
.pcf-header-with-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--pcf-border-light);
}

.pcf-header-with-controls h1,
.pcf-header-with-controls h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Gilmer-Bold', sans-serif;
}

/* Modal/Popup headers - cleaner style without bottom border */
.modal-header .modal-title.pcf-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Gilmer-Bold', sans-serif;
    margin: 0;
    line-height: 1.4;
}

/* DEPRECATED: Legacy class - use .pcf-page-title instead */
/* Keeping for backwards compatibility - will be removed in future update */
.page-header-section h2 {
    /* Redirects to new standard */
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--pcf-border-light);
}

/* ================================ Mobile Responsive Styles ================================ */

/* Tablet and small desktop */

/* Mobile phones */

/* ================================ Unified Page Framework (Transactions-style) ================================ */
/* Modern, mobile-optimized container and content wrapper system for all dashboard pages */

/* Page Container - replaces all individual page containers */
.pcf-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Content Wrapper - white card container for tables, forms, grids */
.pcf-content-wrapper {
    background: white;
    border-radius: var(--pcf-radius-card);
    overflow: hidden;
    box-shadow: var(--pcf-shadow-card);
    margin-bottom: 20px;
}

/* Inner padding for content wrapper */
.pcf-content-wrapper-padded {
    background: white;
    border-radius: var(--pcf-radius-card);
    padding: 20px;
    box-shadow: var(--pcf-shadow-card);
    margin-bottom: 20px;
}

/* ================================ Modern Table Styling ================================ */

/* Table wrapper for optimal mobile transformation */
.pcf-table-wrapper {
    background: white;
    border-radius: var(--pcf-radius-card);
    overflow-x: auto;
    box-shadow: var(--pcf-shadow-card);
    margin-bottom: 20px;
}

/* Modern table base styling */
.pcf-table-modern {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    margin: 0;
}

.pcf-table-modern thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.pcf-table-modern thead th {
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pcf-table-modern tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.pcf-table-modern tbody tr:hover {
    background-color: #fafbfc;
}

.pcf-table-modern tbody tr:last-child {
    border-bottom: none;
}

.pcf-table-modern tbody td {
    padding: 18px 20px;
    font-size: 14px;
    color: #343a40;
    vertical-align: middle;
}

/* ================================ Card Grid System (Dashboard) ================================ */

/* Card grid container for dashboard-style layouts */
.pcf-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Credit card responsive enhancements - keeps original gradient design */
.credit-card {
    /* Inherits original gradient from styles.css */
    /* Only adding responsive improvements */
    transition: all 0.3s ease;
}

.credit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Clickable credit card link wrapper */
.credit-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.credit-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.credit-card-link .credit-card {
    cursor: pointer;
}

/* ================================ Multi-Currency Accounts Styling ================================ */

/* Container for multi-currency page */
.multicurrency-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header section */
.multicurrency-header {
    margin-bottom: 24px;
}

.multicurrency-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Card grid for currency accounts */
.multicurrency-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Currency card internal structure */
.currency-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.currency-card-header .card-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.currency-card-header .card-logo span {
    margin-left: 5px;
}

.currency-card-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.currency-card-link:hover {
    opacity: 1;
    color: white;
    text-decoration: none;
}

.currency-card-link i {
    margin-left: 4px;
}

.currency-card-body {
    margin: 20px 0;
}

.currency-card-footer {
    margin-top: auto;
}

/* ================================ Account Page Styling ================================ */

/* Container for individual account page */
.account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header section with account name and action buttons */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.account-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex-shrink: 0;
}

.account-header .pcf-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

/* Controls wrapper with search and export buttons */
.account-controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.account-export-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.account-export-buttons .export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--pcf-border-light);
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.account-export-buttons .export-btn:hover {
    background: #f8f9fa;
    border-color: #0066cc;
    color: #0066cc;
    text-decoration: none;
}

.account-export-buttons .export-btn i {
    font-size: 0.85rem;
}

/* ================================ Statements Page Styling ================================ */

/* Container for statements page */
.statements-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header section with title and request button */
.statements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.statements-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex-shrink: 0;
}

/* Controls section with search */
.statements-controls {
    margin-bottom: 20px;
}

.statements-controls .search-box {
    max-width: 400px;
}

/* Statement header primary button */
.statements-header .pcf-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.statements-header .pcf-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white !important;
    text-decoration: none;
}

/* ================================ Form Styling ================================ */

/* Modern form card container */
.pcf-form-card {
    background: white;
    border-radius: var(--pcf-radius-card);
    padding: 24px;
    box-shadow: var(--pcf-shadow-card);
    margin-bottom: 20px;
    border: 1px solid var(--pcf-border-light);
}

/* Form input enhancements */
.pcf-form-card .form-control,
.pcf-form-card .form-select {
    border-radius: 8px;
    border: 1px solid var(--pcf-border-light);
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pcf-form-card .form-control:focus,
.pcf-form-card .form-select:focus {
    border-color: var(--pcf-brand-primary);
    box-shadow: 0 0 0 3px rgba(7, 88, 245, 0.1);
}

/* ================================ Empty State Styling ================================ */

/* Empty state message (like no-transactions) */
.pcf-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--pcf-radius-card);
    margin: 20px 0;
}

.pcf-empty-state h2 {
    font-size: 24px;
    color: #343a40;
    margin-bottom: 10px;
    font-weight: 600;
}

.pcf-empty-state p {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

/* ================================ Onboarding Status Card ================================ */

.pcf-onboarding-card {
    max-width: 520px;
    margin: 40px auto 0;
    background: #fff;
    border: 1px solid var(--pcf-border-lighter);
    border-radius: 16px;
    padding: 40px 36px 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pcf-onboarding-header {
    text-align: center;
    margin-bottom: 32px;
}

.pcf-onboarding-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: #FEF3C7;
    color: #D97706;
}

.pcf-step.completed ~ .pcf-step.active .pcf-onboarding-icon-wrap,
.pcf-onboarding-card:has(.pcf-step.active .pcf-step-pulse) .pcf-onboarding-icon-wrap {
    background: #FEF3C7;
    color: #D97706;
}

.pcf-onboarding-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.3;
}

.pcf-onboarding-subtitle {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

/* ── Vertical stepper ── */
.pcf-stepper {
    position: relative;
    padding: 0;
    margin: 0;
}

.pcf-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    padding-bottom: 24px;
}

.pcf-step.last {
    padding-bottom: 0;
}

/* Connector line between steps */
.pcf-step:not(.last)::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: #E5E7EB;
}

.pcf-step.completed:not(.last)::after {
    background: #10B981;
}

/* Step indicator circle */
.pcf-step-indicator {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    border: 2px solid #E5E7EB;
    background: #fff;
    transition: all 0.2s ease;
}

.pcf-step.completed .pcf-step-indicator {
    background: #10B981;
    border-color: #10B981;
    color: #fff;
}

.pcf-step.active .pcf-step-indicator {
    border-color: #D97706;
    background: #FEF3C7;
}

.pcf-step.pending .pcf-step-indicator {
    border-color: #E5E7EB;
    background: #F9FAFB;
}

/* Pulse dot for active "under review" step */
.pcf-step-pulse {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D97706;
    animation: pcf-pulse-ring 2s ease-in-out infinite;
}

@keyframes pcf-pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
}

/* Step text content */
.pcf-step-content {
    padding-top: 3px;
}

.pcf-step-label {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 2px;
    line-height: 1.4;
}

.pcf-step.pending .pcf-step-label {
    color: #9CA3AF;
    font-weight: 500;
}

.pcf-step-desc {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}

.pcf-step.pending .pcf-step-desc {
    color: #D1D5DB;
}

/* ── Action buttons ── */
.pcf-onboarding-action {
    margin-top: 28px;
    text-align: center;
}

.pcf-btn-onboarding {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 28px;
    border-radius: 10px;
    background: var(--pcf-brand-primary, #0758F5);
    color: #fff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease;
    border: none;
    cursor: pointer;
}

.pcf-btn-onboarding:hover {
    background: #0548CC;
    color: #fff;
    text-decoration: none;
}

.pcf-btn-onboarding-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 28px;
    border-radius: 10px;
    background: #fff;
    color: var(--pcf-brand-primary, #0758F5);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid var(--pcf-border-lighter, #E5E7EB);
    cursor: pointer;
}

.pcf-btn-onboarding-outline:hover {
    background: #F9FAFB;
    border-color: var(--pcf-brand-primary, #0758F5);
    color: var(--pcf-brand-primary, #0758F5);
    text-decoration: none;
}

/* ================================ Mobile Responsive Optimizations ================================ */

/* Tablet (768px and below) */

/* Mobile (480px and below) */

/* ================================ Legacy Compatibility Wrappers ================================ */

/* Ensure existing .white-border-area works with new system */
.white-border-area.pcf-modern {
    background: white;
    border-radius: var(--pcf-radius-card);
    padding: 20px;
    box-shadow: var(--pcf-shadow-card);
    border: 1px solid var(--pcf-border-light);
}

/* Make existing .form-area compatible */
.form-area.pcf-modern {
    background: white;
    border-radius: var(--pcf-radius-card);
    padding: 24px;
    box-shadow: var(--pcf-shadow-card);
    border: 1px solid var(--pcf-border-light);
}

/* ================================ Account Page Action Buttons ================================ */

/* Action buttons container - keeps original button colors */
.pcf-action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Individual action button - preserves original styling */
.pcf-action-btn {
    /* Inherits colors from .btn-w-blue and .custom-btn */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-height: 44px;
    padding: 10px 20px;
}

/* Dropdown button wrapper */
.pcf-dropdown-wrapper {
    /* Inherits original dropdown styling */
    display: inline-block;
}

/* Responsive action buttons for mobile */


/* ZAR Account Balance Display */
.zar-balance-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zar-balance-info h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Gilmer-Bold', sans-serif;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.balance-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.balance-amount {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
}

.pop-section {
    margin-top: 50px;
}

.pop-section .pcf-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    font-family: 'Gilmer-Bold', sans-serif;
}

/* Mobile optimization for ZAR Account */


/* Table Header Controls - Search and Export above table */
.table-header-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 0;
}

.table-header-controls .search-box {
    flex: 0 0 auto;
}

.table-header-controls .export-btn {
    flex: 0 0 auto;
}

/* Mobile optimization for table header controls */

/* Modal Optimization - Responsive and Mobile-Friendly */
.modal-dialog {
    max-width: 600px;
    margin: 1.75rem auto;
}

.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 20px 24px;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Gilmer-Bold', sans-serif;
}

.modal-body {
    padding: 24px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 16px 24px;
    border-radius: 0 0 8px 8px;
}

/* Nav pills in modal */
.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px !important;
}

.nav-pills .nav-item {
    flex: 0 0 auto;
}

.nav-pills .nav-link {
    padding: 10px 16px !important;
    margin-right: 0 !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.nav-pills .nav-link.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* Bank details cards in modal */
.topup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 12px;
}

.topup-row>span:first-child {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
    flex: 0 0 auto;
    min-width: 120px;
}

.topup-row .d-flex {
    flex: 1 1 auto;
    justify-content: flex-end;
}

.topup-row div[id^="text"],
.topup-row div[id^="dc-text"] {
    font-weight: 600;
    color: #1a1a1a;
    background: #f8f9fa !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    word-break: break-word;
}

.copy-button {
    min-width: 36px;
    height: 36px;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Form optimization in modals */
.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group p {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.modal .form-control {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.2s ease;
}

.modal .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.modal textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.modal .btn_area {
    margin-top: 24px;
}

.modal .btn-w-blue {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
}

/* Info and validation boxes in modal */
.info-box,
.balance-box,
.validation-box {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.info-box {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    color: #004085;
}

.balance-box {
    background: #f8f9fa;
    border: 1px solid #e2e3e5;
    color: #343a40;
}

.validation-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.info-box i,
.balance-box i,
.validation-box i {
    margin-right: 8px;
}

/* Mobile optimization for modals */


/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1030;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Header */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--pcf-border-light);
    position: sticky;
    top: 0;
    z-index: 1051;
}
/* Desktop: hide the mobile-header toggle unless sidebar is collapsed */
@media (min-width: 769px) {
    .mobile-header > .toggle-icon {
        display: none !important;
    }
    #content.expanded > .mobile-header > .toggle-icon {
        display: flex !important;
    }
}

.mobile-header .toggle-icon {
    position: static;
    font-size: 20px;
    color: #343a40;
    cursor: pointer;
    z-index: 1046;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-header .toggle-icon:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mobile-header .top-avatar {
    position: static;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 8px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-left: auto;
    transition: all 0.3s ease;
}

.mobile-header .top-avatar:hover {
    background: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mobile-header .top-avatar a {
    text-decoration: none;
    color: #343a40;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Gilmer-Medium', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.mobile-header .top-avatar a:hover {
    color: var(--pcf-brand-primary);
    text-decoration: none;
}

.mobile-header .top-avatar i {
    font-size: 20px;
    color: var(--pcf-brand-primary);
}

/* Prevent body scrolling when sidebar is open on mobile */
body.sidebar-open {
    overflow: hidden;
}

/* When sidebar is open, ensure overlay covers the mobile header */
body.sidebar-open .sidebar-overlay.active {
    z-index: 1052;
}

body.sidebar-open #sidebar {
    z-index: 1053;
}


/* ================================ Prime Market Widget (xStocks Card) ================================ */

/* Prime Circle Theme Colors */
:root {
    --prime-green: #22c55e;
    --prime-red: #ef4444;
    --prime-text-dark: #2d3748;
    --prime-text-muted: #4a5568;
}

/* Prime Market Widget Card - Gradient Glass Style */
.prime-market-widget {
    background: linear-gradient(135deg, #7B9CB6 0%, #E5D5B0 100%);
    border-radius: 20px;
    padding: 22px;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Gilmer-Medium', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.prime-market-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Widget Header - Matches Wallet Card Style */
.prime-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.prime-widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prime-widget-title i {
    color: #ffffff;
    font-size: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.prime-widget-title span {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-family: 'Gilmer-Bold', sans-serif;
}

.prime-widget-link {
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.prime-widget-link:hover {
    color: #ffffff;
    text-decoration: none;
    gap: 8px;
}

/* Glass Panel Container */
.prime-glass-panel {
    background: transparent;
    padding: 10px 0;
}

/* Mini Ticker List */
.prime-ticker-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prime-ticker-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.prime-ticker-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.prime-ticker-row:first-child {
    padding-top: 0;
}

/* Stock Info (Left Column) */
.prime-stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.prime-stock-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.5);
    padding: 2px;
    flex-shrink: 0;
}

.prime-stock-symbol {
    color: #1F2937;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.prime-stock-holding {
    color: #7c5e10;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(255, 234, 167, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
}

.prime-stock-badge {
    background: linear-gradient(135deg, #f6e05e 0%, #ecc94b 100%);
    color: #744210;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Price Column */
.prime-stock-price {
    color: #1F2937;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    min-width: 65px;
}

/* Change Column - Pill Style */
.prime-stock-change {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 65px;
    padding: 4px 10px;
    border-radius: 20px;
}

.prime-stock-change.positive {
    color: #166534;
    background: #dcfce7;
}

.prime-stock-change.negative {
    color: #991b1b;
    background: #fee2e2;
}

/* Widget Footer */
.prime-widget-footer {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prime-market-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.prime-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
    }
}

.prime-view-all {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive */

/* Credit card link wrapper for prime widget */
.credit-card-link .prime-market-widget {
    cursor: pointer;
}

/* ================================ Profile Page Mobile Overhaul ================================ */

/* Application Status Stepper */
.profile-page .application-stepper {
    padding: 24px 16px;
    margin-bottom: 8px;
}

.profile-page .stepper-track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.profile-page .stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    min-width: 60px;
}

.profile-page .stepper-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    background: var(--pcf-border-lighter);
    color: var(--pcf-text-muted);
    border: 2px solid var(--pcf-border-lighter);
    transition: all 0.3s ease;
}

.profile-page .stepper-step.completed .stepper-circle {
    background: var(--pcf-brand-primary);
    border-color: var(--pcf-brand-primary);
    color: #fff;
}

.profile-page .stepper-step.active .stepper-circle {
    background: #fff;
    border-color: var(--pcf-brand-primary);
    color: var(--pcf-brand-primary);
    box-shadow: 0 0 0 4px rgba(7, 88, 245, 0.15);
}

.profile-page .stepper-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--pcf-text-muted);
    text-align: center;
    white-space: nowrap;
}

.profile-page .stepper-step.completed .stepper-label {
    color: var(--pcf-brand-primary);
    font-weight: 600;
}

.profile-page .stepper-step.active .stepper-label {
    color: #1a1a1a;
    font-weight: 600;
}

.profile-page .stepper-line {
    flex: 1;
    height: 2px;
    background: var(--pcf-border-lighter);
    margin-top: 16px;
    min-width: 20px;
}

.profile-page .stepper-line.completed {
    background: var(--pcf-brand-primary);
}

.profile-page .stepper-line.active {
    background: linear-gradient(to right, var(--pcf-brand-primary), var(--pcf-border-lighter));
}

.profile-page .stepper-message {
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 14px;
    color: #4a4a4a;
    font-weight: 500;
}

/* Section header wrap fix */
.profile-page .section-header {
    flex-wrap: wrap;
    gap: 8px;
}

/* ================================ Profile Page Responsive - Tablet ================================ */

/* ================================ Profile Page Responsive - Mobile ================================ */

/* ================================ Profile Page Responsive - Small Mobile ================================ */


/* ================================================================
   RESPONSIVE STYLES
   ================================================================ */

/* ----------------------------------------------------------------
   RESPONSIVE: Tablet and Mobile (max-width: 768px)
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    #sidebar {
        min-width: 260px;
        max-width: 260px;
    }

    /* On mobile, sidebar starts collapsed by default */
    #sidebar {
        transform: translateX(-100%);
    }

    /* When toggled open (collapsed class removed), show sidebar */
    #sidebar:not(.collapsed) {
        transform: translateX(0) !important;
    }

    /* On mobile, make the desktop toggle flow inside the sidebar header
       instead of position:fixed, so it moves with the sidebar off-screen
       when collapsed and stays inside the header when open */
    .sidebar-header .toggle-icon.desktop-toggle {
        position: static !important;
        z-index: auto;
    }

    #content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-header {
        padding: 20px 16px;
    }

    .nav-item {
        margin: 4px 8px;
    }

    #sidebar .nav-link {
        padding: 12px 14px;
        font-size: 13px;
        color: #ffffff;
    }

    .nav-icon {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }

    .nav-icon i {
        font-size: 14px;
    }

    .dashboard_content {
        padding-top: 8px;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
        margin-top: 8px;
    }

    .top-avatar {
        position: static;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 8px 0;
        z-index: auto;
    }

    .top-avatar:hover {
        background: transparent;
        transform: none;
        box-shadow: none;
    }

    .top-avatar a {
        font-size: 13px;
        gap: 6px;
    }

    .top-avatar i {
        font-size: 18px;
    }

.address-suggestions {
        max-height: 200px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 6px 6px;
    }

    .address-suggestion-item {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 48px;
        /* Larger touch target for mobile */
        display: flex;
        align-items: center;
    }

    .address-suggestion-item:hover {
        padding-left: 16px;
        /* Disable hover effect on mobile */
    }

    .address-suggestion-item:active {
        background-color: #e3f2fd;
        color: var(--pcf-brand-primary);
    }

    #address_input {
        font-size: 16px;
        /* Prevents iOS zoom on focus */
        padding: 10px 14px;
        min-height: 48px;
    }

.page-header-section h2 {
        font-size: 1.5rem;
    }

    .page-header-section p {
        font-size: 0.9rem;
    }

    .page-header-section .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .page-header-section .btn {
        margin-top: 0.5rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .white-border-area {
        padding: 15px;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .badge {
        font-size: 0.7em;
        padding: 0.3em 0.5em;
    }

    .form-group {
        margin-bottom: 1rem;
    }

.transactions-container {
        padding: 15px;
    }

    .transactions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .transactions-header h2 {
        font-size: 22px;
    }

    .transactions-controls {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .search-box {
        width: 100%;
        min-width: auto;
    }

    .export-btn {
        width: 100%;
        justify-content: center;
    }

    /* Prevent horizontal scroll on mobile */
    .transactions-container {
        padding: 12px;
        overflow-x: hidden;
    }

    .transactions-table-wrapper {
        overflow-x: hidden;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .transactions-table {
        min-width: 0;
        width: 100%;
    }

    /* Transform table to ULTRA-COMPACT mobile layout */
    .transactions-table thead {
        display: none;
    }

    .transactions-table tbody tr {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 6px 10px;
        margin-bottom: 10px;
        border: 1px solid #e8eaed;
        border-radius: 8px;
        padding: 12px 14px;
        background: white !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
    }

    .transactions-table tbody tr:hover {
        background: #fafbfc !important;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .fee-row {
        background: #f8f9fa !important;
        border-left: 3px solid #6c757d;
        margin-top: 4px;
        padding: 10px 12px !important;
    }

    /* Hide data-label completely */
    .transactions-table tbody td:before {
        display: none !important;
    }

    .transactions-table tbody td {
        padding: 0;
        margin: 0;
        border: none;
        display: contents;
    }

    /* Grid Layout - 3 rows x 2 columns */
    /* Row 1: Date (col 1) + Type (col 2) */
    .transactions-table tbody td:nth-child(1) .transaction-date {
        grid-column: 1;
        grid-row: 1;
        font-size: 12px;
        color: #5f6368;
        font-weight: 500;
    }

    .transactions-table tbody td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
    }

    /* Row 2: Amount (col 1) + Status (col 2) */
    .transactions-table tbody td:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }

    .transactions-table tbody td:nth-child(6) {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }

    /* Row 3: Description (spans both columns) */
    .transactions-table tbody td:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    /* Hide reference column on mobile */
    .transactions-table tbody td:nth-child(5) {
        display: none !important;
    }

    /* Typography - Ultra-compact */
    .transaction-date {
        font-size: 12px;
        color: #5f6368;
        font-weight: 500;
        line-height: 1.3;
    }

    .transaction-amount {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
    }

    /* Color-coded amounts - Fintech standard */
    .transaction-type-deposit .transaction-amount,
    .transaction-type-topup .transaction-amount,
    .transaction-type-credit .transaction-amount {
        color: #28a745 !important;
        /* Green for money IN */
    }

    .transaction-type-deposit .transaction-amount:before,
    .transaction-type-topup .transaction-amount:before,
    .transaction-type-credit .transaction-amount:before {
        content: '+';
        margin-right: 2px;
    }

    .transaction-type-transfer .transaction-amount,
    .transaction-type-withdrawal .transaction-amount,
    .transaction-type-payment .transaction-amount {
        color: #dc3545 !important;
        /* Red for money OUT */
    }

    .transaction-type-transfer .transaction-amount:before,
    .transaction-type-withdrawal .transaction-amount:before,
    .transaction-type-payment .transaction-amount:before {
        content: '-';
        margin-right: 2px;
    }

    .transaction-type-fee .transaction-amount {
        color: #6c757d !important;
        /* Gray for fees */
    }

    .transaction-type-badge {
        display: inline-block;
        font-size: 8px;
        font-weight: 600;
        padding: 3px 6px;
        margin: 0;
        border-radius: 3px;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        white-space: nowrap;
    }

    .transaction-description {
        font-size: 13px;
        color: #5f6368;
        line-height: 1.4;
        margin: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .transaction-description strong {
        font-weight: 600;
        color: #202124;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .transaction-description small {
        color: #80868b;
        font-size: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Use bullet separator for bank info */
    .transaction-description br+small:before {
        content: ' • ';
        color: #dadce0;
        margin: 0 4px;
    }

    .status-badge {
        display: inline-block;
        font-size: 9px;
        font-weight: 600;
        padding: 4px 8px;
        margin: 0;
        border-radius: 3px;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        white-space: nowrap;
    }

    .no-transactions {
        padding: 60px 20px;
    }

    .no-transactions .headline-area h2 {
        font-size: 20px;
    }

    .no-transactions .headline-area p {
        font-size: 14px;
    }

.pcf-page-title {
        font-size: 22px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .pcf-section-title {
        font-size: 18px;
        margin-bottom: 16px;
        padding-bottom: 8px;
    }

    .pcf-header-with-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .pcf-header-with-controls h1,
    .pcf-header-with-controls h2 {
        font-size: 22px;
    }

    .modal-header .modal-title.pcf-modal-title {
        font-size: 18px;
    }

    /* Touch-friendly controls - minimum 44px tap targets */
    .pcf-header-with-controls .btn,
    .pcf-header-with-controls a.btn,
    .pcf-header-with-controls .search-box {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Stack controls vertically with proper spacing */
    .pcf-header-with-controls>div {
        width: 100%;
    }

.pcf-page-container {
        padding: 15px;
    }

    .pcf-content-wrapper-padded,
    .pcf-form-card {
        padding: 16px;
        border-radius: 10px;
    }

    .pcf-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Multi-currency page responsive */
    .multicurrency-container {
        padding: 15px;
    }

    .multicurrency-header h2 {
        font-size: 1.5rem;
    }

    .multicurrency-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Onboarding card responsive */
    .pcf-onboarding-card {
        margin: 16px 0 0;
        padding: 28px 20px 24px;
        border-radius: 14px;
    }

    .pcf-onboarding-header {
        margin-bottom: 24px;
    }

    .pcf-onboarding-icon-wrap {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .pcf-onboarding-icon-wrap svg {
        width: 26px;
        height: 26px;
    }

    .pcf-onboarding-title {
        font-size: 18px;
    }

    .pcf-onboarding-subtitle {
        font-size: 13px;
    }

    .pcf-step {
        padding-bottom: 20px;
    }

    .pcf-step-indicator {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }

    .pcf-step-indicator svg {
        width: 12px;
        height: 12px;
    }

    .pcf-step:not(.last)::after {
        left: 11px;
        top: 24px;
    }

    .pcf-step-label {
        font-size: 13px;
    }

    .pcf-step-desc {
        font-size: 12px;
    }

    .pcf-onboarding-action {
        margin-top: 24px;
    }

    .pcf-btn-onboarding,
    .pcf-btn-onboarding-outline {
        width: 100%;
        height: 42px;
        font-size: 14px;
    }

    /* Credit cards responsive sizing */
    .credit-card {
        max-width: 100%;
        padding: 18px;
    }

    .credit-card .card-logo {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .credit-card .card-info p {
        font-size: 1.1rem;
    }

    .credit-card .balance p {
        font-size: 1.3rem;
    }

    .currency-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .currency-card-link {
        font-size: 0.85rem;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 6px;
    }

    /* Account page responsive */
    .account-container {
        padding: 15px;
    }

    .account-header {
        flex-wrap: wrap;
    }

    .account-header h2 {
        font-size: 1.5rem;
        width: 100%;
        margin-bottom: 12px;
    }

    .account-header .pcf-action-buttons {
        width: 100%;
        flex-wrap: wrap;
    }

    .account-header .pcf-action-btn {
        flex: 1;
        min-width: 150px;
    }

    .account-controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .account-controls-wrapper .search-box {
        width: 100%;
        margin-bottom: 12px;
    }

    .account-export-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .account-export-buttons .export-btn {
        flex: 1;
        justify-content: center;
    }

    /* Statements page responsive */
    .statements-container {
        padding: 15px;
    }

    .statements-header {
        flex-wrap: wrap;
    }

    .statements-header h2 {
        font-size: 1.5rem;
        width: 100%;
        margin-bottom: 12px;
    }

    .statements-header .pcf-primary-btn {
        width: 100%;
        justify-content: center;
    }

    .statements-controls .search-box {
        max-width: 100%;
    }

    /* Transform tables to mobile card layout */
    .pcf-table-modern thead {
        display: none;
    }

    .pcf-table-modern tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid var(--pcf-border-light);
        border-radius: var(--pcf-radius-card);
        padding: 16px;
        background: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .pcf-table-modern tbody tr:hover {
        background: white;
    }

    .pcf-table-modern tbody td {
        display: block;
        padding: 8px 0;
        border: none;
        text-align: left;
    }

    .pcf-table-modern tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
        font-size: 12px;
        text-transform: uppercase;
        display: block;
        margin-bottom: 4px;
    }

    .pcf-empty-state {
        padding: 60px 20px;
    }

    .pcf-empty-state h2 {
        font-size: 20px;
    }

    .pcf-empty-state p {
        font-size: 14px;
    }

.pcf-action-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .pcf-action-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        min-height: 48px;
        font-size: 14px;
    }

    .pcf-dropdown-wrapper {
        width: 100%;
    }

    .pcf-dropdown-wrapper .btn {
        width: 100%;
        justify-content: center;
    }

    .pcf-dropdown-wrapper .dropdown-menu {
        width: 100%;
    }

.zar-balance-info h2 {
        font-size: 22px;
    }

    .balance-amount {
        font-size: 18px;
    }

    .balance-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

.table-header-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .table-header-controls .search-box {
        width: 100%;
    }

    .table-header-controls .search-box input {
        width: 100%;
    }

    .table-header-controls .export-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

.modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-body {
        max-height: calc(100vh - 150px);
    }

    /* Stack nav pills vertically on mobile */
    .nav-pills {
        flex-direction: column;
        gap: 8px;
    }

    .nav-pills .nav-item {
        width: 100%;
    }

    .nav-pills .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 16px !important;
    }

    /* Optimize bank details cards for mobile */
    .topup-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 0;
    }

    .topup-row>span:first-child {
        min-width: unset;
        width: 100%;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .topup-row .d-flex {
        width: 100%;
        justify-content: space-between;
    }

    .topup-row div[id^="text"],
    .topup-row div[id^="dc-text"] {
        flex: 1 1 auto;
        margin-right: 8px !important;
    }

    .copy-button {
        min-width: 44px;
        height: 44px;
    }

    /* Make form controls larger for mobile touch */
    .modal .form-control {
        padding: 14px 16px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .modal .btn-w-blue {
        padding: 14px 24px;
        font-size: 16px;
        min-height: 48px;
    }

    /* Card spacing in modal */
    .modal .card.mb-3 {
        margin-bottom: 12px !important;
    }

.mobile-header .toggle-icon {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

/* Normalize white-border-area margins */
    .profile-page .white-border-area {
        margin-top: 20px;
    }

    /* Responsive heading sizes */
    .profile-page .white-border-area h3 {
        font-size: 1.15rem;
    }
}

/* ----------------------------------------------------------------
   RESPONSIVE: Small Mobile (max-width: 576px)
   ---------------------------------------------------------------- */
@media (max-width: 576px) {
    .page-header-section {
        margin-bottom: 1.5rem;
    }

    .page-header-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .page-header-section p {
        font-size: 0.85rem;
    }

    .white-border-area {
        padding: 10px;
    }

    .payment-type-fields {
        padding: 10px;
        margin: 10px 0;
    }

    /* Transform table to cards on mobile */
    .table-responsive {
        font-size: 0.75rem;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 12px;
        background: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .table tbody tr.table-light {
        background-color: #f8f9fa;
        border-left: 3px solid #6c757d;
        margin-top: -0.5rem;
        margin-bottom: 1rem;
    }

    .table td {
        display: block;
        text-align: left;
        padding: 8px 5px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

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

    .table td:before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        min-width: 100px;
        margin-right: 10px;
        color: #495057;
    }

    .table td[data-label="Status"] {
        padding: 10px 5px;
    }

    .table td[data-label="Actions"] form {
        display: block;
        margin-bottom: 5px;
        width: 100%;
    }

    .table td[data-label="Actions"] form:last-child {
        margin-bottom: 0;
    }

    .table td[data-label="Actions"] .btn-sm {
        width: 100%;
        margin: 2px 0;
    }

    .badge {
        display: inline-block;
        margin-top: 5px;
    }

    /* Form fields full width on mobile */
    .col-md-6 {
        padding-left: 0;
        padding-right: 0;
    }

    /* No transactions/beneficiaries message */
    .headline-area {
        padding-top: 20px !important;
        margin-top: 100px !important;
        margin-bottom: 100px !important;
    }

    .headline-area h2 {
        font-size: 1.5rem;
    }

    .headline-area p {
        font-size: 0.9rem;
    }

/* Table-to-card stacking (TD-1) */
    .profile-page table.table,
    .profile-page table.table tbody,
    .profile-page table.table tbody tr {
        display: block;
        width: 100%;
    }

    .profile-page table.table tbody tr {
        margin-bottom: 0;
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .profile-page table.table tbody tr:last-child {
        border-bottom: none;
    }

    .profile-page .field-label {
        display: block;
        width: 100% !important;
        padding: 12px 4px 4px;
        font-size: 12px;
        color: var(--pcf-text-secondary);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: none;
    }

    .profile-page .field-value {
        display: block;
        width: 100% !important;
        padding: 0 4px 12px;
        border: none;
        font-size: 15px;
        color: #1a1a1a;
    }

    /* Disable zebra striping on stacked rows */
    .profile-page .table-striped > tbody > tr:nth-of-type(odd) {
        background: transparent;
    }

    /* Neutralize table-responsive scroll wrapper */
    .profile-page .table-responsive {
        overflow: visible;
    }

    /* Edit-mode touch targets (TD-6) */
    .profile-page .edit-input,
    .profile-page .form-control,
    .profile-page .birthday-input {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }

    .profile-page select.edit-input,
    .profile-page select.form-control,
    .profile-page select.birthday-input {
        min-height: 48px;
        font-size: 16px;
    }

    /* Save/Cancel buttons full-width */
    .profile-page .save-controls {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .profile-page .save-controls .btn {
        flex: 1;
        min-height: 48px;
    }

    /* Completion status alert fallback */
    .profile-page .completion-status .alert {
        flex-direction: column;
        text-align: center;
    }

    /* Stepper mobile refinements */
    .profile-page .application-stepper {
        padding: 20px 8px;
    }

    .profile-page .stepper-circle {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .profile-page .stepper-line {
        margin-top: 14px;
    }

    .profile-page .stepper-label {
        font-size: 11px;
    }

    .profile-page .stepper-step {
        min-width: 50px;
    }

    /* Responsive heading sizes - mobile */
    .profile-page .white-border-area h3 {
        font-size: 1.05rem;
    }

    /* Section header stacking on narrow screens */
    .profile-page .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-page .edit-controls {
        width: 100%;
    }

    .profile-page .edit-controls .btn {
        width: 100%;
        min-height: 48px;
    }
}

/* ----------------------------------------------------------------
   RESPONSIVE: Extra Small Mobile (max-width: 480px)
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
    .transactions-header h2 {
        font-size: 20px;
    }

    .export-btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .transactions-table tbody tr {
        padding: 10px 12px;
        margin-bottom: 8px;
        gap: 5px 8px;
    }

    .transaction-date {
        font-size: 11px;
    }

    .transaction-amount {
        font-size: 18px;
    }

    .transaction-description {
        font-size: 12px;
    }

    .transaction-type-badge {
        font-size: 7px;
        padding: 2px 5px;
    }

    .status-badge {
        font-size: 8px;
        padding: 3px 6px;
    }

.pcf-page-title {
        font-size: 20px;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    .pcf-section-title {
        font-size: 16px;
        margin-bottom: 14px;
        padding-bottom: 6px;
    }

    .pcf-header-with-controls h1,
    .pcf-header-with-controls h2 {
        font-size: 20px;
    }

    .modal-header .modal-title.pcf-modal-title {
        font-size: 16px;
    }

.pcf-page-container {
        padding: 12px;
    }

    .multicurrency-container {
        padding: 12px;
    }

    .multicurrency-header h2 {
        font-size: 1.35rem;
    }

    .account-container {
        padding: 12px;
    }

    .account-header h2 {
        font-size: 1.35rem;
    }

    .statements-container {
        padding: 12px;
    }

    .statements-header h2 {
        font-size: 1.35rem;
    }

    .pcf-content-wrapper-padded,
    .pcf-form-card {
        padding: 14px;
        border-radius: 8px;
    }

    /* Credit cards mobile sizing */
    .credit-card {
        padding: 16px;
        border-radius: var(--pcf-radius-card);
    }

    .credit-card .card-logo {
        font-size: 1.2rem;
        margin-bottom: 14px;
    }

    .credit-card .card-info p {
        font-size: 1rem;
    }

    .credit-card .balance p {
        font-size: 1.2rem;
    }

    .pcf-table-modern tbody tr {
        padding: 14px;
        margin-bottom: 14px;
    }

    .pcf-table-modern tbody td {
        padding: 6px 0;
    }

    .pcf-empty-state {
        padding: 40px 16px;
    }

    .pcf-empty-state h2 {
        font-size: 18px;
    }

    .pcf-empty-state p {
        font-size: 13px;
    }

.pcf-action-btn {
        font-size: 13px;
        padding: 12px 16px;
        min-height: 48px;
    }

    .pcf-action-btn i {
        font-size: 14px;
    }

.zar-balance-info h2 {
        font-size: 20px;
    }

    .balance-amount {
        font-size: 16px;
    }

.modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }

    .modal-content {
        height: 100%;
        border-radius: 0;
    }

    .modal-header {
        border-radius: 0;
    }

    .modal-footer {
        border-radius: 0;
    }

    .modal-body {
        max-height: calc(100vh - 130px);
    }

.prime-market-widget {
        padding: 18px;
        min-height: 200px;
    }

    .prime-glass-panel {
        padding: 12px 14px;
    }

    .prime-ticker-row {
        grid-template-columns: 1fr auto auto;
        gap: 8px;
    }

    .prime-stock-price {
        font-size: 13px;
        min-width: 55px;
    }

    .prime-stock-change {
        min-width: 58px;
        font-size: 11px;
        padding: 3px 8px;
    }

    .prime-widget-title span {
        font-size: 16px;
    }

    .prime-stock-symbol {
        font-size: 14px;
    }

.profile-page .stepper-circle {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .profile-page .stepper-line {
        margin-top: 12px;
    }

    .profile-page .stepper-label {
        font-size: 10px;
    }

    .profile-page .stepper-step {
        min-width: 44px;
    }

    .profile-page .stepper-message {
        font-size: 13px;
    }
}

/* ----------------------------------------------------------------
   RESPONSIVE: Tiny Screens (max-width: 320px)
   ---------------------------------------------------------------- */
@media (max-width: 320px) {
    .page-header-section h2 {
        font-size: 1.1rem;
    }

    .page-header-section .btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }

    .table td:before {
        min-width: 80px;
        font-size: 0.7rem;
    }

    .badge {
        font-size: 0.65em;
        padding: 0.25em 0.45em;
    }

    .btn-sm {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
    }
}
