/* ==========================================================================
   TradeBeacon Design System
   A clean, professional light-theme CSS for a trading tools website.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
    --bg-white: #ffffff;
    --bg-light: #f8f9fb;
    --bg-dark: #1a1a2e;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-on-dark: #e2e8f0;
    --brand: #2563eb;
    --brand-hover: #1d4ed8;
    --brand-light: #eff6ff;
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    --nav-height: 64px;
    --max-width: 1200px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@view-transition {
    navigation: auto;
}
::view-transition-old(root) {
    animation: none;
}
::view-transition-new(root) {
    animation: fade-in 0.15s ease;
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 12px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 8px;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 8px;
}

p {
    margin-bottom: 16px;
    line-height: 1.6;
}

small {
    font-size: 0.85rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

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

.text-muted {
    color: var(--text-muted);
}

.text-brand {
    color: var(--brand);
}

/* --------------------------------------------------------------------------
   4. Navigation (.site-nav)
   -------------------------------------------------------------------------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand);
}

.nav-links a.active {
    color: var(--brand);
    font-weight: 600;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    color: var(--brand);
}

.mobile-nav hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 48px 0;
}

.section-gray {
    background-color: var(--bg-light);
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--text-on-dark);
}

/* --------------------------------------------------------------------------
   6. Hero Section (.hero)
   -------------------------------------------------------------------------- */
.hero {
    padding: 60px 0 48px;
}

.hero .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

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

.hero-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 32px;
}

.hero-image {
    flex: 1;
    min-height: 340px;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   7. Buttons (.btn)
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.btn-primary:hover {
    background-color: var(--brand-hover);
    border-color: var(--brand-hover);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--brand);
    border-color: var(--brand);
}

.btn-secondary:hover {
    background-color: var(--brand);
    color: #ffffff;
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    background-color: var(--bg-light);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   8. Trust Bar (.trust-bar)
   -------------------------------------------------------------------------- */
.trust-bar {
    background-color: var(--bg-light);
    padding: 24px 0;
}

.trust-items {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 24px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
}

.trust-number {
    font-size: 1.5rem;
    color: var(--brand);
}

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

/* --------------------------------------------------------------------------
   9. Product Cards (.product-card)
   -------------------------------------------------------------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
}

.product-card-image {
    height: 200px;
    background-color: var(--border-light);
    overflow: hidden;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 24px;
}

.product-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-card-desc {
    color: var(--text-secondary);
    margin: 8px 0 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-card-badges {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 12px;
}

.product-card-features {
    margin-bottom: 16px;
}

.product-card-features li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}

.product-card-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 0.8rem;
}

.product-card-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
}
.product-card-actions .btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
}
.product-card-actions .btn-ghost {
    color: var(--text-primary);
    background: var(--bg-light);
}
.product-card-actions .btn-ghost:hover {
    background: var(--border);
}
.product-card-actions .btn-primary {
    background: rgba(37, 99, 235, 0.12);
    color: var(--brand);
}
.product-card-actions .btn-primary:hover {
    background: rgba(37, 99, 235, 0.2);
}

/* --------------------------------------------------------------------------
   10. Badge (.badge)
   -------------------------------------------------------------------------- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.badge-blue {
    background-color: var(--brand-light);
    color: var(--brand);
}

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

.badge-orange {
    background-color: #fff7ed;
    color: #ea580c;
}

.badge-purple {
    background-color: #f5f3ff;
    color: #7c3aed;
}

.badge-yellow {
    background-color: #fefce8;
    color: #ca8a04;
}

/* --------------------------------------------------------------------------
   11. Steps / How It Works (.steps)
   -------------------------------------------------------------------------- */
.steps {
    display: flex;
    flex-direction: row;
    gap: 40px;
    counter-reset: step-counter;
}

.step {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--brand);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-title {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   12. Testimonial Cards (.testimonials-grid)
   -------------------------------------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--border);
    flex-shrink: 0;
}

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

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. CTA Banner (.cta-banner)
   -------------------------------------------------------------------------- */
