/* ===== SUBSCRIPTIONS PAGE STYLING ===== */
/* Skeuomorphic design matching store page */

/* Subscription Header */
.subscriptions-header {
    background: linear-gradient(145deg, #f0f2f5, #e8eaed, #ddd);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.12),
        inset 0 3px 6px rgba(255, 255, 255, 0.9),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15),
        inset 1px 0 2px rgba(255, 255, 255, 0.7),
        inset -1px 0 2px rgba(0, 0, 0, 0.1);
    border: 3px solid #c0c4c8;
    position: relative;
}

.subscriptions-header::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8));
    border-radius: 18px 18px 0 0;
}

.header-text {
    flex: 1;
    min-width: 300px;
}

.subscriptions-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: var(--default-font-family, 'Shrikhand');
}

.subscriptions-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Current Subscription Section */
.current-subscription {
    margin-bottom: 30px;
}

.subscription-info-card {
    background: linear-gradient(145deg, #f0f2f5, #e8eaed, #ddd);
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.2),
        0 6px 12px rgba(0, 0, 0, 0.1),
        inset 0 3px 6px rgba(255, 255, 255, 0.8),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15),
        inset 2px 0 4px rgba(255, 255, 255, 0.6),
        inset -2px 0 4px rgba(0, 0, 0, 0.1);
    border: 3px solid #c0c4c8;
    position: relative;
}

.subscription-info-card::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8));
    border-radius: 18px 18px 0 0;
}

.subscription-info-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.subscription-details {
    margin-bottom: 20px;
}

.subscription-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.subscription-detail-item:last-child {
    border-bottom: none;
}

.subscription-detail-label {
    font-weight: 600;
    color: #475569;
}

.subscription-detail-value {
    color: #1e293b;
    font-weight: 500;
}

.subscription-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.manage-subscription-btn,
.cancel-subscription-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid;
}

.manage-subscription-btn {
    background: linear-gradient(145deg, #bef264, #84cc16, #65a30d);
    color: white;
    border-color: #1e40af;
}

.manage-subscription-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 15px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cancel-subscription-btn {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    color: white;
    border-color: #b91c1c;
}

.cancel-subscription-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 15px rgba(239, 68, 68, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Daily Rewards Section */
.daily-rewards-section,
.weekly-boosts-section {
    margin-bottom: 30px;
}

.rewards-card,
.boosts-card {
    background: linear-gradient(145deg, #f0f2f5, #e8eaed, #ddd);
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.2),
        0 6px 12px rgba(0, 0, 0, 0.1),
        inset 0 3px 6px rgba(255, 255, 255, 0.8),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15),
        inset 2px 0 4px rgba(255, 255, 255, 0.6),
        inset -2px 0 4px rgba(0, 0, 0, 0.1);
    border: 3px solid #c0c4c8;
    position: relative;
}

.rewards-card::before,
.boosts-card::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8));
    border-radius: 18px 18px 0 0;
}

.rewards-card h2,
.boosts-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.rewards-description,
.boosts-description {
    color: #64748b;
    margin: 0 0 20px 0;
    font-size: 1rem;
}

.rewards-info {
    background: rgba(255, 255, 255, 0.5);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Streak Tracker Styles */
.streak-tracker {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

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

.streak-count {
    display: flex;
    align-items: center;
    gap: 10px;
}

.streak-fire {
    font-size: 2.2rem !important;
    color: #cbd5e1;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.streak-fire.active {
    color: #f97316;
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.4));
    animation: fire-flicker 1.5s infinite;
}

@keyframes fire-flicker {

    0%,
    100% {
        transform: scale(1) rotate(-2deg);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.1) rotate(2deg);
        opacity: 1;
        filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.6));
    }
}

.streak-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    font-family: var(--default-font-family, 'Shrikhand');
}

.streak-label {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
}

