/**
 * Premium Tools CSS
 * Premium UI with glassmorphism, gradients, and animations
 */

.container {
    max-width: 1400px;
}

@media (max-width: 768px) {
    .container {
        padding-left: var(--spacing-xs);
        padding-right: var(--spacing-xs);
    }
}


/* Loading Spinner for Premium Tools */
.premium-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.premium-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.premium-spinner {
    width: 56px;
    height: 56px;
    position: relative;
    margin-bottom: 20px;
}

.premium-spinner::before,
.premium-spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.premium-spinner::before {
    border-top-color: #f59e0b;
    border-right-color: #f59e0b;
    animation: premiumSpin 0.8s linear infinite;
}

.premium-spinner::after {
    border-bottom-color: rgba(245, 158, 11, 0.3);
    border-left-color: rgba(245, 158, 11, 0.3);
    animation: premiumSpin 1.2s linear infinite reverse;
}

@keyframes premiumSpin {
    to {
        transform: rotate(360deg);
    }
}

.premium-loading-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-loading-text::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }
}

/* Premium Hero Section */
.premium-hero {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 24px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.premium-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    animation: premiumGlow 10s ease-in-out infinite;
}

@keyframes premiumGlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10%, 10%);
    }
}

.premium-hero-content {
    position: relative;
    z-index: 1;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.premium-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 16px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.premium-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.premium-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.subscriber-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    font-weight: 500;
    border-radius: 12px;
}

/* Days Remaining Badge */
.days-badge {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.days-badge.unlimited,
.days-badge.lifetime {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.2));
    color: #a78bfa;
}

.days-badge.expiring-soon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    animation: pulseWarning 2s ease-in-out infinite;
}

@keyframes pulseWarning {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Premium Features Bar */
.premium-features-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.premium-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.premium-feature svg {
    width: 18px;
    height: 18px;
    color: #f59e0b;
}

/* Premium Tools Grid */
.premium-tools-section {
    margin-bottom: 48px;
}

.premium-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Premium Tool Card */
.premium-tool-card {
    background: linear-gradient(145deg, var(--bg-card), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.premium-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}

.premium-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.premium-tool-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.premium-tool-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tool-color, #f59e0b), color-mix(in srgb, var(--tool-color, #f59e0b), #000 20%));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.premium-tool-icon svg {
    width: 26px;
    height: 26px;
}

.premium-tool-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.premium-tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.premium-tool-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Feature Pills */
.premium-tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 20px;
}

/* Tool Footer */
.premium-tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.premium-tool-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-weight: 600;
}

.premium-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.premium-tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.premium-tool-btn.locked {
    background: var(--bg-glass);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.premium-tool-btn.locked:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

/* No Tools */
.no-tools {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-tools svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

/* ==========================================
   Individual Premium Tool Page
   ========================================== */

/* Breadcrumb */
.premium-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.premium-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.premium-breadcrumb a:hover {
    color: #f59e0b;
}

.premium-breadcrumb .current {
    color: var(--text-primary);
}

/* Subscription Required */
.subscription-required {
    position: relative;
}

.subscription-card {
    position: relative;
    z-index: 10;
    background: linear-gradient(145deg, var(--bg-card), rgba(245, 158, 11, 0.03));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.subscription-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
}

.subscription-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.subscription-card>p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 28px;
}

.subscription-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.sub-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
    font-size: 0.85rem;
    border-radius: 20px;
}

.subscription-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.subscribe-btn.primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.subscribe-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.subscribe-btn.secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.subscribe-btn.secondary:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

/* Blurred Preview */
.tool-preview-blur {
    filter: blur(8px);
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 20px;
}

/* Premium Tool Layout */
.premium-tool-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .premium-tool-layout {
        grid-template-columns: 1fr;
    }
}

.premium-tool-main {
    min-width: 0;
}

/* Tool Header Section */
.premium-tool-header-section {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(145deg, var(--bg-card), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-codepen);
}

.premium-tool-icon-lg {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--tool-color, #f59e0b), color-mix(in srgb, var(--tool-color, #f59e0b), #000 20%));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}

.premium-tool-icon-lg svg {
    width: 36px;
    height: 36px;
}

.premium-tool-header-content {
    flex: 1;
}

.premium-tool-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.badge-category {
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--cat-color, #8b5cf6);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
}

.premium-tool-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.premium-tool-short-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Tool Content */
.premium-tool-content {
    /* background: var(--bg-card); */
    /* border: 1px solid var(--border-color); */
    border-radius: 20px;
    /* padding: 32px; */
    margin-bottom: 24px;
}

.tool-coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.tool-coming-soon svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.tool-coming-soon h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0 0 8px;
}

/* Tool Description */
.premium-tool-description {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
}

