/* ==========================================
   BASE STYLES - Common across all pages
   ========================================== */

/* Basic Reset and Body Styling */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Fira Sans', sans-serif;
    background-color: #F4F6F9;
    color: #4E535F;
}

/* iPhone safe area support */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

/* Dynamic viewport height for modern mobile browsers */
@supports (height: 100dvh) {
    .home-page .content-area {
        min-height: 100dvh;
    }
    
    .home-page .header-background {
        height: 35dvh;
    }
    
    .home-page .gifts-container {
        height: 45dvh;
    }
}

/* Common button styles */
.primary-button {
    width: 100%;
    max-width: 370px;
    height: 70px;
    background-color: #ff3333;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(230, 0, 35, 0.4);
    transition: transform 0.2s ease;
    color: #FFF;
    font-size: 24px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
}

.primary-button:active { 
    transform: scale(0.98); 
}

.secondary-button {
    width: 100%;
    max-width: 370px;
    padding: 18px;
    background-color: #FFF;
    color: #E60023;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.secondary-button:active {
    transform: scale(0.98);
}

/* Common input field styles */
.base-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E6E8EC;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.base-input:focus {
    outline: none;
    border-color: #E60023;
}

/* Main wrapper styles */
.main-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100dvh; /* New CSS unit for visible height */
    min-height: 100dvh;
}

/* Top Bar Menu - Common across many templates */
.top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

.top-bar .icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.top-bar .icon {
    width: 28px;
    height: 28px;
    fill: #FFF;
}

.top-bar .title {
    font-size: 18px;
    font-weight: 700;
    color: #FFF;                                
}

.top-bar .logo {
    height: 65px;
    width: auto;
}

/* Sidebar Menu - consistent across all pages */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-image: url('../image/menu-bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}

.sidebar-menu.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #EEE;
}

.sidebar-header .logo {
    height: 60px;
}

.sidebar-menu nav {
    flex-grow: 1;
    margin-top: 20px;
}

.sidebar-menu .menu-link {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 0;
    transition: color 0.2s;
}

.sidebar-menu .menu-link:hover {
    color: #E60023;
}

.language-switcher {
    margin-top: auto;
    text-align: center;
}

.language-switcher button {
    background: #EEE;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Sidebar Language Selector */
.sidebar-language-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    padding: 0 20px;
}

.sidebar-lang-btn {
    display: inline-block;
    padding: 12px 16px;
    background: linear-gradient(180deg, #BBB 0%, #4D5257 100%);
    box-shadow: 0px 8px 17.5px 0px #5A5A5A;
    color: #D7D7D7;
    font-family: "Fira Sans", sans-serif;
    text-decoration: none;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
   
}

.sidebar-lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-lang-btn:active {
    transform: translateY(0);
}

/* Overlay for when menu is open */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Back button - common in many templates */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    z-index: 10;
}

.back-button svg {
    width: 24px;
    height: 24px;
}

/* ==========================================
   PROJECT SPECIFIC CSS
   Based on original home.html.twig styles
   ========================================== */

/* Body override for home page */
.home-page body {
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #F4F6F9;
    min-height: 100vh;
    height: auto;
}

/* Header section with background image */
.home-page .header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 460px;
    background-image: url('../image/header-background-long-2.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Container for floating gifts */
.home-page .gifts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45vh;
    overflow: hidden;
    z-index: 2;
}

/* Gift animations */
.home-page .gift {
    position: absolute;
    width: 90px;
    animation: fall 10s linear infinite;
}
.home-page .gift.one { top: -10%; left: 15%; animation-delay: 0s; }
.home-page .gift.two { top: -20%; left: 80%; animation-delay: -5s; }
.home-page .gift.three { top: -15%; left: 40%; animation-delay: -2s; }
.home-page .gift.four { top: -25%; left: 60%; animation-delay: -8s; }

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(50vh) rotate(360deg); opacity: 0; }
}

/* Main content area */
.home-page .content-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-top: 25vh; /* Adjusted padding to make space for robot */
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    height: auto;
    overflow: visible;
}

/* Robot Animation */
.home-page .robot-container {
    position: absolute;
    top: 13vh; /* Position it from the top of the screen */
    left: 50%;
    transform: translateX(-50%);
    z-index: 5; /* Lower z-index so it's behind buttons */
    animation: bobble 5s ease-in-out infinite;
}

@keyframes bobble {
    0%   { transform: translate(-50%, 0) rotate(-2deg); }
    50%  { transform: translate(-50%, -20px) rotate(2deg); }
    100% { transform: translate(-50%, 0) rotate(-2deg); }
}

.home-page #robot-animation {
    width: 370px; /* Increased robot size */
    max-width: 90vw;
    height: auto;
}

/* Wrapper for controls to sit above the robot */
.home-page .controls-wrapper {
    position: relative;
    z-index: 6; /* Higher z-index to be on top of robot */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 215px;
}

/* Text below button */
.home-page .info-text {
    text-align: center;
    font-size: 16px;
    margin-top: 15px;
}

/* Stats Container */
.home-page .stats-container {
    display: flex;
    gap: 15px;
    margin-top: 0px;
    width: 100%;
    max-width: 370px;
}

.home-page .stat-card {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #E60023;
    background-color: rgba(255, 255, 255, 0.8); /* Slight background to see over robot legs */
}

.home-page .stat-card.keys {
    border-color: #FFD700;
}

