/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --primary-color: #F4B63C;
    --secondary-color: #1A1A1A;
    --text-color: #FFFFFF;
    --button-green: #0D5034;

    /* Fluid Typography */
    --h1-size: clamp(1.8rem, 5vw, 3rem);
    --h2-size: clamp(1.2rem, 3vw, 1.8rem);
    --body-size: clamp(0.9rem, 2vw, 1.1rem);

    /* Spacing */
    --container-padding: clamp(10px, 3vw, 20px);
    --section-spacing: clamp(15px, 4vw, 30px);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', 'Noto Color Emoji', sans-serif;
}

html, body {
    height: 100vh;
    overflow: hidden;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    background-image: url('../img/bundles/pattern.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */
#app {
    height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    text-align: left;
    padding: 15px 20px;
}

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

.logo {
    width: 32px;
    height: auto;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1 {
    color: var(--primary-color);
    font-size: 2.6rem;
    text-align: left;
    margin: 15px 0;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 20px;
    border-bottom: 5px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 700;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.main-content {
    display: flex;
    gap: var(--section-spacing);
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 20px;
    flex: 1;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Pass Section */
.pass-section {
    flex: 1 1 auto;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-right: 10px;
}

/* Buyer Info Section */
.buyer-info {
    flex: 1 1 auto;
    max-width: 600px;
    padding-right: 10px;
    height: auto;
    margin-bottom: 20px;
    padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 80px);
    position: relative;
}

.buyer-info h2 {
    margin-top: -5px;
    padding-bottom: 15px;
    border-bottom: 5px solid rgba(255, 255, 255, 0.8);
}

/* Scrollbar Styles */
.pass-section::-webkit-scrollbar,
.buyer-info::-webkit-scrollbar {
    width: 3px;
}

.pass-section::-webkit-scrollbar-thumb,
.buyer-info::-webkit-scrollbar-thumb {
    background-color: rgba(244, 182, 60, 0.3);
    border-radius: 3px;
}

/* ==========================================================================
   Pass Card Styles
   ========================================================================== */
.pass-card {
    background-color: white;
    border-radius: 20px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.pass-details {
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pass-details h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.pass-details p {
    color: var(--secondary-color);
    line-height: 1.5;
    font-size: 1.1rem;
}

/* Pass Options */
.pass-options {
    margin: 25px 0 35px;
}

.pass-options p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #E0E0E0;
}

/* Pass Buttons */
.pass-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 15px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.pass-buttons::-webkit-scrollbar {
    display: none;
}

.pass-btn {
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.pass-btn.pass-btn-wide {
    width: 140px;
    height: 140px;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 10px;
}

.pass-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.pass-btn.active {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(244, 182, 60, 0.4);
}

/* ==========================================================================
   Form Elements
   ========================================================================== */
.number-input {
    margin-bottom: 25px;
}

.number-input label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.number-field {
    width: 100%;
    background-color: var(--primary-color);
    padding: 18px;
    border-radius: 12px;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    color: var(--text-color);
    outline: none;
    transition: all 0.3s ease;
    -moz-appearance: textfield;
}

.number-field::-webkit-outer-spin-button,
.number-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-field:focus {
    box-shadow: 0 0 0 2px rgba(244, 182, 60, 0.5);
}

.number-field.beneficiary {
    background-color: #B38728;
}

.number-field.beneficiary:focus {
    box-shadow: 0 0 0 2px rgba(179, 135, 40, 0.5);
}

.number-field.token {
    background-color: #FF7900;
    letter-spacing: 15px;
    font-family: 'Space Grotesk', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 15px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.number-field.token:focus {
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.4);
    background-color: #ff8c2b;
}

/* ==========================================================================
   Payment Section
   ========================================================================== */
.payment-section {
    position: sticky;
    bottom: 0;
    background-color: var(--secondary-color);
    padding: 20px 0;
    margin-top: 20px;
    z-index: 10;
}

.payment-section h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
}

.payment-options {
    display: flex;
    gap: 25px;
    justify-content: space-between;
    padding: 5px 0;
    flex-wrap: nowrap;
    max-width: 400px;
    margin: 0 auto;
}

/* Payment Icons */
.payment-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 80px;
    border: none;
    position: relative;
    overflow: visible;
}

.payment-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.payment-icon.active {
    background-color: var(--primary-color);
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(244, 182, 60, 0.4);
    padding: 2px;
}

.payment-icon.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.9);
}

/* Payment Icon Tooltip */
.payment-icon .tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 1rem;
    white-space: nowrap;
    opacity: 0;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.payment-icon .tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid var(--primary-color);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.action-buttons {
    margin-top: 30px;
    padding: 0 10px;
    margin-bottom: 160px;
}

.return-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    transition: transform 0.2s ease;
    margin-top: auto;
    align-self: flex-start;
    font-weight: 500;
}

