/* CSS Variables for Theming */
:root {
    --primary-color: #1e3a8a; /* Deep Blue */
    --secondary-color: #6b21a8; /* Purple */
    --accent-color: #10b981; /* Green Accent */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f3f4f6;
    --transition: all 0.3s ease;
}

/* Basic Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Header / Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.app-icon-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 180px 0 160px 0;
    background: url('hero4.webp') right center/cover no-repeat;
    position: relative;
    margin-top: 80px; /* offset for fixed header */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 45%, rgba(0,0,0,0) 65%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    font-weight: 800;
}

.hero p.hero-highlight {
    font-size: 1.5rem;
    color: #facc15;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.mobile-mockup {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Problem Section */
.problem-section {
    background-color: white;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.problem-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Solution Section */
.solution-section {
    background-color: var(--primary-color);
    color: white;
}

.solution-section .section-title {
    color: white;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
}

.benefit-icon {
    background: var(--accent-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Features Section */
.features-section {
    background-color: var(--bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* How It Works */
.how-it-works {
    background-color: white;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    z-index: 2;
    position: relative;
}

.step h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* App Screenshots */
.screenshots-section {
    background-color: var(--bg-light);
    text-align: center;
    overflow: hidden;
}

.screenshots-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.app-screenshot {
    width: 200px;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.app-screenshot:hover {
    transform: scale(1.05);
}

/* Pricing Section */
.pricing-section {
    background-color: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.pricing-card.popular {
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pricing-status {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 30px;
    padding: 10px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--bg-light);
    overflow: hidden;
}

.reviews-marquee {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}

.reviews-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: reviewScroll 65s linear infinite;
}

.reviews-marquee:hover .reviews-track {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 370px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--text-light);
}

@keyframes reviewScroll {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reviews-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }
    .reviews-marquee {
        width: 100%;
        margin-left: 0;
        mask-image: none;
        -webkit-mask-image: none;
    }
}

/* FAQ Section */
.faq-section {
    background-color: white;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    text-align: left;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
}

.faq-question:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.35);
    outline-offset: 6px;
    border-radius: 6px;
}

.faq-answer {
    margin-top: 15px;
    color: var(--text-light);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-light);
}

.contact-container {
    display: flex;
    gap: 50px;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

textarea.form-control {
    height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #111827;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #9ca3af;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-buttons {
        align-items: center;
        justify-content: center;
    }
    .contact-container {
        flex-direction: column;
        padding: 35px;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    nav {
        height: 72px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
        font-size: 1.8rem;
        line-height: 1;
    }
    .hero h1 {
        font-size: 2rem;
        line-height: 1.12;
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero {
        padding: 96px 0 84px;
        background-position: 68% center;
        margin-top: 72px;
    }
    .hero-overlay {
        background: linear-gradient(to right, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.72) 70%, rgba(0,0,0,0.35) 100%);
    }
    .hero p.hero-highlight {
        font-size: 1.2rem;
        margin-bottom: 24px;
    }
    .hero-buttons img {
        width: 178px;
        height: auto;
    }
    .logo-area {
        font-size: 1rem;
        gap: 8px;
        line-height: 1.15;
    }
    .logo-area img {
        width: 36px !important;
        height: 36px !important;
        border-radius: 9px !important;
    }
    section {
        padding: 70px 0;
    }
    .section-header {
        margin-bottom: 42px;
    }
    .contact-container {
        padding: 25px 20px;
        border-radius: 12px;
    }
    .section-title {
        font-size: 1.82rem;
        line-height: 1.18;
    }
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.55;
    }
    .reviews-track {
        gap: 18px;
    }
    .testimonial-card {
        flex-basis: 300px;
        padding: 24px;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 16px;
    }
    nav {
        height: 68px;
    }
    .nav-links {
        top: 68px;
    }
    .logo-area {
        font-size: 0.96rem;
        max-width: calc(100% - 52px);
    }
    .logo-area img {
        width: 34px !important;
        height: 34px !important;
    }
    .hero {
        padding: 84px 0 76px;
        margin-top: 68px;
        background-position: 70% center;
    }
    .hero h1 {
        font-size: 1.68rem;
    }
    .hero p.hero-highlight {
        font-size: 0.98rem;
        line-height: 1.35;
    }
    .hero-buttons img {
        width: 160px;
        height: auto;
    }
    section {
        padding: 58px 0;
    }
    .section-header {
        margin-bottom: 34px;
    }
    .section-title {
        font-size: 1.55rem;
    }
}

/* Smart App Banner Styles */
.smart-app-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 10px 15px;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.smart-app-banner.show {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.close-banner {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    margin-right: 15px;
    line-height: 1;
}

.banner-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 15px;
}

.banner-content {
    flex-grow: 1;
}

.banner-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.banner-desc {
    color: var(--text-light);
    font-size: 0.8rem;
}

.banner-btn {
    padding: 6px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Adjust header when banner is visible */
body.has-banner header {
    top: 60px; /* height of the banner */
}
body.has-banner .hero {
    margin-top: 132px; /* original margin + banner height */
}
body.has-banner main {
    padding-top: 160px !important; /* original padding (100) + banner height (60) */
}

/* Fix anchor scrolling offset */
html {
    scroll-padding-top: 100px;
}
body.has-banner {
    scroll-padding-top: 160px;
}

/* ==========================================================================
   iOS App Wishlist & Waitlist UI (Rich Aesthetics & Glassmorphism)
   ========================================================================== */

/* 1. iOS App Store Button Badge (Hero & CTA) */
.ios-wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.ios-wishlist-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: 0.5s;
}

.ios-wishlist-btn:hover::before {
    left: 100%;
}

.ios-wishlist-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: #6366f1;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.ios-wishlist-btn .apple-icon {
    width: 26px;
    height: 26px;
    fill: currentColor;
    flex-shrink: 0;
}

.ios-wishlist-btn .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.ios-wishlist-btn .small-text {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-weight: 500;
}

.ios-wishlist-btn .large-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

/* 2. VIP iOS Wishlist Section Banner */
.ios-wishlist-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311042 100%);
    padding: 70px 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ios-wishlist-section::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.ios-wishlist-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 45px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.ios-wishlist-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    background: linear-gradient(to right, #ffffff, #c7d2fe, #f5d0fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ios-wishlist-info p {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 580px;
    margin-bottom: 20px;
}

