:root {
    --bg-dark: #020617;
    --card-bg: rgba(255, 255, 255, 0.012);
    --card-border: rgba(139, 92, 246, 0.1);
    --accent: #8b5cf6;
    --accent-secondary: #d9f99d;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-blur: blur(8px);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Deep Space Foundations */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
}

.bg-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
}

.bg-aura::before, .bg-aura::after {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    will-change: transform;
}

.bg-aura::before { background: var(--accent); top: -10%; left: -10%; animation: pulse-top 25s infinite alternate; }
.bg-aura::after { background: var(--accent-secondary); bottom: -10%; right: -10%; animation: pulse-bottom 30s infinite alternate; }

@keyframes pulse-top { to { transform: translate(150px, 80px); } }
@keyframes pulse-bottom { to { transform: translate(-150px, -80px); } }

/* Navbar */
.navbar { min-height: 75px; backdrop-filter: var(--glass-blur); background: rgba(2, 6, 23, 0.7); border-bottom: 1px solid var(--card-border); position: sticky !important; top: 0; z-index: 1030; }
.navbar-brand { font-weight: 800; font-size: 1.5rem; color: white !important; display: flex; align-items: center; gap: 12px; }
.nav-link { color: var(--text-secondary) !important; margin: 0 15px; font-weight: 500; transition: 0.3s; }
.nav-link:hover { color: white !important; transform: translateY(-1px); }

/* ══════════════════════════════════════════
   HAMBURGER — animated bars
   ══════════════════════════════════════════ */
.nx-toggler {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    transition: background 0.25s;
}
.nx-toggler:hover { background: rgba(139, 92, 246, 0.2) !important; }
.nx-toggler:focus { background: rgba(139, 92, 246, 0.15) !important; }

.nx-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                opacity   0.25s ease,
                width     0.3s ease;
}
/* Closed → Open animation */
.nx-toggler[aria-expanded="true"] .nx-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nx-toggler[aria-expanded="true"] .nx-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}
.nx-toggler[aria-expanded="true"] .nx-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Premium Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover { border-color: rgba(139, 92, 246, 0.3); transform: translateY(-6px); background: rgba(255, 255, 255, 0.025); box-shadow: 0 30px 60px -12px rgba(0,0,0,0.5); }

/* Ecosystem 16 */
.ecosystem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1.2rem; }
.ecosystem-card { 
    background: rgba(255, 255, 255, 0.015); 
    border: 1px solid var(--card-border); 
    border-radius: 20px; 
    padding: 1.8rem 1rem; 
    text-align: center; 
    transition: 0.4s; 
    filter: grayscale(1) opacity(0.5); 
}
.ecosystem-card:hover { filter: grayscale(0) opacity(1); border-color: var(--accent-secondary); transform: scale(1.05); background: rgba(217, 249, 157, 0.05); }
.ecosystem-card i { font-size: 2.2rem; margin-bottom: 0.8rem; display: block; color: var(--text-primary); }
.ecosystem-card span { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

/* Complex M-TEH Mindmap */
.complex-mindmap {
    position: relative;
    padding: 2rem 0;
}

.mindmap-row {
    position: relative;
    z-index: 10;
}

.mindmap-pill {
    background: var(--bg-dark);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    width: 240px;
    text-align: center;
    position: relative;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.mindmap-pill:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
    box-shadow: 0 15px 40px rgba(217, 249, 157, 0.2);
}

.core-pill {
    width: 380px;
    padding: 2.5rem;
    border: 2px solid var(--accent);
    background: rgba(139, 92, 246, 0.05);
    backdrop-filter: blur(10px);
}

.pulse-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border-radius: 16px;
    border: 2px solid var(--accent);
    animation: core-pulse 3s infinite cubic-bezier(0.21, 0.53, 0.56, 0.8);
    pointer-events: none;
    z-index: -1;
}

@keyframes core-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

