/* ============================================
   TeleMT5 - Premium Design System
   Dark Mode + Glassmorphism + Gradient Accents
   Mobile-First Responsive
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f23;
    --bg-tertiary: #141432;
    --bg-card: rgba(20, 20, 50, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);

    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-pink: #ec4899;

    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a1628 100%);
    --gradient-card: linear-gradient(145deg, rgba(20, 20, 50, 0.8), rgba(10, 10, 30, 0.6));
    --gradient-accent: linear-gradient(135deg, #00d4ff, #7c3aed, #ec4899);

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow-cyan: 0 0 20px rgba(0, 212, 255, 0.15);
    --shadow-glow-purple: 0 0 20px rgba(124, 58, 237, 0.15);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --container-max: 1280px;
    --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #33ddff;
}

::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #fff;
}

/* --- Container --- */
.tm-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .tm-container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .tm-container {
        padding: 0 32px;
    }
}

/* --- Navigation --- */
.tm-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    height: var(--nav-height);
    transition: all var(--transition-normal);
}

.tm-nav.scrolled {
    background: rgba(10, 10, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.tm-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.tm-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.tm-nav-brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-glass);
}

.tm-nav-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tm-nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.tm-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.tm-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.tm-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.tm-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.tm-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    padding: calc(var(--nav-height) + 20px) 24px 24px;
    transition: right var(--transition-normal);
    overflow-y: auto;
    border-left: 1px solid var(--border-glass);
    z-index: 1001;
}

.tm-nav-menu.open {
    right: 0;
}

.tm-nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: auto;
}


.tm-nav-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    font-weight: 500;
}

.tm-nav-menu a:hover,
.tm-nav-menu a.active {
    background: var(--bg-glass-hover);
    color: var(--accent-cyan);
}

.tm-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.tm-nav-overlay.show {
    display: block;
}

@media (min-width: 1024px) {
    .tm-nav-toggle {
        display: none;
    }

    .tm-nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: none;
        backdrop-filter: none;
        padding: 0;
        border: none;
        overflow: visible;
    }

    .tm-nav-menu ul {
        flex-direction: row;
        gap: 2px;
    }

    .tm-nav-menu a {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .tm-nav-overlay {
        display: none !important;
    }
}

@media (min-width: 1280px) {
    .tm-nav-menu a {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* --- Hero Section --- */
.tm-hero {
    position: relative;
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.tm-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5%, -5%) scale(1.1); }
}

.tm-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.tm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.tm-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.tm-hero h1 .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tm-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.tm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.tm-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .tm-hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tm-stat {
    text-align: center;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.tm-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    display: block;
}

.tm-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Buttons --- */
.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-primary);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.tm-btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
}

.tm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.35);
    color: #fff;
}

.tm-btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass-hover);
}

.tm-btn-outline:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.tm-btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.tm-btn-block {
    width: 100%;
}

.tm-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.tm-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    color: #fff;
}

/* --- Sections --- */
.tm-section {
    padding: 80px 0;
    position: relative;
}

@media (min-width: 768px) {
    .tm-section {
        padding: 100px 0;
    }
}

.tm-section-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tm-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-full);
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.tm-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.tm-section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* --- Alt Background --- */
.tm-section-alt {
    background: var(--bg-secondary);
}

/* --- Cards --- */
.tm-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.tm-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tm-card:hover::before {
    opacity: 1;
}

.tm-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.tm-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tm-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* --- Feature Grid --- */
.tm-grid {
    display: grid;
    gap: 20px;
}

.tm-grid-2 {
    grid-template-columns: 1fr;
}

.tm-grid-3 {
    grid-template-columns: 1fr;
}

.tm-grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .tm-grid-2, .tm-grid-3, .tm-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tm-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .tm-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Feature Detail Card --- */
.tm-feature-detail {
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.tm-feature-detail h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-feature-detail ul {
    list-style: none;
    padding: 0;
}

.tm-feature-detail li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tm-feature-detail li::before {
    content: '›';
    position: absolute;
    left: 4px;
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 1.1rem;
}

/* --- Settings Table --- */
.tm-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    -webkit-overflow-scrolling: touch;
}

