* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html, body {
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: #F8F9FA;
    overflow: hidden;
}

body {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    overscroll-behavior: none;
    position: relative;
    height: 100%;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-image: url('../../img/background.png');
    background-size: cover;
    background-position: center;
    padding: 20px;
    padding-bottom: 90px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.plan-selector {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 5px;
    display: flex;
    margin: 0 auto 20px;
    width: 250px;
    position: relative;
}

.plan-option {
    flex: 1;
    padding: 10px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    font-weight: 500;
    user-select: none;
    color: #000;
}

.slider {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.plan-option.active {
    color: #000;
}

.slider.premium {
    transform: translateX(calc(100% + 5px));
}

.plans-container {
    position: relative;
    flex: 1;
}

.plan-content {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.3s ease;
}

.plan-content.active {
    opacity: 1;
    visibility: visible;
}

.plan-header {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 25px;
    font-weight: 500;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.feature-icon img {
    width: 100%;
    height: 100%;
}

.feature-text {
    font-size: 15px;
    color: #000;
}

.current-plan-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    margin-top: 25px;
    cursor: default;
    color: #333;
}

.premium-price {
    text-align: center;
    font-weight: 600;
    margin: 25px 0;
    font-size: 18px;
}

.premium-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.premium-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px 15px 0 0;
    margin: 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #8E8E93;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 15px;
    padding: 8px 12px;
    user-select: none;
    outline: none;
}

.nav-item:active {
    transform: scale(0.9);
    background: rgba(0, 122, 255, 0.1);
}

.nav-item:hover {
    background: none;
}

.nav-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon img {
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease;
}

.nav-item:active .nav-icon img {
    transform: scale(0.85);
}

.nav-item:active span {
    transform: scale(0.95);
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item.active {
    color: #007AFF;
}

button {
    cursor: pointer;
    transition: transform 0.1s ease;
    user-select: none;
    outline: none;
}

button:active {
    transform: scale(0.95);
}

@media (max-width: 374px) {
    .container {
        padding: 15px;
        padding-bottom: 90px;
    }
    
    .plan-selector {
        width: 220px;
    }

    .feature-text {
        font-size: 14px;
    }
}

/* ===== Glassmorphism for plan page ===== */
.plan-selector,
.plan-content,
.bottom-nav {
    background: rgba(255, 255, 255, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}