/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0a0f;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    width: 100%;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.1);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* ── Hero ── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0 5rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: #888;
    font-size: 1.15rem;
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-stats-mini {
    display: flex;
    gap: 2rem;
    color: #555;
    font-size: 0.85rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    max-width: 300px;
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.2));
}

/* ── Section Headers ── */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 0.4rem;
}

/* ── Features ── */
.features-section {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: #12121f;
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid #1e1e34;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #667eea;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feature-card p { color: #777; font-size: 0.9rem; line-height: 1.5; }

.feature-tag {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
}

/* ── Stats ── */
.stats-section {
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.stat-item {
    background: #12121f;
    padding: 2rem 1rem;
    border-radius: 12px;
    border: 1px solid #1e1e34;
    text-align: center;
    transition: border-color 0.3s;
}

.stat-item:hover { border-color: #667eea; }
.stat-item.highlight { border-color: #667eea; background: rgba(102, 126, 234, 0.05); }

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: #667eea;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Pricing ── */
.pricing-section {
    padding: 4rem 0;
}

.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    background: #12121f;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid #2a2a4e;
    text-align: center;
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-price { margin: 1rem 0; }
.pricing-price .currency { font-size: 1.5rem; vertical-align: top; color: #667eea; }
.pricing-price .amount { font-size: 4rem; font-weight: 800; color: #667eea; }
.pricing-price .period { font-size: 0.9rem; color: #666; }
.pricing-note { color: #666; font-size: 0.9rem; }

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
    padding: 0;
}

.pricing-features li {
    padding: 0.4rem 0;
    color: #ccc;
    font-size: 0.9rem;
}

.pricing-features li::before { content: "✅ "; color: #27c93f; }
.pricing-guarantee { color: #555; font-size: 0.85rem; margin-top: 1rem; }

/* ── Footer ── */
footer {
    border-top: 1px solid #1a1a2e;
    padding-top: 3rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-brand .footer-logo { font-size: 2rem; }
.footer-brand .footer-name { font-size: 1.2rem; font-weight: 700; margin-left: 0.5rem; }
.footer-desc { color: #666; font-size: 0.9rem; margin-top: 0.3rem; }

.footer-links-group h4 { color: #e0e0e0; font-size: 0.9rem; margin-bottom: 0.8rem; }
.footer-links-group a {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    transition: color 0.2s;
}

.footer-links-group a:hover { color: #667eea; }

.footer-bottom {
    border-top: 1px solid #1a1a2e;
    padding-top: 1.5rem;
    text-align: center;
    color: #444;
    font-size: 0.8rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats-mini { justify-content: center; }
    .hero-visual img { max-width: 200px; }
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .section-header h2 { font-size: 2rem; }
    .pricing-price .amount { font-size: 3rem; }
}

/* ── Docs Styles ── */

.docs-header {
    padding: 2rem 0 3rem;
}

.docs-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.docs-header p {
    color: #8888aa;
    font-size: 1.1rem;
}

.back-link {
    color: #667eea;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.back-link:hover {
    text-decoration: underline;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0 3rem;
}

.docs-card {
    background: #12121f;
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid #1e1e34;
    transition: all 0.3s;
}

.docs-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.docs-card h3 {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.docs-card p {
    color: #8888aa;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.docs-card .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
}

.docs-content {
    padding: 1rem 0 3rem;
    max-width: 800px;
}

.docs-content h2 {
    color: #e0e0e0;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    border-bottom: 1px solid #1e1e34;
    padding-bottom: 0.5rem;
}

.docs-content h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin: 1.5rem 0 0.5rem;
}

.docs-content p, .docs-content li {
    color: #aaa;
    line-height: 1.8;
}

.docs-content ul {
    padding-left: 1.5rem;
}

.docs-content ul li {
    margin: 0.3rem 0;
}

.docs-content pre {
    background: #0a0a0f;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid #1e1e34;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.85rem;
    color: #e0e0e0;
    margin: 0.8rem 0;
}

.docs-content code {
    font-family: monospace;
    color: #667eea;
}

.docs-content pre code {
    color: #e0e0e0;
}

.concept-card {
    background: #12121f;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #1e1e34;
    margin: 1.5rem 0;
}

.concept-card h3 {
    margin-top: 0;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
    .docs-header h1 {
        font-size: 2rem;
    }
}

/* ── API Styles ── */

.api-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #1e1e34;
}

.api-nav a {
    color: #667eea;
    text-decoration: none;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    border: 1px solid #1e1e34;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.api-nav a:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.api-class {
    background: #12121f;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #1e1e34;
    margin: 1rem 0 2rem;
}

.api-class h4 {
    color: #764ba2;
    margin: 0 0 0.5rem 0;
}

.api-class table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.api-class table tr {
    border-bottom: 1px solid #1a1a2e;
}

.api-class table td {
    padding: 0.6rem 0.5rem;
    vertical-align: top;
}

.api-class table td:first-child {
    color: #667eea;
    font-family: monospace;
    width: 40%;
}

.api-class table td:last-child {
    color: #aaa;
}

@media (max-width: 640px) {
    .api-class table td:first-child {
        width: 50%;
        font-size: 0.75rem;
    }
    .api-class table td:last-child {
        font-size: 0.8rem;
    }
}

/* ── Consulting Page Styles ── */

/* Navigation */
.consulting-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #1a1a2e;
    margin-bottom: 3rem;
}

.consulting-nav .nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 700;
}

.consulting-nav .nav-back {
    color: #667eea;
    text-decoration: none;
}

.consulting-nav .nav-back:hover {
    text-decoration: underline;
}

/* Hero */
.consulting-hero {
    text-align: center;
    padding: 2rem 0 4rem;
}

.consulting-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.consulting-hero .subtitle {
    font-size: 1.3rem;
    color: #8888aa;
    margin: 0.5rem 0 1.5rem;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-badges span {
    background: #1a1a2e;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #8888aa;
    border: 1px solid #2a2a4e;
}

/* Services */
.services {
    padding: 4rem 0;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: #12121f;
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid #1e1e34;
    transition: all 0.3s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #667eea;
}

.service-card.featured {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.service-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 0.2rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.service-card h3 {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #8888aa;
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-card ul li {
    color: #aaa;
    font-size: 0.85rem;
    padding: 0.2rem 0;
}

.price {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Why Me */
.why-me {
    padding: 4rem 0;
}

.why-me h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.why-item {
    background: #12121f;
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid #1e1e34;
    text-align: center;
}

.why-number {
    display: inline-block;
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.why-item h3 {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.why-item p {
    color: #8888aa;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Portfolio */
.portfolio {
    padding: 4rem 0;
}

.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    background: #12121f;
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid #1e1e34;
}

.portfolio-item h3 {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.portfolio-item p {
    color: #8888aa;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.portfolio-item a {
    color: #667eea;
    text-decoration: none;
}

.portfolio-item a:hover {
    text-decoration: underline;
}

/* Pricing */
.pricing {
    padding: 4rem 0;
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pricing-tier {
    background: #12121f;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #1e1e34;
    text-align: center;
    position: relative;
}

.pricing-tier.featured {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 0.2rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-tier h3 {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 0.3rem;
}

.pricing-tier .price {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    background: none;
    padding: 0;
}

.pricing-tier ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.pricing-tier ul li {
    color: #aaa;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

/* Contact */
.contact {
    padding: 4rem 0;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.contact p {
    color: #8888aa;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .services-grid,
    .why-grid,
    .portfolio-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        flex-direction: column;
        align-items: center;
    }
}


/* ─── CHECKOUT MODAL ─── */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #12121f;
    border: 1px solid #2a2a4e;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: #e0e0e0;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header img {
    margin-bottom: 0.5rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.modal-subtitle {
    color: #8888aa;
    font-size: 0.95rem;
    margin: 0.2rem 0 0;
}

.modal-price {
    text-align: center;
    margin: 1rem 0 0.2rem;
}

.modal-currency {
    font-size: 1.5rem;
    vertical-align: top;
    color: #667eea;
}

.modal-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #667eea;
}

.modal-period {
    font-size: 1rem;
    color: #666;
}

.modal-note {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

.modal-features {
    margin: 1rem 0;
    text-align: left;
}

.modal-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.4rem 0;
    color: #ccc;
    font-size: 0.92rem;
}

.modal-feature span:first-child {
    font-size: 1rem;
    min-width: 1.5rem;
}

.modal-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.modal-guarantee {
    color: #555;
    font-size: 0.85rem;
    margin-top: 0.8rem;
}

.modal-powered {
    color: #444;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
    }
    .modal-amount {
        font-size: 2.8rem;
    }
    .modal-feature {
        font-size: 0.85rem;
    }
}

/* ─── ANALYTICS DASHBOARD ─── */

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.analytics-card {
    background: #12121f;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #1e1e34;
    text-align: center;
    transition: border-color 0.3s;
}

.analytics-card:hover {
    border-color: #667eea;
}

.analytics-card h3 {
    color: #8888aa;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.analytics-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
}

.analytics-chart {
    background: #12121f;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #1e1e34;
    margin: 2rem 0;
}

.analytics-chart h2 {
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    font-size: 0.85rem;
    color: #8888aa;
}

.legend-item.page-views { color: #667eea; }
.legend-item.playground { color: #764ba2; }
.legend-item.buys { color: #27c93f; }
.legend-item.consulting { color: #f0c040; }

.analytics-events {
    background: #12121f;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #1e1e34;
    margin: 2rem 0;
}

.analytics-events h2 {
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.analytics-actions {
    text-align: center;
    margin: 2rem 0;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #1a1a2e;
    font-size: 0.85rem;
}

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

.event-time {
    color: #444466;
    font-size: 0.75rem;
    min-width: 150px;
}

.event-emoji {
    font-size: 1.1rem;
    min-width: 2rem;
}

.event-name {
    color: #667eea;
    font-weight: 600;
    min-width: 140px;
}

.event-details {
    color: #8888aa;
    font-family: monospace;
    font-size: 0.75rem;
    word-break: break-all;
}

/* ─── RESPONSIVE ─── */

@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .chart-legend {
        gap: 1rem;
    }
    
    .event-item {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .event-time {
        min-width: 100px;
    }
    
    .event-name {
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}