/* Connectors */
.mm-flow-vertical {
    height: 60px;
    width: 2px;
    background: linear-gradient(180deg, var(--card-border), var(--accent-secondary));
    margin: 0 auto;
    position: relative;
    opacity: 0.5;
}

.mm-flow-branches {
    display: flex;
    justify-content: center;
    position: relative;
    height: 60px;
}

/* Drawing the fork */
.mm-flow-branches::before {
    content: "";
    position: absolute;
    top: 0;
    width: 580px; /* Spans the distance between outer pills */
    height: 2px;
    background: rgba(217, 249, 157, 0.3);
}

.mm-branch-line {
    position: absolute;
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, rgba(217, 249, 157, 0.3), var(--accent-secondary));
    top: 0;
}

/* Position the 3 drops */
.mm-branch-line.left { left: 50%; margin-left: -290px; }
.mm-branch-line.center { left: 50%; margin-left: -1px; }
.mm-branch-line.right { left: 50%; margin-left: 290px; }

/* Level 2 Connectors */
.mm-flow-branches.level-2::before { width: 580px; background: rgba(139, 92, 246, 0.3); }
.mm-flow-branches.level-2 .mm-branch-line { background: linear-gradient(180deg, rgba(139, 92, 246, 0.3), var(--accent)); }

/* Moving Data Particles */
.data-packet {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-secondary);
    box-shadow: 0 0 15px 3px var(--accent-secondary);
    left: -2px;
    top: 0;
    opacity: 0;
    animation: travel-down 2s infinite linear;
}

.data-packet.purple {
    background: var(--accent);
    box-shadow: 0 0 15px 3px var(--accent);
    animation: travel-down 2s infinite linear 1s; /* delayed start */
}

