/* ===========================
   Global Styles & Reset
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: -webkit-fill-available;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

    /* ===========================
   Loading Page Styles (app.html)
   =========================== */
    body.loading-page {
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

    .bg-circle:nth-child(1) {
        width: 300px;
        height: 300px;
        top: -100px;
        left: -100px;
        animation-delay: 0s;
    }

    .bg-circle:nth-child(2) {
        width: 200px;
        height: 200px;
        bottom: -50px;
        right: -50px;
        animation-delay: 5s;
    }

    .bg-circle:nth-child(3) {
        width: 150px;
        height: 150px;
        top: 50%;
        right: -75px;
        animation-delay: 10s;
    }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.container {
    text-align: center;
    z-index: 10;
    animation: fadeIn 0.8s ease-out;
}

.logo-wrapper {
    display: inline-block;
    position: relative;
    margin-bottom: 40px;
}

.logo {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    display: flex;
/*    align-items: center;*/
    justify-content: center;
    font-size: 70px;
    color: #dc143c;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: logoPulse 2s infinite ease-in-out;
    position: relative;
    overflow: hidden;
}

    .logo::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient( 45deg, transparent, rgba(255, 255, 255, 0.3), transparent );
        animation: shine 3s infinite;
    }
.logo>img {
   object-fit:contain;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.app-name {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease-out 0.3s both;
}

.app-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 50px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
}

    .loader::before,
    .loader::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        border: 4px solid transparent;
        border-top-color: white;
    }

    .loader::before {
        width: 60px;
        height: 60px;
        animation: spin 1s linear infinite;
    }

    .loader::after {
        width: 44px;
        height: 44px;
        top: 8px;
        left: 8px;
        border-top-color: rgba(255, 255, 255, 0.6);
        animation: spin 0.6s linear infinite reverse;
    }

.loading-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-dots {
    display: inline-block;
    width: 20px;
    text-align: left;
}

    .loading-dots::after {
        content: "";
        animation: dots 1.5s steps(4, end) infinite;
    }

@keyframes dots {
    0%, 20% {
        content: "";
    }

    40% {
        content: ".";
    }

    60% {
        content: "..";
    }

    80%, 100% {
        content: "...";
    }
}

.progress-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: progress 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes progress {
    0% {
        width: 0%;
        opacity: 0.3;
    }

    50% {
        width: 70%;
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 0.3;
    }
}

/* ===========================
   Login & Auth Pages (login.html, otp.html)
   =========================== */
body.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

.login-container,
.otp-container {
    background: white;
    border-radius: 24px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
    overflow: hidden;
    position: relative;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

.login-header,
.otp-header {
    background: linear-gradient(135deg, #dc143c 0%, #ff416c 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
    position: relative;
    flex-shrink: 0;
}

    .login-header .logo,
    .icon-wrapper {
        width: 80px;
        height: 80px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
       /* align-items: center;*/
        justify-content: center;
        margin: 0 auto 20px;
        font-size: 40px;
    }

    .login-header .logo {
        animation: pulse 2s infinite;
    }

    .login-header .app-name {
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 8px;
        letter-spacing: 1px;
        animation: none;
        text-shadow: none;
    }

    .login-header .app-tagline,
    .otp-subtitle {
        font-size: 14px;
        opacity: 0.9;
        font-weight: 500;
        margin-bottom: 0;
        animation: none;
        text-shadow: none;
    }

.otp-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.phone-display {
    font-weight: 700;
    font-size: 16px;
}

.back-btn {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 18px;
}

    .back-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.login-body,
.otp-body {
    padding: 40px 30px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.otp-body .form-title {
    font-size: 20px;
    text-align: center;
}

.form-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 32px;
}

.otp-body .form-subtitle {
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phone-input-wrapper {
    display: flex;
    gap: 12px;
}

.country-select-wrapper {
    flex: 0 0 110px;
    min-width: 110px;
    position: relative;
}

.country-select {
    width: 100%;
    padding: 16px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    -webkit-user-select: none;
}

    .country-select:hover {
        border-color: #dc143c;
        box-shadow: 0 4px 8px rgba(220, 20, 60, 0.15);
        background: linear-gradient(to bottom, #ffffff 0%, #fff5f7 100%);
    }

    .country-select:active {
        transform: scale(0.98);
    }

.country-select-arrow {
    color: #dc143c;
    font-size: 10px;
    margin-left: 4px;
}

.phone-input {
    flex: 1;
    min-width: 0;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    width: 100%;
}

    .phone-input:focus {
        outline: none;
        border-color: #dc143c;
        box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1);
    }

    .phone-input::placeholder {
        color: #999;
        font-weight: 500;
    }

/* OTP Inputs */
.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
    max-width: 100%;
}

.otp-input {
    width: 56px;
    height: 56px;
    min-width: 40px;
    flex: 1;
    max-width: 60px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #333;
    transition: all 0.3s ease;
    background: #fafafa;
}

    .otp-input:focus {
        outline: none;
        border-color: #dc143c;
        background: white;
        box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1);
        transform: scale(1.05);
    }

    .otp-input.filled {
        background: #dc143c;
        color: white;
        border-color: #dc143c;
    }

.login-btn,
.verify-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #dc143c 0%, #ff416c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.3);
    margin-top: 8px;
}

    .login-btn:hover,
    .verify-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
    }

    .login-btn:active,
    .verify-btn:active {
        transform: translateY(0);
    }

    .login-btn:disabled,
    .verify-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.resend-section {
    text-align: center;
    margin-top: 24px;
}