.ios-perk-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ios-wishlist-cta {
    flex-shrink: 0;
    text-align: center;
}

.btn-ios-glow {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-ios-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.6);
}

/* 3. Sleek Glassmorphic Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    color: #ffffff;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-icon-badge {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 15px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.modal-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffffff;
}

.modal-header p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-form .form-group {
    margin-bottom: 18px;
    text-align: left;
}

.modal-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.modal-form .form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.modal-form .form-control:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.modal-form .form-control::placeholder {
    color: #64748b;
}

.device-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 5px;
}

.device-option {
    position: relative;
}

.device-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.device-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #cbd5e1;
    transition: all 0.2s;
    margin: 0;
}

.device-option input[type="radio"]:checked + label {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.modal-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s;
    margin-top: 10px;
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.5);
}

/* Success Celebration State */
.modal-success-state {
    display: none;
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon-animate {
    font-size: 64px;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ios-wishlist-card {
        flex-direction: column;
        text-align: center;
        padding: 35px 24px;
        gap: 25px;
    }
    .ios-wishlist-info h2 {
        font-size: 1.7rem;
    }
    .modal-box {
        padding: 28px 20px;
    }
}

/* Navbar iOS Wishlist Button (Real Apple Logo) */
.nav-ios-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
    text-decoration: none !important;
}
.nav-ios-link:hover {
    color: var(--primary-color) !important;
}
.nav-ios-link svg {
    fill: currentColor;
    width: 15px;
    height: 15px;
    margin-bottom: 2px;
}

.modal-icon-badge svg {
    fill: #ffffff;
    width: 32px;
    height: 32px;
}

