/* ================================================
   PREMIUM LIGHT THEME - INDEX PAGE
   Modern, Clean, Professional Design
   ================================================ */

/* Hero Section - Premium Light Theme */
.main-content {
    padding-top: 0 !important;
}

.hero-section-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e8eef5 50%, #dce4ed 100%);
    min-height: 90vh;
    display: flex;
    align-items: flex-start;
    padding: 0 0 80px;
    position: relative;
    overflow: hidden;
}

/* Startup-grade top brand lockup (no glass background) */
.hero-top-brand-frame {
    margin: 0 auto 22px;
    max-width: 920px;
    padding: 16px 18px 20px;
    border-top: 1px solid rgba(102, 126, 234, 0.26);
    border-bottom: 1px solid rgba(102, 126, 234, 0.26);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 18px;
}

.hero-top-brand-frame::before {
    content: none;
}

.hero-top-brand-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-top-logo {
    width: min(320px, 74vw);
    height: auto;
    max-height: 128px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(74, 90, 176, 0.32));
}

.hero-top-brand-copy {
    text-align: center;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-top-typing-svg {
    width: min(760px, 100%);
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(63, 105, 176, 0.2));
}

.hero-top-highlight-text {
    margin: 2px 0 12px;
    font-size: 1.03rem;
    font-weight: 700;
    color: #6f4dd8;
    line-height: 1.4;
}

.hero-top-cta-btn {
    border: none;
    border-radius: 999px;
    padding: 11px 24px;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #ffffff;
    background: linear-gradient(135deg, #4f8df7 0%, #6f4dd8 100%);
    box-shadow: 0 10px 22px rgba(79, 141, 247, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-top-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(79, 141, 247, 0.42);
}

.hero-top-kicker-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.hero-top-mark-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(88, 104, 184, 0.22));
}

.hero-top-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #5b6fd9;
}

.hero-top-title {
    margin: 0 0 6px;
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0.3px;
    color: #283868;
}

.hero-top-subtitle {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #5a6587;
    font-weight: 600;
}

.hero-section-light::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    border: 1px solid rgba(102, 126, 234, 0.08);
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    animation: slideDown 0.8s ease-out;
}

