/* Modern Premium Variables */
:root {
    --primary-color: #f43397;
    --primary-gradient: linear-gradient(135deg, #f43397 0%, #ff5c8a 100%);
    --secondary-color: #5c1682;
    --accent-color: #03a685;
    
    --bg-color: #f4f5f8;
    --surface-color: #ffffff;
    
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(244, 51, 151, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    
    --border-radius: 16px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Elements */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(244, 51, 151, 0.2);
    top: -100px;
    left: -100px;
}

.bg-shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(92, 22, 130, 0.15);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
    100% { transform: translate(-30px, 80px) scale(0.9); }
}

/* Glass Navbar */
.glass-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 16px 24px;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.logo-text {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 34px;
    letter-spacing: -1.5px;
}

.logo-sparkle {
    color: #ffaa00;
    font-size: 14px;
    position: absolute;
    top: -5px;
    right: -15px;
    animation: pulse 2s infinite;
}

.search-bar {
    flex-grow: 1;
    position: relative;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 2;
}

.search-bar input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 15px;
    background-color: rgba(0, 0, 0, 0.03);
    outline: none;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.search-bar input:focus {
    background-color: var(--surface-color);
    border-color: rgba(244, 51, 151, 0.3);
    box-shadow: 0 0 0 4px rgba(244, 51, 151, 0.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-item i {
    font-size: 18px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item:hover i {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.badge-wrap {
    position: relative;
}

.badge {
    position: absolute;
    top: -10px;
    right: -25px;
    background: var(--primary-gradient);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

/* Hero Banner */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.hero-banner {
    display: flex;
    margin-bottom: 60px;
    position: relative;
}

.hero-text {
    flex: 1.2;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(244, 51, 151, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    width: max-content;
    margin-bottom: 24px;
}

.hero-text h2 {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 90%;
}

.hero-features {
    display: flex;
    gap: 30px;
}

.hero-features span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.hero-features span:hover .icon-box {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--primary-gradient);
    color: white;
}

.hero-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(10% 0, 100% 0%, 100% 100%, 0% 100%);
}

/* Offers Section */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.offer-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.offer-card {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(244,51,151,0.2) 0%, rgba(255,255,255,0) 70%);
    top: -75px;
    right: -75px;
    z-index: 1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.offer-card:hover .card-glow {
    opacity: 1;
}

.popular-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(229, 46, 113, 0.3);
}

.offer-card.popular {
    border: 2px solid #e52e71;
    transform: scale(1.02);
}

.offer-card.popular:hover {
    transform: scale(1.02) translateY(-10px);
}

.offer-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.discount-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--surface-color);
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.offer-details {
    padding: 35px 25px 25px;
}

.offer-details h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.offer-details p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 44px;
}

.claim-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #f8f8ff;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.offer-card:hover .claim-btn {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.claim-btn i {
    transition: var(--transition-smooth);
}

.offer-card:hover .claim-btn i {
    transform: translateX(5px);
}

/* Modal Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

/* Auth Modal */
.glass-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.95);
    width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    z-index: 1000;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.glass-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: var(--text-primary);
    color: white;
    transform: rotate(90deg);
}

.auth-step {
    display: none;
    flex-direction: column;
    animation: fadeIn 0.4s ease forwards;
}

.auth-step.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-banner-container {
    position: relative;
    height: 140px;
}

.modal-banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}

.modal-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.flex-center {
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.step-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
}

.offer-found-badge {
    background: rgba(3, 166, 133, 0.1);
    border: 1px solid rgba(3, 166, 133, 0.2);
    color: var(--accent-color);
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.badge-icon {
    background: var(--accent-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.input-group {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
    background: var(--surface-color);
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(244, 51, 151, 0.1);
}

.country-code {
    background: #f8f8ff;
    padding: 16px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    border-right: 2px solid var(--border-color);
}

.input-group input {
    flex-grow: 1;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(244, 51, 151, 0.25);
}

.btn-primary:disabled {
    background: #e5e5e5;
    color: #999;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.terms {
    margin-top: 25px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
}

.terms a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* OTP Step */
.modal-header-simple {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8ff;
    cursor: pointer;
    margin-right: 15px;
    transition: var(--transition-smooth);
}

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

.otp-illustration {
    font-size: 48px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
}

.highlight-text {
    color: var(--text-primary);
    font-weight: 800;
}

.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 30px 0;
}

.otp-box {
    width: 45px;
    height: 55px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    outline: none;
    background: #f8f8ff;
    transition: var(--transition-smooth);
    color: var(--text-primary);
}

.otp-box:focus {
    border-color: var(--primary-color);
    background: var(--surface-color);
    box-shadow: 0 0 0 4px rgba(244, 51, 151, 0.1);
    transform: translateY(-2px);
}

.resend-timer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Loader Animation */
.radar-loader {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.radar-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    animation: radarRipple 2s ease-out infinite;
}

.radar-circle:nth-child(2) { animation-delay: 0.6s; }
.radar-circle:nth-child(3) { animation-delay: 1.2s; }

.radar-icon {
    font-size: 32px;
    color: var(--primary-color);
    z-index: 10;
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

@keyframes radarRipple {
    0% { transform: scale(0.5); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Success Step */
.success-animation {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.checkmark {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    stroke-width: 4;
    stroke: #03a685;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #03a685;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: #03a685;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}
@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes fill {
    100% { box-shadow: inset 0px 0px 0px 50px rgba(3, 166, 133, 0.1); }
}

.glass-panel {
    background: rgba(248, 248, 255, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-value {
    font-weight: 800;
    color: var(--text-primary);
}

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

@keyframes btnPulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 51, 151, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(244, 51, 151, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 51, 151, 0); }
}

/* Toast */
.glass-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-toast.show {
    bottom: 40px;
}

.glass-toast i {
    color: var(--primary-color);
    font-size: 18px;
}