.streak-status {
    font-size: 0.95rem;
    font-weight: 700;
    color: #16a34a;
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.streak-path {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 10px 0;
}

.streak-path::after {
    content: '';
    position: absolute;
    top: 35px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.streak-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    width: 14%;
}

.day-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.day-circle .material-icons {
    font-size: 1.5rem;
    color: #cbd5e1;
}

.day-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
}

/* Day Statuses */
.streak-day.completed .day-circle {
    background: #10b981;
    border-color: #059669;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.streak-day.completed .day-circle .material-icons {
    color: white;
}

.streak-day.completed .day-label {
    color: #10b981;
}

.streak-day.current.available .day-circle {
    background: white;
    border-color: #16a34a;
    animation: bounce-attention 2s infinite;
}

.streak-day.current.available .day-circle .material-icons {
    color: #16a34a;
}

@keyframes bounce-attention {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.streak-day.current.claimed .day-circle {
    background: #16a34a;
    border-color: #15803d;
}

.streak-day.current.claimed .day-circle .material-icons {
    color: white;
}

.streak-day.current .day-label {
    color: #16a34a;
}

.streak-day:last-child.upcoming .day-circle {
    border-style: dashed;
    border-color: #f59e0b;
}

.streak-day:last-child.upcoming .day-circle .material-icons {
    color: #f59e0b;
}

/* Rewards Grid */
.rewards-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.reward-item {
    text-align: center;
    min-width: 80px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.02);
}

.reward-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    font-family: var(--default-font-family, 'Shrikhand');
}

.reward-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.reward-item.special {
    background: linear-gradient(135deg, #fef3c7, #fff);
    border: 2px solid #fcd34d;
}

.reward-item.special .reward-value {
    color: #d97706;
}

.reward-item.special .reward-label {
    color: #b45309;
}

/* Claim Succession Anim */
.reward-success-anim {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(16, 185, 129, 0.1);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    animation: slide-up-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slide-up-in {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.reward-success-anim .material-icons {
    font-size: 2.5rem;
    color: #10b981;
}

.rewards-message {
    margin-top: 20px;
    min-height: 20px;
}

/* Subscription Tiers Grid */
.subscriptions-grid-section {
    margin-top: 40px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 30px 0;
    text-align: center;
}

.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tier-card {
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.2),
        0 6px 12px rgba(0, 0, 0, 0.1),
        inset 0 3px 6px rgba(255, 255, 255, 0.8),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15),
        inset 2px 0 4px rgba(255, 255, 255, 0.6),
        inset -2px 0 4px rgba(0, 0, 0, 0.1);
    border: 3px solid;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.tier-card::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8));
    border-radius: 18px 18px 0 0;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.15),
        inset 0 3px 6px rgba(255, 255, 255, 0.8),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15);
}