.home-page .stat-card .count {
    /* font-size and font-weight inherited from base */
    color: #E60023;
    font-weight: 700;
    color: #E60023;
}

.home-page .stat-card.keys .count {
    color: #E6B800;
}

.home-page .stat-card .label {
    font-size: 14px;
    /* color inherited from base body color */
}

/* Prize Tiers Section */
.home-page .prize-tiers-section {
    width: 100%;
    padding: 20px 0px 0;
    box-sizing: border-box;
    position: relative;
    z-index: 6;
    flex-shrink: 0;
}

.home-page .prize-tiers-title {
    color: #4E535F;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.home-page .prize-tiers-container {
    display: flex;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
}

.home-page .prize-tier-card {
    width: 100px;
    height: 121px;
    flex-shrink: 0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
    text-align: center;
}

.home-page .prize-tier-card:active { 
    transform: scale(0.95); 
}

.home-page .prize-tier-card.classic { 
    background: linear-gradient(180deg, #F2F3F5 0%, #E6E8EC 100%); 
}
.home-page .prize-tier-card.elite { 
    background: linear-gradient(180deg, #FEF9C2 0%, #FEF08C 100%); 
}
.home-page .prize-tier-card.premium { 
    background: linear-gradient(180deg, #FFE9E9 0%, #FFBCBC 100%); 
}

.home-page .prize-tier-card img { 
    width: 48px; 
    height: 48px; 
    margin-bottom: 8px; 
}
.home-page .prize-tier-card .title { 
    color: #4E535F;
    font-size: 16px;
    font-weight: 700;
}
.home-page .prize-tier-card .subtitle { 
    color: #4E535F;
    font-size: 12px;
    font-weight: 400;
}

/* ==========================================
   ENTRY PAGE SPECIFIC CSS
   ========================================== */

/* Body override for entry page */
body.entry-page {
    overflow: hidden;
    background-image: url('../image/background.png');
    background-size: cover;
    background-position: center bottom;
}

.entry-page .main-wrapper {
    height: 100vh; /* Override min-height: 100vh from base */
    justify-content: center;
    align-items: center;
}

/* Middle Background Image */
.entry-page .middle-background {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    background-image: url('../image/header-background-long-2.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Gift Images Styling */
@keyframes float {
    0% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(-5deg); }
}

.entry-page .gift-box {
    position: absolute;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

/* Individual styles for each gift */
.entry-page .gift-one {
    width: 108px;
    top: 29%;
    left: 4%;
    animation-delay: 0s;
}

.entry-page .gift-two {
    width: 80px;
    top: 13%;
    right: 5%;
    animation-delay: -2s;
}

.entry-page .gift-three {
    width: 163px;
    bottom: 15%;
    right: 5%;
    animation-delay: -4s;
    top: 58%;
}

/* Main Logo in the center */
.entry-page .start-logo {
    position: relative;
    z-index: 3;
    width: 210px;
    margin-bottom: 40px;
    top: -18%; /* Adjust to position below the top bar */
}

/* Start Button */
.entry-page .start-action-button {
    width: 270px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 79.5px;
    background: linear-gradient(180deg, #FEFEFE 0%, #EF8686 100%);
    box-shadow: 0px 8px 17.5px 0px #7B0C0C;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    top: -18%;
    text-decoration: none;
}

.entry-page .start-action-button:active {
    transform: scale(0.98);
}

.entry-page .start-action-button span {
    color: #FE3333;
    text-align: center;
    -webkit-text-stroke-width: 1px;
    font-size: 44px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 2.65px;
    text-transform: uppercase;
}

/* Continue Button at the bottom */
.entry-page .continue-button {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 370px;
    padding: 18px;
    background-color: #ff3333;
    color: #FFF;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    z-index: 5;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

/* ==========================================
   ERROR PAGE SPECIFIC CSS
   ========================================== */

/* Body override for error page */
body.error-page {
    overflow: hidden;
    background-image: url('/public/pages/image/red-bg.png');
    color: #FFF;
    background-size: cover;
}

.error-page .content-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    text-align: center;
   
}

.error-page .error-title {
    font-size: 22px;
    font-weight: 600;
    top: 15vh;
    position: absolute;
}

.error-page .robot-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; 
    flex-direction: column;               
}

@keyframes robot-bounce {
    0%, 100% {transform: scale(1);}
    10% {transform: scale(1.05);}
    20% {transform: scale(1);}
}

.error-page .robot-image {
    width: 300px;
    max-width: 80vw;
    height: 540px;
    transition: transform 0.5s ease;
    animation: robot-bounce 2s infinite;
    object-fit: contain;
    margin-top: 4vh;
}

.error-page .home-button-container {
    width: 100%;
    box-sizing: border-box;
}

.error-page  .top-bar .title {
    color: #ffffff;
}

.error-page .secondary-button{display: block;
    width: 76%;
    margin: 0 auto;}

/* ==========================================
   FAQ PAGE SPECIFIC CSS
   ========================================== */

/* Body override for FAQ page */
body.faq-page {
    background-image: url('/public/pages/image/light-bg.png');
    background-size: cover;
}

/* Top bar icon override for FAQ page */
.faq-page .top-bar .icon-btn .icon {
    fill: #FF3333; /* Override icon color */
}
.faq-page  .profile-back-btn svg {
    border: 2px solid #FF3333 !important;
   
}

.top-bar .title {
    color: #000;
}
/* FAQ page content area */
.faq-page .content-area {
    padding: 80px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* FAQ page title */
.faq-page .page-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    /* font-weight and color inherited from base */
}

/* Search container */
.faq-page .search-container {
    margin-bottom: 30px;
    position: relative;
}

/* Search icon */
.faq-page .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #6C757D;
}

/* FAQ Items */
.faq-page .faq-item {
    background-color: #FFF;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 2px solid #B3B4B4;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-page .faq-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.faq-page .faq-question {
    padding: 20px 25px 20px 20px;
    background-color: #FFF;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    color: #4E535F;
}

.faq-page .faq-question:hover {
    background-color: #F8F9FA;
}

.faq-page .faq-question.active {
    background-color: #E60023;
    color: #FFF;
}

.faq-page .faq-toggle {
    font-weight: 300;
    transition: transform 0.3s ease;
    /* font-size inherited from base .primary-button */
}
.faq-toggle img{
    width: 8px;
    height: auto;
}

.faq-page .faq-question.active .faq-toggle {
    transform: rotate(90deg);
}

.faq-page .faq-question.active .faq-toggle svg path{fill:#fff;}

.faq-page .faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #F8F9FA;
}

.faq-page .faq-answer.active {
    max-height: 500px;
    padding: 20px;
}

.faq-page .faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #6C757D;
}

/* ==========================================
   LOBBY PAGE SPECIFIC CSS
   ========================================== */

/* Body override for lobby page */
body.lobby-page {
    overflow: hidden; /* Prevents scrolling on the splash screen */
    background-color: #ffffff;
}

/* Main container to hold all content */
.lobby-page .main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: auto;
    width: 100%;
    background-image: url('/public/pages/image/background.png');
    background-size: cover;
    background-position: center;
    padding: 20px 0 10px;
    box-sizing: border-box;
    flex: 1;
}

/* Header section with background image and glow */
.lobby-page .header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 23em; /* Adjust height as needed */
    background-image: url('/public/pages/image/header_with_shadow.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Logo container */
.lobby-page .logo-container {
    margin-top: 1vh; /* Pushes the logo down from the top edge */
    position: relative;
    z-index: 2;
}

.lobby-page .logo {
    width: 180px; /* Adjust size as needed */
    height: auto;
}

/* Robot animation container */
.lobby-page .robot-container {
    
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-top: 0; /* Pulls the robot up slightly to overlap the header */
   
}

.lobby-page .robot-gif {
    width: 340px; /* Adjust size as needed */
    height: auto;
}

/* Language selection buttons container */
.lobby-page .language-selector {
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between buttons */
    padding-bottom: 1vh;
    position: relative;
    z-index: 2;
}

/* Styling for the language buttons */
.lobby-page .lang-btn {
    width: 85px;
    height: 85px;
    flex-shrink: 0;
    border-radius: 30px;
    background: linear-gradient(180deg, #BBB 0%, #4D5257 100%);
    box-shadow: 0px 8px 17.5px 0px #5A5A5A;
    
    /* Text styles */
    color: #D7D7D7;
    font-family: "Fira Sans", sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;

    /* Button behavior */
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    text-decoration: none; /* Prevents underline on links */
}

/* ==========================================
   LOGIN REQUEST PAGE SPECIFIC CSS
   ========================================== */

/* Body override for login request page */
body.login-request-page {
    background-image: url('/public/pages/image/red-top.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* Back button override for login request page */
.login-request-page .back-button {
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    fill: white;
}

.login-request-page .back-button svg {
    width: 36px;
    height: 36px;
}

/* Header Section */
.login-request-page .header-section {
    position: relative;
    padding: 20px;
    padding-bottom: 70px; /* Extra padding at bottom for shape */
    z-index: 1;
}

.login-request-page .welcome-container {
    position: relative;
    margin-top: 60px;
    display: flex;
    align-items: flex-end; /* Aligns robot and box at their bottom edge */
}

.login-request-page .welcome-container .star-img {
    position: absolute;
    top: -50px;
    left: 65px;
    width: 110px;
    z-index: 6; /* Star is on top of everything */
}

/* Welcome Box */
.login-request-page .welcome-box {
    position: relative;
    background: linear-gradient(132deg, #AF1F1F -46.53%, #F33 85.18%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    z-index: 5; /* Puts the box in front */
    width: 50%; /* Adjust width to make space for the robot */
    flex-shrink: 0;
    text-align: center;
}

.login-request-page .welcome-box h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.login-request-page .welcome-box p {
    margin: 5px 0 0;
    font-size: 16px;
    font-weight: 400;
}

.login-request-page .welcome-container .robot-img {
    position: relative;
    width: 140px;
    z-index: 4; /* Puts robot behind the red box */
    margin-left: -25px; /* Pulls the robot to the left, behind the box */
    margin-bottom: 5px; /* Adjust vertical position */
}

/* Form Section */
.login-request-page .form-section {
    background-color: #F8F9FA;
    padding: 15px 20px;
    border-radius: 30px 30px 0 0;
    margin-top: -50px; /* Pulls form up over the header */
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.login-request-page .form-group {
    margin-bottom: 5px;
}

.login-request-page .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-request-page .form-group input {
    width: 100%;
    padding: 18px;
    border: 1px solid #DEE2E6;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-request-page .form-group .helper-text {
    font-size: 14px;
    color: #6C757D;
    margin-top: 5px;
}

/* Info Cards */
.login-request-page .info-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.login-request-page .info-card .icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.login-request-page .info-card .text-content .title {
    font-weight: 600;
    font-size: 15px;
}

.login-request-page .info-card.network .text-content .title { 
    color: #1C7ED6; 
}

.login-request-page .info-card.fee .text-content .title { 
    color: #EC6600; 
}

.login-request-page .info-card .text-content .subtitle {
    font-size: 13px;
    color: #495057;
}

.login-request-page .info-card.network {
    background-color: #E7F5FF;
    border: 1px solid #B3D7FF;
}

.login-request-page .info-card.fee {
    background-color: #FFF4E6;
    border: 1px solid #FFD8A8;
}

/* Action Button */
.login-request-page .action-button {
    width: 100%;
    padding: 18px;
    background-color: #FB3132;
    color: #FFF;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    z-index: 5;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto; /* Pushes button to the bottom */
}

.login-request-page .action-button .icon {
    width: 20px;
    height: 20px;
}

/* Privacy Text */
.login-request-page .term_acceptance {
    text-align: center;
    font-size: 13px;
    color: #6C757D;
    margin-top: 20px;
    padding-bottom: 10px;
}

.login-request-page .term_acceptance a {
    color: #E60023;
    font-weight: 600;
    text-decoration: none;
}

.login-request-page .top-bar .icon {
   
    fill: #000;
}

.login-request-page .profile-back-btn svg {
    border: 2px solid #000 !important;}

/* ==========================================
   LOGIN VALIDATE PAGE SPECIFIC CSS
   ========================================== */

/* Body override for login validate page */
body.login-validate-page {
    background-image: url('/public/pages/image/red-top.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* Back button override for login validate page */
.login-validate-page .back-button {
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    fill: white;
}

.login-validate-page .back-button svg {
    width: 36px;
    height: 36px;
}

/* Header Section */
.login-validate-page .header-section {
    position: relative;
    padding: 20px;
    height: 35vh;
    z-index: 1;
}

/* Verification Content Container */
.login-validate-page .verification-container {
    position: absolute;
    top: 15vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-validate-page .checkmark-icon {
    width: 80px;
    height: 80px;
    background-color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 6;
}

.login-validate-page .checkmark-icon img {
    width: 80px;
    height: 80px;
}

/* Message Box */
.login-validate-page .message-box {
    position: relative;
    background: linear-gradient(132deg, #AF1F1F -46.53%, #F33 85.18%);
    border-radius: 27px;
    padding: 50px 30px 30px 30px; /* More padding at top for icon overlap */
    color: white;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: -40px; /* Pull box up to overlap with icon */
}

.login-validate-page .message-box h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.login-validate-page .message-box p {
    margin: 5px 0 0;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
}

/* Form Section */
.login-validate-page .form-section {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5vh; /* Pushed down to make space for message box */
}

.login-validate-page .form-group {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-validate-page .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.login-validate-page .form-group .helper-text {
    font-size: 14px;
    color: #6C757D;
    margin-top: 5px;
}

.login-validate-page .verify-button {
    width: 100%;
    max-width: 400px;
    padding: 18px;
    background-color: #FB3132;
    color: #FFF;
    text-align: center;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    margin-top: 30px;
    font-weight: 700;
    font-size: 18px;
}

.login-validate-page .top-bar .icon {
   
    fill: #000;
}

.login-validate-page .profile-back-btn svg {
    border: 2px solid #000 !important;}

/* OTP Input Styling */
.login-validate-page .otp-input-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.login-validate-page .otp-input {
    /*width: 60px;*/
    height: 70px;
    border: 2px solid #E6E8EC;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #4A5568;
    background-color: #FFF;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.login-validate-page .otp-input:focus,
.login-validate-page .otp-input.active {
    border-color: #000;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.login-validate-page .otp-input::placeholder {
    color: #A0AEC0;
    font-size: 18px;
}
/* ==========================================
   NO COLLECTION PAGE SPECIFIC CSS
   ========================================== */

/* Body override for no collection page */
body.no-collection-page {
    background-image: url('/public/pages/image/light-bg.png');
    background-size: cover;
}

/* Top bar icon override for no collection page */
.no-collection-page .top-bar .icon-btn .icon {
    fill: #FF3333; /* Override icon color */
}

/* Content area for no collection page */
.no-collection-page .content-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 12vh;
    padding: 0 20px;
    justify-content: space-between;
    height: 77vh;
}

/* Message box for no collection page */
.no-collection-page .message-box {
    border: 2px solid #ff3333;
    border-radius: 15px;
    padding: 15px 30px;
    margin-bottom: 20px;
    width: 80%;
    max-width: 350px;
}

.no-collection-page .message-box p {
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    /* color and font-size inherited from base .primary-button styles */
}

/* Robot image for no collection page */
.no-collection-page .robot-image {
    width: 220px;
    max-width: 55vw;
}

/* Go Back Button - using base primary-button with minor adjustments */
.no-collection-page .go-back-button {
    font-size: 16px; /* Override base font-size: 24px */
    margin-bottom: 20px;
}

/* ==========================================
   NO SCRATCH PAGE SPECIFIC CSS
   ========================================== */

/* Body override for no scratch page */
body.no-scratch-page {
    background-image: url('/public/pages/image/light-bg.png');
    background-size: cover;
}

/* Top bar icon override for no scratch page */
.no-scratch-page .top-bar .icon-btn .icon {
    fill: #FF3333; /* Override icon color */
}

/* Content area for no scratch page */
.no-scratch-page .content-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 12vh;
    padding: 0 20px;
    justify-content: space-between;
    height: 77vh;
}

/* Message box for no scratch page */
.no-scratch-page .message-box {
    border: 2px solid #ff3333;
    border-radius: 15px;
    padding: 15px 30px;
    margin-bottom: 20px;
    width: 80%;
    max-width: 350px;
}

.no-scratch-page .message-box p {
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    /* color and font-size inherited from base .primary-button styles */
}

/* Robot image for no scratch page */
.no-scratch-page .robot-image {
    width: 220px;
    max-width: 55vw;
}

/* Go Back Button - using base primary-button with minor adjustments */
.no-scratch-page .go-back-button {
    font-size: 16px; /* Override base font-size: 24px */
    margin-bottom: 20px;
}

/* ==========================================
   SUBSCRIBE SUCCESS PAGE SPECIFIC CSS
   ========================================== */

/* Body override for subscribe success page */
body.subscribe-success-page {
    background-image: url('/public/pages/image/light-bg.png');
    background-size: cover;
}

/* Top bar icon override for subscribe success page */
.subscribe-success-page .top-bar .icon-btn .icon {
    fill: #FF3333; /* Override icon color */
}

/* Content area for subscribe success page */
.subscribe-success-page .content-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 8vh;
    padding: 0 20px;
    justify-content: space-between;
    height: calc(100vh - 180px);
    gap: 10px;
}

/* Success message box for subscribe success page */
.subscribe-success-page .success-message {
    border: 2px solid #ff3333;
    border-radius: 15px;
    padding: 20px 20px;
    width: 85%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
}

.subscribe-success-page .success-message h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: #ff3333;
}

.subscribe-success-page .success-message p {
    margin: 0;
    font-weight: 600;
    line-height: 1.5;
    font-size: 16px;
    color: #333;
}

/* Benefits box for subscribe success page */
.subscribe-success-page .benefits-box {
    border: 2px solid #FFD700;
    border-radius: 15px;
    padding: 15px 25px;
    width: 80%;
    max-width: 350px;
    background: rgba(255, 215, 0, 0.1);
}

.subscribe-success-page .benefits-box p {
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    color: #B8860B;
    font-size: 14px;
}

/* Robot image for subscribe success page */
.subscribe-success-page .robot-image {
    width: 150px;
    max-width: 50vw;
   
}

/* Button group for subscribe success page */
.subscribe-success-page .button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
}
.subscribe-success-page .primary-button{

    font-size: 16px;
    height: 60px;
}

/* Start button styling */
.subscribe-success-page .start-button {
    background: linear-gradient(135deg, #FF3333 0%, #E60023 100%);
    border: none;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
    transition: all 0.3s ease;
}

.subscribe-success-page .start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.4);
}

/* Go back button styling */
.subscribe-success-page .go-back-button {
    background: transparent;
    border: 2px solid #666;
    color: #666;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
}

.subscribe-success-page .go-back-button:hover {
    background: #666;
    color: white;
    transform: translateY(-1px);
}



/* ==========================================
   REWARD CONGRATULATION PAGE SPECIFIC CSS
   ========================================== */

/* Body override for reward congratulation page */
body.reward-congratulation-page {
    background-image: url(/public/pages/image/red-bg.png);
    background-size: cover;
    background-position: center;
}

/* Top bar icon override for reward congratulation page */
.reward-congratulation-page .top-bar .icon-btn .icon {
    fill: #FFF; /* White icon color to match scratch page */
}

/* Content area for reward congratulation page */
.reward-congratulation-page .content-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 8vh;
    padding: 0 20px;
    justify-content: space-between;
    height: calc(100vh - 180px);
    gap: 10px;
}

/* Prize Display Section */
.reward-congratulation-page .prize-display-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
   
}

.reward-congratulation-page .prize-display-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: drop-shadow(0 0 20px #FFD700) drop-shadow(0 0 30px #FFA500) drop-shadow(0 0 40px #FF8C00);
}

/* Prize Icon Container */
.reward-congratulation-page .prize-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-right: -20px;
    overflow: visible;
    
}

.reward-congratulation-page .prize-icon {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: prize-bounce 0.6s ease-out;
    margin-right: -50px;
    margin-bottom: -70px;
    object-fit: contain;
    overflow: visible;
}

@keyframes prize-bounce {
    0% { 
        opacity: 0; 
        transform: scale(0.3) translateY(20px); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.1) translateY(-5px); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

/* Robot Image */
.reward-congratulation-page .robot-image {
    width: 180px;
    height: auto;
    position: relative;
    z-index: 1;
    margin-left: -15px;
}

/* Prize Information */
.reward-congratulation-page .prize-info {
    text-align: center;
}

.reward-congratulation-page .you-got-text {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #FFF;
}

.reward-congratulation-page .prize-name {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    color: #FFD868;
    line-height: 1.2;
}

.reward-congratulation-page .prize-description {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #FFF;
    line-height: 1.4;
}

/* Shake Again Button */
.reward-congratulation-page .shake-again-button {
    background-color: #FFF;
    color: #FF3333;
    border: none;
    padding: 20px 0px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
    transition: all 0.3s ease;
    height: auto;
}

.reward-congratulation-page .shake-again-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.4);
}

/* ==========================================
   SUBSCRIBE NOW PAGE SPECIFIC CSS
   ========================================== */

/* Body override for subscribe now page */
body.subscribe-now-page {
    background-image: url('/public/pages/image/light-bg.png');
    background-size: cover;
}

/* Top bar icon override for subscribe now page */
.subscribe-now-page .top-bar .icon-btn .icon {
    fill: #FF3333; /* Override icon color */
}

/* Content area for subscribe now page */
.subscribe-now-page .content-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 8vh;
    padding: 0 20px;
    justify-content: space-between;
    height: calc(100vh - 180px);
    gap: 10px;
}

/* Main message box for subscribe now page */
.subscribe-now-page .main-message {
    border: 2px solid #ff3333;
    border-radius: 15px;
    padding: 20px 20px;
    width: 85%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
}

.subscribe-now-page .main-message h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: #ff3333;
}

.subscribe-now-page .main-message p {
    margin: 0;
    font-weight: 600;
    line-height: 1.5;
    font-size: 16px;
    color: #333;
}

/* Benefits box for subscribe now page */
.subscribe-now-page .benefits-box {
    border: 2px solid #FFD700;
    border-radius: 15px;
    padding: 15px 25px;
    width: 80%;
    max-width: 350px;
    background: rgba(255, 215, 0, 0.1);
}

.subscribe-now-page .benefits-box p {
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    color: #B8860B;
    font-size: 14px;
}

/* Robot image for subscribe now page */
.subscribe-now-page .robot-image {
    width: 150px;
    max-width: 50vw;
}

/* Button group for subscribe now page */
.subscribe-now-page .button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.subscribe-now-page .primary-button{
    font-size: 16px;
    height: 60px;
}

/* Subscribe button styling */
.subscribe-now-page .subscribe-button {
    background: linear-gradient(135deg, #FF3333 0%, #E60023 100%);
    border: none;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
    transition: all 0.3s ease;
}

.subscribe-now-page .subscribe-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.4);
}

/* Go back button styling */
.subscribe-now-page .go-back-button {
    background: transparent;
    border: 2px solid #666;
    color: #666;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
}

.subscribe-now-page .go-back-button:hover {
    background: #666;
    color: white;
    transform: translateY(-1px);
}

/* ==========================================
   PRIZE PAGE SPECIFIC CSS
   ========================================== */

/* Body override for prize page */
body.prize-page {
    background: linear-gradient(135deg, #E60023 0%, #B91C1C 100%);
   
    background-size: cover;
    background-position: top;
    height: 100vh;
    background-repeat: repeat;
}

/* Content area for prize page */
.prize-page .content-area {
    padding: 80px 20px 40px;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #E60023 0%, #B91C1C 100%);
    background-image: url(../image/red-bg.png);
    background-repeat: repeat;
}

.prize-page .page-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

/* Prize Tier Section */
.prize-page .prize-tier {
    margin-bottom: 40px;
}

/* Prize Grid */
.prize-page .prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    padding: 0 10px;
}

.prize-page .prize-card {
    background-color: #FFF;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.prize-page .prize-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.prize-page .prize-card:active {
    transform: translateY(-2px);
}

.prize-page .prize-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.prize-page .prize-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    /* color inherited from base when background is white */
}

.prize-page .prize-description {
    font-size: 14px;
    color: #8B8B8B;
}

/* Prize Icons */
.prize-page .prize-icon.data {
    background-image: url('/public/pages/image/prize-data.svg');
}

.prize-page .prize-icon.sms {
    background-image: url('/public/pages/image/prize-sms.svg');
}

.prize-page .prize-icon.money {
    background-image: url('/public/pages/image/prize-money.svg');
}

.prize-page .prize-icon.minutes {
    background-image: url('/public/pages/image/prize-minutes.svg');
}

.prize-page .prize-icon.gift {
    background-image: url('/public/pages/image/prize-gift.svg');
}

.prize-page .prize-icon.keys {
    background-image: url('/public/pages/image/prize-keys.svg');
}

.prize-page .prize-icon.device {
    background-image: url('/public/pages/image/prize-device.svg');
}

.prize-page .prize-icon.voucher {
    background-image: url('/public/pages/image/prize-voucher.svg');
}

.prize-page .prize-icon.airpods,
.prize-page .prize-icon.wincard,
.prize-page .prize-icon.samsungtablet,
.prize-page .prize-icon.samsungcoupon,
.prize-page .prize-icon.xiaomiwatch,
.prize-page .prize-icon.xiaomiwatchcoupon,
.prize-page .prize-icon.xiaomiphone,
.prize-page .prize-icon.xiaomiphonecoupon,
.prize-page .prize-icon.smartspeaker,
.prize-page .prize-icon.smartspeakercoupon,
.prize-page .prize-icon.uzs50m,
.prize-page .prize-icon.uzs50mcoupon,
.prize-page .prize-icon.uzs10m,
.prize-page .prize-icon.uzs10mcoupon,
.prize-page .prize-icon.iphone16,
.prize-page .prize-icon.iphone16coupon,
.prize-page .prize-icon.extrascratch,
.prize-page .prize-icon.factoidsubscription3days,
.prize-page .prize-icon.factoidsubscription7days,
.prize-page .prize-icon.mobigames1day,
.prize-page .prize-icon.mobigames3days,
.prize-page .prize-icon.mobimoon1day,
.prize-page .prize-icon.mobimoon3days,
.prize-page .prize-icon.doublescratch,
.prize-page .prize-icon.samsungscratch,
.prize-page .prize-icon.wincardfortomorrow,
.prize-page .prize-icon.next30ktopup,
.prize-page .prize-icon.doublepoints,
.prize-page .prize-icon.superscratch,
.prize-page .prize-icon.premiumshot,
.prize-page .prize-icon.premiumscratch3,
.prize-page .prize-icon.uzs10mcoin,
.prize-page .prize-icon.elitescratch2,
.prize-page .prize-icon.iphonechance,
.prize-page .prize-icon.uzs50mkey,
.prize-page .prize-icon.premiumscratch,
.prize-page .prize-icon.elitescratch,
.prize-page .prize-icon.topuptoday
{
    background-image: url('/public/pages/image/prize-placeholder.svg');
}


.prize-page .tier-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.prize-page .tier-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.prize-page .tier-icon img {
    width: 36px;
    height: 36px;
}

.prize-page .tier-title {
    font-size: 28px;
    color: #FFF;
    /* font-weight inherited from base */
}

.prize-page .top-bar .title {
    color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .prize-page .prize-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .prize-page .prize-card {
        padding: 15px;
    }
    
    .prize-page .tier-title {
        font-size: 24px;
    }
    
    .prize-page .prize-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .prize-page .prize-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   PROFILE PAGE SPECIFIC CSS
   ========================================== */

/* Body override for profile page */
body.profile-page {
    overflow: hidden;
    background-image: url('/public/pages/image/red-bg.png');
    background-size: cover;
}
.profile-page .main-wrapper {
    justify-content: space-between;
}
/* Content area for profile page */
.profile-page .content-area {
    padding: 80px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.profile-page .page-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #FFF;
    font-weight: 700;
}

/* Profile Card */
.profile-page .profile-card {
    background-color: #FFF;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    /* color inherited from base body styles when background is white */
}

.profile-page .profile-card .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    padding: 10px 0;
}

.profile-page .profile-card .label {
    font-weight: 400;
}

.profile-page .profile-card .value {
    font-weight: 600;
}
.profile-page .profile-card .value a{
    color: #4E535F;
    text-decoration: none;
}

.profile-page .profile-card .status.active {
    color: #28A745;
    /* font-weight inherited from base */
}

/* Stats Container */
.profile-page .stats-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.profile-page .stat-card {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    background-color: #FFF;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    /* color inherited from base when background is white */
}

.profile-page .stat-card .count {
    font-size: 24px;
    font-weight: 700;
    color: #FF3333;
}

.profile-page .stat-card .keycount {
    font-size: 24px;
    font-weight: 700;
    color: #EAB308;
}

.profile-page .stat-card .label {
    font-size: 14px;
}

/* Action Buttons */
.profile-page .action-buttons {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding: 0 20px;
    box-sizing: border-box;
}

.profile-page .action-buttons button {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    font-weight: 700;
    text-transform: uppercase;
}

.unsubscribe-btn {
    background-color: #495057;
    color: #FFF;
}
.logout-btn{    
    color:#FF3333;
}

.profile-back-btn svg{
    border: 2px solid #fff!important;
    border-radius: 100px!important;
    width: 22px!important;
    height: 22px!important;
}

.profile-page .action-buttons button:active {
    opacity: 0.8;
}

/* Modal Styles */
.profile-page .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(3px);
}

.profile-page .modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.profile-page .modal-content {
    background: #FFF;
    color: #4E535F;
    padding: 30px;
    border-radius: 15px;
    width: 85%;
    max-width: 250px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.profile-page .modal-overlay.active .modal-content {
    transform: scale(1);
}

.profile-page .modal-content h2 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 25px;
}

.profile-page .modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-page .modal-buttons button {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.profile-page .modal-cancel-btn {
    background-color: #495057;
    color: #FFF;
}

.profile-page .modal-confirm-btn {
    background-color: #FB3132;
    color: #FFF;
}

.profile-page .top-bar .title {
    color: #fff;
}

/* ==========================================
   SCRATCH PAGE SPECIFIC CSS
   ========================================== */

/* Body override for scratch page */
body.scratch-page {
    overflow: hidden;
}

/* Main wrapper for theme transition - only unique properties */
.scratch-page .main-wrapper {
    height: 100%; /* Override min-height: 100vh from base */
    align-items: center;
    justify-content: space-between;
    padding-top: 0vh;
    box-sizing: border-box;
    transition: background 0.5s ease-in-out;
    padding: 20px 0;
}

/* Light theme (before winning) */
.scratch-page .main-wrapper.light-theme {
    background-image: url('/public/pages/image/scratch-bg.png');
    background-size: cover;
    background-position: center;
}

/* Dark theme (after winning) */
.scratch-page .main-wrapper.dark-theme {
    background-image: url('/public/pages/image/scratch-red--bg.png');
    background-size: cover;
    background-position: center;
}

.scratch-page .main-wrapper.dark-theme .star {
    animation: pop-in 0.5s forwards;
}

/* Golden glow for prize icon */
/*
.scratch-page .main-wrapper.dark-theme .star.s1 {
    filter: drop-shadow(0 0 20px #FFD700) drop-shadow(0 0 30px #FFA500) drop-shadow(0 0 40px #FF8C00);
}
*/

@keyframes pop-in {
    0% { opacity: 0; transform: scale(0) rotate(-90deg); }
    70% { opacity: 1; transform: scale(1.2) rotate(10deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Action Buttons */
.scratch-page .main-wrapper.dark-theme .action-buttons {
    opacity: 1;
    visibility: visible;
}

/* Scratch Card Area */
.scratch-page .scratch-area {
    position: relative;
    width: 95%;
    max-width: 300px;
    height: 240px;
    z-index: 14;
    transform: rotate(-7.192deg);
    top:50px;
}

/* Robot image as background - this will be revealed */
.scratch-page .scratch-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 27px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #FE3333 0%, #B61E1E 100%);
    color: white;
    text-align: center;
    border: 5px solid #FFF;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    padding: 20px;
    visibility: hidden;
}

.scratch-page .scratch-background.ready {
    visibility: visible;
}

.scratch-page .scratch-background h2 { 
    margin: 0; 
    font-size: 20px; 
    font-weight: 600;
}

.scratch-page .win-texts .win-t2{
    font-size: 18px;
    font-weight: 600;
    color: #FFD868;
    opacity: 1;
}

.scratch-page .win-texts .win-t3{
    font-size: 24px;
    font-weight: 600;
    color: #FFD868;
    opacity: 1;
}

.scratch-page .win-texts .win-t4{
    opacity: 1;
}

.scratch-page .scratch-background h1 { 
    margin: 5px 0; 
    font-size: 28px; 
    /* font-weight inherited from base */
}

.scratch-page .scratch-background p { 
    margin: 0; 
    font-size: 14px; 
    opacity: 0.8; 
}

.scratch-page #scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 27px;
    cursor: pointer;
    border: 5px solid #FFF;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    z-index: 1;
}

/* Stars Animation */
.scratch-page .star {
    position: absolute;
    z-index: 14;
    opacity: 0;
    transform: scale(0);
}

.scratch-page .star.s1 { 
    top: -4vh;
    left: 23%;
    transform: translateX(-50%);
    width: 215px;
    animation-delay: 0.2s; 
}

.scratch-page .star.s2 { 
    top: 33vh;
    left: 15%;
    width: 85px;
    animation-delay: 0.4s; 
}

.scratch-page .scratch-area::after { 
    content: '';
    position: absolute;
    top: 125px;
    left: -35px;
    width: 100%;
    height: 100%;
    background: url('../image/yellow-shadow.png') no-repeat center center;
}

.scratch-page .star.s3 { 
    top: 38vh; 
    right: 18%; 
    width: 30px; 
    animation-delay: 0.6s; 
}

.scratch-page .character-area {
    /*position: absolute;
    top: 24vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 15;*/
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 15; /* Back to original z-index */
    margin-top: -10vh;
    pointer-events: none; /* Keep this to allow touch events to pass through */
}

.scratch-page #robot-animation {
    width: 260px;
    z-index: 6; /* Back to original z-index */
    pointer-events: none; /* Keep this to ensure robot image doesn't block touch events */
}

.scratch-page .action-buttons {
    /*position: absolute;
    bottom: 80px;
    left: 0; */
    margin-top: 5px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    transition-delay: 0.5s;
    z-index: 7;
}

.scratch-page .action-buttons button {
    width: 90%;
    max-width: 350px;
    padding: 18px;
    border-radius: 12px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-weight: 700;
    text-transform: uppercase;
}

.scratch-page .action-buttons button:active {
    transform: scale(0.98);
}

.scratch-page .claim-btn {
    background-color: #FFD700;
    color: #A16207;
}

.scratch-page .scratch-again-btn {
    background-color: #FFF;
    color: #FF3333;
}

.scratch-page .top-bar .icon {
   
    fill: #FF3333;
}
.scratch-page .dark-theme .top-bar .icon {
   
    fill: #ffffff;
}

.scratch-page .win-texts{
    transform: rotate(7.192deg);
}

/* ==========================================
   TERM PAGE STYLES
   ========================================== */

/* Term page specific styles */
.term-page .content-area {
    padding: 80px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.term-page .page-title {
    font-size: 32px;
    font-weight: 700;
    color: #4E535F;
    text-align: center;
    margin-bottom: 40px;
}

.term-page .terms-content {
   /* background-color: #FFF;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); */
    padding: 10px;
}

.term-page .terms-section {
    margin-bottom: 30px;
}

.term-page .terms-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #E60023;
    margin-bottom: 15px;
}

.term-page .terms-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #4E535F;
    margin-bottom: 10px;
    margin-top: 25px;
}

.term-page .terms-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #4E535F;
    margin-bottom: 15px;
}

.term-page .terms-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.term-page .terms-section li {
    font-size: 16px;
    line-height: 1.6;
    color: #4E535F;
    margin-bottom: 8px;
}

.term-page .highlight-box {
    background-color: #FFF3CD;
    border: 1px solid #FFEAA7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.term-page .highlight-box h4 {
    color: #856404;
    margin-bottom: 10px;
    font-weight: 600;
}

.term-page .highlight-box p {
    color: #856404;
    margin-bottom: 0;
}

.term-page .contact-info {
    background-color: #E8F5E8;
    border: 1px solid #C3E6C3;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.term-page .contact-info h4 {
    color: #155724;
    margin-bottom: 10px;
    font-weight: 600;
}

.term-page .contact-info p {
    color: #155724;
    margin-bottom: 0;
}
.term-page .top-bar .icon{
    fill:#FF3333;
}

.term-back-btn svg{
    border: 2px solid #FF3333!important;
    border-radius: 100px!important;
    width: 22px!important;
    height: 22px!important;
}


.term-page .top-bar .title {
    color:#000;
}

body.term-page {
    background-image: url(/public/pages/image/light-bg.png);
    background-size: cover;
}