.return-btn:hover {
    transform: translateX(-5px);
}

.payment-btn {
    background-color: var(--button-green);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(13, 80, 52, 0.3);
    width: 100%;
    text-align: center;
}

.payment-btn:not(:disabled):hover {
    background-color: #0a6040;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(13, 80, 52, 0.4);
}

.payment-btn-disabled {
    background-color: #cccccc;
    background: linear-gradient(to bottom, #808080 0%, #666666 100%) !important;
    cursor: not-allowed;
    box-shadow: none !important;
    opacity: 0.8;
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.modal-overlay * {
    -webkit-tap-highlight-color: transparent;
}

.modal-content {
    background: white;
    padding: 35px 45px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: modalPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow-y: auto;
    max-height: 90vh;
    margin: 20px;
    -webkit-overflow-scrolling: touch;
}

.modal-content p {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 25px;
    word-break: break-word;
}

.modal-content .bundle-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(244, 182, 60, 0.1);
    border-radius: 12px;
    font-size: 1.1rem;
}

/* Modal Transitions */
.modal-enter-active,
.modal-leave-active {
    transition: opacity 0.3s ease;
}

.modal-enter-from,
.modal-leave-to {
    opacity: 0;
}

.modal-enter-to,
.modal-leave-from {
    opacity: 1;
}

/* ==========================================================================
   Loading and Status Indicators
   ========================================================================== */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    margin: 0 auto;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.success-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: var(--button-green);
    border-radius: 50%;
    animation: modalPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(-45deg);
    width: 20px;
    height: 40px;
    border-right: 5px solid white;
    border-bottom: 5px solid white;
    animation: checkmark 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s forwards;
    opacity: 0;
    transform-origin: 50% 50%;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.error-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #FF4B4B;
    border-radius: 50%;
    animation: modalPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.error-icon::after {
    content: '!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 45px;
    font-weight: bold;
    animation: modalPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 5px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) rotate(-45deg) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -60%) rotate(-45deg) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -60%) rotate(-45deg) scale(1);
    }
}

@keyframes modalPop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes confettiRain {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* ==========================================================================
   Confetti Effects
   ========================================================================== */
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    animation: confettiRain 1.5s linear infinite;
    transform-origin: center;
    border-radius: 2px;
}

.confetti:nth-child(2n) {
    background-color: #FF7900;
    width: 12px;
    height: 12px;
    animation-delay: -0.2s;
    animation-duration: 1.7s;
    left: 25%;
}

.confetti:nth-child(3n) {
    background-color: var(--button-green);
    width: 15px;
    height: 15px;
    animation-delay: -0.4s;
    animation-duration: 1.9s;
    left: 50%;
}

.confetti:nth-child(4n) {
    background-color: #FF4B4B;
    width: 10px;
    height: 10px;
    animation-delay: -0.6s;
    animation-duration: 2.1s;
    left: 75%;
}

.confetti:nth-child(5n) {
    background-color: white;
    width: 13px;
    height: 13px;
    animation-delay: -0.8s;
    animation-duration: 2.3s;
    left: 90%;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
/* Large Screens (1920px and up) */
@media (min-width: 1920px) {
    #app {
        max-width: 1600px;
    }

    h1 {
        font-size: 3rem;
    }

    .logo {
        width: 40px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .pass-btn.pass-btn-wide {
        width: 160px;
        height: 160px;
        font-size: 1.6rem;
    }
}

/* Desktop (1280px to 1919px) */
@media (min-width: 1280px) and (max-width: 1919px) {
    #app {
        max-width: 1200px;
    }
}

