* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Prompt', sans-serif;
    background: #f5f5f5;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================
   Accounts page CSS (merged from accounts.css)
   Appended automatically during repository refactor
   ========================== */
/* Accounts Management Page Styles */

.accounts-section {
    padding: 16px;
}

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Account Card */
.account-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.account-card.active {
    border-color: #FF6B00;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFFFFF 100%);
}

.account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Account Header */
.account-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.account-info {
    flex: 1;
    min-width: 0;
}

.account-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-phone {
    font-size: 14px;
    color: #7f8c8d;
}

.active-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #FF6B00;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Account Details */
.account-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.detail-label {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-active {
    color: #27ae60;
}

.status-inactive {
    color: #e74c3c;
}

/* Account Actions */
.account-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Make non-active cards clearly clickable */
.account-card:not(.active) {
    cursor: pointer;
}

/* Confirm modal specific tweaks */
.confirm-body p, #confirm-modal-message {
    font-size: 16px;
    color: #2c3e50;
    margin: 0;
}

#confirm-modal .modal-content {
    max-width: 420px;
    width: 100%;
    border-radius: 12px;
}

#confirm-modal .form-actions {
    justify-content: flex-end;
}

#confirm-modal .btn {
    min-width: 110px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.modal-header h2::after {
    content: '';
    display: block;
    height: 4px;
    width: 48px;
    background: linear-gradient(90deg, #FF6B00, #FF8533);
    border-radius: 4px;
    margin-top: 8px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #7f8c8d;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-close:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

/* Form */
#add-account-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Prompt', sans-serif;
    transition: all 0.2s;
}

/* Input with toggle (eye icon inside input on the right) */
.input-toggle-wrapper {
    position: relative;
}
.input-toggle-wrapper input {
    padding-right: 44px; /* room for the eye icon */
}
.toggle-visibility {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 34px;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #7f8c8d;
    border-radius: 8px;
    padding: 4px;
}
.toggle-visibility:hover {
    background: rgba(0,0,0,0.04);
    color: #2c3e50;
}
.toggle-visibility:focus {
    outline: 2px solid rgba(255,107,0,0.2);
}
.toggle-visibility svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* helper for sr-only text used for screen readers */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Prompt', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* Warning / yellow button variant for Edit */
.btn-warning {
    background: linear-gradient(135deg, #FFD166 0%, #FFB347 100%);
    color: #2c3e50;
    border: none;
}
.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 177, 55, 0.25);
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-secondary:hover {
    background: #dfe6e9;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* (removed .btn-edit to let action buttons share the same styles) */

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-back {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-add {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state div {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 24px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    font-size: 16px;
    margin-top: 16px;
}

/* Message Toast */
.message-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    display: none;
    max-width: calc(100% - 32px);
}

.message-toast.success {
    background: #27ae60;
}

.message-toast.error {
    background: #e74c3c;
}

/* Responsive */
@media (max-width: 480px) {
    .account-name {
        font-size: 16px;
    }
    
    .account-phone {
        font-size: 13px;
    }
    
    .modal-content {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .btn {
        width: 100%;
    }
}


.container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header - TrueMoney Style */
.header {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8534 100%);
    color: white;
    padding: 20px 20px 30px;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 4px 15px rgba(255,107,0,0.3);
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-account {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-info {
    text-align: right;
}

.wallet-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.wallet-phone {
    font-size: 0.75rem;
    opacity: 0.9;
}

.btn-manage {
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.btn-manage:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.05);
}

.wallet-badge {
    background: rgba(255,255,255,0.25);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

/* Balance Card */
.balance-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
}

.balance-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(90deg, #FF6B00 0%, #FF8533 100%); /* use header orange */
    padding: 6px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(255,107,0,0.12);
}

.balance-amount {
    font-size: 48px;
    font-weight: 800;
    color: #17324d; /* dark navy for contrast */
    margin: 8px 0 6px 0;
    line-height: 1;
}

.balance-time {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #000000;
    opacity: 0.95;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Quick Actions */
.quick-actions {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.action-btn {
    background: white;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.18s ease;
}

.action-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.action-btn-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.action-btn-text {
    font-size: 0.75rem;
    color: #333;
    font-weight: 500;
}

/* Stats Cards */
.stats {
    padding: 0 20px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
}

.stat-card h3 {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FF6B00;
    margin-bottom: 3px;
}

.stat-card small {
    font-size: 0.7rem;
    color: #999;
}

/* Section Header */
.section-header {
    padding: 20px 20px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.section-header-action {
    font-size: 0.85rem;
    color: #FF6B00;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

/* Date Filter */
.date-filter {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-row input[type="date"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Prompt', sans-serif;
    font-size: 0.85rem;
}

.filter-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-family: 'Prompt', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.btn-primary {
    background: #FF6B00;
    color: white;
}

.btn-primary:active {
    transform: scale(0.97);
    background: #E66100;
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

/* small button helper (consistent with accounts UI) */
.btn-sm {
    padding: 6px 10px;
    font-size: 0.82rem;
    border-radius: 8px;
}

/* yellow warning variant (edit style) */
.btn-warning {
    background: linear-gradient(135deg, #FFD166 0%, #FFB347 100%);
    color: #2c3e50;
    border: none;
}
.btn-warning:active { transform: scale(0.98); }

.btn-secondary:active {
    transform: scale(0.97);
    background: #e0e0e0;
}

.btn-success {
    background: #10B981;
    color: white;
}

.btn-success:active {
    transform: scale(0.97);
}

/* Transaction List */
.transactions {
    background: white;
    padding: 0 20px 80px;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: white;
    margin-bottom: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.transaction-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 12px;
}

.transaction-details {
    flex: 1;
}

.transaction-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.transaction-subtitle {
    font-size: 0.75rem;
    color: #999;
}

.transaction-amount {
    text-align: right;
}

.transaction-amount-value {
    font-size: 1rem;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 3px;
}

.transaction-time {
    font-size: 0.7rem;
    color: #999;
}

/* Status Badge */
.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-completed {
    background: #D1FAE5;
    color: #059669;
}

.status-pending {
    background: #FEF3C7;
    color: #D97706;
}

.status-failed {
    background: #FEE2E2;
    color: #DC2626;
}

/* Auto-check Toggle */
.auto-check-wrapper {
    padding: 15px 20px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.auto-check-label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.auto-check-sublabel {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}

/* Switch Toggle */
.switch {
    position: relative;
    width: 48px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: .3s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: #FF6B00;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #FF6B00;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message Toast */
.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 12px;
    display: none;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 90%;
    font-size: 0.9rem;
}

.message-success {
    background: white;
    color: #059669;
    border: 2px solid #10B981;
}

.message-error {
    background: white;
    color: #DC2626;
    border: 2px solid #EF4444;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Notification Badge */
.notification-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8534 100%);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(255,107,0,0.4);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.notification-badge:active {
    transform: scale(0.9);
}

.notification-badge.disabled {
    background: #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Slip Validation Modal */
.slip-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slip-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slip-modal-header {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8534 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slip-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.slip-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.slip-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.slip-modal-body {
    padding: 24px;
}

.slip-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.slip-input-group {
    margin-bottom: 24px;
}

.slip-input-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.slip-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Prompt', sans-serif;
    transition: all 0.2s;
    background: #fafafa;
}

.slip-input:focus {
    outline: none;
    border-color: #FF6B00;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.slip-modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.slip-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Prompt', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.slip-btn-primary {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8534 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.slip-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.4);
}

.slip-btn-primary:active {
    transform: translateY(0);
}

.slip-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.slip-btn-secondary:hover {
    background: #e0e0e0;
}

/* Phone Search Container */
.phone-search-container {
    padding: 0 20px 20px;
}

.phone-search-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Prompt', sans-serif;
    transition: all 0.3s;
    background: #fafafa;
}

.phone-search-input:focus {
    outline: none;
    border-color: #FF6B00;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.phone-search-input::placeholder {
    color: #999;
}

/* Auth pages (login / register) */
.auth-box {
    max-width: 520px;
    margin: 60px auto;
    background: white;
    border-radius: 14px;
    padding: 28px 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.auth-box h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #111;
}
.auth-box p { color: #666; margin-top:12px; }
.auth-box label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
}
.auth-box input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fafafa;
}
.auth-box input:focus {
    outline: none;
    border-color: #FF6B00;
    background: #fff;
    box-shadow: 0 6px 18px rgba(255,107,0,0.06);
}
.auth-box .btn { margin-top: 18px; width: 100%; padding: 12px 16px; font-size: 1rem; border-radius: 10px; }
.auth-box .alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.auth-box .alert.error {
    background: #FFF1F2;
    color: #9B1C1C;
    border: 1px solid #FECACA;
}
.auth-box a { color: #FF6B00; font-weight: 600; text-decoration: none; }
.auth-box a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .auth-box { margin: 24px; padding: 18px; }
}

/* Modal (accounts add) - modern card style */
.modal, .slip-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content, .slip-modal-content {
    background: linear-gradient(180deg, #fff 0%, #fff 100%);
    border-radius: 14px;
    width: 720px;
    max-width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    /* allow internal scrolling on small screens */
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.modal-header, .slip-modal-header {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8534 100%);
    color: white;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2, .slip-modal-header h3 { margin: 0; font-size: 1.15rem; }

.modal-body, .slip-modal-body {
    padding: 22px;
    background: #fff;
}

.modal .form-group, .slip-modal .form-group {
    margin-bottom: 14px;
}

.modal .form-group label, .slip-modal .form-group label {
    display:block; margin-bottom:6px; color:#333; font-weight:600;
}

.modal .form-group input, .slip-modal .form-group input,
.modal .form-group textarea, .slip-modal .form-group textarea {
    width:100%; padding:12px 14px; border-radius:10px; border:1px solid #eee; background:#fbfbfb;
    font-size:0.95rem; transition: all .15s ease;
}
.modal .form-group input:focus, .slip-modal .form-group input:focus { box-shadow: 0 8px 20px rgba(255,107,0,0.08); border-color:#FF6B00; background:#fff; }

.modal-footer, .slip-modal-footer { display:flex; gap:12px; padding:18px 22px 22px; justify-content:flex-end; }
.modal-footer .btn, .slip-modal-footer .btn { min-width:110px; }

.modal .close-x, .slip-close-btn { background: rgba(255,255,255,0.18); border: none; color: white; width:36px; height:36px; border-radius:50%; cursor:pointer; }

/* mimic first-image big spacing / rounded inputs */
.modal .form-help, .slip-modal .form-help { color:#888; font-size:0.85rem; margin-top:6px; }

@media (max-width: 880px) {
    .modal-content, .slip-modal-content { width: 94%; }
}