.resend-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.timer {
    font-weight: 700;
    color: #dc143c;
}

.resend-btn {
    background: none;
    border: none;
    color: #dc143c;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.3s ease;
}

    .resend-btn:hover {
        color: #ff416c;
    }

    .resend-btn:disabled {
        color: #ccc;
        cursor: not-allowed;
        text-decoration: none;
    }

.terms-text {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 24px;
    line-height: 1.6;
}

    .terms-text a {
        color: #dc143c;
        text-decoration: none;
        font-weight: 600;
    }

.features {
    display: flex;
    justify-content: space-around;
    padding: 20px 30px 30px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.feature-item {
    text-align: center;
    flex: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient( 135deg, rgba(220, 20, 60, 0.1), rgba(255, 65, 108, 0.1) );
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: #dc143c;
    font-size: 20px;
}

.feature-text {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

/* Country Modal */
.country-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

    .country-modal.show {
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

.country-modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    max-height: 70vh;
    border-radius: 24px 24px 0 0;
    animation: slideUpModal 0.3s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.country-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.country-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.country-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    font-size: 20px;
}

    .country-modal-close:hover {
        background: #ffebef;
        color: #dc143c;
    }

.country-search {
    margin: 16px 24px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    width: calc(100% - 48px);
    transition: all 0.3s ease;
}

    .country-search:focus {
        outline: none;
        border-color: #dc143c;
        box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1);
    }

.country-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.country-item {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

    .country-item:hover {
        background: linear-gradient( 90deg, rgba(220, 20, 60, 0.05), rgba(255, 65, 108, 0.05) );
    }

    .country-item:active {
        background: linear-gradient( 90deg, rgba(220, 20, 60, 0.1), rgba(255, 65, 108, 0.1) );
    }

    .country-item.selected {
        background: linear-gradient( 90deg, rgba(220, 20, 60, 0.1), rgba(255, 65, 108, 0.1) );
    }

        .country-item.selected::after {
            content: "✓";
            margin-left: auto;
            color: #dc143c;
            font-weight: 700;
            font-size: 18px;
        }

.country-flag {
    font-size: 28px;
    width: 40px;
    text-align: center;
}

.country-info {
    flex: 1;
}

.country-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.country-code {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

/* ===========================
   Main App Pages (coupons.html, couponview.html)
   =========================== */
body.app-page {
    padding-top: 64px;
    padding-bottom: 76px;
    overflow-x: hidden;
}

/* Toolbar */
.toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(135deg, #dc143c 0%, #c41e3a 100%);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.3);
    z-index: 100;
    backdrop-filter: blur(10px);
}

    .toolbar::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.3), transparent );
    }

.toolbar-back {
    font-size: 22px;
    cursor: pointer;
    padding: 10px;
    margin-right: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .toolbar-back:hover {
        background: rgba(255, 255, 255, 0.15);
    }

.toolbar-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex: 1;
}