/* Tier Badge */
.tier-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(145deg, #f59e0b, #d97706);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:
        0 4px 12px rgba(245, 158, 11, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    border: 2px solid #b45309;
    z-index: 10;
}

.tier-badge-plus {
    background: linear-gradient(145deg, #bef264, #84cc16, #65a30d);
    border-color: #1e40af;
    box-shadow:
        0 4px 12px rgba(59, 130, 246, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.tier-badge-pro {
    background: linear-gradient(145deg, #8b5cf6, #7c3aed);
    border-color: #6d28d9;
    box-shadow:
        0 4px 12px rgba(139, 92, 246, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.tier-badge-master {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    border-color: #b45309;
    box-shadow:
        0 4px 12px rgba(245, 158, 11, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.tier-badge-max {
    background: linear-gradient(145deg, #ec4899, #db2777);
    border-color: #be185d;
    box-shadow:
        0 4px 12px rgba(236, 72, 153, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(236, 72, 153, 0.6), 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    }
}

/* Tier Header */
.tier-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.tier-icon {
    font-size: 2.5rem !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tier-icon-free {
    color: #6b7280;
}

.tier-icon-plus {
    color: #16a34a;
}

.tier-icon-pro {
    color: #8b5cf6;
}

.tier-icon-master {
    color: #f59e0b;
}

.tier-icon-max {
    color: #ec4899;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.tier-card h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    text-align: center;
    font-family: var(--default-font-family, 'Shrikhand');
}

/* Tier-specific price colors */
.tier-card .price {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-free {
    color: #6b7280;
}

.price-plus {
    color: #16a34a;
}

.price-pro {
    color: #8b5cf6;
}

.price-master {
    color: #f59e0b;
}

.price-max {
    color: #ec4899;
    background: linear-gradient(145deg, #ec4899, #db2777, #be185d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tier-card .price::before {
    content: '$';
    font-size: 1.5rem;
    vertical-align: top;
    margin-right: 4px;
}

.tier-card .price::after {
    content: '/month';
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    vertical-align: baseline;
    margin-left: 4px;
}

/* Tier Features */
.tier-features {
    flex-grow: 1;
    margin-bottom: 30px;
}

.tier-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.tier-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.2s ease;
}

.tier-card ul li:hover {
    background: rgba(255, 255, 255, 0.3);
    padding-left: 5px;
    border-radius: 6px;
}

.tier-card ul li:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 1.2rem !important;
    color: #10b981;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Tier-specific subscribe buttons */
.subscribe-btn {
    padding: 15px 30px;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: auto;
    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.2),
        0 3px 8px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
    border: 2px solid;
}

.subscribe-btn-free {
    background: linear-gradient(145deg, #9ca3af, #6b7280);
    border-color: #4b5563;
}

.subscribe-btn-plus {
    background: linear-gradient(145deg, #bef264, #84cc16, #65a30d);
    border-color: #1e40af;
    box-shadow:
        0 6px 15px rgba(59, 130, 246, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.subscribe-btn-pro {
    background: linear-gradient(145deg, #8b5cf6, #7c3aed);
    border-color: #6d28d9;
    box-shadow:
        0 6px 15px rgba(139, 92, 246, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.subscribe-btn-master {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    border-color: #b45309;
    box-shadow:
        0 6px 15px rgba(245, 158, 11, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.subscribe-btn-max {
    background: linear-gradient(145deg, #ec4899, #db2777, #be185d);
    border-color: #be185d;
    box-shadow:
        0 6px 15px rgba(236, 72, 153, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.subscribe-btn-max::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer-btn 3s infinite;
}

@keyframes shimmer-btn {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.subscribe-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.subscribe-btn-plus:hover:not(:disabled) {
    box-shadow:
        0 8px 20px rgba(59, 130, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.subscribe-btn-pro:hover:not(:disabled) {
    box-shadow:
        0 8px 20px rgba(139, 92, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.subscribe-btn-master:hover:not(:disabled) {
    box-shadow:
        0 8px 20px rgba(245, 158, 11, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.subscribe-btn-max:hover:not(:disabled) {
    box-shadow:
        0 8px 20px rgba(236, 72, 153, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.subscribe-btn:active:not(:disabled) {
    transform: translateY(0);
}

.subscribe-btn:disabled {
    background: linear-gradient(145deg, #9ca3af, #6b7280);
    cursor: not-allowed;
    transform: none;
    border-color: #4b5563;
}

.tier-card.current-tier {
    border-color: #10b981;
    box-shadow:
        0 12px 25px rgba(16, 185, 129, 0.3),
        0 6px 12px rgba(0, 0, 0, 0.1),
        inset 0 3px 6px rgba(255, 255, 255, 0.8),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15);
}

.tier-card.current-tier::after {
    content: 'Current Plan';
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

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

    .subscriptions-title {
        font-size: 2rem;
    }

    .subscription-actions {
        flex-direction: column;
    }

    .manage-subscription-btn,
    .cancel-subscription-btn {
        width: 100%;
    }
}