/* ==========================================
   STOP SPAM — Modern Telegram Dark Mode CSS
   ========================================== */

:root {
    --bg-dark: #0e1621;
    --bg-card: #17212b;
    --bg-card-hover: #202b36;
    --bg-element: #242f3d;
    --accent-blue: #24a1de;
    --accent-blue-hover: #1e8bbd;
    --accent-gradient: linear-gradient(135deg, #24a1de 0%, #0088cc 100%);
    --text-main: #f5f5f5;
    --text-muted: #7f91a4;
    --border-color: rgba(255, 255, 255, 0.08);
    --badge-bg: rgba(36, 161, 222, 0.15);
    
    --success: #31b545;
    --success-bg: rgba(49, 181, 69, 0.15);
    --warning: #e5a93c;
    --warning-bg: rgba(229, 169, 60, 0.15);
    --danger: #e53935;
    --danger-bg: rgba(229, 57, 53, 0.15);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #46b7ed;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typography & Headings */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

.section-header {
    margin-bottom: 56px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}

/* Buttons & Badges */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(36, 161, 222, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(36, 161, 222, 0.45);
    color: #ffffff;
}

.btn-secondary {
    background: var(--bg-element);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.9rem;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-accent {
    background: var(--badge-bg);
    color: var(--accent-blue);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 22, 33, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-badge {
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    padding: 80px 0 100px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--badge-bg);
    color: var(--accent-blue);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
}

/* Telegram Desktop Window Styling */
.tg-window {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.tg-header {
    background: var(--bg-element);
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.tg-chat-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;

}

.tg-chat-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.tg-chat-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tg-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #0e1621;
}

.tg-message {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-color);
}

.tg-bot-card {
    border-left: 4px solid var(--warning);
}

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

.card-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--warning);
}

.card-body-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
    color: #e1e9f2;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tg-btn {
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.btn-danger-soft { background: var(--danger-bg); color: var(--danger); }
.btn-success-soft { background: var(--success-bg); color: var(--success); }
.btn-dark-soft { background: var(--bg-element); color: var(--text-main); }

.tg-btn:hover {
    filter: brightness(1.2);
}

.tg-system-notice {
    background: rgba(49, 181, 69, 0.1);
    border: 1px solid rgba(49, 181, 69, 0.2);
    font-size: 0.85rem;
    color: var(--success);
    text-align: center;
    padding: 10px 14px;
}

/* Cards & Generic Components */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(36, 161, 222, 0.3);
}

/* Problem Cards */
.problem-card {
    background: var(--bg-card);
}

.problem-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Steps Grid */
.step-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--border-color);
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    opacity: 0.4;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Categories Grid */
.cat-card {
    padding: 24px;
}

.cat-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.cat-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.cat-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Dampeners Section */
.dampeners-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px;
    border: 1px solid var(--border-color);
}

.dampeners-info .section-title {
    margin: 16px 0 20px;
    font-size: 2.2rem;
}

.dampeners-list {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dampeners-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 0.95rem;
    color: #d1dbe5;
}

.list-icon {
    font-size: 1.1rem;
}

.user-msg {
    background: #182533;
    font-size: 0.9rem;
}

.tg-verdict-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.status-allow {
    background: rgba(49, 181, 69, 0.12);
    border: 1px solid rgba(49, 181, 69, 0.3);
    color: #e1f5e5;
}

/* Management Section */
.manage-window {
    max-width: 680px;
    margin: 40px auto 0;
}

.manage-grid-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.m-btn {
    background: var(--bg-element);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.m-btn:hover {
    background: var(--bg-card-hover);
    border-color: rgba(36, 161, 222, 0.4);
}

.m-btn-wide {
    grid-column: span 2;
}

.m-btn-half {
    grid-column: span 1;
}

.m-badge {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Partner UCPRbot Section */
.ucprbot-section {
    padding: 40px 0;
}

.ucprbot-card {
    background: linear-gradient(135deg, rgba(23, 33, 43, 0.9) 0%, rgba(36, 161, 222, 0.08) 100%);
    border-radius: var(--radius-xl);
    padding: 56px;
    border: 1px solid rgba(36, 161, 222, 0.25);
}

.ucprbot-header h2 {
    font-size: 2.2rem;
    margin: 16px 0 12px;
}

.ucprbot-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 720px;
    margin-bottom: 40px;
}

.ucprbot-flow {
    margin-bottom: 40px;
}

.flow-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.flow-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.flow-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.flow-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.ucprbot-scenarios h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.scenario-item {
    background: var(--bg-element);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.sc-icon {
    font-size: 1.4rem;
}

/* Transparency Section */
.t-card {
    text-align: center;
}

.t-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

/* Languages */
.lang-flags {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.lang-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
}

/* Free Section Box */
.free-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.free-content h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.free-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-blue);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* CTA Section */
.cta-box {
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    padding: 64px 32px;
    color: #ffffff;
    box-shadow: 0 20px 60px rgba(36, 161, 222, 0.3);
}

.cta-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: #ffffff;
    color: #0088cc;
}

.cta-buttons .btn-primary:hover {
    background: #f0f8ff;
    color: #006699;
}

/* Footer */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
    background: #090e15;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .dampeners-wrapper {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .free-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .section {
        padding: 60px 0;
    }
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    .manage-grid-buttons {
        grid-template-columns: 1fr;
    }
    .m-btn-wide, .m-btn-half {
        grid-column: span 1;
    }
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
    }
    .stat-divider {
        display: none;
    }
    .ucprbot-card {
        padding: 32px 20px;
    }
}