.toolbar-icon {
    font-size: 22px;
    cursor: pointer;
    padding: 10px;
    margin-right: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .toolbar-icon:hover {
        background: rgba(255, 255, 255, 0.15);
    }

/* Main Content */
.content {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
}

body.app-page .content {
    padding-top: 16px;
    padding-bottom: 30px;
}

/* Coupon Card */
.coupon-card {
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s ease-out;
    transition: all 0.3s ease;
}

    .coupon-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .coupon-card:active {
        transform: translateY(-2px);
    }

.coupon-header {
    background: linear-gradient(135deg, #dc143c 0%, #c41e3a 100%);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.coupon-detail-card .coupon-header {
    padding: 24px 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.coupon-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.coupon-info {
    flex: 1;
    margin-left: 16px;
}

.game-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coupon-detail-card .game-name {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.game-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.draw-number {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.draw-id {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 500;
}

.coupon-body {
    padding: 20px 16px;
}

.coupon-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

    .detail-value.large {
        font-size: 28px;
        color: #dc143c;
        font-weight: 800;
    }

.amount-value {
    color: #dc143c;
    font-size: 24px;
}

.coupon-date {
    display: flex;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
}

    .coupon-date i {
        margin-right: 8px;
        color: #dc143c;
    }

/* Coupon Detail Card */
.coupon-detail-card {
    background: white;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: visible;
    animation: slideUp 0.4s ease-out;
    position: relative;
    padding-bottom:10px;
}

/* QR Code Section */
.qr-section {
    padding: 32px 20px;
    text-align: center;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e0e0;
}

.qr-code-wrapper {
    background: white;
    padding: 20px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
}

.qr-code {
    width: 200px;
    height: 200px;
    border: 3px solid #dc143c;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.qr-placeholder {
    font-size: 48px;
    color: #dc143c;
}

.qr-instruction {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Details Section */
.details-section {
    padding: 24px 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .detail-row:last-child {
        border-bottom: none;
    }

.detail-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient( 135deg, rgba(220, 20, 60, 0.1), rgba(255, 65, 108, 0.1) );
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #dc143c;
}

.detail-info {
    flex: 1;
}

/* Coupon Numbers Section */
.coupon-numbers-section {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #ffebef;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #dc143c;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .section-header i {
        font-size: 16px;
    }

.coupon-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    min-width: 320px;
    border-collapse: collapse;
    table-layout: fixed;
}

    .coupon-table thead {
        background: linear-gradient(135deg, #dc143c 0%, #ff416c 100%);
        color: white;
    }

    .coupon-table th {
        padding: 12px;
        font-weight: 700;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: center;
        color: white;
    }

    .coupon-table tbody tr {
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.2s ease;
    }

        .coupon-table tbody tr:last-child {
            border-bottom: none;
        }

        .coupon-table tbody tr:hover {
            background: #fafafa;
        }

    .coupon-table td {
        padding: 14px 12px;
        text-align: center;
        font-weight: 700;
        font-size: 15px;
        color: #333;
    }


        .coupon-table th.col-type,
        .coupon-table td.col-type {
            width: 20%;
        }

.col-number {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.number-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #dc143c 0%, #ff416c 100%);
    color: white;
    font-weight: 800;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(220, 20, 60, 0.3);
}

/* Outlet Section */
.outlet-section {
    background: #f8f9fa;
    padding: 20px;
    margin: 0 20px 20px 20px;
    border-radius: 16px;
    border-left: 4px solid #dc143c;
}

.outlet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.outlet-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #dc143c, #ff416c);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.outlet-title {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.outlet-name {
    font-size: 18px;
    color: #333;
    font-weight: 700;
    margin-bottom: 8px;
}

.outlet-address {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Check Prize Button */
.check-prize-wrapper {
    padding: 0 20px 20px 20px;
}

.check-prize-btn {
    background: linear-gradient(135deg, #dc143c 0%, #ff416c 100%);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .check-prize-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
    }

    .check-prize-btn:active {
        transform: translateY(0);
    }

    .check-prize-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Status Badge */
.status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    text-transform: uppercase;
    z-index: 10;
}

/* Badge */
.badge {
    position: absolute;
    top: 12px;
    right: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    padding: 8px 0;
    border-top: 2px solid #f5f5f5;
}

/*    .bottom-nav::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #dc143c, #ff416c);
        border-radius: 0 0 3px 3px;
    }*/

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    color: #9e9e9e;
    position: relative;
}

    .nav-item.active {
        color: #dc143c;
    }

        .nav-item.active::before {
            content: "";
            position: absolute;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 4px;
            background: linear-gradient(90deg, #dc143c, #ff416c);
            border-radius: 2px;
            animation: slideDown 0.4s ease;
        }

    .nav-item i {
        font-size: 26px;
        margin-bottom: 6px;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        position: relative;
    }

    .nav-item.active i {
        transform: translateY(-3px) scale(1.15);
    }

    .nav-item:not(.active):hover i {
        transform: scale(1.1);
        color: #dc143c;
    }

.nav-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.nav-item.active .nav-label {
    font-weight: 700;
}

.nav-item:active {
    background: linear-gradient(180deg, transparent, rgba(220, 20, 60, 0.05));
}

/* ===========================
   Modal & Messages
   =========================== */

/* Error & Success Messages */
.error-message {
    display: none;
    background: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    border-left: 4px solid #c33;
    text-align: center;
}

    .error-message.show {
        display: block;
        animation: shake 0.3s ease;
    }

.success-message {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    border-left: 4px solid #28a745;
    text-align: center;
}

    .success-message.show {
        display: block;
    }

/* Prize Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

    .modal-overlay.active {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 340px;
    width: 100%;
    overflow: hidden;
    animation: slideUpModal 0.4s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #dc143c 0%, #ff416c 100%);
    padding: 24px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 32px;
    animation: celebrate 0.6s ease-out;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-subtitle {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 500;
}

.modal-body {
    padding: 20px;
}

.prize-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.prize-detail-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prize-detail-value {
    font-size: 16px;
    color: #333;
    font-weight: 700;
}

.prize-amount {
    text-align: center;
    margin: 16px 0;
}

.prize-amount-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

.prize-amount-value {
    font-size: 40px;
    font-weight: 900;
    color: #dc143c;
    text-shadow: 0 2px 4px rgba(220, 20, 60, 0.2);
}

.modal-footer {
    padding: 0 20px 20px 20px;
}

.modal-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #dc143c 0%, #ff416c 100%);
    color: white;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

    .modal-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(220, 20, 60, 0.4);
    }

.modal-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

    .modal-btn-secondary:hover {
        background: #e0e0e0;
    }

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd700;
    animation: fall 3s linear infinite;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

    .empty-state i {
        font-size: 80px;
        opacity: 0.5;
        margin-bottom: 16px;
    }

    .empty-state h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .empty-state p {
        opacity: 0.8;
        font-size: 14px;
    }

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        top: -12px;
    }

    to {
        opacity: 1;
        top: -8px;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

@keyframes celebrate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(-10deg);
    }

    75% {
        transform: scale(1.1) rotate(10deg);
    }
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

/* ===========================
   Responsive Design
   =========================== */

/* Loading Page Responsive */
@media (max-width: 480px) {
    body.loading-page .logo {
        width: 120px;
        height: 120px;
        font-size: 60px;
        border-radius: 28px;
    }

    body.loading-page .app-name {
        font-size: 40px;
    }

    body.loading-page .app-tagline {
        font-size: 14px;
        padding: 0 20px;
    }

    .loader {
        width: 50px;
        height: 50px;
    }

        .loader::before {
            width: 50px;
            height: 50px;
        }

        .loader::after {
            width: 36px;
            height: 36px;
            top: 7px;
            left: 7px;
        }

    .loading-text {
        font-size: 14px;
    }

    .progress-container {
        width: 160px;
    }
}

@media (max-width: 360px) {
    body.loading-page .logo {
        width: 100px;
        height: 100px;
        font-size: 50px;
        border-radius: 24px;
    }

    body.loading-page .app-name {
        font-size: 36px;
    }

    body.loading-page .app-tagline {
        font-size: 13px;
    }
}

/* Auth Pages Responsive */
@media (max-width: 480px) {
    body.auth-page {
        padding: 12px;
    }

    .login-container,
    .otp-container {
        border-radius: 20px;
        max-height: 98vh;
    }

    .login-header,
    .otp-header {
        padding: 28px 20px;
    }

    .login-body,
    .otp-body {
        padding: 28px 20px;
    }

    .login-header .app-name {
        font-size: 26px;
    }

    .otp-title {
        font-size: 24px;
    }

    .login-header .logo,
    .icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }

    .back-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        left: 16px;
        top: 16px;
    }

    .form-title {
        font-size: 20px;
    }

    .otp-body .form-title {
        font-size: 18px;
    }

    .form-subtitle {
        font-size: 13px;
    }

    .phone-input-wrapper {
        gap: 8px;
    }

    .country-select-wrapper {
        flex: 0 0 100px;
        min-width: 100px;
    }

    .country-select {
        padding: 14px 6px;
        font-size: 14px;
    }

    .phone-input {
        padding: 14px 12px;
        font-size: 15px;
    }

    .otp-inputs {
        gap: 8px;
    }

    .otp-input {
        width: 48px;
        height: 48px;
        max-width: 48px;
        min-width: 38px;
        font-size: 20px;
        border-radius: 10px;
    }

    .login-btn,
    .verify-btn {
        padding: 16px;
        font-size: 16px;
    }

    .features {
        padding: 16px 20px 24px;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .feature-text {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    body.auth-page {
        padding: 8px;
    }

    .login-header,
    .otp-header {
        padding: 24px 16px;
    }

    .login-body,
    .otp-body {
        padding: 24px 16px;
    }

    .login-header .app-name {
        font-size: 24px;
    }

    .otp-title {
        font-size: 22px;
    }

    .otp-subtitle {
        font-size: 13px;
    }

    .login-header .logo,
    .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .back-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        left: 12px;
        top: 12px;
    }

    .country-select-wrapper {
        flex: 0 0 90px;
        min-width: 90px;
    }

    .country-select {
        padding: 12px 4px;
        font-size: 13px;
    }

    .phone-input {
        padding: 12px 10px;
        font-size: 14px;
    }

    .form-title {
        font-size: 18px;
    }

    .otp-body .form-title {
        font-size: 16px;
    }

    .form-subtitle {
        font-size: 13px;
    }

    .otp-inputs {
        gap: 6px;
    }

    .otp-input {
        width: 42px;
        height: 42px;
        max-width: 42px;
        min-width: 34px;
        font-size: 18px;
        border-radius: 8px;
    }

    .verify-btn,
    .login-btn {
        padding: 14px;
        font-size: 15px;
    }

    .resend-text,
    .resend-btn {
        font-size: 12px;
    }
}

/* App Pages Responsive */
@media (max-width: 480px) {
    .content {
        padding: 12px;
    }

    body.app-page .content {
        padding-bottom: 25px;
    }

    .qr-code {
        width: 180px;
        height: 180px;
    }

    .check-prize-wrapper {
        padding: 0 16px 16px 16px;
    }

    .check-prize-btn {
        padding: 16px 24px;
        font-size: 16px;
    }

    .coupon-numbers-section {
        padding: 12px;
        margin: 16px 0;
    }

    .section-header {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .coupon-table th {
        padding: 10px 6px;
        font-size: 10px;
    }

    .coupon-table td {
        padding: 12px 6px;
        font-size: 13px;
    }

    .number-box {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .col-number {
        gap: 4px;
    }
}

@media (max-width: 360px) {
    .content {
        padding: 8px;
    }

    .coupon-header {
        padding: 12px;
    }

    .coupon-numbers-section {
        padding: 10px;
        margin: 12px 0;
    }

    .section-header {
        font-size: 11px;
    }

    .coupon-table {
        min-width: 300px;
    }

        .coupon-table th {
            padding: 8px 4px;
            font-size: 9px;
        }

        .coupon-table td {
            padding: 10px 4px;
            font-size: 12px;
        }

    .number-box {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .col-number {
        gap: 3px;
    }

    .coupon-icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .game-name {
        font-size: 16px;
    }

    .coupon-detail-card .game-name {
        font-size: 24px;
    }

    .coupon-detail-card .coupon-header {
        padding: 20px 16px;
    }

    .game-badge {
        padding: 6px 16px;
        font-size: 12px;
    }

    .detail-value {
        font-size: 16px;
    }

        .detail-value.large {
            font-size: 24px;
        }

    .amount-value {
        font-size: 20px;
    }

    .qr-code {
        width: 160px;
        height: 160px;
    }

    .qr-section {
        padding: 24px 16px;
    }

    .details-section {
        padding: 20px 16px;
    }

    .outlet-section {
        margin: 0 16px 16px 16px;
        padding: 16px;
    }

    .check-prize-wrapper {
        padding: 0 12px 12px 12px;
    }

    .check-prize-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .status-badge {
        top: 12px;
        right: 12px;
        font-size: 10px;
        padding: 5px 12px;
    }

    .modal-title {
        font-size: 20px;
    }

    .prize-amount-value {
        font-size: 32px;
    }
}

/* Loading Animation */
.loading {
    animation: shimmer 1.5s infinite;
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 800px 104px;
}

.paid-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 80px;
    font-weight: 900;
    color: rgb(173 1 1 / 15%);
    letter-spacing: 10px;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    text-transform: uppercase;
    white-space: nowrap;
}