@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
}

body {
    color: #333;
    background-color: #f5f7fa;
    min-height: 100vh;
}

/* Utilities */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2.5rem;
}

.pt-3 {
    padding-top: 1rem;
}

.font-bold {
    font-weight: 600;
}

.text-center {
    text-align: center;
}

.text-blue-header {
    color: #2062f4 !important;
}

.link-blue {
    color: #5185f3;
    text-decoration: none;
}

.link-blue:hover {
    text-decoration: underline;
}

/* Index Page Styling - light blue-grey background per reference */
.home-page {
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-header {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    padding-top: 15px;
    margin-bottom: 15px;

    /* Animation sliding from top is handled by JS class/styles */
}

@keyframes slideDown {
    0% {
        transform: translateY(-150%);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-150%);
        opacity: 0;
    }
}

/* Blue hamburger menu icon - top-left */
.menu-toggle {
    position: fixed;
    left: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 26px;
    color: #2563eb;
    font-weight: 700;
    cursor: pointer;
    z-index: 20;
    transition: color 0.2s;
}

.menu-toggle:hover {
    color: #1e5dd1;
}

.top-marquee {
    width: 98%;
    background-color: #ea649c;
    color: #222;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    padding: 36px 24px 24px;
    text-align: center;
}

.logo-container {
    margin-bottom: 8px;
}

.logo-circle {
    width: 70px;
    height: 70px;
    background-color: #e5296c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 26px;
    margin: 10px auto 20px;
    box-shadow: 0 4px 12px rgba(229, 41, 108, 0.35);
}

.play-icon {
    font-size: 16px;
    margin-right: 5px;
}

.dollar-sign {
    font-weight: bold;
}

.welcome-text h2 {
    font-size: 1.1rem;
    color: #000000;
    font-weight: 700;
}

.brand-title {
    color: #e5296c;
    font-size: 1.5rem;
    margin: 6px 0 12px;
    font-weight: 700;
}

.welcome-text p {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

.input-container {
    width: 100%;
    max-width: 280px;
    display: flex;
    justify-content: center;
}

.controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 280px;
}

.input-container input {
    width: 100%;
    max-width: 280px;
    height: 48px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 4px;
    margin-bottom: 28px;
    background-color: #ffffff;
    outline: none;
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 68px);
    grid-template-rows: repeat(3, 68px);
    gap: 12px;
    margin-bottom: 24px;
}

.num-btn {
    background-color: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    color: #111111;
    transition: background-color 0.2s;
    font-weight: 700;
}

.num-btn:active {
    background-color: #f0f0f0;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.btn {
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    color: #fff;
    padding: 12px 0;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-red {
    background-color: #ef474b;
}

.btn-gray {
    background-color: #ffffff;
    border: 2px solid #d1d5db;
    color: #111111;
}

.btn-green {
    background-color: #22c55e;
}

.btn-teal {
    background-color: #0ea5e9;
    width: 100%;
    padding: 14px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-orange {
    background-color: #f97316;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.alt-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Modals & Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(60, 60, 60, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background-color: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 330px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.close-modal-btn {
    position: absolute;
    top: 8px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
}

.modal-title {
    color: #eb3e3f;
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 600;
}

.modal-content p {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.5;
}

/* Sign-up Modal Specific Styles */
.signup-modal-content {
    background-color: #ffffff;
    padding: 32px 24px 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    text-align: left;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.close-signup-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
}

.signup-title {
    color: #1f2937;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-right: 20px;
}

.signup-desc {
    font-size: 0.825rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.signup-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #111827;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.signup-input:focus {
    border-color: #a855f7;
}

.amount-box {
    width: 100%;
    padding: 10px 14px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #111827;
}

.signup-submit-btn {
    width: 100%;
    height: 44px;
    background-color: #a855f7;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin: 8px 0 20px;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.signup-submit-btn:hover {
    background-color: #9333ea;
}

.signup-submit-btn.processing {
    background-color: #d8b4fe;
    cursor: not-allowed;
}

.spinner {
    animation: rotate 1.5s linear infinite;
    flex-shrink: 0;
}

.spinner.hidden {
    display: none !important;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.signup-footer-text {
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.6;
}

.signup-footer-text p {
    margin-bottom: 12px;
}

.signup-footer-text .highlight-purple {
    color: #a855f7;
    font-weight: 700;
}

.signup-footer-text .highlight-pink {
    color: #fb7185;
    font-weight: 700;
}

/* Navigation Ribbon */
.nav-ribbon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(50, 50, 50, 0.7);
    z-index: 100;
    display: flex;
    align-items: flex-start;
    transition: opacity 0.3s ease, pointer-events 0s;
}

.nav-ribbon-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, pointer-events 0s 0.3s;
}

.nav-ribbon-overlay.hidden .nav-tabs-container {
    transform: translateX(-100%);
}

.nav-tabs-container {
    display: flex;
    align-items: center;
    background: transparent;
    user-select: none;
    transition: transform 0.35s ease-out;
    transform: translateX(0);
}

.close-menu-btn {
    background-color: #3498db;
    color: white;
    border: none;
    height: 48px;
    width: 48px;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    font-size: 22px;
    cursor: pointer;
    margin-right: -10px;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 8px;
    flex-shrink: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 14px 22px;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    background-color: #3498db;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.nav-link:last-of-type {
    border-right: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.nav-link.active {
    background-color: #2e8bc8;
}

/* Info Pages (About / Contact) */
.info-page {
    background: linear-gradient(135deg, #e3fcf0 0%, #d8edf8 100%);
    display: flex;
    justify-content: center;
    padding: 30px 15px 50px;
}

.page-container {
    width: 100%;
    max-width: 600px;
}

.back-nav {
    margin-bottom: 20px;
    margin-left: 10px;
}

.back-link {
    text-decoration: none;
    color: #2b77ec;
    font-size: 0.9rem;
    font-weight: 500;
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 35px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.card-title {
    color: #ca3374;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.section-title {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 700;
}

.steps-list {
    list-style-type: none;
}

.steps-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

.steps-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    color: #333;
}

.inner-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.inner-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.inner-card-subtitle {
    color: #555;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #2b7ae6;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.contact-details p {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.bullet-list {
    list-style-type: none;
}

.bullet-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #333;
}

.bullet-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    color: #333;
}

.footer-note {
    font-size: 0.9rem;
    color: #444;
}

/* Payment Modal Specific Styles */
.payment-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: left;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.close-payment-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    z-index: 10;
}

