/* ============================================
   APKA DESIGN PLACE - Background Remover UI
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4169E1;
    --dark-blue: #2952CC;
    --text-dark: #2C3E50;
    --text-gray: #6B7280;
    --bg-light: #F9FAFB;
    --border-gray: #E5E7EB;
    --highlight-orange: #FF6B4A;
    --side-pad: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #FFFFFF;
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header Styles */
.main-header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.logo-section {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 20px;
    transition: color 0.3s ease;
}

.btn-login:hover {
    color: var(--primary-blue);
}

.btn-signup {
    background: #2246B1;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    background: #1a3690;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 70, 177, 0.3);
}

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

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

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.text-highlight {
    color: var(--highlight-orange);
}

.hero-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Upload Container */
.upload-container {
    max-width: 900px;
    margin: 0 auto 60px;
}

.upload-area {
    background: white;
    border: 2px dashed #D1D5DB;
    border-radius: 20px;
    width: 1170px;
    height: 517px;
    max-width: 100%;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background-image:
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary-blue);
    background-color: rgba(65, 105, 225, 0.02);
}

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

.btn-upload {
    background: #2246B1;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-upload:hover {
    background: #1a3690;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 70, 177, 0.3);
}

.upload-text {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 600;
}

.error-message {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 107, 74, 0.1);
    border: 1px solid var(--highlight-orange);
    border-radius: 8px;
    color: var(--highlight-orange);
    text-align: center;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

/* Sample Section */
.sample-section {
    text-align: center;
    margin-top: 60px;
    padding: 0 40px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.sample-text {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 25px;
    font-weight: 500;
}

.sample-images-svg {
    max-width: 100%;
    height: auto;
    margin-bottom: 40px;
}

/* Achievement Icons */
.achievement-icons {
    display: flex;
    justify-content: center;
    gap: 92px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.achievement-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.achievement-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.3;
}

/* Permission Notice Box */
.permission-notice-box {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #E0E7FF;
    border-radius: 16px;
    padding: 35px 40px;
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.08);
    transition: all 0.3s ease;
}

.permission-notice-box:hover {
    box-shadow: 0 8px 24px rgba(65, 105, 225, 0.15);
    transform: translateY(-2px);
}

.permission-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.permission-icon svg {
    filter: drop-shadow(0 2px 4px rgba(65, 105, 225, 0.2));
}

.permission-content {
    text-align: center;
}

.permission-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.permission-text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.permission-footer {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

.privacy-link {
    color: #4169E1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.privacy-link:hover {
    text-decoration: underline;
    color: var(--dark-blue);
}

/* Feature Showcase Section */
.feature-showcase-section {
    background: white;
    padding: 80px 220px;
    margin-top: 80px;
}

.feature-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: center;
}

.feature-content {
    flex: 1;
    max-width: 500px;
}

.feature-title {
    font-size: 40px;
    font-weight: 700;
    color: #1E3A5F;
    line-height: 1.3;
    margin-bottom: 20px;
}

.feature-description {
    font-size: 16px;
    color: #5A6C7D;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-start-creating {
    background: #FF6B4A;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-start-creating:hover {
    background: #e55a3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.3);
}

