/* ============================================
   SUBSCRIPTION SYSTEM - PREMIUM PLANS
   ============================================ */

/* Subscribe Button in Navbar - Animated & Modern */
.nav-subscribe-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.2rem;
    font-family: 'Russo One', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 25px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #ff0040, #ff6600, #ffcc00);
    background-size: 200% 200%;
    animation: subscribeGradient 3s ease infinite;
    color: white;
    box-shadow: 
        0 4px 15px rgba(255, 0, 64, 0.4),
        0 0 30px rgba(255, 102, 0, 0.2);
    white-space: nowrap;
    z-index: 1;
}

@keyframes subscribeGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-subscribe-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.nav-subscribe-btn:hover::before {
    left: 100%;
}

.nav-subscribe-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(255, 0, 64, 0.5),
        0 0 40px rgba(255, 102, 0, 0.4),
        0 0 60px rgba(255, 204, 0, 0.2);
}

.nav-subscribe-btn .subscribe-icon {
    font-size: 1.1rem;
    animation: crownBounce 2s ease-in-out infinite;
}

@keyframes crownBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(-5deg); }
    75% { transform: translateY(-2px) rotate(5deg); }
}

.nav-subscribe-btn .subscribe-text {
    position: relative;
}

.nav-subscribe-btn .subscribe-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #00ff00;
    color: #000;
    font-size: 0.5rem;
    padding: 2px 5px;
    border-radius: 8px;
    font-weight: 700;
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Premium User Badge in Navbar */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: premiumShine 2s linear infinite;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

@keyframes premiumShine {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
    100% { filter: brightness(1); }
}

/* ============================================
   SUBSCRIPTION MODAL - COMPACT & PROFESSIONAL
   ============================================ */
.subscription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 12%, rgba(0, 214, 160, 0.12), transparent 36%),
        rgba(0, 0, 0, 0.84);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999999998;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.subscription-modal.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

/* Closing animation */
.subscription-modal.closing {
    display: flex !important;
    opacity: 0;
    visibility: hidden;
}

.subscription-modal.closing .subscription-container {
    animation: modalSlideOut 0.25s ease-in forwards;
}

.subscription-container {
    width: 100%;
    max-width: 760px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
        linear-gradient(165deg, #121522 0%, #090a11 100%);
    border-radius: 18px;
    border: 1px solid rgba(255, 215, 0, 0.18);
    overflow: hidden;
    animation: modalSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 26px 80px rgba(0, 0, 0, 0.68),
        0 0 46px rgba(0, 214, 160, 0.10);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* Animated glow border - Subtle */
.subscription-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(90deg, #00d6a0, #ffd700, #ff2d55, #00d6a0);
    background-size: 200% 200%;
    border-radius: 17px;
    z-index: -1;
    animation: glowBorder 4s ease infinite;
    opacity: 0.5;
}

@keyframes glowBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}

/* Modal Header - Compact */
.subscription-header {
    text-align: center;
    padding: 24px 24px 18px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.12), transparent 58%),
        linear-gradient(180deg, rgba(0, 214, 160, 0.08) 0%, transparent 100%);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.subscription-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d6a0, #ffd700, #ff2d55, transparent);
}

.subscription-header-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 214, 160, 0.28);
    background: rgba(0, 214, 160, 0.08);
    color: #a8ffe6;
    font-family: 'Russo One', sans-serif;
    font-size: 0.64rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* Header icon with animation */
.subscription-header-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
    display: inline-block;
}

.subscription-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.subscription-close:hover {
    background: rgba(255, 45, 85, 0.25);
    border-color: rgba(255, 45, 85, 0.4);
    color: white;
    transform: scale(1.1);
}

.subscription-title {
    font-family: 'Russo One', sans-serif;
    font-size: 1.55rem;
    background: linear-gradient(135deg, #ffffff 0%, #fff0a6 48%, #00d6a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.subscription-subtitle {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.86rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Plans Container - Compact */
.plans-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 18px 22px 22px;
}

@media (max-width: 600px) {
    .plans-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 15px 15px;
    }
}

