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

        body {
            font-family: 'Tajawal', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background: white;
            border-radius: 20px;
            padding: 30px;
            width: 90%;
            max-width: 550px;
            max-height: 85vh;
            overflow-y: auto;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 2px solid #667eea;
            padding-bottom: 10px;
        }

        .close-modal {
            cursor: pointer;
            font-size: 24px;
            color: #666;
            transition: color 0.3s;
        }

        .close-modal:hover {
            color: #e74c3c;
        }

        .toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #27ae60;
            color: white;
            padding: 15px 25px;
            border-radius: 10px;
            z-index: 1100;
            animation: slideInRight 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .header {
            background: rgba(255,255,255,0.96);
            border-radius: 28px;
            padding: 28px;
            margin-bottom: 20px;
            box-shadow: 0 14px 35px rgba(0,0,0,0.10);
            position: relative;
            overflow: visible;
            z-index: 30;
        }

        .header::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(102,126,234,0.10), rgba(118,75,162,0.08));
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .hero-copy {
            flex: 1;
            min-width: 260px;
        }

        .header h1 {
            color: #667eea;
            font-size: 42px;
            line-height: 1.2;
            margin-bottom: 10px;
            font-weight: 800;
        }

        .hero-subtitle {
            display: none;
        }

        .action-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .hero-action-box {
            background: linear-gradient(135deg, #667eea 0%, #6d79ef 100%);
            border-radius: 22px;
            padding: 18px;
            min-width: 230px;
            box-shadow: 0 14px 25px rgba(102,126,234,0.24);
        }

        .hero-action-box .btn {
            width: 100%;
            border-radius: 18px;
            font-size: 18px;
            font-weight: 700;
            padding: 18px 20px;
            box-shadow: none;
        }

        .hero-action-box .btn:hover {
            background: rgba(255,255,255,0.12);
        }

        .hero-action-box .action-buttons {
            width: 100%;
            flex-direction: column;
        }

        .overview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 16px;
            margin-bottom: 22px;
        }

        .overview-card {
            background: rgba(255,255,255,0.96);
            border-radius: 22px;
            padding: 20px;
            box-shadow: 0 10px 28px rgba(0,0,0,0.10);
            border: 1px solid rgba(255,255,255,0.5);
        }

        .overview-card .overview-label {
            color: #667eea;
            font-weight: 700;
            font-size: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
        }

        .overview-card .overview-value {
            font-size: 34px;
            line-height: 1.2;
            color: #1f2937;
            font-weight: 800;
        }

        .overview-card .overview-subtext {
            margin-top: 10px;
            color: #6b7280;
            font-size: 13px;
            line-height: 1.7;
        }

        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-family: 'Tajawal', sans-serif;
            font-weight: 500;
            transition: all 0.3s;
            font-size: 14px;
        }

        .btn-primary {
            background: #667eea;
            color: white;
        }

        .btn-primary:hover {
            background: #5a67d8;
            transform: translateY(-2px);
        }

        .btn-success {
            background: #27ae60;
            color: white;
        }

        .btn-danger {
            background: #e74c3c;
            color: white;
        }

        .btn-warning {
            background: #f39c12;
            color: white;
        }

        .btn-info {
            background: #3498db;
            color: white;
        }

        .customers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .customer-card {
            background: white;
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.3s;
        }

        .customer-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        }

        .customer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #667eea;
        }

        .customer-name {
            font-size: 20px;
            font-weight: bold;
            color: #333;
        }

        .customer-actions {
            display: flex;
            gap: 5px;
        }

        .btn-icon {
            padding: 5px 10px;
            font-size: 12px;
        }

        .accounts-list {
            margin-top: 15px;
        }

        .main-account {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
            position: relative;
            overflow: hidden;
        }

        .main-account::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
            background-size: 20px 20px;
            animation: shimmer 20s linear infinite;
        }

        @keyframes shimmer {
            from {
                transform: translate(0, 0);
            }
            to {
                transform: translate(20px, 20px);
            }
        }

        .main-account .account-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            position: relative;
            z-index: 1;
        }

        .main-account .account-type {
            font-weight: bold;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .main-account .account-balance {
            font-size: 32px;
            font-weight: bold;
            position: relative;
            z-index: 1;
        }

        .main-account .account-sub {
            font-size: 12px;
            opacity: 0.9;
            margin-top: 5px;
            position: relative;
            z-index: 1;
        }

        .main-account,
        .main-account .account-type,
        .main-account .summary-stat-label,
        .main-account .summary-stat-value,
        .main-account .summary-row span,
        .main-account .summary-row strong {
            color: #ffffff;
        }

        .account-item {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 12px;
            border-right: 4px solid #667eea;
            transition: all 0.3s;
        }

        .account-item:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .account-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .account-type {
            font-weight: bold;
            color: #667eea;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .account-balance {
            font-size: 18px;
            color: #27ae60;
            font-weight: bold;
        }

        .account-actions {
            display: flex;
            gap: 8px;
            margin-top: 12px;
            flex-wrap: wrap;
        }

        .small-btn {
            padding: 6px 12px;
            font-size: 12px;
            border-radius: 6px;
            text-align: center;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            transition: all 0.2s;
            flex: 1;
            min-width: 70px;
        }

        .small-btn:hover {
            transform: translateY(-2px);
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            color: #333;
        }

        .form-group input, .form-group select {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-family: 'Tajawal', sans-serif;
        }

        .transactions-modal {
            max-width: 800px;
        }

        .transactions-list {
            max-height: 400px;
            overflow-y: auto;
        }

        .transaction-item {
            padding: 10px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }

        .sub-accounts {
            margin-top: 10px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out;
        }

        .sub-accounts.open {
            max-height: 2000px;
            transition: max-height 0.6s ease-in;
        }

        .toggle-accounts-btn {
            width: 100%;
            background: #ecf0f1;
            border: none;
            padding: 10px;
            border-radius: 10px;
            cursor: pointer;
            color: #667eea;
            font-weight: bold;
            margin-top: 10px;
            transition: all 0.3s;
        }

        .toggle-accounts-btn:hover {
            background: #dfe6e9;
        }

        .info-box {
            background: #e3f2fd;
            padding: 12px;
            border-radius: 10px;
            margin-bottom: 15px;
            text-align: center;
        }

        .info-box h4 {
            color: #1976d2;
            margin-bottom: 8px;
        }

        .rate-display {
            background: #f3e5f5;
            padding: 10px;
            border-radius: 8px;
            margin: 10px 0;
            text-align: center;
        }

        .customer-contact {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 18px;
            color: #333;
            font-size: 15px;
            flex-wrap: wrap;
        }

        .customer-contact span {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .customer-phone-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: inherit;
            text-decoration: none;
            font-weight: 700;
        }

        .customer-phone-link:hover {
            color: #4c5fd7;
        }

        .balance-positive {
            color: #27ae60;
        }

        .balance-negative {
            color: #e11d48 !important;
        }

        .customer-summary-top {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 12px;
            position: relative;
            z-index: 1;
        }

        .summary-stat {
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.18);
            border-radius: 16px;
            padding: 14px;
            backdrop-filter: blur(4px);
        }

        .summary-stat-label {
            font-size: 13px;
            opacity: 0.95;
            margin-bottom: 8px;
        }

        .summary-stat-value {
            font-size: 22px;
            font-weight: 800;
            line-height: 1.3;
        }

        .summary-stack {
            display: flex;
            flex-direction: column;
            gap: 10px;
            position: relative;
            z-index: 1;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            padding-top: 8px;
            border-top: 1px solid rgba(255,255,255,0.18);
        }

        .summary-row strong {
            font-size: 16px;
            color: #ffffff;
        }

        .account-item {
            background: #f8f9fa;
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 12px;
            border-right: 4px solid #667eea;
            transition: all 0.3s;
        }

        .account-item.account-usd {
            background: linear-gradient(180deg, #fbfcff 0%, #f5f7ff 100%);
        }

        .account-item.account-local {
            background: linear-gradient(180deg, #fbfbfb 0%, #f6f7fb 100%);
        }

        .account-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 12px;
        }

        .account-type-wrap {
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 0;
        }

        .account-type {
            font-weight: bold;
            color: #667eea;
            font-size: 15px;
            display: flex;
            align-items: center;
            gap: 6px;
            line-height: 1.6;
        }

        .account-badge {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            gap: 6px;
            background: rgba(102,126,234,0.12);
            color: #4c5fd7;
            padding: 5px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
        }

        .account-balance {
            font-size: 18px;
            color: #27ae60;
            font-weight: bold;
            white-space: nowrap;
        }

        .account-metrics {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 10px;
        }

        .metric-box {
            background: white;
            border-radius: 12px;
            padding: 10px 12px;
            border: 1px solid #eef1ff;
        }

        .metric-label {
            font-size: 12px;
            color: #667085;
            margin-bottom: 5px;
        }

        .metric-value {
            font-size: 16px;
            font-weight: 700;
            color: #1f2937;
            line-height: 1.5;
        }

        .account-meta {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 8px;
        }

        .meta-item {
            background: rgba(102,126,234,0.06);
            border-radius: 10px;
            padding: 8px 10px;
            font-size: 12px;
            line-height: 1.7;
            color: #475467;
        }

        .meta-item strong {
            color: #344054;
        }

        .empty-state {
            text-align: center;
            padding: 40px 20px;
            background: white;
            border-radius: 20px;
            color: #667085;
        }


        .overview-grid {
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 14px;
        }

        .overview-card {
            border-radius: 18px;
            padding: 16px;
        }

        .overview-card .overview-value {
            font-size: 28px;
        }

        .customers-grid {
            grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
            gap: 16px;
        }

        .customer-card {
            border-radius: 18px;
            padding: 18px;
        }

        .customer-header {
            margin-bottom: 12px;
            padding-bottom: 12px;
        }

        .customer-name {
            font-size: 18px;
        }

        .btn-icon {
            padding: 6px 9px;
            font-size: 11px;
        }

        .main-account {
            border-radius: 18px;
            padding: 16px;
            margin-bottom: 16px;
        }

        .customer-summary-top {
            gap: 10px;
        }

        .summary-stat {
            border-radius: 14px;
            padding: 12px;
        }

        .summary-stat-label {
            font-size: 12px;
        }

        .summary-stat-value {
            font-size: 19px;
        }

        .summary-row {
            font-size: 13px;
            padding-top: 10px;
        }

        .summary-row strong {
            font-size: 15px;
        }

        .account-item {
            border-radius: 14px;
            padding: 14px;
            border-right-width: 3px;
        }

        .account-header {
            margin-bottom: 10px;
        }

        .account-type {
            font-size: 14px;
        }

        .account-badge {
            font-size: 11px;
            padding: 4px 9px;
        }

        .account-balance {
            font-size: 17px;
        }

        .account-metrics {
            gap: 8px;
        }

        .metric-box {
            border-radius: 10px;
            padding: 9px 10px;
        }

        .metric-label {
            font-size: 11px;
        }

        .metric-value {
            font-size: 15px;
        }

        .account-meta {
            gap: 8px;
        }

        .meta-item {
            border-radius: 9px;
            padding: 7px 9px;
            font-size: 11px;
        }

        .account-compact-note {
            margin: 6px 0 4px;
            padding: 9px 11px;
            border-radius: 10px;
            background: rgba(102,126,234,0.06);
            color: #52607a;
            font-size: 12px;
            line-height: 1.8;
        }

        .account-actions {
            gap: 6px;
            margin-top: 10px;
        }

        .small-btn {
            min-width: 64px;
            padding: 7px 10px;
            font-size: 11px;
            border-radius: 8px;
        }

        .helper-note {
            margin-bottom: 14px;
            font-size: 13px;
            line-height: 1.8;
        }

        .project-settings-actions {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 10px;
        }

        .transactions-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 460px;
            padding-left: 2px;
        }

        .transaction-item {
            padding: 12px;
            border: 1px solid #edf1ff;
            border-radius: 14px;
            background: #fafbff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .transaction-main {
            flex: 1;
            min-width: 220px;
        }

        .transaction-meta {
            color: #667085;
            font-size: 12px;
            margin-bottom: 6px;
        }

        .transaction-desc {
            color: #1f2937;
            line-height: 1.7;
            font-weight: 600;
            font-size: 14px;
        }

        .transaction-side {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .transaction-amount {
            font-weight: 800;
            font-size: 14px;
            white-space: nowrap;
        }

        .transaction-actions {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }


        .project-title-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }

        .project-menu-wrap {
            position: relative;
            z-index: 80;
        }

        .menu-trigger {
            width: 52px;
            height: 52px;
            border-radius: 18px;
            border: none;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            cursor: pointer;
            font-size: 19px;
            box-shadow: 0 14px 26px rgba(102,126,234,0.26);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .menu-trigger:hover {
            transform: translateY(-2px);
            box-shadow: 0 18px 30px rgba(102,126,234,0.30);
        }

        .project-dropdown {
            position: absolute;
            top: calc(100% + 10px);
            left: 0;
            width: min(240px, calc(100vw - 48px));
            max-height: min(320px, calc(100vh - 150px));
            overflow-y: auto;
            background: rgba(255,255,255,0.99);
            border-radius: 20px;
            padding: 8px;
            box-shadow: 0 20px 44px rgba(15,23,42,0.20);
            border: 1px solid rgba(102,126,234,0.12);
            display: none;
            flex-direction: column;
            gap: 7px;
        }

        .project-dropdown.open {
            display: flex;
        }

        .project-menu-item {
            width: 100%;
            border: none;
            background: #f8faff;
            color: #334155;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 11px 13px;
            border-radius: 13px;
            cursor: pointer;
            font-family: 'Tajawal', sans-serif;
            font-weight: 700;
            font-size: 13px;
            transition: all 0.2s ease;
        }

        .project-menu-item:hover {
            background: #eef2ff;
            transform: translateX(-2px);
        }

        .project-menu-item.menu-danger {
            background: #fff5f5;
            color: #c0392b;
        }

        .project-menu-item.menu-danger:hover {
            background: #ffe9e7;
        }

        .login-screen {
            min-height: 100vh;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .login-screen.active {
            display: flex;
        }

        .login-card {
            width: 100%;
            max-width: 460px;
            background: rgba(255,255,255,0.97);
            border-radius: 28px;
            padding: 28px;
            box-shadow: 0 24px 50px rgba(15,23,42,0.22);
        }

        .login-head {
            text-align: center;
            margin-bottom: 24px;
        }

        .login-icon {
            width: 78px;
            height: 78px;
            border-radius: 24px;
            margin: 0 auto 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-size: 30px;
            box-shadow: 0 18px 36px rgba(102,126,234,0.30);
        }

        .login-title {
            color: #334155;
            font-size: 30px;
            font-weight: 800;
            margin-bottom: 8px;
        }

        .login-subtitle {
            color: #64748b;
            line-height: 1.8;
            font-size: 14px;
        }

        .login-note {
            margin: 16px 0 20px;
            background: #f8faff;
            border: 1px dashed rgba(102,126,234,0.35);
            border-radius: 16px;
            padding: 14px;
            color: #475569;
            font-size: 13px;
            line-height: 1.9;
        }

        .login-note strong,
        .login-note code {
            font-family: inherit;
            color: #1e293b;
            font-weight: 800;
        }

        .login-error {
            display: none;
            margin-top: 12px;
            border-radius: 12px;
            padding: 12px 14px;
            background: #fff1f2;
            color: #be123c;
            font-weight: 700;
            font-size: 13px;
        }

        .login-error.show {
            display: block;
        }

        .app-screen {
            display: none;
        }

        .app-screen.active {
            display: block;
        }

        .details-grid {
            display: grid;
            gap: 12px;
        }

        .detail-row {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 12px;
            align-items: start;
            background: #f8faff;
            border: 1px solid #eef2ff;
            border-radius: 14px;
            padding: 14px;
        }

        .detail-label {
            color: #64748b;
            font-size: 12px;
            margin-bottom: 6px;
            font-weight: 700;
        }

        .detail-value {
            color: #0f172a;
            font-size: 15px;
            line-height: 1.8;
            font-weight: 700;
            word-break: break-word;
        }

        .copy-btn {
            border: none;
            background: #e9efff;
            color: #4c5fd7;
            border-radius: 12px;
            cursor: pointer;
            padding: 10px 12px;
            font-family: 'Tajawal', sans-serif;
            font-weight: 700;
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        .copy-btn:hover {
            background: #dbe5ff;
        }

        .archived-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .archived-item {
            background: #f8faff;
            border: 1px solid #e8edff;
            border-radius: 16px;
            padding: 16px;
        }

        .archived-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }

        .archived-title {
            color: #1e293b;
            font-weight: 800;
            font-size: 15px;
            line-height: 1.8;
        }

        .archived-meta {
            color: #64748b;
            font-size: 13px;
            line-height: 1.8;
        }

        .archived-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 12px;
        }

        .confirm-card {
            text-align: center;
            max-width: 420px;
        }

        .confirm-icon {
            width: 78px;
            height: 78px;
            margin: 0 auto 18px;
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
            color: white;
            font-size: 30px;
            box-shadow: 0 20px 36px rgba(239,68,68,0.24);
        }

        .confirm-text {
            color: #475569;
            line-height: 1.9;
            margin-bottom: 18px;
            font-size: 14px;
        }

        .confirm-actions {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .muted-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 999px;
            background: rgba(102,126,234,0.10);
            color: #5563da;
            font-size: 12px;
            font-weight: 700;
        }

        .main-account .muted-badge {
            background: rgba(255,255,255,0.16);
            color: #ffffff;
            border: 1px solid rgba(255,255,255,0.18);
        }

        .account-compact-note {
            display: none !important;
        }

        .operation-account-banner {
            background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(118,75,162,0.10));
            border: 1px solid rgba(102,126,234,0.14);
            border-radius: 18px;
            padding: 14px 16px;
            margin-bottom: 16px;
        }

        .operation-account-banner-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }

        .operation-account-banner-title {
            color: #4c5fd7;
            font-size: 16px;
            font-weight: 800;
            line-height: 1.8;
        }

        .operation-account-banner-subtitle {
            color: #52607a;
            font-size: 13px;
            line-height: 1.8;
        }

        .operation-account-banner-values {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
        }

        .operation-account-banner-stat {
            background: rgba(255,255,255,0.80);
            border-radius: 14px;
            padding: 10px 12px;
            border: 1px solid rgba(102,126,234,0.10);
        }

        .operation-account-banner-label {
            color: #64748b;
            font-size: 12px;
            margin-bottom: 6px;
            font-weight: 700;
        }

        .operation-account-banner-value {
            color: #0f172a;
            font-size: 16px;
            font-weight: 800;
            line-height: 1.7;
        }

        .status-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 800;
            margin-inline-start: 8px;
            white-space: nowrap;
        }

        .status-chip.status-active {
            background: rgba(39,174,96,0.12);
            color: #1f8f4d;
        }

        .status-chip.status-archived {
            background: rgba(243,156,18,0.14);
            color: #b7791f;
        }

        .status-chip.status-deleted {
            background: rgba(231,76,60,0.14);
            color: #c0392b;
        }

        .transaction-extra-grid {
            display: grid;
            gap: 8px;
            margin-top: 10px;
        }

        .transaction-extra-item {
            background: #f1f5ff;
            border: 1px solid #e4ebff;
            border-radius: 12px;
            padding: 9px 11px;
        }

        .transaction-extra-label {
            color: #64748b;
            font-size: 11px;
            margin-bottom: 4px;
            font-weight: 700;
        }

        .transaction-extra-value {
            color: #0f172a;
            font-size: 13px;
            line-height: 1.8;
            font-weight: 700;
        }

        .transaction-lock-note {
            margin-top: 8px;
            color: #8a5a11;
            background: #fff7e6;
            border: 1px solid #fde0a6;
            border-radius: 10px;
            padding: 8px 10px;
            font-size: 12px;
            line-height: 1.8;
            font-weight: 700;
        }


        @media (max-width: 768px) {
            .customers-grid {
                grid-template-columns: 1fr;
            }
            
            .modal-content {
                width: 95%;
                padding: 20px;
            }
            
            .hero-content {
                align-items: stretch;
            }

            .header {
                padding: 22px;
            }

            .header h1 {
                font-size: 30px;
            }

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

            .customer-summary-top,
            .account-metrics,
            .account-meta {
                grid-template-columns: 1fr;
            }

            .summary-row,
            .customer-contact,
            .account-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .account-actions {
                flex-wrap: wrap;
            }
            
            .small-btn {
                min-width: 58px;
                font-size: 10px;
                padding: 6px 8px;
            }

            .transaction-main,
            .transaction-side {
                min-width: 100%;
                justify-content: flex-start;
            }

            .project-title-row {
                align-items: center;
                gap: 12px;
            }

            .menu-trigger {
                width: 48px;
                height: 48px;
                font-size: 18px;
            }

            .project-dropdown {
                position: fixed;
                top: 118px;
                left: 22px;
                right: 22px;
                width: auto;
                max-height: calc(100vh - 150px);
                z-index: 200;
            }

            .project-menu-item {
                padding: 10px 12px;
                font-size: 12px;
            }
        }