.feature-gallery {
    flex: 1;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.gallery-column {
    flex: 1;
    overflow: hidden;
    height: 300px;
    /* visible window */
    position: relative;
}

/* The scrolling track inside each column */
.gallery-track {
    display: flex;
    flex-direction: column;
    gap: 15px;
    will-change: transform;
}

/* Column 1 scrolls UP */
.gallery-track-up {
    animation: scrollUp 12s linear infinite;
}

/* Column 2 scrolls DOWN */
.gallery-track-down {
    animation: scrollDown 12s linear infinite;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@keyframes scrollDown {
    0% {
        transform: translateY(-50%);
    }

    100% {
        transform: translateY(0);
    }
}

/* Pause on hover */
.gallery-column:hover .gallery-track {
    animation-play-state: paused;
}

.feature-image {
    border-radius: 12px;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}


/* Platform Section */
.platform-section {
    background: white;
    padding: 80px 40px;
    text-align: center;
}

.platform-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.platform-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Features Cards Section */
.features-cards-section {
    background: white;
    padding: 60px 40px 80px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.feature-card {
    padding: 40px 30px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.feature-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

/* Card Colors */
.card-blue {
    background: #E8EAF6;
}

.card-pink {
    background: #FCE4EC;
}

.card-yellow {
    background: #FFF9C4;
}

.card-light-blue {
    background: #E1F5FE;
}

.card-beige {
    background: #FFF3E0;
}

.card-purple {
    background: #F3E5F5;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.btn-try-free,
.btn-see-how {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-try-free {
    background: white;
    color: #1E3A8A;
    border: 2px solid #E5E7EB;
    box-shadow: -8px 4px 14px rgba(30, 58, 138, 0.25), 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-try-free:hover {
    background: #F9FAFB;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-see-how {
    background: #2E5AAC;
    color: white;
}

.btn-see-how:hover {
    background: #1E3A8A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 90, 172, 0.4);
}

/* How to Remove Background Section */
.how-to-section {
    background: linear-gradient(90deg, #3d5a80 0%, #7b4e7e 50%, #ee6c4d 100%);
    padding: 100px 40px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.how-to-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.how-to-container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.how-to-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 70px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 100%;
    margin: 0 auto;
}

.step-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 50px 35px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-1::before {
    background: linear-gradient(90deg, #3d5a80 0%, #2c4563 100%);
}

.step-2::before {
    background: linear-gradient(90deg, #a855a8 0%, #7b4e7e 100%);
}

.step-3::before {
    background: linear-gradient(90deg, #ee6c4d 0%, #d95d3f 100%);
}

.step-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.15);
}

.step-card:hover::before {
    opacity: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin: 0 0 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.6;
}

.step-1 .step-number {
    background: linear-gradient(135deg, #3d5a80 0%, #2c4563 100%);
}

.step-2 .step-number {
    background: linear-gradient(135deg, #a855a8 0%, #7b4e7e 100%);
}

.step-3 .step-number {
    background: linear-gradient(135deg, #ee6c4d 0%, #d95d3f 100%);
}

.step-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a2332;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.step-description {
    font-size: 16px;
    color: #5a6c7d;
    line-height: 1.7;
    font-weight: 400;
}


/* Loading Section */
.loading-section {
    padding: 100px 40px;
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #E5E7EB;
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

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

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

.loading-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 16px;
    color: var(--text-gray);
}

/* Results Section */
.results-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.results-header h2 {
    font-size: 32px;
    color: var(--text-dark);
    font-weight: 700;
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-gray);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-blue);
}

/* Comparison Container */
.comparison-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.image-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-gray);
}

.image-card h3 {
    padding: 15px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-gray);
}

.image-wrapper {
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: white;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 450px;
    border-radius: 8px;
    object-fit: contain;
}

/* Checkerboard background for transparency */
.checkerboard {
    background-image:
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 40px;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ── Download Quality Dropdown ── */
.download-dropdown {
    position: relative;
    display: inline-block;
}

.download-main-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-arrow {
    font-size: 14px;
    transition: transform 0.2s;
}

.download-options {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    overflow: hidden;
    z-index: 100;
}

.download-options.show {
    display: block;
    animation: fadeSlideUp 0.18s ease;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.download-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.download-option:hover {
    background: #f4f5f7;
}

.download-option+.download-option {
    border-top: 1px solid #f0f0f0;
}

.option-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.option-info {
    display: flex;
    flex-direction: column;
}

.option-info strong {
    font-size: 15px;
    color: #1a2340;
}

.option-info small {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 16px 48px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.3);
}

/* Footer Styles */
.main-footer {
    background: white;
    padding: 30px 0;
    border-top: 1px solid var(--border-gray);
    margin-top: 60px;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.footer-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .comparison-container {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }

    .main-nav {
        gap: 25px;
    }

    .main-content {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .upload-area {
        padding: 60px 30px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* Sample section responsive */
    .sample-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .permission-side-panel {
        flex: 1;
        width: 100%;
    }

    .achievement-icons {
        padding: 15px;
    }

    .achievement-item img {
        width: 50px;
        height: 50px;
    }

    .achievement-item span {
        font-size: 11px;
    }

    /* Feature showcase responsive */
    .feature-container {
        flex-direction: column;
        gap: 50px;
    }

    .feature-content {
        max-width: 100%;
        text-align: center;
    }

    .feature-title {
        font-size: 32px;
    }

    .platform-title {
        font-size: 36px;
    }

    /* How-to section responsive */
    .steps-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .how-to-title {
        font-size: 32px;
    }

    .how-to-section {
        padding: 60px 30px;
    }

    .step-card {
        padding: 40px 30px;
    }

    .step-number {
        width: 70px;
        height: 70px;
        font-size: 40px;
    }

    .step-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-description {
        font-size: 14px;
    }

    .upload-area {
        padding: 40px 20px;
    }

    .sample-images {
        gap: 15px;
    }

    .sample-image {
        width: 100px;
        height: 100px;
    }
}

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

/* Selection color */
::selection {
    background: var(--primary-blue);
    color: white;
}

::-moz-selection {
    background: var(--primary-blue);
    color: white;
}

/* ─── NEW FOOTER AND SECTIONS STYLES ─── */

:root {
    --navy: #1a2340;
    --coral: #e8553e;
    --teal: #3ec8c8;
    --orange: #f5a623;
    --text: #2d3148;
    --muted: #6b7280;
    --light-bg: #f4f5f7;
}

/* ─── CTA BUTTONS ─── */
.cta-section {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 48px 24px 0;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.btn-outline {
    background: #fff;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-solid {
    background: var(--navy);
    color: #fff;
}

/* ─── HOW-TO SECTION ─── */
.how-section {
    margin: 48px 24px 0;
    border-radius: 20px;
    background: linear-gradient(120deg, var(--navy) 0%, #2a3a6e 40%, var(--coral) 100%);
    padding: 48px 40px;
    color: #fff;
}

.how-section h2 {
    text-align: center;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 40px;
    color: #fff;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-num {
    font-size: 72px;
    font-weight: 800;
    opacity: .2;
    line-height: 1;
    color: #fff;
}

.step-content {}

.step-content p {
    font-size: 15px;
    line-height: 1.6;
    opacity: .9;
    color: #fff;
}

/* ─── FOOTER ─── */
.footer-wave {
    margin-top: -1px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.footer-wave svg {
    display: block;
    fill: #fff;
}

.footer-main {
    background: transparent;
    padding: 48px var(--side-pad) 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 220px 1fr 1fr 1fr 1fr;
    gap: 32px;
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .how-section {
        padding: 32px 20px;
    }
}

/* Logo Block */
.logo-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.logo-icon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
}

.logo-icon span {
    display: block;
}

.logo-icon .tl {
    background: var(--teal);
}

.logo-icon .tr {
    background: var(--navy);
}

.logo-icon .bl {
    background: var(--coral);
}

.logo-icon .br {
    background: var(--orange);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .apka {
    color: var(--coral);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text .design {
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
}

.logo-text .place {
    color: var(--coral);
    font-size: 18px;
    font-weight: 800;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tagline {
    font-family: 'Caveat', cursive;
    font-size: 18px;
    color: var(--text);
    margin-top: 4px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dde0e8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--navy);
    font-size: 15px;
    transition: background .2s, color .2s;
}

.social-icons a:hover {
    background: var(--navy);
    color: #fff;
}

/* Footer Nav */
.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    transition: color .2s;
}

.footer-col ul li a:hover {
    color: var(--coral);
}

/* Contact */
.contact-col {}

.contact-col .brand-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 16px;
}

.contact-col p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
}

/* ─── FOOTER BOTTOM ─── */
.footer-bottom {
    background: var(--navy);
    color: #fff;
    padding: 20px var(--side-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-radius: 0 0 16px 16px;
    margin: 0 var(--side-pad) 24px;
}

.footer-bottom .copy {
    font-size: 13px;
    opacity: .7;
}

.footer-bottom .made {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-bottom .center-text {
    font-size: 14px;
    opacity: .8;
}

.footer-bottom .center-text span {
    color: var(--coral);
    font-weight: 600;
}

.payment-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pay-chip {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff;
}

.pay-chip.visa {
    background: #1a1f71;
}

.pay-chip.disc {
    background: #e65c00;
}

.pay-chip.amex {
    background: #007bc1;
}

.pay-chip.mc {
    background: #eb001b;
}
/* ═══════════════════════════════════════
   PHONE OTP AUTH MODAL
   ═══════════════════════════════════════ */

.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.auth-overlay.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.auth-modal {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    animation: slideUp 0.25s ease;
    text-align: center;
}

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

.auth-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none; border: none;
    font-size: 20px; cursor: pointer;
    color: #6b7280;
    transition: color 0.15s;
}
.auth-close:hover { color: #1a2340; }

.auth-icon { font-size: 44px; margin-bottom: 12px; }

.auth-title { font-size: 22px; font-weight: 700; color: #1a2340; margin-bottom: 6px; }
.auth-sub   { font-size: 14px; color: #6b7280; margin-bottom: 24px; }

.auth-field {
    text-align: left;
    margin-bottom: 16px;
}
.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.auth-field input:focus { border-color: var(--primary-blue); }

.auth-error {
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 12px;
    text-align: left;
}
.auth-error.hidden { display: none; }

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s, transform 0.15s;
}
.auth-btn:hover  { background: var(--dark-blue); transform: translateY(-1px); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* OTP Boxes */
.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}
.otp-box {
    width: 48px; height: 56px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1a2340;
    outline: none;
    transition: border-color 0.2s;
}
.otp-box:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(65,105,225,0.15); }

/* Resend Row */
.resend-row {
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}
.resend-link {
    background: none; border: none;
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.resend-link.hidden { display: none; }

/* Login Indicator */
.login-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    padding: 6px 14px;
    background: #f0f4ff;
    border-radius: 50px;
    margin-left: auto;
}
.logout-btn {
    background: none; border: 1px solid #e5e7eb;
    border-radius: 50px; padding: 4px 12px;
    font-size: 13px; color: #dc2626;
    cursor: pointer; transition: background 0.15s;
}
.logout-btn:hover { background: #fef2f2; }