.tm-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.tm-table th {
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.tm-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.tm-table tr:last-child td {
    border-bottom: none;
}

.tm-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.tm-table td strong {
    color: var(--text-primary);
}

/* --- Screenshot Gallery --- */
.tm-gallery {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .tm-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tm-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tm-gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.tm-gallery-item:hover {
    border-color: var(--accent-cyan);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow-cyan);
}

.tm-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.tm-gallery-item:hover img {
    transform: scale(1.05);
}

.tm-gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.7);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal);
    pointer-events: none;
}

.tm-gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* --- Video Section --- */
.tm-video-wrap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
}

.tm-video-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
    text-align: center;
    padding: 40px;
}

.tm-video-placeholder .play-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.tm-video-placeholder .play-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}

.tm-video-placeholder p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tm-video-embed {
    aspect-ratio: 16 / 9;
}

.tm-video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Warning & Info Boxes --- */
.tm-alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 16px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tm-alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.tm-alert-info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.tm-alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.tm-alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.tm-alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* --- FAQ Accordion --- */
.tm-faq-item {
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.tm-faq-item:hover {
    border-color: var(--border-glass-hover);
}

.tm-faq-item.active {
    border-color: rgba(0, 212, 255, 0.3);
}

.tm-faq-question {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: color var(--transition-fast);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-primary);
}

.tm-faq-question:hover {
    color: var(--accent-cyan);
}

.tm-faq-arrow {
    transition: transform var(--transition-fast);
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.tm-faq-item.active .tm-faq-arrow {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

.tm-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.tm-faq-item.active .tm-faq-answer {
    max-height: 500px;
}

.tm-faq-answer-inner {
    padding: 0 24px 18px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* --- Pricing Card --- */
.tm-pricing {
    max-width: 480px;
    margin: 0 auto;
}

.tm-pricing-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tm-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
}

.tm-pricing-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.tm-pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.tm-pricing-period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.tm-pricing-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 32px;
}

.tm-pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tm-pricing-features li:last-child {
    border-bottom: none;
}

.tm-pricing-features li .check {
    color: var(--accent-green);
    font-size: 1rem;
    flex-shrink: 0;
}

/* --- Contact Form --- */
.tm-form-group {
    margin-bottom: 20px;
}

.tm-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.tm-form-input,
.tm-form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.tm-form-input:focus,
.tm-form-textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.tm-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.tm-form-row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .tm-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Footer --- */
.tm-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 30px;
}

.tm-footer-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .tm-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tm-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.tm-footer-brand {
    max-width: 300px;
}

.tm-footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.7;
}

.tm-footer h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tm-footer-links {
    list-style: none;
    padding: 0;
}

.tm-footer-links li {
    margin-bottom: 8px;
}

.tm-footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color var(--transition-fast);
}

.tm-footer-links a:hover {
    color: var(--accent-cyan);
}

.tm-footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* --- Back to Top --- */
.tm-back-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 900;
    box-shadow: var(--shadow-glow-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-back-top.visible {
    opacity: 1;
    visibility: visible;
}

.tm-back-top:hover {
    transform: translateY(-3px);
}

/* --- Scroll Animations --- */
.tm-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.tm-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.tm-animate-delay-1 { transition-delay: 0.1s; }
.tm-animate-delay-2 { transition-delay: 0.2s; }
.tm-animate-delay-3 { transition-delay: 0.3s; }
.tm-animate-delay-4 { transition-delay: 0.4s; }

/* --- Search --- */
.tm-search {
    max-width: 400px;
    margin: 0 auto 40px;
    position: relative;
}

.tm-search input {
    width: 100%;
    padding: 14px 48px 14px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.92rem;
    outline: none;
    transition: all var(--transition-fast);
}

.tm-search input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.tm-search input::placeholder {
    color: var(--text-muted);
}

.tm-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* --- Code Block --- */
.tm-code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--accent-cyan);
    overflow-x: auto;
}

