/* ===== Templates Page Styles ===== */

/* Hero */
.templates-hero {
    padding: 160px 40px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.templates-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.templates-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 16px 0;
    line-height: 1.1;
}

.templates-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

.templates-hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.templates-hero-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.templates-hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.templates-hero-stats .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filter Tabs */
.templates-filter {
    padding: 0 40px 40px;
    position: relative;
    z-index: 1;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
    padding: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.filter-tab svg {
    width: 16px;
    height: 16px;
}

.filter-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.filter-tab.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.filter-tab.active svg {
    stroke: var(--accent-primary);
}

/* Templates Grid */
.templates-grid-section {
    padding: 20px 40px 60px;
    position: relative;
    z-index: 1;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Template Card */
.template-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    animation: fadeInUp 0.6s ease both;
}

.template-card:nth-child(2) {
    animation-delay: 0.05s;
}

.template-card:nth-child(3) {
    animation-delay: 0.1s;
}

.template-card:nth-child(4) {
    animation-delay: 0.15s;
}

.template-card:nth-child(5) {
    animation-delay: 0.2s;
}

.template-card:nth-child(6) {
    animation-delay: 0.25s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.template-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.1),
        0 0 0 1px rgba(139, 92, 246, 0.1);
}

.template-card.hidden {
    display: none;
}

/* Template Preview */
.template-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.08));
}

/* Design Preview Mockups */
.mockup-thumbnails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 20px;
    height: 100%;
}

.mockup-thumbnails .thumb {
    border-radius: 8px;
    animation: thumbPulse 3s ease infinite;
}

.thumb.t1 {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
}

