:root {
    --primary: #1565C0;
    --primary-dark: #0B1F33;
    --primary-light: #DBEAFE;
    --danger: #D32F2F;
    --success: #4CAF50;
    --neutral: #78909C;
    --dark: #0B1F33;
    --light: #ECEFF1;
    --border-radius: 16px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f1f5f9;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    background-color: white;
    padding: 1rem;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

.user-profile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

main {
    flex: 1;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.dashboard-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.weather-date-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    position: relative;
}

.date-location {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.date-display {
    font-size: 1.1rem;
    font-weight: 500;
}

.weather-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-temp {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.weather-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.location-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-display {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: right;
}

.daily-tip {
    padding: 1.5rem;
    position: relative;
}

.tip-content {
    position: relative;
    z-index: 1;
}

.tip-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dark);
}

.light-bulb {
    font-size: 1.25rem;
    color: var(--primary);
}

.cooking-streak {
    padding: 1.5rem;
    background-color: var(--primary-light);
    position: relative;
    overflow: hidden;
}

.streak-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.streak-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.streak-label {
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.streak-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.rank-badge {
    background: linear-gradient(135deg, #F97316, #1565C0);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.rank-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.rank-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.feature-button {
    background-color: var(--light);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.2s ease;
    text-align: center;
}

.feature-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 1.75rem;
    color: var(--primary);
    background-color: var(--primary-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.referral-section {
    padding: 1.5rem;
    background: white;
    color: var(--dark);
    border-top: 4px solid var(--primary);
}

.referral-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.referral-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.referral-stat {
    background-color: var(--primary-light);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    flex: 1;
}

.referral-stat:first-child {
    margin-right: 0.5rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--primary-dark);
}

.referral-link-container {
    display: flex;
    background-color: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.referral-link {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    color: var(--dark);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background-color: var(--primary-light);
    border: none;
    padding: 0.75rem 1rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background-color: var(--primary);
    color: white;
}

.share-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-light);
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: -30px;
    right: -30px;
}

.circle-2 {
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 30px;
}

.greeting-section {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.greeting-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.greeting-emoji {
    font-size: 2rem;
    margin-left: 1rem;
}

.user-name {
    color: var(--primary);
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .weather-date-section,
    .referral-section,
    .social-cooking-section,
    .greeting-section {
        grid-column: span 2;
    }
    
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.social-cooking-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);

}

.social-cooking-content {
    position: relative;
    z-index: 2;
}

.social-cooking-header {
    margin-bottom: 1.5rem;
}

.social-cooking-title {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.social-icon {
    font-size: 1.4rem;
    color: var(--primary-light);
}

.social-cooking-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-weight: 500;
}

.game-promo {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease;
}

.game-promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.game-info {
    flex: 1;
}

.game-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-title .badge {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-weight: 800;
}

.game-description {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.game-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    color: var(--primary-dark);
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-light);
}

.game-icon {
    font-size: 2.8rem;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: var(--primary-light);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.bounce-animation {
    animation: bounce 2s infinite;
}

.floating-icon {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.2;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}


.footer {
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.footer-company p {
    font-size: 0.9rem;
    color: var(--dark);
}

.footer-company a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-company a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--neutral);
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}



/* Product Banner in Daily Tip Section */
.sc-product-banner {
margin-top: 20px;
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding-top: 20px;

}

.sc-product-banner__content {
display: flex;
align-items: center;
background-color: var(--primary-light);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(240, 4, 128, 0.15);
padding: 10% 0 !important;
transition: transform 0.3s ease;
}

.sc-product-banner__content:hover {
transform: translateY(-3px);
}

.sc-product-banner__image-container {
position: relative;
width: 150px;
height: 150px;
flex-shrink: 0;
background-color: white;
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
}

.sc-product-banner__image {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}

.sc-product-banner__discount {
position: absolute;
top: 5px;
left: 5px;
background-color: var(--danger);
color: white;
font-size: 0.7rem;
font-weight: bold;
padding: 3px 8px;
border-radius: 10px;
}

.sc-product-banner__info {
padding: 12px 15px;
flex: 1;
}

.sc-product-banner__title {
font-size: 1rem;
font-weight: 600;
color: var(--dark);
margin-bottom: 4px;
}

.sc-product-banner__description {
font-size: 0.85rem;
color: var(--dark);
opacity: 0.8;
margin-bottom: 8px;
}

.sc-product-banner__price-container {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 10px;
}

.sc-product-banner__price {
font-size: 1rem;
font-weight: 700;
color: var(--primary-dark);
}

.sc-product-banner__original-price {
font-size: 0.85rem;
text-decoration: line-through;
color: var(--neutral);
}

.sc-product-banner__button {
display: inline-flex;
align-items: center;
gap: 8px;
background-color: var(--primary);
color: white;
font-size: 0.85rem;
font-weight: 600;
padding: 8px 15px;
border-radius: 20px;
text-decoration: none;
transition: background-color 0.2s ease;
}

.sc-product-banner__button:hover {
background-color: var(--primary-dark);
}

.sc-product-banner__button-icon {
font-size: 0.8rem;
}

/* Mobile Product Modal */
.sc-product-modal {
position: fixed;
bottom: -100%;
left: 0;
right: 0;
z-index: 1000;
background-color: white;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
max-height: 90vh;
overflow-y: auto;
transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sc-product-modal--active {
bottom: 0;
}

.sc-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
z-index: 999;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease;
}

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

.sc-product-modal__content {
position: relative;
padding: 20px;
}

.sc-product-modal__close {
position: absolute;
top: 15px;
right: 15px;
background: none;
border: none;
font-size: 1.2rem;
color: var(--dark);
cursor: pointer;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background-color: var(--light);
z-index: 2;
}

.sc-product-modal__header {
margin-bottom: 15px;
}

.sc-product-modal__label {
display: inline-block;
background-color: var(--primary-light);
color: var(--primary-dark);
font-size: 0.8rem;
font-weight: 700;
padding: 5px 12px;
border-radius: 15px;
}

.sc-product-modal__body {
display: flex;
flex-direction: column;
margin-bottom: 20px;
}

.sc-product-modal__image-container {
position: relative;
width: 100%;
height: 180px;
background-color: white;
border-radius: 12px;
overflow: hidden;
margin-bottom: 15px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid rgba(0, 0, 0, 0.05);
}

.sc-product-modal__image {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}

.sc-product-modal__discount {
position: absolute;
top: 10px;
left: 10px;
background-color: var(--danger);
color: white;
font-size: 0.8rem;
font-weight: bold;
padding: 4px 10px;
border-radius: 10px;
}

.sc-product-modal__title {
font-size: 1.2rem;
font-weight: 700;
color: var(--dark);
margin-bottom: 8px;
}

.sc-product-modal__description {
font-size: 0.9rem;
color: var(--neutral);
margin-bottom: 12px;
}

.sc-product-modal__features {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 15px;
}

.sc-product-modal__feature {
display: flex;
align-items: center;
gap: 5px;
font-size: 0.85rem;
color: var(--dark);
background-color: var(--light);
padding: 6px 12px;
border-radius: 15px;
}

.sc-product-modal__feature-icon {
color: var(--success);
}

.sc-product-modal__price-container {
display: flex;
align-items: center;
gap: 10px;
}

.sc-product-modal__price {
font-size: 1.2rem;
font-weight: 700;
color: var(--primary-dark);
}

.sc-product-modal__original-price {
font-size: 0.9rem;
text-decoration: line-through;
color: var(--neutral);
}

.sc-product-modal__footer {
display: flex;
gap: 10px;
margin-top: 15px;
}

.sc-product-modal__dismiss {
flex: 1;
background: none;
border: 1px solid var(--neutral);
color: var(--neutral);
font-size: 0.9rem;
font-weight: 600;
padding: 12px;
border-radius: 25px;
cursor: pointer;
transition: all 0.2s ease;
}

.sc-product-modal__dismiss:hover {
background-color: var(--light);
}

.sc-product-modal__shop-button {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
background-color: var(--primary);
color: white;
font-size: 0.9rem;
font-weight: 600;
padding: 12px;
border-radius: 25px;
text-decoration: none;
border: none;
cursor: pointer;
transition: background-color 0.2s ease;
}

.sc-product-modal__shop-button:hover {
background-color: var(--primary-dark);
}

/* Desktop adjustments */
@media (min-width: 768px) {
.sc-product-banner__content {
padding: 0;
}

.sc-product-banner__image-container {
width: 120px;
height: 120px;
}

.sc-product-banner__title {
font-size: 1.1rem;
}

.sc-product-modal {
width: 450px;
max-width: 90%;
left: 50%;
transform: translateX(-50%);
border-radius: 20px;
}

.sc-product-modal__body {
flex-direction: row;
gap: 20px;
}

.sc-product-modal__image-container {
width: 150px;
height: 150px;
margin-bottom: 0;
}

.sc-product-modal__info {
flex: 1;
}
}

.banner-102{
    display: none;
}
@media (max-width: 768px) {
    .banner-101 {
      display: none;
    }
    .banner-102{
        display: block;
    }
}


/* Email Modal Styles - Scoped */
.sc-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.sc-modal-content-box {
    background-color: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sc-modal-header-section {
    padding: 24px;
    background-color: var(--primary-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sc-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 8px 0;
}

.sc-modal-subtitle {
    font-size: 0.9rem;
    color: var(--neutral);
    margin: 0;
}

.sc-modal-body-content {
    padding: 24px;
}

.sc-email-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.sc-benefit-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sc-benefit-icon {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 2px;
}

.sc-benefit-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--dark);
}

.sc-benefit-description {
    font-size: 0.85rem;
    color: var(--neutral);
    margin: 0;
    line-height: 1.4;
}

.sc-email-form {
    margin-top: 16px;
}

.sc-form-group {
    margin-bottom: 20px;
}

.sc-input-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark);
}

.sc-text-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.sc-text-input:focus {
    outline: none;
    border-color: var(--primary);
}

.sc-input-hint {
    font-size: 0.8rem;
    color: var(--neutral);
    margin: 8px 0 0 0;
}

.sc-form-actions {
    display: flex;
    justify-content: flex-end;
}

.sc-primary-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.sc-primary-btn:hover {
    background-color: var(--primary-dark);
}

.sc-btn-text {
    display: inline-block;
}

.sc-btn-icon {
    font-size: 0.9rem;
}