/* Tablet and Small Desktop (1024px and down) */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        gap: 40px;
        overflow-y: auto;
    }

    .pass-section,
    .buyer-info {
        max-width: 100%;
        overflow: visible;
    }

    .logo {
        width: 28px;
    }

    .payment-section {
        margin-top: 0;
    }
}

/* Tablet (768px and down) */
@media (max-width: 768px) {
    #app {
        padding: 15px;
    }

    h1 {
        font-size: 2.2rem;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .payment-options {
        max-width: 100%;
        gap: 20px;
    }

    .pass-btn.pass-btn-wide {
        width: 120px;
        height: 120px;
        font-size: 1.2rem;
    }
}

/* Mobile (600px and down) */
@media (max-width: 600px) {
    html {
        height: -webkit-fill-available;
    }

    body {
        padding: 10px;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    #app {
        padding: 10px;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        display: flex;
        flex-direction: column;
    }

    header {
        padding: 10px;
    }

    .logo {
        width: 24px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 1.8rem;
        margin: 10px 0 20px;
        padding-bottom: 15px;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .main-content {
        padding: 0 10px 40px;
        gap: 30px;
        min-height: calc(100vh - 60px);
        flex-direction: column;
    }

    .buyer-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }

    .pass-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .pass-details h3 {
        font-size: 1.1rem;
    }

    .pass-details p {
        font-size: 1rem;
    }

    .pass-buttons {
        gap: 5px;
        padding: 5px;
    }

    .pass-btn {
        width: 90px;
        height: 90px;
        font-size: 1rem;
    }

    .pass-btn.pass-btn-wide {
        width: 110px;
        height: 110px;
        font-size: 1rem;
    }

    .payment-section {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.98) 100%);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 15px;
        z-index: 1000;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
        border-top: 2px solid rgba(244, 182, 60, 0.3);
        margin: 0;
    }

    .payment-section.hidden {
        transform: translateY(100%);
    }

    .payment-section h3 {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.1rem;
        margin-bottom: 15px;
        text-align: center;
    }

    .payment-options {
        gap: 15px;
        margin-bottom: 15px;
    }

    .payment-icon {
        width: 65px;
        height: 65px;
        max-width: 65px;
    }

    .payment-btn {
        margin: 0 auto;
        width: calc(100% - 30px);
        max-width: 400px;
        display: block;
        padding: 14px 25px;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        background: linear-gradient(to bottom, var(--button-green) 0%, #094530 100%);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        box-shadow: 0 4px 15px rgba(13, 80, 52, 0.4);
    }

    .payment-btn-disabled {
        background: linear-gradient(to bottom, rgba(128, 128, 128, 0.9) 0%, rgba(102, 102, 102, 0.95) 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0.8;
        transform: none !important;
        text-shadow: none !important;
    }

    .payment-btn:not(:disabled):hover,
    .payment-btn:not(:disabled):active {
        background: linear-gradient(to bottom, #0a6040 0%, #084028 100%);
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(13, 80, 52, 0.5);
    }

    .payment-btn:not(:disabled):active {
        transform: translateY(1px);
    }

    .number-field {
        font-size: 1.2rem;
        padding: 15px;
    }

    .modal-content {
        padding: 25px;
        margin: 15px;
    }

    .modal-content p {
        font-size: 1.1rem;
        margin-top: 20px;
    }

    .modal-content .bundle-info {
        font-size: 1rem;
        padding: 12px;
    }

    .retry-btn {
        width: 100%;
        margin-top: 15px;
        padding: 12px 20px;
    }

    .action-buttons {
        margin-bottom: 100px;
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
}

/* Small Mobile (375px and down) */
@media (max-width: 375px) {
    .logo {
        width: 22px;
    }

    .logo-text {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .pass-btn {
        width: 85px;
        height: 85px;
        font-size: 0.95rem;
    }

    .pass-btn.pass-btn-wide {
        width: 105px;
        height: 105px;
        font-size: 0.95rem;
    }
}

/* Extra Small Mobile (350px and down) */
@media (max-width: 350px) {
    h1 {
        font-size: 1.4rem;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .pass-btn {
        width: 80px;
        height: 80px;
        font-size: 0.9rem;
    }

    .pass-btn.pass-btn-wide {
        width: 100px;
        height: 100px;
        font-size: 0.9rem;
    }

    .payment-icon {
        width: 55px;
        height: 55px;
        max-width: 55px;
    }

    .number-field {
        font-size: 1.1rem;
        padding: 12px;
    }
}

/* Very Small Mobile (320px and down) */
@media (max-width: 320px) {
    #app {
        padding: 8px;
    }

    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .pass-btn {
        width: 75px;
        height: 75px;
        font-size: 0.85rem;
    }

    .pass-btn.pass-btn-wide {
        width: 95px;
        height: 95px;
        font-size: 0.85rem;
    }

    .payment-icon {
        width: 50px;
        height: 50px;
        max-width: 50px;
    }

    .payment-options {
        gap: 10px;
    }

    .modal-content {
        padding: 20px;
        margin: 10px;
    }
}

/* Extremely Small Mobile (280px and down) */
@media (max-width: 280px) {
    h1 {
        font-size: 1.2rem;
    }

    .logo {
        width: 20px;
    }

    .logo-text {
        font-size: 0.85rem;
    }

    .pass-btn {
        width: 70px;
        height: 70px;
        font-size: 0.8rem;
    }

    .pass-btn.pass-btn-wide {
        width: 90px;
        height: 90px;
        font-size: 0.8rem;
    }

    .payment-icon {
        width: 45px;
        height: 45px;
        max-width: 45px;
    }

    .payment-options {
        gap: 8px;
    }

    .number-field {
        font-size: 1rem;
        padding: 10px;
    }

    .modal-content {
        padding: 15px;
        margin: 8px;
    }

    .modal-content p {
        font-size: 0.9rem;
    }

    .payment-section {
        padding: 8px;
    }

    .payment-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
        width: calc(100% - 10px);
    }

    .buyer-info {
        padding-bottom: calc(env(safe-area-inset-bottom, 15px) + 70px);
    }
}

/* ==========================================================================
   Mobile Payment Section Enhancements
   ========================================================================== */
@media screen and (max-width: 600px) {
    /* Enhanced payment button visibility */
    .payment-section {
        position: fixed;
        left: 50%;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.98) 100%);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 15px;
        z-index: 1000;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
        border-top: 2px solid rgba(244, 182, 60, 0.3);
        transform: translateX(-50%);
        width: 100%;
        transition: transform 0.3s ease-out;
    }

    .payment-section.hidden {
        transform: translateY(100%);
    }

    .payment-btn {
        background: linear-gradient(to bottom, var(--button-green) 0%, #094530 100%);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        box-shadow: 0 4px 15px rgba(13, 80, 52, 0.4);
        margin: 0 auto;
        width: min(calc(100% - 30px), 400px);
        max-width: 400px;
        display: block;
        padding: 16px 25px;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .payment-btn:not(:disabled):hover,
    .payment-btn:not(:disabled):active {
        background: linear-gradient(to bottom, #0a6040 0%, #084028 100%);
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(13, 80, 52, 0.5);
    }

    .payment-btn:not(:disabled):active {
        transform: translateY(1px);
    }

    .payment-section h3 {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.1rem;
        margin-bottom: 15px;
        text-align: center;
    }

    /* Improved scrolling and layout */
    html, body {
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #app {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .main-content {
        flex: 1;
        overflow-y: auto;
        padding-bottom: max(120px, 25vh);
    }

    .buyer-info {
        padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 120px);
    }
}

/* ==========================================================================
   iOS-Specific Fixes
   ========================================================================== */
@supports (-webkit-touch-callout: none) {
    /* Fix for iOS viewport height */
    html {
        height: -webkit-fill-available;
    }

    body {
        min-height: -webkit-fill-available;
    }

    /* Fix for iOS safe areas */
    #app {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .payment-section {
        padding-bottom: env(safe-area-inset-bottom, 15px);
    }

    /* Smooth scrolling and better touch handling */
    * {
        -webkit-overflow-scrolling: touch;
        touch-action: manipulation;
    }
}

