:root {
    --apple-gray: #f5f5f7;
    --apple-dark: #1d1d1f;
    --apple-bg: #f5f5f7;
    --glass: rgba(255, 255, 255, 0.7);
    --main-color: #2fa8e1;
    --main-color-hover: #3d94bd;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--apple-dark);
    background-color: var(--apple-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Navbar Styling */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: transparent;
    padding: 1.2rem 0;
}

.navbar.scrolled {
    background: var(--glass);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

.navbar-brand img {
    height: 50px !important;
    width: auto !important;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 40px;
    }
}

/* Hero Section */
.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #ffffff 0%, #f0f0f2 100%);
    padding-top: 80px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Product Cards & Glassmorphism */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Product Showcase Layout */
.product-image {
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}

.product-section:hover .product-image {
    transform: scale(1.05) rotate(-2deg);
}

.btn-apple {
    background: var(--main-color);
    color: white;
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-apple:hover {
    background: var(--main-color-hover);
    color: white;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 120px 0 60px 0;
    }
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: none;
    /* hidden by default */
    z-index: 2000;
}


/* Card Styling */
.premium-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 22px !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Product Image Transition */
.product-img {
    height: 200px;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.05));
}

.premium-card:hover .product-img {
    transform: scale(1.08);
}

/* Favorite Button Interaction */
.fav-btn {
    border: none;
    background: rgba(240, 240, 240, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--apple-black);
}

.fav-btn.active {
    background: var(--main-color);
    color: #fff;
}


.fav-btn:hover {
    background: white;
    transform: scale(1.1);
}

.fav-btn.active i {
    color: #ff3b30;
    animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Button Styling */
.btn-apple-dark {
    background-color: var(--apple-black);
    color: white;
    border: none;
    transition: opacity 0.3s ease;
}

.btn-apple-dark:hover {
    background-color: #323236;
    color: white;
    opacity: 0.9;
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .premium-card {
        border-radius: 18px !important;
    }

    .product-img {
        height: 180px;
    }
}


/* Premium Typography Styling */
.stat-number {
    letter-spacing: -0.03em;
    color: #1d1d1f;
    background: linear-gradient(180deg, #1d1d1f 60%, #86868b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

/* Card & Hover Effects */
.stat-card {
    background-color: #f5f5f7;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    border: 1px solid transparent !important;
}

.stat-card:hover {
    background-color: #ffffff;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.05) !important;
}

/* Icon Color - Using Apple-style Blue */
.text-primary {
    color: #0071e3 !important;
}

/* Layout Utility: Smooth transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Mobile Fine-tuning */
@media (max-width: 991px) {
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 2rem !important;
    }
}

/* Testimonial Styling */
.testimonial-card {
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06) !important;
    background: #fafafa;
}

/* Partner Styling */
.partner-box {
    padding: 20px;
    transition: transform 0.3s ease;
}

.partner-logo {
    color: #d2d2d7;
    transition: all 0.4s ease;
    filter: grayscale(100%);
    opacity: 0.6;
}

.partner-box:hover .partner-logo {
    color: #1d1d1f;
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Section Spacing Utility */
.border-top {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .partner-logo {
        font-size: 2rem !important;
    }

    .testimonial-card {
        padding: 1.5rem !important;
    }
}

/* Premium Card Design */
.guideline-card {
    background-color: #ffffff;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.guideline-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08) !important;
    background-color: #ffffff;
}

/* Step Number Typography */
.step-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #86868b;
    font-variant-numeric: tabular-nums;
    background: #f5f5f7;
    padding: 8px 16px;
    border-radius: 12px;
}

/* Typographic hierarchy for descriptions */
.guideline-card p,
.guideline-card li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #424245;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .guideline-card {
        padding: 2rem !important;
    }
}

@media (max-width: 576px) {
    .display-5 {
        font-size: 2.2rem;
    }
}

.list-group-item {
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--apple-secondary);
    font-size: 0.95rem;
}

.list-group-item strong {
    color: var(--apple-black);
}

/* Selection Color */
::selection {
    background: rgba(0, 102, 204, 0.1);
    color: var(--apple-blue);
}

/* Mobile fine-tuning */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Page Wrapper */
.auth-wrapper {
    min-height: 100vh;
    background-color: var(--apple-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Card Styling */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12) !important;
}

/* Input Field Styling */
.custom-input-group .form-control,
.custom-input-group .input-group-text,
.custom-input-group .btn {
    background-color: #ffffff;
    border-color: #dee2e6;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}


.custom-input-group:focus-within {
    box-shadow: 0 0 0 4px var(--input-focus);
    border-radius: 8px;
}

/* Button Styling */
.btn-apple-primary {
    background-color: var(--apple-dark);
    color: white;
    border-radius: 14px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-apple-primary:hover {
    background-color: #424245;
    transform: scale(1.01);
    color: white;
}

.btn-apple-primary:disabled {
    background-color: #303035;
    transform: scale(1.01);
    color: white;
}

.btn-apple-primary:active {
    transform: scale(0.98);
}

/* Checkbox Tint */
.form-check-input:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

/* Accessibility and Mobile */
@media (max-width: 576px) {
    .auth-card {
        padding: 2rem !important;
        margin: 15px;
    }
}

/* custom colors */
.custom-background {
    background-color: var(--main-color) !important;
}

.custom-color {
    color: var(--main-color) !important;
}

.active {
    color: var(--main-color) !important;
    font-weight: bold;
}

/* --- PWA Install Popup (Always Visible Version) --- */
.pwa-install-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 340px;
    z-index: 9999;
    background: linear-gradient(135deg, #e8e8ed 0%, #d1d1d6 100%);
    /* var(--apple-card) with transparency */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 113, 227, 0.15);
    padding: 18px;
    animation: pwaSlideUp 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes pwaSlideUp {
    from {
        transform: translateY(120%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--main-color), var(--main-color-hover));
    /* var(--apple-blue) to Indigo */
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-install-pwa {
    background: var(--main-color);
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-install-pwa:hover {
    background: var(--main-color-hover);
    transform: scale(1.03);
    box-shadow: 0 0 15px var(--main-color-hover);
}

.ios-guide-text {
    font-size: 0.8rem;
    color: var(--apple-dark);
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}