.badge-content {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #ffffff;
    border: 2px solid rgba(102, 126, 234, 0.4);
    background-clip: padding-box;
    border-radius: 50px;
    color: #667eea;
    font-weight: 800;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 12px 28px rgba(102, 126, 234, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(102, 126, 234, 0.2);
    letter-spacing: 0.5px;
}

/* Hero Title */
.hero-title {
    color: #2d3748 !important;
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 900;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Fixed blue OTP button to match verify appearance (no hover change) */
.btn-otp-blue {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff !important;
}
.btn-otp-blue:hover, .btn-otp-blue:focus, .btn-otp-blue:active {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Error highlighting for signup validation */
.input-error {
    box-shadow: 0 0 0 3px rgba(220,38,38,0.08) !important;
    border-color: #dc2626 !important;
}
.checkbox-error .checkbox-label {
    color: #dc2626 !important;
}

/* visually disabled button but still clickable so we can show warnings */
.btn-disabled {
    opacity: 0.6 !important;
    cursor: pointer !important;
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    padding: 12px 24px;
    border: 3px solid rgba(102, 126, 234, 0.4);
    border-radius: 18px;
    background-color: rgba(102, 126, 234, 0.05);
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.3),
        0 5px 12px rgba(0, 0, 0, 0.15),
        inset 0 0 0 2px rgba(102, 126, 234, 0.25);
}

.text-gradient::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    opacity: 0.3;
}

/* Hero Description */
.hero-description {
    font-size: 1.3rem;
    color: #4a5568 !important;
    line-height: 1.9;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.4s both;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Premium Gradient Button */
.btn-premium-gradient {
    position: relative;
    padding: 18px 42px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 12px 32px rgba(102, 126, 234, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1s ease-out 0.6s both;
    letter-spacing: 0.5px;
}

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

.btn-premium-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.btn-premium-gradient:hover::before {
    left: 100%;
}

.btn-premium-gradient:active {
    transform: translateY(-1px);
}

.btn-premium-gradient .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.btn-premium-gradient .btn-text {
    font-weight: 700;
}

/* Premium Outline Button */
.btn-premium-outline {
    position: relative;
    padding: 18px 42px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #667eea !important;
    background: #ffffff;
    border: 3px solid #667eea;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 28px rgba(102, 126, 234, 0.3),
        0 3px 10px rgba(0, 0, 0, 0.12);
    animation: fadeInUp 1s ease-out 0.7s both;
    letter-spacing: 0.5px;
}

.btn-premium-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.btn-premium-outline:hover {
    color: #ffffff !important;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.btn-premium-outline:hover::before {
    width: 100%;
}

.btn-premium-outline .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.btn-premium-outline .btn-text {
    font-weight: 700;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 10px 18px;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 
        0 6px 16px rgba(102, 126, 234, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

.stat-item i {
    color: #667eea;
    font-size: 1.3rem;
}

/* Hero Image Wrapper */
.hero-image-wrapper {
    position: relative;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-image {
    filter: drop-shadow(0 15px 35px rgba(102, 126, 234, 0.25));
    animation: floatImage 6s ease-in-out infinite;
}

/* Floating Cards on Hero Image */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: #ffffff;
    border-radius: 14px;
    border: 2px solid rgba(102, 126, 234, 0.35);
    box-shadow: 
        0 18px 45px rgba(102, 126, 234, 0.28),
        0 6px 14px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(102, 126, 234, 0.2);
    font-weight: 700;
    color: #667eea;
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: #667eea;
}

.floating-card-1 {
    top: 20%;
    right: -10%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 15%;
    left: -5%;
    animation-delay: 2s;
}

/* Features Section */
.features-section {
    background: #e8eef5;
    position: relative;
    border-top: 3px solid rgba(102, 126, 234, 0.15);
    border-bottom: 3px solid rgba(102, 126, 234, 0.15);
}

/* Section Headers */
.section-badge {
    display: inline-block;
    padding: 10px 24px;
    background: #ffffff;
    border: 2px solid rgba(102, 126, 234, 0.45);
    background-clip: padding-box;
    border-radius: 50px;
    color: #667eea;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 12px 28px rgba(102, 126, 234, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(102, 126, 234, 0.25);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #2d3748;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Feature Cards */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    background: #ffffff;
    border: 2px solid rgba(102, 126, 234, 0.3);
    background-clip: padding-box;
    height: 100%;
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.2),
        0 5px 12px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(102, 126, 234, 0.15);
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 
        0 20px 50px rgba(102, 126, 234, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 0 3px rgba(102, 126, 234, 0.4) !important;
}

.feature-card .icon-wrapper {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.15) rotate(5deg);
}

.feature-card h4 {
    color: #5a67d8 !important;
    font-weight: 700;
    font-size: 1.3rem;
}

.feature-card p {
    color: #4a5568 !important;
    line-height: 1.7;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Pricing Section */
.pricing-section {
    background: linear-gradient(180deg, #f8fafc 0%, #e8eef5 100%);
    padding: 100px 0;
    border-top: 3px solid rgba(102, 126, 234, 0.15);
    border-bottom: 3px solid rgba(102, 126, 234, 0.15);
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    background: #ffffff;
    border: 2px solid rgba(102, 126, 234, 0.3);
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 18px 45px rgba(102, 126, 234, 0.22),
        0 6px 14px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(102, 126, 234, 0.15);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 
        0 25px 60px rgba(102, 126, 234, 0.35),
        0 10px 25px rgba(0, 0, 0, 0.15),
        inset 0 0 0 3px rgba(102, 126, 234, 0.45) !important;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

/* Popular Pricing Card */
.pricing-card-popular {
    border: 3px solid rgba(102, 126, 234, 0.6) !important;
    background-clip: padding-box;
    transform: scale(1.05);
    box-shadow: 
        0 20px 55px rgba(102, 126, 234, 0.45),
        0 10px 22px rgba(0, 0, 0, 0.18),
        inset 0 0 0 2px rgba(102, 126, 234, 0.35) !important;
}

.pricing-card-popular:hover {
    transform: scale(1.08) translateY(-8px);
    border-color: rgba(102, 126, 234, 0.7) !important;
    box-shadow: 
        0 30px 70px rgba(102, 126, 234, 0.5),
        0 12px 30px rgba(0, 0, 0, 0.18),
        inset 0 0 0 4px rgba(102, 126, 234, 0.6) !important;
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 8px 40px;
    font-weight: 700;
    font-size: 0.85rem;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pricing-card h3 {
    color: #5a67d8 !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.pricing-card h2 {
    color: #667eea !important;
    font-weight: 800;
    font-size: 3rem;
}

.pricing-card p {
    color: #718096 !important;
}

.pricing-card li {
    color: #4a5568 !important;
    font-size: 1rem;
}

/* Pricing Buttons */
.btn-pricing-gradient {
    width: 100%;
    padding: 14px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-pricing-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(102, 126, 234, 0.4);
}

.btn-pricing-outline {
    width: 100%;
    padding: 14px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #667eea !important;
    background: #ffffff;
    border: 2px solid #667eea;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-pricing-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    z-index: 0;
}

.btn-pricing-outline:hover {
    color: #ffffff !important;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

.btn-pricing-outline:hover::before {
    width: 100%;
}

.btn-pricing-outline .btn-text {
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Text Selection */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: #5a67d8;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .pricing-card-popular {
        transform: scale(1);
    }
}

@media (max-width: 767px) {
    .hero-section-light {
        min-height: auto;
        padding: 20px 0 56px;
    }

    .hero-top-brand-frame {
        max-width: 100%;
        margin-bottom: 14px;
        padding: 12px 10px 14px;
        border-radius: 14px;
    }

    .hero-top-brand-inner {
        gap: 12px;
        flex-direction: column;
    }

    .hero-top-logo {
        width: min(240px, 72vw);
        max-height: 108px;
    }

    .hero-top-typing-svg {
        width: 100%;
        height: 48px;
    }

    .hero-top-highlight-text {
        font-size: 0.93rem;
        margin: 0 0 10px;
    }

    .hero-top-cta-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-top-kicker {
        font-size: 0.66rem;
    }

    .hero-top-title {
        font-size: 1.55rem;
    }

    .hero-top-subtitle {
        font-size: 0.92rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .btn-premium-gradient,
    .btn-premium-outline {
        width: 100%;
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-item {
        font-size: 0.9rem;
    }
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(180deg, #e8eef5 0%, #f8fafc 100%);
    padding: 100px 0;
    border-top: 3px solid rgba(102, 126, 234, 0.15);
}

.faq-item {
    background: #ffffff;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 18px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 
        0 12px 35px rgba(102, 126, 234, 0.18),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(102, 126, 234, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.2),
        0 5px 12px rgba(0, 0, 0, 0.12),
        inset 0 0 0 2px rgba(102, 126, 234, 0.25);
}

.faq-item .accordion-button {
    background: transparent;
    color: #2d3748;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 26px 30px;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.faq-item .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: #667eea;
    box-shadow: none;
}

.faq-item .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.faq-item .accordion-button::after {
    background-image: none;
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.2rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-item .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.faq-item .accordion-button i.fa-question-circle {
    color: #667eea;
    font-size: 1.3rem;
}

.faq-item .accordion-body {
    padding: 26px 30px;
    color: #4a5568;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.9;
    border-top: 2px solid rgba(102, 126, 234, 0.12);
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.03) 0%, transparent 100%);
}

.faq-item .accordion-collapse {
    border: none;
}

@media (max-width: 767px) {
    /* Make modal dialogs nearly full width on small screens */
    .modal-dialog.modal-lg,
    .modal-dialog.modal-md {
        max-width: 95%;
        margin: 0.5rem;
        width: auto;
    }

    /* Reduce hero padding on very small screens */
    .hero-section-light {
        padding: 16px 0 40px;
    }

    /* Form container padding and spacing adjustments */
    .auth-form-container {
        padding: 18px !important;
    }

    /* Ensure form header centers on mobile */
    .auth-header {
        text-align: center;
        margin-bottom: 12px;
    }

    /* Stack inline input + button groups vertically for touch targets */
    .input-wrapper-modern .d-flex,
    .input-wrapper-modern .d-flex > * {
        width: 100%;
    }

    .input-wrapper-modern .d-flex {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    /* Make OTP / small action buttons full width in stacked layout */
    .input-wrapper-modern .d-flex button,
    .auth-form .btn-sm {
        width: 100% !important;
    }

    /* Increase touch target for auth submit */
    .btn-auth-submit {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
    }

    /* Make form inputs slightly larger and easier to tap */
    .form-input-modern {
        padding: 12px 14px;
        font-size: 1rem;
    }

    /* Reduce banner area (hidden on small screens via markup), ensure form fills modal */
    .col-lg-7 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Fine tune spacing for checkbox and links */
    .form-options {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    /* Ensure auth modals are scrollable and buttons visible on small screens */
    .premium-auth-modal {
        max-height: calc(100vh - 40px);
        overflow: hidden;
        border-radius: 12px;
    }

    .premium-auth-modal .p-4,
    .premium-auth-modal .auth-form-container {
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }

    /* Make the form take available space so footer / submit button stays visible */
    .premium-auth-modal .auth-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        flex: 1 1 auto;
    }

    /* Push footer to bottom so it's visible and not cut off */
    .premium-auth-modal .auth-footer {
        margin-top: 12px;
        flex-shrink: 0;
    }

    /* Ensure primary submit is above other overlays */
    .btn-auth-submit {
        position: relative;
        z-index: 3;
    }
}

@media (max-width: 480px) {
    .hero-top-brand-inner {
        text-align: center;
    }

    .hero-top-brand-copy {
        text-align: center;
    }

    .hero-top-mark-icon {
        width: 20px;
        height: 20px;
    }

    .hero-top-logo {
        width: min(210px, 76vw);
        max-height: 96px;
    }

    .hero-top-typing-svg {
        height: 42px;
    }

    .hero-top-highlight-text {
        font-size: 0.86rem;
        margin: 0 0 8px;
    }

    .hero-top-cta-btn {
        width: 100%;
        max-width: 260px;
    }

    .hero-top-title {
        font-size: 1.32rem;
    }

    .hero-top-subtitle {
        font-size: 0.86rem;
    }

    .hero-title { font-size: 1.6rem; }
    .hero-description { font-size: 1rem; }
}