.payment-header {
    background-color: #4a1c96;
    /* Dark purple */
    color: white;
    padding: 25px 20px 20px;
    text-align: center;
}

.payment-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.payment-header p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.payment-body {
    padding: 20px 25px 25px;
}

.payment-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.payment-input:focus {
    border-color: #312e81;
    /* Dark blue focus */
}

.payment-proceed-btn {
    width: 100%;
    padding: 14px;
    background-color: #312e81;
    /* Dark blue */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 15px 0;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.payment-proceed-btn:hover {
    background-color: #1e1b4b;
}

.payment-proceed-btn.processing {
    background-color: #4f46e5;
    cursor: not-allowed;
}

.payment-footer-icon {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* --- Bank Transfer Page Custom Styles --- */
.bank-transfer-page {
    background-color: #ffffff;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

/* Header slightly detached from normal app header */
.bt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 32px;
}

.bt-header-left h1 {
    font-size: 1.25rem;
    color: #1a1f36;
    font-weight: 700;
    margin-bottom: 4px;
}

.bt-header-left p {
    font-size: 0.85rem;
    color: #4b5563;
}

.bt-cancel {
    color: #ef4444;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Main Container */
.bt-container {
    max-width: 500px;
    margin: 40px auto 60px;
    padding: 0 24px;
    text-align: center;
}

/* Profile / Amount Block */
.bt-profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.bt-avatar {
    width: 60px;
    height: 60px;
    background-color: #2e288e;
    /* Dark purple/blue */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
}

.bt-profile-info {
    text-align: center;
}

.bt-profile-info h2 {
    font-size: 1.4rem;
    color: #1a1f36;
    margin-bottom: 4px;
    font-weight: 700;
}

.bt-profile-info p {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Instructions */
.bt-instruction {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 12px;
    font-weight: 500;
}

.bt-warning {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 24px;
}

/* Details Card */
.bt-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    background-color: #fcfdfe;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01);
    text-align: left;
    margin-bottom: 24px;
}

.bt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.border-top {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.bt-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 6px;
    display: block;
}

.bt-value {
    font-size: 1.1rem;
    color: #111827;
    font-weight: 700;
}

.bt-copy-btn {
    background-color: #f97316;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bt-copy-btn:hover {
    background-color: #ea580c;
}

.bt-detail-group {
    margin-bottom: 20px;
}

.bt-detail-group:last-child {
    margin-bottom: 0;
}

/* Footer Section */
.bt-footer-note {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 24px;
}

.bt-submit-btn {
    width: 100%;
    background-color: #f97316;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bt-submit-btn:hover {
    background-color: #ea580c;
}

/* --- Confirming Payment Loading Styles --- */
#confirming-payment-section {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bt-large-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #fbc02d;
    /* Solid yellow */
    border-bottom-color: transparent;
    /* Empty bottom */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

.cp-large-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #fbc02d;
    /* Solid yellow */
    border-bottom-color: transparent;
    /* Empty bottom */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

.bt-loading-text {
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 32px;
    text-align: center;
}

.bt-status-box {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto;
}

.bt-status-item {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    border: 1px solid #f1f5f9;
}

.bt-small-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #fbc02d;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.cp-small-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #fbc02d;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.cp-header-left h1 {
    font-size: 1.15rem;
    color: #1a1f36;
    font-weight: 700;
}

/* --- Payment Failed Styles --- */
#payment-failed-section {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bt-failed-icon {
    width: 100px;
    height: 100px;
    background-color: #ef4444;
    /* Red */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.bt-failed-title {
    color: #f97316;
    /* Orange */
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.bt-failed-desc {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 300px;
}

.bt-telegram-btn {
    width: 100%;
    max-width: 350px;
    background-color: #0ea5e9;
    color: white;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin: 0 auto;
    transition: background-color 0.2s;
}

.bt-telegram-btn:hover {
    background-color: #0284c7;
}