@keyframes travel-down {
    0% { top: 0; opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@media (max-width: 991px) {
    .hero-title { font-size: 3.2rem !important; }
    .section-padding { padding-top: 80px !important; padding-bottom: 80px !important; }

    /* Fix Mindmap Widths */
    .mindmap-pill, .core-pill { width: 100% !important; max-width: 330px; padding: 1.5rem !important; margin: 0 auto; }
    
    /* Convert Mindmap to Vertical Flow */
    .mm-flow-branches::before { display: none; }
    .mm-branch-line { display: none; }
    .mm-flow-branches { height: 40px; }
    .mm-flow-branches::after {
        content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 100%;
        background: linear-gradient(180deg, rgba(217, 249, 157, 0.3), var(--accent-secondary));
    }
    .mm-flow-branches.level-2::after { background: linear-gradient(180deg, rgba(139, 92, 246, 0.3), var(--accent)); }

    /* Stack Row Pills & Add Mini Connectors Between Them */
    .mindmap-row { flex-direction: column; gap: 0 !important; align-items: center !important; }
    .mindmap-row .mindmap-pill { margin-bottom: 2rem; }
    
    /* Small vertical connection between sibling pills */
    .mindmap-row .mindmap-pill:not(:last-child)::after {
        content: ""; position: absolute; top: 100%; left: 50%; width: 2px; height: 2rem;
        background: var(--card-border); z-index: -1;
    }
}

/* Sentinel Shield Polish */
.sentinel-core { transition: 0.5s ease; cursor: pointer; }
.sentinel-core:hover { transform: scale(1.1); filter: drop-shadow(0 0 30px var(--accent-secondary)); }

/* M-TEH Sentinel (Security) */
.sentinel-shield {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sentinel-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--accent);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    opacity: 0.3;
}

.sentinel-core {
    font-size: 5rem;
    color: var(--accent-secondary);
    filter: drop-shadow(0 0 20px rgba(217, 249, 157, 0.5));
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Typography */
.hero-title { font-size: clamp(2.8rem, 9vw, 5.2rem); font-weight: 900; color: #fff; letter-spacing: -0.05em; line-height: 1; margin-bottom: 2rem; }
.text-accent { color: var(--accent-secondary) !important; }

/* Buttons */
.btn-premium { background: var(--accent-secondary); color: #020617 !important; padding: 1rem 2.8rem; border-radius: 12px; font-weight: 800; text-transform: uppercase; font-size: 0.9rem; text-decoration: none; transition: 0.3s; }
.btn-premium:hover { box-shadow: 0 0 40px rgba(217, 249, 157, 0.5); transform: translateY(-2px); }

/* Code Window */
.code-window { background: #0f172a; border: 1px solid var(--card-border); border-radius: 20px; overflow: hidden; }
.code-header { background: #1e293b; padding: 12px 18px; display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; } .dot-yellow { background: #ffbd2e; } .dot-green { background: #27c93f; }

.section-padding { padding-top: 140px !important; padding-bottom: 140px !important; }

/* Mega Footer */
.footer { border-top-color: var(--card-border) !important; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-tight { letter-spacing: -0.02em; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: 0.3s ease; display: inline-block; }
.footer-links a:hover { color: var(--accent-secondary); transform: translateX(5px); }
.status-indicator { border: 1px solid var(--card-border); background: rgba(255, 255, 255, 0.02); }
.status-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 10px #22c55e; animation: status-pulse 2s infinite; }
@keyframes status-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.footer-social-links a { font-size: 1.2rem; margin-left: 1.2rem; }
.hover-white:hover { color: #fff !important; }
.footer-legal a { color: var(--text-secondary); text-decoration: none; transition: 0.3s; }
.footer-legal a:hover { color: white; border-bottom: 1px solid white; }

/* Branding */
img[alt*="Logo"], .navbar-brand img { }

@media (max-width: 767px) {

    /* ── Container: boost side padding from Bootstrap's default 12px ── */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* ── Cards: reduce inner padding ── */
    .glass-card { padding: 1.75rem; }

    /* ── Code blocks: horizontal scroll ── */
    .code-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* ── Ecosystem grid ── */
    .ecosystem-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.75rem;
    }

    /* ══════════════════════════════════════════════════
       PREMIUM MOBILE MENU PANEL
       ══════════════════════════════════════════════════ */

    /* Panel: absolute drop-panel below sticky navbar */
    .navbar-collapse {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        z-index: 999;
        background: rgba(4, 9, 30, 0.97);
        backdrop-filter: blur(28px) saturate(180%);
        -webkit-backdrop-filter: blur(28px) saturate(180%);
        border-bottom: 1px solid rgba(139, 92, 246, 0.12);
        box-shadow: 0 40px 80px -8px rgba(0, 0, 0, 0.9);
        padding: 1.75rem 1.5rem 2rem;
        overflow: hidden;
    }

    /* Thin gradient accent line at top of panel */
    .navbar-collapse::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 1px;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(139, 92, 246, 0.6) 25%,
            rgba(217, 249, 157, 0.8) 50%,
            rgba(139, 92, 246, 0.6) 75%,
            transparent 100%
        );
    }

    /* Subtle background glow blob */
    .navbar-collapse::after {
        content: '';
        position: absolute;
        top: -60px; right: -40px;
        width: 280px; height: 280px;
        background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
        pointer-events: none;
    }

    /* Reset Bootstrap nav defaults in collapse */
    .navbar-collapse .navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        margin: 0 !important;
        padding: 0;
        position: relative;
        z-index: 1;
    }

    /* ── Section label: NAVIGATE ── */
    .navbar-collapse .navbar-nav.me-auto::before {
        content: 'NAVIGATE';
        display: block;
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.18em;
        color: rgba(139, 92, 246, 0.65);
        padding: 0 0.75rem;
        margin-bottom: 0.5rem;
    }

    /* ── Section divider + label: ACCOUNT ── */
    .navbar-collapse .navbar-nav.ms-auto {
        margin-top: 1.5rem !important;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .navbar-collapse .navbar-nav.ms-auto::before {
        content: 'ACCOUNT';
        display: block;
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.18em;
        color: rgba(139, 92, 246, 0.65);
        padding: 0 0.75rem;
        margin-bottom: 0.5rem;
    }

    /* ── Nav links — large touch targets with left-bar on hover ── */
    .navbar-collapse .nav-item {
        opacity: 0;
        transform: translateX(-10px);
        animation: nx-item-in 0.3s ease forwards;
    }
    .navbar-collapse.show .nav-item { /* triggered by Bootstrap .show class */ }
    .navbar-collapse .navbar-nav.me-auto .nav-item:nth-child(1) { animation-delay: 0.08s; }
    .navbar-collapse .navbar-nav.me-auto .nav-item:nth-child(2) { animation-delay: 0.14s; }
    .navbar-collapse .navbar-nav.ms-auto .nav-item:nth-child(1) { animation-delay: 0.2s; }
    .navbar-collapse .navbar-nav.ms-auto .nav-item:nth-child(2) { animation-delay: 0.26s; }
    .navbar-collapse .navbar-nav.ms-auto .nav-item:nth-child(3) { animation-delay: 0.32s; }

    @keyframes nx-item-in {
        to { opacity: 1; transform: translateX(0); }
    }

    .navbar-collapse .nav-link {
        display: flex !important;
        align-items: center;
        padding: 0.8rem 0.75rem !important;
        margin: 1px 0 !important;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        color: rgba(248, 250, 252, 0.7) !important;
        border-left: 2px solid transparent;
        transition: background 0.2s, color 0.2s, border-color 0.2s, padding-left 0.2s;
        transform: none;  /* override desktop hover lift */
        text-decoration: none;
    }
    .navbar-collapse .nav-link:hover {
        background: rgba(139, 92, 246, 0.1);
        border-left-color: var(--accent);
        color: #fff !important;
        padding-left: 1.1rem !important;
        transform: none;
    }

    /* ── Sign Up button: premium full-width CTA ── */
    .navbar-collapse a.btn-premium {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0.25rem 0 0 !important;
        padding: 0.9rem 1.5rem !important;
        border-radius: 14px !important;
        border-left: none !important;
        font-size: 0.95rem;
        letter-spacing: 0.04em;
        color: #020617 !important; /* dark text on lime — override .nav-link color */
        box-shadow: 0 0 0 1px rgba(217, 249, 157, 0.25),
                    0 8px 32px rgba(217, 249, 157, 0.12);
        transition: box-shadow 0.3s, transform 0.2s !important;
    }
    .navbar-collapse a.btn-premium:hover {
        padding-left: 1.5rem !important; /* cancel the nav-link left shift */
        color: #020617 !important;
        box-shadow: 0 0 0 1px rgba(217, 249, 157, 0.5),
                    0 12px 40px rgba(217, 249, 157, 0.25);
        transform: translateY(-1px);
    }

    /* ── Language dropdown: static list styled as compact pills ── */
    .navbar-collapse .dropdown-toggle {
        font-size: 0.88rem !important;
        color: rgba(148, 163, 184, 0.8) !important;
    }
    .navbar-collapse .dropdown-toggle::after {
        margin-left: 6px;
        opacity: 0.5;
    }
    .navbar-collapse .dropdown-menu {
        position: static !important;
        display: flex !important;         /* always visible on mobile */
        flex-wrap: wrap;
        gap: 0.4rem;
        padding: 0.6rem 0.5rem 0.25rem !important;
        margin: 0 0 0 0.25rem !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
        min-width: 0;
    }
    .navbar-collapse .dropdown-item {
        flex: 0 0 auto;
        padding: 0.35rem 0.65rem !important;
        border-radius: 20px !important;
        font-size: 0.8rem !important;
        font-weight: 600;
        color: var(--text-secondary) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(139, 92, 246, 0.15) !important;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
        white-space: nowrap;
    }
    .navbar-collapse .dropdown-item:hover,
    .navbar-collapse .dropdown-item:focus {
        background: rgba(139, 92, 246, 0.2) !important;
        color: #fff !important;
        border-color: rgba(139, 92, 246, 0.4) !important;
    }
    .navbar-collapse .dropdown-item.active {
        background: rgba(139, 92, 246, 0.25) !important;
        color: var(--accent-secondary) !important;
        border-color: rgba(139, 92, 246, 0.5) !important;
    }
}

@media (max-width: 575px) {
    /* Vertical section spacing */
    .section-padding { padding-top: 60px !important; padding-bottom: 60px !important; }

    /* Container: 1.25rem on small phones too — don't go tighter */
    .container { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

    /* Hero title */
    .hero-title { font-size: 2.2rem !important; line-height: 1.1; margin-bottom: 1.5rem; }

    /* Hero buttons: stack vertically, full width */
    .site-index .d-flex.flex-wrap.gap-4 {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem !important;
    }
    .btn-premium { padding: 0.875rem 2rem; width: 100%; text-align: center; display: block; max-width: 340px; }
    .btn-google { width: 100% !important; max-width: 340px; justify-content: center; }

    /* Cards */
    .glass-card { padding: 1.25rem; border-radius: 16px; }

    /* Section headings */
    .display-4 { font-size: 1.85rem !important; }

    /* Security section: reduce rounded corners so padding isn't eaten visually */
    .rounded-5 { border-radius: 1.25rem !important; }

    /* Sentinel */
    .sentinel-shield { width: 150px; height: 150px; margin-bottom: 2rem; }
    .sentinel-core { font-size: 4rem; }

    /* Footer social links: allow wrapping */
    .footer-social-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
    .footer-social-links a { margin-left: 0 !important; }
}

/* ===========================
   PREMIUM AUTH FORMS
   =========================== */
.M-TEH-auth-card {
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 24px;
    padding: 2.5rem 2.5rem;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* M-TEH Input Field */
.M-TEH-field-wrap {
    position: relative;
    margin-bottom: 1.5rem;
}
.M-TEH-field-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.M-TEH-input {
    width: 100%;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    border-radius: 14px !important;
    color: #fff !important;
    font-size: 1rem;
    padding: 0.85rem 1.2rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
    box-shadow: none !important;
}
.M-TEH-input::placeholder {
    color: rgba(148,163,184,0.4);
    font-size: 0.95rem;
}
.M-TEH-input:focus {
    background: rgba(139, 92, 246, 0.07) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), 0 2px 12px rgba(139, 92, 246, 0.12) !important;
}
.M-TEH-input.is-invalid {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12) !important;
}
.M-TEH-field-error {
    font-size: 0.8rem;
    color: #f43f5e;
    margin-top: 0.35rem;
    display: block;
}

/* Checkbox */
.M-TEH-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 6px !important;
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
    background: rgba(255,255,255,0.04) !important;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
}

/* Google Button (improved) */
.M-TEH-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 14px;
    background: #fff;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.M-TEH-google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    color: #1a1a1a;
}

/* TON Connect button */
.M-TEH-ton-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #0098EA 0%, #006bb3 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 152, 234, 0.35);
}
.M-TEH-ton-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 152, 234, 0.5);
}

/* Divider с текстом */
.M-TEH-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4a5568;
    font-size: 0.85rem;
}
.M-TEH-divider::before,
.M-TEH-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* Also apply M-TEH-input styles to signup page fields */
.site-signup .form-control,
.site-login .form-control {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    border-radius: 14px !important;
    color: #fff !important;
    padding: 0.85rem 1.2rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-signup .form-control:focus,
.site-login .form-control:focus {
    background: rgba(139, 92, 246, 0.07) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
}
.site-signup .form-label,
.site-login .form-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

@media (max-width: 575px) {
    .M-TEH-auth-card { padding: 1.25rem 1rem; border-radius: 16px; }
    /* Auth form: full-width Google button container */
    .M-TEH-google-btn { padding: 0.75rem 1rem; font-size: 0.9rem; }
}