/* --- Highlight Tag --- */
.tm-highlight {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.88rem;
    font-family: var(--font-mono);
}

/* --- Divider --- */
.tm-divider {
    height: 1px;
    background: var(--border-glass);
    margin: 32px 0;
    border: none;
}

/* --- Payment Section Styles --- */
.tm-payment-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.tm-payment-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
}

.tm-payment-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.tm-payment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.tm-payment-info-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.tm-payment-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.tm-payment-timer {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-orange);
    font-family: var(--font-mono);
}

.tm-payment-address {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px;
    word-break: break-all;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- Modal Override --- */
.modal-content {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.modal-header {
    border-bottom-color: var(--border-glass);
}

.modal-footer {
    border-top-color: var(--border-glass);
}

.btn-close {
    filter: invert(1);
}

/* --- reCAPTCHA --- */
.g-recaptcha {
    display: inline-block;
    margin: 16px 0;
}

/* --- Changelog Page Styles --- */
.tm-changelog-item {
    position: relative;
    padding-left: 32px;
    margin-bottom: 40px;
}

.tm-changelog-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 36px;
    bottom: -40px;
    width: 2px;
    background: var(--border-glass);
}

.tm-changelog-item:last-child::before {
    display: none;
}

.tm-changelog-dot {
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow-cyan);
}

.tm-changelog-version {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tm-changelog-version h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.tm-changelog-date {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.tm-changelog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tm-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.tm-tag-new {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tm-tag-improved {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tm-tag-fixed {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.tm-tag-security {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.tm-changelog-list {
    list-style: none;
    padding: 0;
}

.tm-changelog-list li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.tm-changelog-list li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--accent-cyan);
}

/* --- Legal Pages --- */
.tm-legal {
    max-width: 800px;
    margin: 0 auto;
}

.tm-legal h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.tm-legal h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tm-legal p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.tm-legal ul, .tm-legal ol {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
}

.tm-legal li {
    margin-bottom: 8px;
    line-height: 1.7;
}
@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: left center;
    }
}

/* ── Analyze Channel Section ── */
.tm-analyze-list .tm-analyze-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
 
.tm-analyze-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}
 
.tm-analyze-item p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 4px 0 0;
    line-height: 1.5;
}
 
.tm-analyze-item strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}
 
/* Metric card */
.tm-analyze-metric {
    background: var(--card-bg, rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.2s, transform 0.2s;
}
 
.tm-analyze-metric:hover {
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}
 
.tm-analyze-metric-icon {
    font-size: 1.3rem;
    margin-bottom: 8px;
}
 
.tm-analyze-metric-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}
 
.tm-analyze-metric-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
 
/* Verdict banner */
.tm-analyze-verdict {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(16,185,129,0.06));
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: 12px;
    padding: 18px 20px;
}
 
.tm-analyze-verdict-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}
 
.tm-analyze-verdict strong {
    color: var(--text-primary);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 6px;
}
 
.tm-analyze-verdict p {
    color: var(--text-secondary);
    font-size: 0.87rem;
    line-height: 1.55;
    margin: 0;
}
 
/* Screenshot hover */
.tm-analyze-screenshot img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}
 
.tm-analyze-screenshot img:hover {
    transform: scale(1.015);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
 
/* Responsive */
@media (max-width: 900px) {
    .tm-analyze-row {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
 
    .tm-analyze-row:last-child .tm-analyze-screenshot {
        order: -1;
    }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* --- Print --- */
@media print {
    .tm-nav, .tm-back-top, .tm-search, .tm-nav-overlay {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
    }
    .tm-card, .tm-faq-item, .tm-feature-detail {
        border-color: #ddd;
        background: #fff;
        break-inside: avoid;
    }
    .tm-section {
        padding: 20px 0;
    }
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01s !important;
        transition-duration: 0.01s !important;
    }
    html {
        scroll-behavior: auto;
    }
    .tm-animate {
        opacity: 1;
        transform: none;
    }
}
