:root {
    --maroon: #80151a;
    --dark-card: #1c1c1e;
    --ios-blue: #007AFF;
    --success: #28a745;
    --error: #dc3545;
}

body {
    background-color: #000000;
    font-family: -apple-system, system-ui, sans-serif;
}

img {
    -khtml-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.app-shell {
    max-width: 450px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

/* 1. TOAST FIX: Ensure it stays above all layers and is visible on all viewports */
#mobileToast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    z-index: 9999;
    /* Increased z-index */
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 14px;
    text-align: center;
    width: fit-content;
    /* Adjusts to text size */
    min-width: 200px;
    max-width: 90%;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#mobileToast.show {
    bottom: 30px;
    /* Adjusted slightly for better thumb clearance */
}

/* 2. PAYMENT PAGE OPTIMIZATION: Reducing vertical space */
.info-card {
    padding: 15px;
    /* Reduced from 20px */
    margin-bottom: 15px;
}

.bank-box {
    padding: 15px;
    /* Reduced from 20px */
    border-radius: 15px;
}

.method-row {
    padding: 8px 0;
    /* Reduced from 15px to save vertical space */
    border-bottom: 0.5px solid #3a3a3c;
}

.account-title-tag {
    font-size: 10px;
    /* Slightly smaller */
    margin-top: 0;
}

.copy-wrapper {
    padding: 2px 5px;
    /* Tighten copy button area */
}

.app-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.5px solid #d1d1d6;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-item {
    flex: 1;
    font-weight: 500;
    text-decoration: none !important;
    color: var(--ios-blue);
    cursor: pointer;
}

/* Update these lines in your CSS */
.back-btn {
    display: none;
}

/* Changed from visibility: hidden */
.back-btn.visible {
    display: block;
}

/* Changed from visibility: visible */

.info-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff5f5;
    color: var(--maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.1rem;
}

.bank-box {
    background: var(--dark-card);
    color: white;
    border-radius: 18px;
    padding: 20px;
}

.method-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 0.5px solid #3a3a3c;
}

.copy-btn {
    color: #8e8e93;
    cursor: pointer;
    padding: 5px;
}

.form-group-ios {
    margin-bottom: 18px;
}

.form-control-ios {
    background: #f2f2f7;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 14px;
    width: 100%;
    transition: 0.3s;
}

.form-control-ios:focus {
    outline: none;
    background: #fff;
    border-color: var(--ios-blue);
}

.is-invalid {
    border-color: var(--error) !important;
    background-color: #fff1f1 !important;
}

.btn-ios {
    background: var(--maroon);
    color: white;
    border-radius: 14px;
    padding: 16px;
    width: 100%;
    font-weight: 600;
    border: none;
    font-size: 17px;
    text-decoration: none !important;
    display: block;
    text-align: center;
}

.select2-container--default .select2-selection--single {
    background-color: #f2f2f7;
    border: 2px solid transparent;
    border-radius: 14px;
    height: 54px;
    padding: 12px;
}

.step-page {
    display: none;
    padding: 20px;
}

.step-page.active {
    display: block;
    animation: slideUp 0.3s ease;
}

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

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

#trackModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    width: 85%;
    max-width: 350px;
    margin: 30% auto;
    border-radius: 25px;
    padding: 25px;
    text-align: center;
}

/* New Styling for Improvements */
.price-breakdown {
    border-top: 1px solid #eee;
    margin-top: 15px;
    padding-top: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #8e8e93;
    font-size: 0.9em;
}

.free-badge {
    color: var(--success);
    font-weight: bold;
    font-size: 1.1em;
}

/* Elegant Bank Row */
.method-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 0.5px solid #3a3a3c;
}

.method-info {
    flex: 1;
}

.method-value {
    text-align: right;
}

.account-title-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffcc00;
    /* Subtle gold for the title */
    display: block;
    margin-top: 2px;
}

/* Better Copy Button UI */
.copy-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 8px;
    transition: background 0.2s;
    color: #8e8e93;
}

.copy-wrapper:active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.copy-btn {
    font-size: 1.1rem;
}

.method-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Aligns number and icon to the right */
}

/* Progress Bar Styles */
.progress-container {
    display: none;
    margin-top: 15px;
}

.progress {
    height: 12px;
    border-radius: 10px;
    background: #eee;
    overflow: hidden;
}

.progress-bar {
    background: #28a745;
    width: 0%;
    height: 100%;
    transition: width 0.2s;
}