.premium-tool-description h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.description-content {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Premium Sidebar */
.premium-tool-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.premium-sidebar-card {
    background: linear-gradient(145deg, var(--bg-card), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-codepen);
}

.premium-sidebar-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Star Rating */
.premium-star-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.premium-star-rating .star-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--border-color);
    transition: all 0.2s;
}

.premium-star-rating .star-btn svg {
    width: 28px;
    height: 28px;
}

.premium-star-rating .star-btn.active,
.premium-star-rating .star-btn.hovered {
    color: #f59e0b;
    transform: scale(1.1);
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.avg-rating {
    font-weight: 600;
    color: #f59e0b;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.features-list li svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.premium-sidebar-card .stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(245, 158, 11, 0.05);
    border-radius: 10px;
}

.premium-sidebar-card .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f59e0b;
}

.premium-sidebar-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Share Buttons */
.premium-sidebar-card .share-buttons {
    display: flex;
    gap: 10px;
}

.premium-sidebar-card .share-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.premium-sidebar-card .share-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.premium-sidebar-card .share-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .premium-hero {
        padding: 40px 24px;
    }

    .premium-title {
        font-size: 1.75rem;
    }

    .premium-features-bar {
        gap: 16px;
    }

    .premium-tools-grid {
        grid-template-columns: 1fr;
    }

    .premium-tool-header-section {
        flex-direction: column;
        text-align: center;
    }

    .premium-tool-icon-lg {
        margin: 0 auto;
    }

    .premium-tool-badges {
        justify-content: center;
    }

    .subscription-card {
        padding: 40px 24px;
    }
}

/* Related Tools List */
.related-tools-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-tool-item:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateX(4px);
}

.related-tool-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    flex-shrink: 0;
}

.related-tool-icon svg {
    width: 18px;
    height: 18px;
}

.related-tool-info {
    flex: 1;
    min-width: 0;
}

.related-tool-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-tool-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.related-tool-item:hover .related-tool-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #f59e0b;
}

/* ==========================================
   Subscription Modal (Popup)
   ========================================== */

.subscription-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.subscription-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.subscription-modal {
    background: linear-gradient(145deg, var(--bg-card), rgba(245, 158, 11, 0.03));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.subscription-modal-overlay.active .subscription-modal {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.subscription-modal .subscription-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
}

.subscription-modal h2 {
    font-size: 1.5rem;
    margin: 0 0 12px;
}

.subscription-modal>p {
    margin: 0 0 24px;
}

/* Free Use Banner */
.free-use-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.free-use-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.free-use-banner-content svg {
    color: #f59e0b;
    flex-shrink: 0;
}

.free-use-banner-content span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
}