.thumb.t2 {
    background: linear-gradient(135deg, #6bcb77, #4d96ff);
    animation-delay: 0.5s;
}

.thumb.t3 {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    animation-delay: 1s;
}

.thumb.t4 {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    animation-delay: 1.5s;
}

@keyframes thumbPulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

.mockup-social {
    display: flex;
    gap: 10px;
    padding: 20px;
    height: 100%;
    align-items: center;
}

.social-post {
    flex: 1;
    height: 80%;
    border-radius: 10px;
}

.social-post.s1 {
    background: linear-gradient(180deg, #8b5cf6, #6d28d9);
}

.social-post.s2 {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
}

.social-story {
    width: 60px;
    height: 90%;
    border-radius: 12px;
    background: linear-gradient(180deg, #ec4899, #f59e0b);
}

.mockup-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: 100%;
    padding: 20px;
}

.logo-item {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: white;
    transition: transform 0.3s ease;
}

.template-card:hover .logo-item {
    transform: rotate(-5deg) scale(1.1);
}

.logo-item.l1 {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.logo-item.l2 {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.logo-item.l3 {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

/* Web Preview Mockups */
.mockup-browser {
    margin: 16px;
    height: calc(100% - 32px);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.browser-bar .dot:first-child {
    background: #ff5f57;
}

.browser-bar .dot:nth-child(2) {
    background: #febc2e;
}

.browser-bar .dot:nth-child(3) {
    background: #28c840;
}

.url-bar {
    margin-left: 8px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 4px;
    flex: 1;
    text-align: center;
}

.browser-content {
    padding: 10px;
}

.web-hero-mock {
    height: 40px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
    margin-bottom: 8px;
}

.web-grid-mock {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.web-grid-mock div {
    height: 30px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}

.web-nav-mock {
    height: 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
}

.web-products-mock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.web-products-mock div {
    height: 40px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

/* Bot Preview Mockups */
.mockup-discord {
    display: flex;
    height: 100%;
    margin: 12px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-sidebar {
    width: 50px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discord-sidebar .channel {
    height: 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.discord-sidebar .channel.active {
    background: rgba(139, 92, 246, 0.3);
}

.discord-chat {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.discord-chat .msg {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.discord-chat .bot-tag {
    font-size: 0.55rem;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(88, 101, 242, 0.3);
    color: #8b9dff;
    font-weight: 700;
    white-space: nowrap;
}

.discord-chat .msg-content {
    height: 12px;
    width: 80%;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}

.discord-chat .msg-content.short {
    width: 50%;
}

.discord-chat .embed {
    width: 80%;
    height: 30px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.12);
    border-left: 3px solid var(--accent-primary);
}

.discord-chat .embed.economy {
    height: 40px;
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

/* Telegram Preview */
.mockup-telegram {
    margin: 12px;
    height: calc(100% - 24px);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tg-header {
    padding: 8px 12px;
    background: rgba(0, 135, 204, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tg-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tg-chat {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tg-msg {
    height: 14px;
    border-radius: 8px;
    max-width: 70%;
}

.tg-msg.bot {
    background: rgba(0, 135, 204, 0.15);
    align-self: flex-start;
    width: 65%;
}

.tg-msg.user {
    background: rgba(139, 92, 246, 0.15);
    align-self: flex-end;
    width: 45%;
}

.tg-buttons {
    display: flex;
    gap: 4px;
    margin-top: 2px;
}

.tg-buttons span {
    flex: 1;
    height: 18px;
    border-radius: 6px;
    background: rgba(0, 135, 204, 0.2);
    border: 1px solid rgba(0, 135, 204, 0.3);
}

/* Video Preview Mockups */
.mockup-video {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
}

.color-strips {
    display: flex;
    gap: 4px;
    height: 100%;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.color-strips .strip {
    flex: 1;
    transition: flex 0.5s ease;
}

.template-card:hover .color-strips .strip:nth-child(3) {
    flex: 1.8;
}

.strip.s1 {
    background: linear-gradient(180deg, #1a1a2e, #16213e);
}

.strip.s2 {
    background: linear-gradient(180deg, #0f3460, #533483);
}

.strip.s3 {
    background: linear-gradient(180deg, #e94560, #f59e0b);
}

.strip.s4 {
    background: linear-gradient(180deg, #f59e0b, #6bcb77);
}

.strip.s5 {
    background: linear-gradient(180deg, #6bcb77, #4d96ff);
}

.lut-label {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 2px;
}

.transition-demo {
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.trans-a {
    flex: 1;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.trans-divider {
    width: 4px;
    background: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: transSlide 3s ease-in-out infinite;
}

@keyframes transSlide {

    0%,
    100% {
        transform: translateX(-30px);
    }

    50% {
        transform: translateX(30px);
    }
}

.trans-b {
    flex: 1;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

/* Bundle Preview */
.bundle-preview {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(245, 158, 11, 0.12)) !important;
}

.bundle-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.bundle-item {
    width: 80px;
    height: 100px;
    border-radius: 10px;
    position: absolute;
    transition: transform 0.4s ease;
}

.bundle-item.b1 {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    transform: rotate(-10deg) translateX(-30px);
    z-index: 1;
}

.bundle-item.b2 {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transform: rotate(0deg);
    z-index: 2;
}

.bundle-item.b3 {
    background: linear-gradient(135deg, #ec4899, #be185d);
    transform: rotate(10deg) translateX(30px);
    z-index: 3;
}

.template-card:hover .bundle-item.b1 {
    transform: rotate(-15deg) translateX(-40px) translateY(-5px);
}

.template-card:hover .bundle-item.b3 {
    transform: rotate(15deg) translateX(40px) translateY(-5px);
}

.bundle-icon {
    font-size: 2rem;
    position: relative;
    z-index: 4;
}

/* Template Badge */
.template-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
}

.template-badge.bundle {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Template Info */
.template-info {
    padding: 20px;
}

.template-category {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.cat-dot.design {
    background: #ec4899;
}

.cat-dot.web {
    background: #3b82f6;
}

.cat-dot.bot {
    background: #8b5cf6;
}

.cat-dot.video {
    background: #f59e0b;
}

.cat-dot.bundle {
    background: linear-gradient(135deg, #f59e0b, #8b5cf6);
}

.template-category span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.template-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.template-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

/* Template Meta */
.template-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 14px;
}

.template-files {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.template-files svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.template-format {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Template Footer */
.template-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.template-price {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.template-price.sale {
    font-size: 1.3rem;
}

.template-price-old {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.5;
    margin-right: 8px;
}

.template-buy-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

/* ===== Coming Soon State ===== */
.template-card.coming-soon {
    position: relative;
}

.template-card.coming-soon .template-preview {
    position: relative;
}

.template-card.coming-soon .template-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 20, 0.45);
    backdrop-filter: blur(1.5px);
    border-radius: inherit;
    z-index: 3;
    pointer-events: none;
}

.coming-soon-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(57, 236, 254, 0.85));
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 22px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35),
        0 0 40px rgba(57, 236, 254, 0.15);
    animation: comingSoonPulse 3s ease-in-out infinite;
}

@keyframes comingSoonPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35), 0 0 40px rgba(57, 236, 254, 0.15);
    }

    50% {
        box-shadow: 0 4px 28px rgba(139, 92, 246, 0.5), 0 0 55px rgba(57, 236, 254, 0.25);
    }
}

.template-card.coming-soon .template-buy-btn {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.template-card.coming-soon .template-buy-btn:hover {
    transform: none;
    box-shadow: none;
}

.template-card.coming-soon .template-price,
.template-card.coming-soon .template-price-old {
    opacity: 0.35;
}

/* Bundle Card Special */
.bundle-card {
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.bundle-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.1),
        0 0 0 1px rgba(245, 158, 11, 0.1);
}

/* Templates CTA */
.templates-cta {
    padding: 80px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.templates-cta .cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
}

.templates-cta .cta-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.templates-cta h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.templates-cta p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Purchase Modal */
.purchase-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.purchase-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.purchase-modal {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.purchase-modal-overlay.active .purchase-modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-template-name {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-body {
    margin-top: 24px;
}

.modal-price-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.modal-price {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-tax {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Purchase Form */
.purchase-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.purchase-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.purchase-form label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.purchase-form input[type="text"],
.purchase-form input[type="email"] {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.purchase-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.payment-options {
    display: flex;
    gap: 10px;
}

.payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.payment-option:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.payment-option.active {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.08);
    color: var(--text-primary);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-icon {
    font-size: 1.2rem;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.form-consent input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent-primary);
}

.form-consent a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.purchase-submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    font-size: 1rem;
    justify-content: center;
}

/* Modal Success */
.modal-success {
    text-align: center;
    padding: 30px 0;
}

.modal-success .success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.modal-success h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-success p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== ENHANCED PREVIEW EFFECTS ===== */

/* --- Shimmer sweep on hover --- */
.template-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 255, 255, 0.06) 45%,
            rgba(255, 255, 255, 0.12) 50%,
            rgba(255, 255, 255, 0.06) 55%,
            transparent 60%);
    transform: translateX(-120%);
    transition: none;
    z-index: 5;
    pointer-events: none;
}

.template-card:hover .template-preview::after {
    transform: translateX(120%);
    transition: transform 0.7s ease;
}

/* --- Subtle noise texture on previews --- */
.template-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}

/* --- 3D tilt on card hover --- */
.template-card {
    perspective: 800px;
}

.template-card:hover {
    transform: translateY(-6px) rotateX(2deg);
}

/* --- Glow line at top of preview on hover --- */
.template-preview {
    position: relative;
}

.template-card:hover .template-preview {
    box-shadow: inset 0 1px 0 rgba(139, 92, 246, 0.4);
}

/* --- Enhanced Thumbnail Mockups --- */
/* Play button on first thumb */
.mockup-thumbnails .thumb.t1::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mockup-thumbnails .thumb {
    position: relative;
    overflow: hidden;
}

.template-card:hover .mockup-thumbnails .thumb.t1::after {
    opacity: 1;
}

/* Faux text lines inside thumbnails */
.mockup-thumbnails .thumb.t2::after,
.mockup-thumbnails .thumb.t3::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 30%;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    box-shadow: 0 -8px 0 rgba(255, 255, 255, 0.15);
}

/* Subtle inner shadow for depth */
.mockup-thumbnails .thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 -20px 30px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* --- Enhanced Social Media Mockups --- */
/* Avatar ring on social posts */
.social-post::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.social-post {
    position: relative;
    overflow: hidden;
}

/* Heart icon on social posts */
.social-post.s1::after {
    content: '♡';
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Comment dots on second post */
.social-post.s2::after {
    content: '💬';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Story ring glow */
.social-story {
    position: relative;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.5), 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.social-story::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* --- Enhanced Logo Mockups --- */
.logo-item {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Backdrop glow behind logo items */
.logo-item::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 18px;
    background: inherit;
    filter: blur(16px);
    opacity: 0.35;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.template-card:hover .logo-item::after {
    opacity: 0.55;
}

/* --- Enhanced Browser Mockups --- */
/* Scroll content animation on hover */
.browser-content {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.template-card:hover .browser-content {
    transform: translateY(-8px);
}

/* Richer hero mock with button shape */
.web-hero-mock {
    position: relative;
    overflow: hidden;
}

.web-hero-mock::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 10px;
    width: 36px;
    height: 10px;
    border-radius: 5px;
    background: rgba(139, 92, 246, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.web-hero-mock::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 10px;
    right: 40%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 0 rgba(255, 255, 255, 0.1);
}

/* Grid items with subtle inner content */
.web-grid-mock div {
    position: relative;
    overflow: hidden;
}

.web-grid-mock div::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 30%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

/* Product items with image placeholder */
.web-products-mock div {
    position: relative;
    overflow: hidden;
}

.web-products-mock div::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    height: 20px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
}

.web-products-mock div::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 4px;
    width: 40%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

/* --- Enhanced Discord Mockups --- */
/* User avatar circles */
.discord-chat .msg.user::before {
    content: '';
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865f2, #7289da);
    flex-shrink: 0;
}

/* Bot avatar */
.discord-chat .msg.bot::before {
    content: '';
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    flex-shrink: 0;
}

/* Typing indicator animation */
.discord-chat::after {
    content: '';
    display: flex;
    width: 40px;
    height: 10px;
    border-radius: 6px;
    background:
        radial-gradient(circle 2px at 8px 5px, rgba(255, 255, 255, 0.3) 100%, transparent 100%),
        radial-gradient(circle 2px at 20px 5px, rgba(255, 255, 255, 0.3) 100%, transparent 100%),
        radial-gradient(circle 2px at 32px 5px, rgba(255, 255, 255, 0.3) 100%, transparent 100%);
    animation: discordTyping 1.4s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 4px;
}

.template-card:hover .discord-chat::after {
    opacity: 1;
}

@keyframes discordTyping {

    0%,
    100% {
        background:
            radial-gradient(circle 2px at 8px 5px, rgba(255, 255, 255, 0.15) 100%, transparent 100%),
            radial-gradient(circle 2px at 20px 5px, rgba(255, 255, 255, 0.3) 100%, transparent 100%),
            radial-gradient(circle 2px at 32px 5px, rgba(255, 255, 255, 0.15) 100%, transparent 100%);
    }

    33% {
        background:
            radial-gradient(circle 2px at 8px 5px, rgba(255, 255, 255, 0.4) 100%, transparent 100%),
            radial-gradient(circle 2px at 20px 5px, rgba(255, 255, 255, 0.15) 100%, transparent 100%),
            radial-gradient(circle 2px at 32px 5px, rgba(255, 255, 255, 0.3) 100%, transparent 100%);
    }

    66% {
        background:
            radial-gradient(circle 2px at 8px 5px, rgba(255, 255, 255, 0.15) 100%, transparent 100%),
            radial-gradient(circle 2px at 20px 5px, rgba(255, 255, 255, 0.4) 100%, transparent 100%),
            radial-gradient(circle 2px at 32px 5px, rgba(255, 255, 255, 0.15) 100%, transparent 100%);
    }
}

/* Better embed bar glow */
.discord-chat .embed {
    position: relative;
    overflow: hidden;
}

.discord-chat .embed::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 10px;
    right: 20%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    box-shadow: 0 7px 0 rgba(255, 255, 255, 0.05);
}

/* --- Enhanced Telegram Mockups --- */
/* Delivered checkmarks on user messages */
.tg-msg.user {
    position: relative;
}

.tg-msg.user::after {
    content: '✓✓';
    position: absolute;
    bottom: -1px;
    right: 4px;
    font-size: 0.5rem;
    color: rgba(0, 135, 204, 0.6);
    letter-spacing: -1px;
}

/* Bot status indicator */
.tg-header::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.tg-header {
    position: relative;
}

/* Inline keyboard glow on hover */
.template-card:hover .tg-buttons span {
    background: rgba(0, 135, 204, 0.3);
    box-shadow: 0 0 8px rgba(0, 135, 204, 0.15);
}

/* --- Enhanced Video Mockups --- */
/* Before/After label on LUT strips */
.color-strips::before {
    content: 'BEFORE';
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 0.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 2;
}

.color-strips::after {
    content: 'AFTER';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 2;
}

.color-strips {
    position: relative;
}

/* Enhanced strips with inner shimmer */
.color-strips .strip {
    position: relative;
    overflow: hidden;
}

.color-strips .strip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.1) 100%);
}

/* Glowing transition divider */
.trans-divider {
    width: 3px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.8), white, rgba(245, 158, 11, 0.8));
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(139, 92, 246, 0.3),
        0 0 50px rgba(139, 92, 246, 0.15);
}

/* --- Enhanced Bundle Cards --- */
/* Sparkle particles in bundle background */
.bundle-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 1px at 20% 30%, rgba(245, 158, 11, 0.4) 0%, transparent 100%),
        radial-gradient(circle 1px at 70% 20%, rgba(139, 92, 246, 0.4) 0%, transparent 100%),
        radial-gradient(circle 1px at 40% 70%, rgba(236, 72, 153, 0.3) 0%, transparent 100%),
        radial-gradient(circle 1px at 80% 60%, rgba(59, 130, 246, 0.3) 0%, transparent 100%),
        radial-gradient(circle 1px at 15% 80%, rgba(245, 158, 11, 0.3) 0%, transparent 100%),
        radial-gradient(circle 1px at 60% 45%, rgba(139, 92, 246, 0.3) 0%, transparent 100%);
    animation: sparkleFloat 4s ease-in-out infinite alternate;
    z-index: 1;
    pointer-events: none;
}

@keyframes sparkleFloat {
    0% {
        opacity: 0.4;
        transform: translateY(0);
    }

    100% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* More dramatic bundle spread on hover */
.template-card:hover .bundle-item.b1 {
    transform: rotate(-18deg) translateX(-45px) translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.25);
}

.template-card:hover .bundle-item.b2 {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(59, 130, 246, 0.25);
}

.template-card:hover .bundle-item.b3 {
    transform: rotate(18deg) translateX(45px) translateY(-8px);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.25);
}

/* Bundle items inner shine */
.bundle-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .templates-hero {
        padding: 140px 20px 40px;
    }

    .templates-hero-stats {
        gap: 30px;
    }

    .templates-filter {
        padding: 0 16px 24px;
    }

    .filter-tabs {
        gap: 4px;
    }

    .filter-tab {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .filter-tab svg {
        display: none;
    }

    .templates-grid-section {
        padding: 10px 16px 40px;
    }

    .templates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .templates-cta {
        padding: 40px 16px;
    }

    .templates-cta .cta-content {
        padding: 40px 24px;
    }

    .purchase-modal {
        padding: 24px;
        width: 95%;
    }

    .payment-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .templates-hero h1 {
        font-size: 1.8rem;
    }

    .templates-hero p {
        font-size: 1rem;
    }

    .templates-hero-stats {
        flex-direction: column;
        gap: 16px;
    }
}