.cta-banner {
    background-color: var(--brand);
    color: #ffffff;
    padding: 60px;
    text-align: center;
    border-radius: 16px;
}

.cta-banner h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 8px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

.cta-banner .btn {
    margin-top: 24px;
    background-color: #ffffff;
    color: var(--brand);
    border-color: #ffffff;
}

.cta-banner .btn:hover {
    background-color: var(--brand-light);
    border-color: var(--brand-light);
}

/* --------------------------------------------------------------------------
   14. Pricing Cards (.pricing-grid)
   -------------------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--brand);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--brand);
    color: #ffffff;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 8px 0;
    line-height: 1.2;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-powered {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pricing-tp-logo {
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.6;
}

.pricing-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.pricing-features {
    flex: 1;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-left: 22px;
    position: relative;
}

.pricing-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

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

.pricing-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 16px;
    padding: 12px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    line-height: 1.5;
}

.pricing-cta {
    margin-top: 24px;
}

.pricing-card {
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
    border-color: var(--brand);
}
.pricing-card.selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--brand);
}

/* Bot Selector */
.bot-selector {
    margin-top: 40px;
    padding: 32px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.bot-selector h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}
.bot-selector-sub {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 24px;
}
.bot-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.bot-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}
.bot-option:hover {
    border-color: var(--brand);
    background-color: var(--bg-light);
}
.bot-option.selected {
    border-color: var(--brand);
    background-color: rgba(var(--brand-rgb, 79, 70, 229), 0.05);
    box-shadow: 0 0 0 2px var(--brand);
}
.bot-option-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.bot-option-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.bot-option-market {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--brand);
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.bot-tag {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    margin-left: 4px;
}
.bot-checkout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.bot-summary {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.bot-option-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bot-option-check {
    color: var(--brand);
    font-weight: 700;
    font-size: 1.1rem;
}
.bot-option.in-cart {
    border-color: var(--brand);
    background-color: rgba(79, 70, 229, 0.04);
}
.bot-option.suite-included {
    border-color: var(--brand);
    background-color: rgba(79, 70, 229, 0.04);
    opacity: 0.7;
    cursor: default;
}
.bot-section {
    margin-bottom: 24px;
}
.bot-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.bot-section-sub {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.suite-upsell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin-top: 12px;
    border: 2px dashed var(--brand);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s;
}
.suite-upsell:hover {
    background-color: rgba(79, 70, 229, 0.04);
}
.suite-upsell-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand);
}
.suite-upsell-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.suite-upsell-price {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--brand);
}
.suite-upsell-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}
.bot-section-collapsible {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0;
}
.bot-section-toggle {
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bot-section-toggle::-webkit-details-marker { display: none; }
.bot-section-toggle::before {
    content: "\25B6";
    font-size: 0.7rem;
    transition: transform 0.2s;
}
details[open] > .bot-section-toggle::before {
    transform: rotate(90deg);
}
details[open].bot-section-collapsible {
    padding: 0 16px 16px;
}
.bot-section-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Cart */
.bot-cart {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.bot-cart h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.cart-item-bot {
    font-weight: 600;
    font-size: 0.9rem;
}
.cart-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-item-price {
    font-weight: 600;
    font-size: 0.9rem;
}
.cart-item-remove {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 0 4px;
}
.cart-item-remove:hover {
    color: var(--danger, #ef4444);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 1.1rem;
    border-top: 2px solid var(--border);
    margin-top: 8px;
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .bot-list {
        grid-template-columns: 1fr;
    }
    .bot-checkout {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   15. FAQ (.faq)
   -------------------------------------------------------------------------- */
.faq {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

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

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    list-style: none;
    color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-answer {
    color: var(--text-secondary);
    padding-top: 8px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   16. Footer (.site-footer)
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: var(--text-on-dark);
    opacity: 0.8;
    font-size: 0.9rem;
    padding: 4px 0;
    transition: opacity 0.2s ease;
}

.footer-col a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   17. Forms (.form-group)
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font);
    color: var(--text-primary);
    background-color: var(--bg-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

.form-helper {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 0.875rem;
    color: var(--danger);
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   18. Auth Card (.auth-container)
   -------------------------------------------------------------------------- */
.auth-container {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    max-width: 420px;
    width: 100%;
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.auth-title {
    text-align: center;
    margin-bottom: 8px;
}

.signup-plan-notice {
    background: var(--bg-light);
    border: 1px solid var(--brand);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--brand);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   19. Flash Messages (.flash-message)
   -------------------------------------------------------------------------- */
.flash-message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.flash-success {
    background-color: var(--success-light);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.flash-error {
    background-color: #fef2f2;
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

/* --------------------------------------------------------------------------
   20. Dashboard (.dashboard)
   -------------------------------------------------------------------------- */
.dashboard {
    padding: 40px 0;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.bot-info-list {
    margin-bottom: 12px;
}
.bot-info-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
}
.bot-info-plan {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}
.bot-info-name {
    font-weight: 600;
    font-size: 0.9rem;
}
.bot-info-right {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}
.bot-info-price {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 65px;
    text-align: right;
}
.bot-info-right .plan-badge {
    min-width: 75px;
    text-align: center;
}
.bot-info-right .btn {
    min-width: 85px;
    white-space: nowrap;
}
.bot-info-tag {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--border-light, #e5e7eb);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    margin-left: 6px;
    vertical-align: middle;
}
.bot-info-addon {
    margin-left: 24px;
    font-size: 0.9em;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .bot-info-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .bot-info-right {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .bot-info-price {
        min-width: auto;
        text-align: left;
    }
    .bot-info-right .plan-badge {
        min-width: auto;
    }
    .bot-info-right .btn {
        min-width: auto;
    }
    .bot-info-addon {
        margin-left: 12px;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.bot-swap-option {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}
.bot-swap-option:hover {
    border-color: var(--brand);
    background: var(--bg-light);
}
.bot-swap-option.selected {
    border-color: var(--brand);
    background: rgba(79, 70, 229, 0.05);
    box-shadow: 0 0 0 2px var(--brand);
}
.bot-swap-option.current {
    opacity: 0.5;
}
.bot-swap-current {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.bot-add-section {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}
.bot-add-toggle {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    list-style: none;
}
.bot-add-toggle::-webkit-details-marker { display: none; }
.bot-add-toggle::before {
    content: "\25B6";
    font-size: 0.7rem;
    margin-right: 8px;
    transition: transform 0.2s;
    display: inline-block;
}
details[open] > .bot-add-toggle::before {
    transform: rotate(90deg);
}
.bot-add-list {
    padding: 0 12px 12px;
}
.suite-upsell-dash {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin: 0 12px 12px;
    border: 2px dashed var(--brand);
    border-radius: var(--radius-md);
    cursor: pointer;
}
.suite-upsell-dash:hover {
    background: rgba(79, 70, 229, 0.04);
}
.suite-upsell-dash.selected {
    background: rgba(79, 70, 229, 0.08);
    box-shadow: 0 0 0 2px var(--brand);
}

.plan-change-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.plan-change-option {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.plan-change-option:hover {
    border-color: var(--brand);
    background: var(--bg-light);
}
.plan-change-option.selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--brand);
    background: rgba(79, 70, 229, 0.05);
}
.plan-change-option.current {
    opacity: 0.5;
    cursor: default;
}
.plan-change-name {
    font-weight: 600;
    font-size: 0.95rem;
}
.plan-change-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.plan-change-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand);
}

.dash-card-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 600;
}

.plan-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-badge-active,
.plan-badge.active {
    background-color: var(--brand-light);
    color: var(--brand);
}

.plan-badge-inactive,
.plan-badge.inactive {
    background-color: #fef2f2;
    color: var(--danger);
}

.plan-badge.cancelling {
    background-color: #fef3c7;
    color: #92400e;
}

.plan-badge.cancelled {
    background-color: #f3f4f6;
    color: #6b7280;
}

.btn-danger-text {
    color: var(--danger, #ef4444) !important;
}
.btn-danger-text:hover {
    background-color: #fef2f2 !important;
}

/* --------------------------------------------------------------------------
   21. Docs Layout (.docs-layout)
   -------------------------------------------------------------------------- */
.docs-layout {
    display: flex;
    flex-direction: row;
    gap: 0;
    min-height: calc(100vh - var(--nav-height) - 200px);
}

.docs-sidebar {
    width: 272px;
    flex-shrink: 0;
    background: var(--bg-light);
    padding: 28px 20px;
    border-radius: 16px;
    margin: 24px 0;
    align-self: flex-start;
    position: sticky;
    top: calc(var(--nav-height) + 16px);
}

.docs-sidebar h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin: 28px 0 10px;
    font-weight: 700;
    padding-left: 12px;
}

.docs-sidebar h4:first-child {
    margin-top: 0;
}

.docs-sidebar a {
    display: block;
    padding: 7px 12px;
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    position: relative;
    line-height: 1.4;
}

.docs-sidebar a:hover {
    background-color: var(--bg-white);
    color: var(--text-primary);
}

.docs-sidebar a.active {
    background-color: var(--bg-white);
    color: var(--brand);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.docs-sidebar a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--brand);
    border-radius: 3px;
}

.docs-content {
    flex: 1;
    max-width: 760px;
    padding: 32px 0 32px 48px;
}

.docs-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.docs-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.docs-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.docs-content p {
    line-height: 1.75;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.docs-content code {
    background-color: var(--border-light);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

.docs-content pre {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 16px;
    line-height: 1.5;
}

.docs-content pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-size: 0.875rem;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.docs-content ul {
    list-style: disc;
}

.docs-content ol {
    list-style: decimal;
}

.docs-content li {
    margin-bottom: 6px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.docs-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 16px 0;
    box-shadow: var(--shadow-sm);
}

.docs-content strong {
    color: var(--text-primary);
}

.docs-content a {
    color: var(--brand);
}
.docs-content a:hover {
    text-decoration: underline;
}

.docs-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

.docs-content .video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 16px 0;
    border-radius: var(--radius-md);
}
.docs-content .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Docs mobile nav */
.docs-mobile-nav {
    display: none;
    margin: 16px 0;
}
.docs-mobile-toggle {
    display: block;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    list-style: none;
    color: var(--text-primary);
}
.docs-mobile-toggle::-webkit-details-marker { display: none; }
.docs-mobile-toggle::before {
    content: "\25B6";
    font-size: 0.65rem;
    margin-right: 8px;
    display: inline-block;
    transition: transform 0.2s;
}
details[open] > .docs-mobile-toggle::before {
    transform: rotate(90deg);
}
.docs-mobile-links {
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 0 0 10px 10px;
    margin-top: -4px;
}
.docs-mobile-links h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin: 16px 0 6px;
    font-weight: 700;
}
.docs-mobile-links h4:first-child { margin-top: 0; }
.docs-mobile-links a {
    display: block;
    padding: 6px 10px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: 6px;
}
.docs-mobile-links a.active {
    color: var(--brand);
    font-weight: 600;
    background: var(--bg-white);
}

@media (max-width: 768px) {
    .docs-mobile-nav { display: block; }
    .docs-sidebar { display: none; }
    .docs-content { padding: 16px 0; }
    .docs-content h1 { font-size: 1.6rem; }
}

.docs-nav-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.docs-nav-footer a {
    color: var(--brand);
    font-size: 0.9rem;
}

.docs-content li {
    padding: 4px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.docs-placeholder {
    background-color: var(--border-light);
    border: 2px dashed #cbd5e1;
    padding: 40px;
    text-align: center;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   22. Utilities
   -------------------------------------------------------------------------- */
.d-flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.w-full {
    width: 100%;
}

/* --------------------------------------------------------------------------
   23. Responsive: 1024px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .trust-items {
        flex-wrap: wrap;
    }

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

/* --------------------------------------------------------------------------
   24. Responsive: 768px
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Hero stacks vertically */
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        min-height: 240px;
        width: 100%;
    }

    /* Nav: links hidden, toggle shown */
    .nav-links {
        display: none;
    }

    .nav-auth {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Pricing single column */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    /* Products single column */
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials single column */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Footer 2 columns */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Docs: sidebar hidden, content full width */
    .docs-sidebar {
        display: none;
    }

    .docs-content {
        max-width: 100%;
    }

    /* Steps column */
    .steps {
        flex-direction: column;
    }

    /* Dashboard single column */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    /* Section padding reduced */
    .section {
        padding: 60px 0;
    }

    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    /* CTA banner */
    .cta-banner {
        padding: 40px 24px;
    }

    /* Hidden utility */
    .hidden-mobile {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   25. Responsive: 480px
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 24px;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .container {
        padding: 0 16px;
    }

    .cta-banner {
        padding: 32px 16px;
        border-radius: var(--radius-md);
    }

    .cta-banner h2 {
        font-size: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   26. Hidden-desktop utility (above 768px)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
    .hidden-desktop {
        display: none !important;
    }
}

/* ============================================
   Admin Panel Styles
   ============================================ */

/* Admin Sidebar Layout */
.admin-body {
    margin: 0;
    min-height: 100vh;
}
.admin-with-sidebar {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 220px;
    min-width: 220px;
    background: #1a1f2e;
    color: #c8cdd8;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar-header {
    padding: 20px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar-logo {
    font-weight: 800;
    font-size: 1rem;
    color: white;
}
.admin-sidebar-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin-left: 8px;
}
.admin-sidebar-nav {
    flex: 1;
    padding: 8px 0;
}
.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.1s;
    border-left: 3px solid transparent;
}
.admin-sidebar-nav a:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}
.admin-sidebar-nav a.active {
    color: white;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--brand);
}
.sidebar-badge {
    background: #dc2626;
    color: white;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}
.admin-sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.admin-sidebar-footer a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 6px 0;
    transition: color 0.1s;
}
.admin-sidebar-footer a:hover {
    color: white;
}
.admin-main {
    flex: 1;
    min-width: 0;
    background: var(--bg);
    overflow-x: hidden;
}
.admin-sidebar-backdrop {
    display: none;
}
.admin-mobile-topbar {
    display: none;
}
.admin-topbar-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
}
.admin-topbar-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 1px;
}
.admin-topbar-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}
@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        left: -220px;
        z-index: 1000;
        transition: left 0.2s;
    }
    .admin-sidebar.open {
        left: 0;
    }
    .admin-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }
    .admin-sidebar-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }
    .admin-mobile-topbar {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #1a1f2e;
        padding: 8px 12px;
        position: sticky;
        top: 0;
        z-index: 998;
    }
    .admin-layout {
        padding: 16px;
    }
    .admin-header h1 {
        font-size: 1.3rem;
    }
    /* Responsive table → card layout */
    .admin-table-wrap {
        background: none;
        border: none;
        overflow: visible !important;
    }
    .admin-detail-card {
        overflow: visible;
    }
    .admin-table thead { display: none; }
    .admin-table { background: none; }
    .admin-table tbody tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        margin-bottom: 12px;
        padding: 4px 0;
        background: white;
    }
    .admin-table td {
        display: flex;
        flex-wrap: wrap;
        padding: 6px 14px;
        border-bottom: none;
        font-size: 0.85rem;
        gap: 2px 8px;
    }
    .admin-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        width: 100%;
    }
    .admin-table td[data-label=""]::before {
        display: none;
    }
    .admin-table td:last-child {
        border-bottom: none;
    }
    .admin-table .hide-mobile,
    .admin-table th.hide-mobile { display: none; }
    .admin-table td .admin-badge {
        margin-bottom: 2px;
    }
}
@media (max-width: 480px) {
    .admin-layout {
        padding: 12px;
    }
    .admin-header h1 {
        font-size: 1.1rem;
    }
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

.admin-layout {
    padding: 32px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.admin-header h1 {
    font-size: 1.75rem;
}

/* Admin Menu List */
.admin-menu-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}
.admin-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.1s;
}
.admin-menu-item:nth-child(odd) {
    border-right: 1px solid var(--border-light);
}
.admin-menu-item:nth-last-child(1),
.admin-menu-item:nth-last-child(2) {
    border-bottom: none;
}
.admin-menu-item:hover {
    background: var(--bg-light);
}
.admin-menu-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-menu-chevron {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
}
.admin-menu-badge {
    background: #dc2626;
    color: white;
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}
.admin-menu-alert {
    color: #dc2626;
    font-weight: 600;
}
.admin-menu-alert .admin-menu-chevron {
    color: #dc2626;
}
@media (max-width: 480px) {
    .admin-menu-card { grid-template-columns: 1fr; }
    .admin-menu-item:nth-child(odd) { border-right: none; }
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.admin-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-stat-value.brand { color: var(--brand); }
.admin-stat-value.success { color: var(--success); }
.admin-stat-value.warning { color: var(--warning); }

/* Admin Tables */
.admin-table-wrap {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

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

.admin-table tr:hover td {
    background: #fafbfc;
}

.admin-table td a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.admin-table td a:hover {
    text-decoration: underline;
}

/* Admin Filters */
.admin-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-search {
    flex: 1;
    min-width: 200px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.admin-search:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Admin Plan Badges */
.admin-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-badge-basic { background: var(--brand-light); color: var(--brand); }
.admin-badge-prop { background: var(--success-light); color: var(--success); }
.admin-badge-suite { background: #f5f3ff; color: #7c3aed; }
.admin-badge-live { background: #fff7ed; color: #ea580c; }
.admin-badge-guest { background: #f1f5f9; color: var(--text-muted); }
.admin-badge-none { background: #f1f5f9; color: var(--text-muted); }
.admin-badge-paid { background: var(--success-light); color: var(--success); }
.admin-badge-cancelled { background: #fef2f2; color: var(--danger); }
.admin-badge-active { background: var(--success-light); color: var(--success); }
.admin-badge-inactive { background: #fef2f2; color: var(--danger); }
.admin-badge-past_due { background: #fff7ed; color: #ea580c; }

/* Admin User Header */
.admin-user-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 16px;
}
.admin-user-header-info h1 {
    margin-bottom: 2px;
    font-size: 1.5rem;
}
.admin-user-email {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}
.admin-user-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 4px 0 0;
}
.admin-user-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Subscription Cards */
.admin-sub-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    gap: 12px;
}
.admin-sub-card-info {
    min-width: 0;
    flex: 1;
}
.admin-sub-card-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
    word-break: break-all;
    margin-top: 2px;
}
.admin-sub-card-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 0.85rem;
}

/* Monospace IDs */
.admin-mono-id {
    font-family: monospace;
    font-size: 0.8rem;
    word-break: break-all;
}

/* Admin User Detail */
.admin-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.admin-detail-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

.admin-detail-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.admin-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

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

.admin-detail-value {
    font-weight: 500;
    color: var(--text-primary);
}

/* Admin Actions */
.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: var(--warning);
    color: white;
    border: none;
}

.btn-warning:hover {
    background: #d97706;
}

/* Stripe Info Panel */
.stripe-panel {
    background: #f8f9fb;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
}

.stripe-panel h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.stripe-invoice {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-light);
}

/* Admin Responsive */
@media (max-width: 1024px) {
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-detail-grid { grid-template-columns: 1fr; }
    .admin-layout { padding: 24px 20px; }
}

@media (max-width: 768px) {
    .admin-filters { flex-direction: column; }
    .admin-search { width: 100%; }
    .admin-table { font-size: 0.8rem; }
    .admin-table th, .admin-table td { padding: 8px 10px; }
    .admin-detail-grid { grid-template-columns: 1fr; }

    /* User detail header */
    .admin-user-header { flex-direction: column; gap: 12px; }
    .admin-user-header-actions { width: 100%; }
    .admin-user-header-info h1 { font-size: 1.2rem; }

    /* Subscription cards */
    .admin-sub-card { flex-direction: column; align-items: flex-start; }
    .admin-sub-card-right { width: 100%; justify-content: space-between; }

    /* Dashboard mobile */
    .dashboard { padding: 16px; }
    .dashboard-header h1 { font-size: 1.3rem; }
    .dash-card { padding: 16px; }
    .bot-info-item { grid-template-columns: 1fr; gap: 8px; }
    .bot-info-right { justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
    .bot-info-name { font-size: 0.85rem; }

    /* Modal mobile */
    .modal-card { margin: 16px; padding: 20px; max-width: calc(100vw - 32px); max-height: 90vh; overflow-y: auto; }
}

@media (max-width: 480px) {
    .bot-info-right .btn { font-size: 0.75rem; padding: 4px 6px; }
}

/* Members Area */
.members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.members-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: block;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.members-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
}
.members-card h3 { margin: 12px 0 8px; }
.members-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.members-card-icon { font-size: 2rem; }
.members-card-coming { opacity: 0.6; cursor: default; }
.members-card-coming:hover { border-color: var(--border); box-shadow: none; }
.members-coming-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

/* Zone Table */
.zone-table-wrap {
    margin-bottom: 24px;
}
.zone-ticker {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.zone-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.zone-table th {
    text-align: left;
    padding: 8px 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-light);
    font-weight: 600;
}
.zone-table td {
    padding: 6px 16px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
}

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

.zone-list-text {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre;
    color: var(--text-primary);
}

/* Blog Hub */
.section-blog-teaser {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.blog-kicker {
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand);
}

.blog-teaser-header,
.blog-hub-grid,
.blog-archive-head,
.blog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.blog-teaser-grid,
.blog-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.blog-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover,
.blog-feature:hover,
.blog-pagination-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
}

.blog-card a,
.blog-feature {
    display: block;
}

.blog-card-image {
    height: 220px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}

.blog-card-image img,
.blog-feature-media img,
.blog-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-body h3,
.blog-feature-copy h2 {
    margin-bottom: 12px;
}

.blog-card-body p,
.blog-feature-copy p,
.blog-post-subtitle,
.blog-sidebar-card p,
.blog-empty-state p,
.blog-empty-results p {
    color: var(--text-secondary);
}

.blog-card-meta,
.blog-card-footer,
.blog-results-count,
.blog-back-link {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.blog-card-footer {
    justify-content: space-between;
    margin-top: 18px;
}

.blog-card-link {
    color: var(--brand);
    font-weight: 600;
}

.blog-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid currentColor;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-pill-solid {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

.blog-badge-automation {
    color: #2563eb;
    background: #eff6ff;
}

.blog-badge-technical {
    color: #0f766e;
    background: #ecfeff;
}

.blog-badge-funded {
    color: #7c3aed;
    background: #f5f3ff;
}

.blog-badge-risk {
    color: #b45309;
    background: #fff7ed;
}

.blog-badge-process {
    color: #be123c;
    background: #fff1f2;
}

.blog-glow-automation {
    background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
}

.blog-glow-technical {
    background: linear-gradient(135deg, #0f766e 0%, #5eead4 100%);
}

.blog-glow-funded {
    background: linear-gradient(135deg, #6d28d9 0%, #c4b5fd 100%);
}

.blog-glow-risk {
    background: linear-gradient(135deg, #b45309 0%, #fdba74 100%);
}

.blog-glow-process {
    background: linear-gradient(135deg, #be123c 0%, #fda4af 100%);
}

.blog-hub-hero,
.blog-post-hero {
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.16), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #fdfefe 100%);
    border-bottom: 1px solid var(--border);
}

.blog-hub-hero {
    padding: 56px 0 40px;
}

.blog-hub-title {
    max-width: 860px;
    margin-bottom: 18px;
    font-size: 3.4rem;
    line-height: 1.04;
}

.blog-hub-subtitle {
    max-width: 760px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.blog-hero-panel,
.blog-sidebar-card,
.blog-empty-state,
.blog-empty-results,
.blog-admin-empty {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.05);
}

.blog-hero-panel {
    padding: 28px;
}

.blog-hero-list {
    list-style: disc;
    margin-left: 20px;
    color: var(--text-secondary);
}

.blog-hero-list li {
    margin-bottom: 12px;
}

.blog-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 28px;
    margin-bottom: 32px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: #fffefc;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.05);
}

.blog-feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-feature-media,
.blog-post-media {
    min-height: 280px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-light);
}

.blog-feature-fallback {
    width: 100%;
    height: 100%;
}

.blog-search {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.blog-search input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    font: inherit;
    color: var(--text-primary);
    background: var(--bg-white);
}

.blog-search input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.blog-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-filter {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg-white);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.blog-filter.active,
.blog-filter:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.blog-post-hero {
    padding: 44px 0 30px;
}

.blog-back-link {
    margin-bottom: 16px;
}

.blog-post-title {
    max-width: 900px;
    margin: 18px 0 16px;
    font-size: 3rem;
    line-height: 1.08;
}

.blog-post-subtitle {
    max-width: 760px;
    font-size: 1.12rem;
    line-height: 1.8;
}

.blog-post-media {
    margin-top: 28px;
    height: 380px;
}

.blog-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.blog-prose {
    min-width: 0;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--bg-white);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.05);
}

.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
    margin-top: 30px;
}

.blog-prose p,
.blog-prose li {
    color: #334155;
    line-height: 1.8;
}

.blog-prose a {
    color: var(--brand);
    text-decoration: underline;
}

.blog-prose ul,
.blog-prose ol {
    margin: 18px 0 18px 22px;
    list-style: revert;
}

.blog-prose img {
    margin: 28px 0;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.blog-prose table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.blog-prose th,
.blog-prose td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.blog-prose th {
    background: var(--bg-light);
}

.blog-prose pre,
.blog-prose code {
    font-family: "SF Mono", Monaco, monospace;
}

.blog-prose pre {
    margin: 22px 0;
    padding: 18px;
    border-radius: 16px;
    overflow-x: auto;
    background: #0f172a;
    color: #e2e8f0;
}

.blog-prose .video-embed {
    position: relative;
    width: 100%;
    margin: 24px 0;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 18px;
}

.blog-prose .video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-sidebar-card {
    padding: 24px;
}

.blog-related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-related-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.blog-related-item:first-child {
    padding-top: 0;
    border-top: none;
}

.blog-related-item span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.blog-pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.blog-pagination-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg-white);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.05);
}

.blog-pagination-card span {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blog-pagination-card-right {
    text-align: right;
}

.blog-empty-state,
.blog-empty-results,
.blog-admin-empty {
    padding: 34px;
    text-align: center;
}

.blog-admin-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.blog-admin-textarea-sm {
    min-height: 110px;
    resize: vertical;
}

.blog-admin-textarea-lg {
    min-height: 420px;
    resize: vertical;
    font-family: "SF Mono", Monaco, monospace;
    font-size: 0.92rem;
}

@media (max-width: 1024px) {
    .blog-post-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: -1;
    }
}

@media (max-width: 900px) {
    .blog-teaser-grid,
    .blog-archive-grid,
    .blog-pagination {
        grid-template-columns: 1fr;
    }

    .blog-hub-grid,
    .blog-toolbar,
    .blog-feature,
    .blog-teaser-header,
    .blog-archive-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .blog-admin-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-hub-title,
    .blog-post-title {
        font-size: 2.3rem;
    }

    .blog-feature,
    .blog-prose,
    .blog-sidebar-card,
    .blog-empty-state,
    .blog-empty-results,
    .blog-admin-empty {
        padding: 22px;
    }

    .blog-post-media {
        height: 240px;
    }
}