/* Plan Card - Compact & Clean */
.plan-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
        rgba(9, 12, 22, 0.88);
    border-radius: 14px;
    padding: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.plan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 102, 0, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.plan-card:hover::before {
    transform: translateX(100%);
}

/* Standard Plan */
.plan-card.standard {
    border-color: rgba(0, 214, 160, 0.35);
}

.plan-card.standard:hover {
    border-color: rgba(0, 214, 160, 0.7);
    box-shadow: 
        0 20px 50px rgba(0, 214, 160, 0.20),
        0 0 40px rgba(0, 214, 160, 0.10);
}

.plan-card.standard .plan-icon {
    background: linear-gradient(135deg, #a8ffe6, #00d6a0);
    color: #06130f;
    box-shadow: 0 4px 18px rgba(0, 214, 160, 0.28);
}

.plan-card.standard .plan-price {
    color: #a8ffe6;
    text-shadow: 0 0 30px rgba(0, 214, 160, 0.26);
}

.plan-card.standard .plan-subscribe-btn {
    background: linear-gradient(135deg, #00d6a0, #42f3ff);
    color: #041311;
    box-shadow: 0 4px 20px rgba(0, 214, 160, 0.24);
}

/* Premium Plan */
.plan-card.premium {
    border-color: rgba(255, 215, 0, 0.42);
    background:
        radial-gradient(circle at 80% 0%, rgba(255, 215, 0, 0.15), transparent 42%),
        linear-gradient(165deg, rgba(255, 45, 85, 0.08) 0%, rgba(255, 215, 0, 0.06) 50%, rgba(255, 255, 255, 0.02) 100%);
}

.plan-card.premium::after {
    content: 'BEST';
    position: absolute;
    top: 10px;
    right: -28px;
    background: linear-gradient(135deg, #ffd700, #ff2d55);
    color: #170b00;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 3px 30px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.plan-card.premium:hover {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 
        0 20px 50px rgba(255, 215, 0, 0.22),
        0 0 60px rgba(255, 45, 85, 0.13);
}

.plan-card.premium .plan-icon {
    background: linear-gradient(135deg, #fff2a8, #ffd700);
    color: #170b00;
    box-shadow: 0 4px 18px rgba(255, 215, 0, 0.32);
}

.plan-card.premium .plan-price {
    background: linear-gradient(135deg, #fff2a8, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-card.premium .plan-subscribe-btn {
    background: linear-gradient(135deg, #ff2d55, #ff6b35);
    box-shadow: 0 4px 15px rgba(255, 45, 85, 0.3);
}

/* Plan Icon - Compact */
.plan-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Russo One', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

/* Plan Name */
.plan-name {
    font-family: 'Russo One', sans-serif;
    font-size: 1rem;
    color: white;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Plan Price */
.plan-price {
    font-family: 'Russo One', sans-serif;
    font-size: 2rem;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.plan-card:hover .plan-price {
    transform: scale(1.05);
}

.plan-price span {
    font-size: 0.9rem;
    opacity: 0.7;
}

.plan-billing {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Features List - Compact */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li .feature-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
}

.plan-features li .feature-icon.check {
    background: rgba(0, 255, 100, 0.15);
    color: #00ff66;
}

.plan-features li .feature-icon.limited {
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
}

.plan-features li .feature-icon.cross {
    background: rgba(255, 60, 80, 0.15);
    color: #ff3c50;
}

/* Subscribe Button - Compact */
.plan-subscribe-btn {
    width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-family: 'Russo One', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.plan-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.plan-subscribe-btn:disabled {
    cursor: not-allowed;
    transform: none !important;
}

/* Current Plan Badge */
.current-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 8px;
}

/* Free Plan Notice */
.free-plan-notice {
    text-align: center;
    padding: 12px 20px 18px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.free-plan-notice a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.free-plan-notice a:hover {
    color: #ff6b35;
}

/* ============================================
   SUBSCRIPTION STATUS INDICATORS
   ============================================ */

/* User dropdown premium indicator */
.user-plan-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.user-plan-status.free {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
}

.user-plan-status .plan-type {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-plan-status.premium .plan-type {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Store item lock overlay */
.store-item-locked {
    position: relative;
}

.store-item-locked::after {
    content: '🔒 PREMIUM';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff0040, #ff6600);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

/* Favorites limit warning */
.favorites-limit-warning {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1), rgba(255, 102, 0, 0.05));
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffcc00;
    font-size: 0.9rem;
}

.favorites-limit-warning .upgrade-link {
    color: #ff6600;
    text-decoration: none;
    font-weight: 600;
    margin-left: auto;
    transition: color 0.3s;
}

.favorites-limit-warning .upgrade-link:hover {
    color: #ff0040;
}

/* ============================================
   📱 MOBILE RESPONSIVE - ULTRA COMPACT
   ============================================ */
@media (max-width: 768px) {
    .nav-subscribe-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.6rem;
    }
    
    .nav-subscribe-btn .subscribe-text {
        display: none;
    }
    
    .nav-subscribe-btn .subscribe-badge {
        font-size: 0.5rem;
        padding: 2px 4px;
    }
    
    .subscription-modal {
        padding: 0 !important;
    }
    
    .subscription-modal.active {
        padding: 0 !important;
        align-items: flex-start !important;
        overflow-y: auto !important;
    }
    
    .subscription-container {
        max-width: 100% !important;
        width: 100% !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .subscription-header {
        padding: 15px 15px 12px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: linear-gradient(135deg, rgba(255, 0, 64, 0.2), rgba(20, 20, 30, 0.98)) !important;
    }
    
    .subscription-close {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.5rem !important;
        z-index: 11 !important;
    }
    
    .subscription-title {
        font-size: 1.2rem !important;
        padding-right: 40px !important;
    }
    
    .subscription-subtitle {
        font-size: 0.75rem !important;
        margin-top: 5px !important;
    }
    
    /* Plans Container - Stack vertically */
    .plans-container {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 12px !important;
    }
    
    /* Plan Cards - Ultra Compact */
    .plan-card {
        padding: 14px !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    .plan-card.premium {
        transform: none !important;
        margin: 0 !important;
    }
    
    .plan-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
    }
    
    .plan-name {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
    
    .plan-price {
        font-size: 1.8rem !important;
        margin-bottom: 4px !important;
    }
    
    .plan-price span {
        font-size: 0.8rem !important;
    }
    
    .plan-billing {
        font-size: 0.7rem !important;
        margin-bottom: 10px !important;
    }
    
    /* Features List - Compact */
    .plan-features {
        margin-bottom: 12px !important;
    }
    
    .plan-features li {
        font-size: 0.75rem !important;
        padding: 5px 0 !important;
        gap: 8px !important;
    }
    
    .feature-icon {
        width: 16px !important;
        height: 16px !important;
        font-size: 0.65rem !important;
    }
    
    /* Subscribe Button */
    .plan-subscribe-btn {
        padding: 12px 16px !important;
        font-size: 0.8rem !important;
        min-height: 44px !important;
    }
    
    /* Free Plan Notice */
    .free-plan-notice {
        padding: 12px !important;
        font-size: 0.7rem !important;
        margin: 10px 12px 20px !important;
        border-radius: 10px !important;
    }
}

/* Extra Small Screens */
@media (max-width: 380px) {
    .subscription-title {
        font-size: 1rem !important;
    }
    
    .plan-price {
        font-size: 1.5rem !important;
    }
    
    .plan-features li {
        font-size: 0.7rem !important;
    }
    
    .plan-subscribe-btn {
        font-size: 0.75rem !important;
    }
}
