/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    height: 38px;
    box-sizing: border-box;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

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

.btn-outline:hover {
    background: var(--surface);
    border-color: var(--text-muted);
}

.store-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #000;
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 0.8rem;
    min-width: 170px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.store-button:hover {
    background: #111;
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.store-button img {
    width: 24px;
}

.store-text {
    display: flex;
    flex-direction: column;
}

.store-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.store-main {
    font-size: 1.125rem;
}

/* Cards */
.feature-card {
    background: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(10px);
    padding: 3.5rem 2.5rem;
    border-radius: 2.5rem;
    border: 1px solid rgba(248, 250, 252, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #F8FAFC;
    border-color: var(--primary-light);
}

.feature-card:nth-child(even) {
    background-color: var(--surface);
}

.feature-icon {
    width: clamp(80px, 15vw, 120px);
    height: clamp(80px, 15vw, 120px);
    background: transparent;
    color: #ffffff;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    padding: 0;
    transition: all 0.3s ease;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.discount-cta {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    padding: 1.1rem 2.5rem;
    background: var(--primary);
    border-radius: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.discount-cta:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #F8FAFC;
    padding: 2.5rem;
    border-radius: 2rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-primary);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header img {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: block;
    /* Ensure it's block to respect margin auto */
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    width: 100%;
    padding: 0.875rem;
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.btn-google:hover {
    background: #f8fafc;
    border-color: var(--text-muted);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.btn-google img,
.btn-apple img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.btn-apple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    width: 100%;
    padding: 0.875rem;
    background: #000000;
    border: none;
    border-radius: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-apple:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.btn-apple img {
    filter: brightness(0) invert(1);
}

/* Hero Carousel Dots */
.hero-carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 60;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}