:root {
    --app-bg: #F2F2F7;
    --card-bg: #FFFFFF;
    --text-main: #1C1C1E;
    --brand-color: #007AFF; 
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --nav-height: 60px;
}
 
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: 0; user-select: none; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: #e4e5e8;
    font-family: var(--font-stack);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    padding-bottom: 120px;
}

.app-header {
    background: #FC5301;
    position: fixed; top: 0; width: 100%; max-width: 500px; z-index: 1000;
    padding: 0 15px; height: var(--nav-height); 
    display: flex; align-items: center; justify-content: flex-start;
    box-shadow: 0px 4px 4px -1px rgba(0, 0, 0, 0.2), 0px 5px 5px 0px rgba(0, 0, 0, 0.14), 0px 10px 10px 0px rgba(0, 0, 0, 0.12);
}
.brand { font-weight: 800; font-size: 22px; color: #FFFFFF; margin: 0; text-shadow: none; }
 
.app-container { background-color: #FFFFFF; max-width: 500px; margin: 0 auto; min-height: 100vh; position: relative; box-shadow: 0 0 30px rgba(0,0,0,0.1); overflow: hidden; }
.content-area { padding: 20px; margin-top: var(--nav-height); }
 
.section-wrapper { margin-bottom: 32px; }
.section-header { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; }
.section-bar { width: 5px; height: 22px; background: var(--brand-color); margin-right: 12px; border-radius: 10px; }
.section-title { font-size: 19px; font-weight: 800; color: #1a1a1a; letter-spacing: -0.5px; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px }
 
.card { text-decoration: none; display: flex; flex-direction: column; background-color: #ffffff; border: 1px solid #f0f0f0; box-shadow: 0 4px 10px rgba(0, 0, 0, .6), 0 1px 3px rgba(255, 255, 255, .2); border-radius: 16px; overflow: hidden; position: relative; }
.card:active { transform: scale(0.95) }
.card-image { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; background: #f0f0f0; border-radius: 16px 16px 0 0; }
.card-label { padding: 10px 8px; text-align: center; font-size: 14px; font-weight: 700; color: #333; display: flex; align-items: center; justify-content: center; min-height: 48px; line-height: 1.1 }
 
.app-footer { padding: 30px 20px 40px 20px; text-align: center; border-top: 1px solid rgba(0,0,0,0.05); margin-top: 20px }
.footer-links a { font-size: 12px; color: #8E8E93; text-decoration: none; font-weight: 600; margin: 0 5px; }
.copyright { font-size: 11px; color: #aaa; margin-top: 10px; }

/* Modal Styles */
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 9999999; justify-content: center; align-items: center; padding: 20px; animation: fadeIn 0.3s ease; }
.modal-card { background: #fff; border-radius: 24px; padding: 32px 24px; width: 100%; max-width: 380px; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.3); transform: translateY(20px); animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.modal-title { margin: 0 0 8px 0; font-size: 24px; font-weight: 800; color: #1C1C1E; letter-spacing: -0.5px; }
.modal-desc { font-size: 14px; color: #666; margin-bottom: 24px; line-height: 1.5; font-weight: 500; }
.modal-btn-primary { width: 100%; background: #00D287; color: #fff; border: none; padding: 18px; border-radius: 14px; font-weight: 800; font-size: 16px; cursor: pointer; transition: transform 0.2s, background 0.2s; margin-top: 8px; box-shadow: 0 8px 20px rgba(0, 210, 135, 0.3); text-transform: uppercase; letter-spacing: 0.5px; }
.modal-btn-primary.blue { background: #007AFF; box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3); }
.modal-btn-primary:active { transform: scale(0.96); }
.modal-btn-secondary { width: 100%; background: transparent; color: #8E8E93; border: none; padding: 14px; font-weight: 600; cursor: pointer; margin-top: 8px; font-size: 15px; }
 
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* CUSTOM TOAST NOTIFICATION */
.custom-toast {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translate(-50%, -100px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    color: #1C1C1E;
    padding: 14px 20px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    font-size: 15px;
    font-weight: 600;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    width: max-content;
    max-width: 90%;
}
.custom-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}
.custom-toast svg { width: 22px; height: 22px; flex-shrink: 0; }

/* =========================================
   KIDS STYLE FULL SCREEN INSTALLER UI 
   ========================================= */
#install-popup-backdrop { display: none !important; }

#install-popup {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    background-color: #FC5301;
    z-index: 2147483647;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif;
    color: #FFFFFF;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    transform: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 20px;
}
#install-popup.show {
    opacity: 1;
    display: flex;
}

.kids-install-logo { width: 140px; height: 140px; margin-bottom: 25px; }
.kids-install-title { font-size: 25px; font-weight: 900; margin-bottom: 8px; text-shadow: 3px 3px 0px rgba(0,0,0,0.15); letter-spacing: 1px; }
.kids-install-subtitle { font-size: 22px; font-weight: 600; margin-bottom: 40px; opacity: 0.95; }
.kids-progress-wrapper { width: 85%; max-width: 350px; background: rgba(255, 255, 255, 0.3); border: 5px solid #FFF; border-radius: 30px; height: 35px; position: relative; overflow: hidden; box-shadow: inset 0 3px 6px rgba(0,0,0,0.1); }
.kids-progress-bar { height: 100%; width: 0%; background: #00D287; border-radius: 20px; transition: width 0.1s linear; box-shadow: inset 0 -4px 0 rgba(0,0,0,0.1); position: relative; }
.kids-progress-bar::after { content: ""; position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent); background-size: 30px 30px; animation: moveStripes 1s linear infinite; }
@keyframes moveStripes { 0% { background-position: 0 0; } 100% { background-position: 30px 0; } }
.kids-install-percent { font-size: 28px; font-weight: 900; margin-top: 15px; text-shadow: 2px 2px 0 rgba(0,0,0,0.2); }
.kids-action-btn { display: none; margin-top: 20px; background: #FFF; color: #FC5301; border: none; padding: 16px 45px; font-size: 26px; font-weight: 900; border-radius: 50px; box-shadow: 0 6px 0px rgba(0,0,0,0.1), 0 10px 20px rgba(0,0,0,0.2); cursor: pointer; text-transform: uppercase; font-family: inherit; animation: pulseBtn 1.5s infinite; }
.kids-action-btn:active { transform: translateY(6px); box-shadow: 0 0px 0px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.2); animation: none; }
@keyframes pulseBtn { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* =========================================
   DARK THEME PAYMENT STRIP UI
   ========================================= */
#payment-strip { 
    display: none; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: #1C1C1E; /* Dark background */
    /* safe-area-inset-bottom prevents the iPhone home bar from covering the button */
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); 
    z-index: 999999 !important; 
    border-top: 1px solid #333333;
    box-shadow: 0px -10px 30px rgba(0, 0, 0, 0.4); 
    transform: translateY(150%); 
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
}
#payment-strip.visible { 
    display: block !important; 
    transform: translateY(0); 
}

.payment-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.sheet-content-left { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-start;
}

.price-line { 
    display: flex; 
    align-items: baseline; 
    gap: 8px; 
    margin-bottom: 4px; 
}

.price-main { 
    font-size: 28px; 
    font-weight: 900; 
    color: #FFFFFF; 
    letter-spacing: -0.5px;
} 

.price-cross { 
    font-size: 16px; 
    color: #8E8E93; 
    text-decoration: line-through; 
    font-weight: 600; 
}

.validity-text {
    font-size: 11px;
    font-weight: 800;
    color: #D4FF00; /* Lime yellow matching image */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-box {
    background: #FFFFFF;
    color: #000000;
    font-size: 15px;
    font-weight: 800;
    padding: 4px 6px;
    border-radius: 4px;
    min-width: 28px;
    text-align: center;
}

.time-colon {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 900;
}

.sheet-content-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* High-Converting CTA Button */
.btn-continue { 
    background: #D4FF00; /* Lime yellow */
    color: #000000; 
    border: none; 
    padding: 14px 28px; 
    border-radius: 12px; 
    cursor: pointer; 
    font-size: 18px;
    font-weight: 800;
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1); 
    min-width: 150px; 
    box-shadow: 0 4px 15px rgba(212, 255, 0, 0.2);
}

.btn-continue:active { 
    transform: scale(.95); 
    box-shadow: 0 2px 5px rgba(212, 255, 0, 0.2); 
}

/* Floating Discount Badge */
.discount-badge {
    position: absolute;
    top: -20px;
    left: 20px;
    background: #E53935; /* Punchy red */
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 900;
    padding: 6px 14px;
    transform: rotate(-8deg); /* Matches the tilt in your screenshot */
    z-index: 10;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
    letter-spacing: 0.5px;
}

/* Retain JS Shake Animation Trigger */
.shake-animation { animation: shake-animation 0.5s cubic-bezier(.36,.07,.19,.97) both !important; }
@keyframes shake-animation { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* iOS PROMPT */
#ios-prompt { display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 350px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-radius: 14px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); z-index: 999999; padding: 15px 20px; text-align: center; border: 1px solid rgba(0,0,0,0.1); }
#ios-prompt::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); border-width: 10px 10px 0; border-style: solid; border-color: rgba(255,255,255,0.95) transparent transparent transparent; }
.ios-close { position: absolute; top: 5px; right: 10px; font-size: 20px; color: #888; cursor: pointer; }
.ios-prompt-text { font-size: 15px; font-weight: 600; color: #000; margin-bottom: 5px; }
.ios-prompt-subtext { font-size: 13px; color: #555; display: flex; align-items: center; justify-content: center; gap: 5px; }
 
.razorpay-container { z-index: 2147483647 !important; }