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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

/* Banking Dashboard Styles */
.banking-app {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 20px 16px 30px;
    position: relative;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nav-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.9;
    font-size: 20px;
    position: relative;
}

.menu-icon {
    position: relative;
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

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

.menu-item:hover {
    background: #f5f5f5;
}

.menu-item span {
    font-size: 20px;
}

.account-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.balance-section {
    text-align: center;
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.account-number {
    font-size: 14px;
    opacity: 0.85;
    letter-spacing: 1px;
}

.action-buttons {
    background: white;
    padding: 24px 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border: 2px solid #ff6b35;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
}

.action-btn:hover {
    background: #fff5f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.action-icon {
    width: 32px;
    height: 32px;
    border: 2px solid #ff6b35;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: white;
}

.action-label {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: #333;
}

.main-content {
    background: white;
    margin-top: 8px;
    min-height: calc(100vh - 400px);
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.tab {
    flex: 1;
    padding: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.transactions-container {
    padding: 0 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transaction-list {
    display: block;
}

.transaction-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.transaction-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
    font-weight: 500;
}

.transaction-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.transaction-left {
    flex: 1;
}

.transaction-description {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.transaction-category {
    font-size: 13px;
    color: #999;
}

.transaction-amount {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.transaction-amount.positive {
    color: #4caf50;
}

.transaction-balance {
    font-size: 13px;
    color: #999;
}

/* Interac Screen Styles */
.interac-screen {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
}

.background-content {
    background-color: #f5f5f5;
    padding: 20px 16px;
    position: relative;
    z-index: 1;
}

.interac-screen .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    background: transparent;
    margin-bottom: 20px;
}

.interac-screen .header .icon {
    font-size: 24px;
    color: #ff6b35;
    cursor: pointer;
    text-decoration: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interac-screen .header .title {
    flex-grow: 1;
    text-align: center;
    color: #333;
}

.interac-screen .header .title em {
    font-style: italic;
}

.from-account {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.from-account .label {
    font-size: 13px;
    color: #666;
    display: block;
    margin-bottom: 4px;
}

.from-account .account-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.from-account .account-info > span:first-child {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.from-account .balance {
    font-size: 14px;
    color: #666;
}

.chevron {
    font-size: 12px;
    color: #999;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    z-index: 2;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.modal-header .cancel-btn {
    color: #007aff;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

.modal-header .title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.search-bar {
    padding: 10px 16px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.search-bar input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: none;
    border-radius: 8px;
    background-color: #e9e9eb;
    font-size: 16px;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 18px;
}

.add-contact-btn {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    background-color: #fff;
    text-decoration: none;
    color: inherit;
}

.add-contact-btn .plus-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ff6b35;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-right: 10px;
}

.add-contact-btn span {
    font-size: 16px;
    color: #333;
}

.contact-list {
    flex-grow: 1;
    overflow-y: auto;
    background-color: #fff;
}

.contact-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

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

.contact-item .name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.contact-item .email {
    font-size: 14px;
    color: #8e8e93;
}

/* Form Styles */
.content-wrapper {
    padding: 20px 16px;
    background: white;
    min-height: 100vh;
}

.form-section {
    margin-top: 20px;
}

.form-field {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.form-field label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.field-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-value > div {
    flex: 1;
}

.field-value > div > div:first-child {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.field-value .balance,
.field-value .email {
    font-size: 14px;
    color: #666;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field textarea {
    width: 100%;
    border: none;
    font-size: 16px;
    color: #333;
    outline: none;
    padding: 8px 0;
}

.amount-input {
    font-size: 24px;
    font-weight: 600;
}

.form-field textarea {
    resize: none;
    font-family: inherit;
}

.info-link {
    padding: 16px 0;
    text-align: center;
}

.info-link a {
    color: #007aff;
    text-decoration: none;
    font-size: 15px;
}

.continue-btn {
    width: 100%;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

.continue-btn:hover {
    background: #e55a2b;
}

/* Review Page */
.review-section {
    padding: 20px 16px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
}

.autodeposit-box {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #333;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.transfer-details-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.detail-row {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 13px;
    color: #666;
    min-width: 80px;
}

.detail-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    text-align: right;
}

.detail-value .email {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-top: 4px;
}

.send-btn {
    width: 100%;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
}

.send-btn:hover {
    background: #e55a2b;
}

.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.simulate-error-checkbox {
    margin: 20px 0;
    padding: 12px;
    background: #fff3e0;
    border-radius: 8px;
    border: 1px solid #ffcc80;
}

.simulate-error-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.simulate-error-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff6b35;
}

.cancel-link {
    display: block;
    text-align: center;
    color: #007aff;
    text-decoration: none;
    font-size: 16px;
    padding: 12px;
}

.language-select {
    width: 100%;
    border: none;
    font-size: 16px;
    color: #333;
    outline: none;
    padding: 8px 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.submit-contact-btn {
    width: 100%;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 40px;
}

.submit-contact-btn:hover {
    background: #e55a2b;
}

.submit-contact-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
    .balance-amount {
        font-size: 36px;
    }
    
    .action-buttons {
        gap: 12px;
        padding: 20px 12px;
    }
    
    .action-btn {
        padding: 12px 6px;
    }
    
    .action-label {
        font-size: 11px;
    }
}