.free-use-upgrade-link {
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.free-use-upgrade-link:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* Free Try Badge */
.badge-free-try {
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    color: #22c55e;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Responsive Modal */
@media (max-width: 480px) {
    .subscription-modal {
        padding: 32px 24px;
    }

    .subscription-modal .subscription-icon {
        width: 72px;
        height: 72px;
    }

    .subscription-modal h2 {
        font-size: 1.25rem;
    }
}

/* ==========================================
   LIGHT MODE OVERRIDES
   Better contrast and visibility
   ========================================== */

[data-theme="light"] .premium-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
}

[data-theme="light"] .premium-title {
    background: linear-gradient(135deg, #d97706, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .premium-subtitle {
    color: #78350f;
    /* Dark brown for better contrast */
}

[data-theme="light"] .premium-features-bar {
    border-top-color: rgba(217, 119, 6, 0.2);
}

[data-theme="light"] .premium-feature {
    color: #78350f;
}

[data-theme="light"] .premium-feature svg {
    color: #d97706;
}

[data-theme="light"] .premium-tool-card {
    background: linear-gradient(145deg, #ffffff, #fffef9);
    border-color: rgba(217, 119, 6, 0.2);
}

[data-theme="light"] .premium-tool-card:hover {
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: 0 12px 40px rgba(217, 119, 6, 0.15);
}

[data-theme="light"] .premium-tool-title {
    color: #1c1917;
    /* Very dark for maximum contrast */
}

[data-theme="light"] .premium-tool-desc {
    color: #78350f;
    /* Dark brown */
}

[data-theme="light"] .feature-pill {
    background: rgba(217, 119, 6, 0.15);
    border-color: rgba(217, 119, 6, 0.3);
    color: #b45309;
}

[data-theme="light"] .premium-tool-stats {
    color: #78350f;
}

[data-theme="light"] .tool-rating {
    color: #d97706;
}

[data-theme="light"] .premium-tool-btn.locked {
    background: rgba(217, 119, 6, 0.1);
    color: #78350f;
    border-color: rgba(217, 119, 6, 0.2);
}

[data-theme="light"] .premium-tool-btn.locked:hover {
    background: rgba(217, 119, 6, 0.2);
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.3);
}

[data-theme="light"] .no-tools {
    color: #78350f;
}

[data-theme="light"] .premium-breadcrumb {
    color: #78350f;
}

[data-theme="light"] .premium-breadcrumb a {
    color: #78350f;
}

[data-theme="light"] .premium-breadcrumb a:hover {
    color: #d97706;
}

[data-theme="light"] .premium-breadcrumb .current {
    color: #1c1917;
}

[data-theme="light"] .subscriber-badge {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #15803d;
}

[data-theme="light"] .days-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #15803d;
}

[data-theme="light"] .subscription-card {
    background: linear-gradient(145deg, #ffffff, #fffef9);
    border-color: rgba(217, 119, 6, 0.25);
}

[data-theme="light"] .subscription-card h2 {
    color: #1c1917;
}

[data-theme="light"] .subscription-card p {
    color: #78350f;
}

[data-theme="light"] .subscription-icon {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(217, 119, 6, 0.1));
    color: #d97706;
}

[data-theme="light"] .premium-tool-header-section {
    background: linear-gradient(145deg, #ffffff, #fffef9);
    border-color: rgba(217, 119, 6, 0.2);
}

[data-theme="light"] .premium-tool-name {
    color: #1c1917;
}

[data-theme="light"] .premium-tool-short-desc {
    color: #78350f;
}

[data-theme="light"] .premium-sidebar-card {
    background: linear-gradient(145deg, #ffffff, #fffef9);
    border-color: rgba(217, 119, 6, 0.15);
}

[data-theme="light"] .premium-sidebar-card h3 {
    color: #1c1917;
}

[data-theme="light"] .rating-info {
    color: #78350f;
}

[data-theme="light"] .avg-rating {
    color: #d97706;
}

[data-theme="light"] .premium-tool-description {
    background: #ffffff;
    border-color: rgba(217, 119, 6, 0.15);
}

[data-theme="light"] .premium-tool-description h2 {
    color: #1c1917;
}

[data-theme="light"] .description-content {
    color: #78350f;
}

[data-theme="light"] .tool-coming-soon {
    color: #78350f;
}

[data-theme="light"] .tool-coming-soon h3 {
    color: #1c1917;
}

[data-theme="light"] .faq-item-question {
    color: #1c1917;
}

[data-theme="light"] .faq-item-answer {
    color: #78350f;
}

[data-theme="light"] .badge-category {
    background: rgba(139, 92, 246, 0.15);
    color: #6d28d9;
}

[data-theme="light"] .subscribe-btn.secondary {
    color: #78350f;
    border-color: rgba(217, 119, 6, 0.2);
}

[data-theme="light"] .subscribe-btn.secondary:hover {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
}

/* ==========================================
   LIGHT MODE - body.premium-page-active
   Specific overrides for premium page background
   ========================================== */

[data-theme="light"] body.premium-page-active .premium-title {
    background: linear-gradient(135deg, #78350f, #b45309, #78350f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] body.premium-page-active .premium-subtitle {
    color: #78350f;
    font-weight: 500;
}

[data-theme="light"] body.premium-page-active .premium-feature {
    color: #78350f;
    font-weight: 500;
}

[data-theme="light"] body.premium-page-active .premium-feature svg {
    color: #b45309;
}

[data-theme="light"] body.premium-page-active .premium-tool-title {
    color: #1c1917;
    font-weight: 700;
}

[data-theme="light"] body.premium-page-active .premium-tool-desc {
    color: #78350f;
}

[data-theme="light"] body.premium-page-active .premium-tool-stats {
    color: #78350f;
}

[data-theme="light"] body.premium-page-active .tool-views {
    color: #78350f;
}

[data-theme="light"] body.premium-page-active .premium-tool-btn.locked {
    background: rgba(120, 53, 15, 0.1);
    color: #78350f;
    border-color: rgba(120, 53, 15, 0.3);
    font-weight: 600;
}

[data-theme="light"] body.premium-page-active .premium-tool-btn.locked:hover {
    background: rgba(120, 53, 15, 0.2);
    color: #1c1917;
    border-color: rgba(120, 53, 15, 0.4);
}

[data-theme="light"] body.premium-page-active .premium-tool-name {
    color: #1c1917;
}

[data-theme="light"] body.premium-page-active .premium-tool-short-desc {
    color: #78350f;
}

[data-theme="light"] body.premium-page-active .subscriber-badge {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: #15803d;
    font-weight: 600;
}

[data-theme="light"] body.premium-page-active .days-badge {
    background: rgba(34, 197, 94, 0.25);
    color: #15803d;
    font-weight: 600;
}

[data-theme="light"] body.premium-page-active .no-tools {
    color: #78350f;
}

[data-theme="light"] body.premium-page-active .no-tools p {
    color: #78350f;
    font-weight: 500;
}