/* ============================================================
   DREAM BOT BUILDER - CONSOLE DESIGN SYSTEM
   Display: Sora | Body: Inter | Data/IDs: JetBrains Mono
   Palette: indigo-charcoal + violet accent, not gold/bauhaus
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --black: #14152A;
    --gold: #5B5FEF;
    --gold-dark: #4347C4;
    --white: #ffffff;
    --gray: #F6F6FC;
    --gray-dark: #6B6F8C;
    --red: #E5484D;
    --green: #16A37A;
    --blue: #3B82F6;
    --amber: #F5A623;
    --border: #E7E7F3;
    --font: 'Inter', sans-serif;
    --font-display: 'Sora', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow: 0 4px 30px rgba(20,21,42,0.05);
    --shadow-hover: 0 20px 60px rgba(20,21,42,0.10);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--gray);
    color: var(--black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, .navbar-brand, .hero-title, .section-title, .cta-title,
.auth-header h3, .bot-card-name, .feature-title, .step-title {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.mono, .bot-id, .api-token, code, pre {
    font-family: var(--font-mono);
}

.highlight { color: var(--gold); }

/* Live status indicator — the one signature element, used sparingly */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    background: var(--gray-dark);
    flex-shrink: 0;
}
.status-dot.working {
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(22,163,122,0.5);
    animation: statusPulse 2s infinite;
}
.status-dot.stopped { background: var(--red); }
.status-dot.needs-token { background: var(--amber); }
@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(22,163,122,0.45); }
    70% { box-shadow: 0 0 0 7px rgba(22,163,122,0); }
    100% { box-shadow: 0 0 0 0 rgba(22,163,122,0); }
}

/* ============================================================ */
/* NOTIFICATION SYSTEM */
/* ============================================================ */
#notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.notification {
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    background: var(--white);
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-hover);
    animation: slideIn 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font);
    font-size: 0.9rem;
}

.notification i { font-size: 1.2rem; }

.notification-success { border-left-color: var(--green); }
.notification-success i { color: var(--green); }

.notification-danger { border-left-color: var(--red); }
.notification-danger i { color: var(--red); }

.notification-warning { border-left-color: #f39c12; }
.notification-warning i { color: #f39c12; }

.notification-info { border-left-color: var(--blue); }
.notification-info i { color: var(--blue); }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================================ */
/* FLASH MESSAGES */
/* ============================================================ */
.flash-message {
    padding: 0.8rem 1.2rem;
    margin-bottom: 1rem;
    background: var(--white);
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.flash-success { border-left-color: var(--green); }
.flash-success i { color: var(--green); }

.flash-danger { border-left-color: var(--red); }
.flash-danger i { color: var(--red); }

.flash-warning { border-left-color: #f39c12; }
.flash-warning i { color: #f39c12; }

.flash-info { border-left-color: var(--blue); }
.flash-info i { color: var(--blue); }

/* ============================================================ */
/* NAVBAR */
/* ============================================================ */
.navbar {
    background: var(--black) !important;
    padding: 0.8rem 0;
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i { color: var(--gold); font-size: 1.6rem; }
.navbar-brand .highlight { color: var(--gold); }

.nav-link {
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.7) !important;
    transition: var(--transition);
    padding: 0.4rem 1rem !important;
}

.nav-link:hover { color: var(--white) !important; }
.nav-link i { margin-right: 0.5rem; color: var(--gold); }

.btn-nav-primary {
    background: var(--gold) !important;
    color: var(--black) !important;
    border-radius: 0 !important;
    font-weight: 700;
    padding: 0.4rem 1.5rem !important;
}

.btn-nav-primary:hover { background: var(--gold-dark) !important; }

.dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: var(--shadow-hover);
}

.dropdown-item {
    font-family: var(--font);
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    transition: var(--transition);
}

.dropdown-item i { color: var(--gold); margin-right: 0.5rem; width: 1.2rem; }
.dropdown-item:hover { background: var(--gray); }

/* ============================================================ */
/* HERO SECTION */
/* ============================================================ */
.hero {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0 5rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,215,0,0.04);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255,215,0,0.03);
    border-radius: 50%;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,215,0,0.12);
    color: var(--gold);
    padding: 0.3rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--gold);
}

.hero-title {
    font-weight: 900;
    font-size: 4rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.hero-title .highlight {
    color: var(--gold);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gold);
    opacity: 0.25;
}

.hero-subtitle {
    font-weight: 300;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 540px;
    margin-top: 1.5rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-primary-bauhaus {
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.8rem 2.5rem;
    transition: var(--transition);
}

.btn-primary-bauhaus:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255,215,0,0.25);
}

.btn-outline-bauhaus {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 0;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.8rem 2.5rem;
    transition: var(--transition);
}

.btn-outline-bauhaus:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3.5rem;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-weight: 900;
    font-size: 2rem;
    color: var(--gold);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-illustration {
    position: relative;
    font-size: 10rem;
    color: rgba(255,215,0,0.08);
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 0;
    background: var(--gold);
    opacity: 0.06;
}

.shape-1 { width: 50px; height: 50px; top: 10%; left: 20%; transform: rotate(45deg); }
.shape-2 { width: 35px; height: 35px; bottom: 20%; right: 10%; transform: rotate(30deg); }
.shape-3 { width: 70px; height: 70px; top: 30%; right: 5%; transform: rotate(60deg); }
.shape-4 { width: 25px; height: 25px; bottom: 40%; left: 10%; transform: rotate(15deg); }

/* ============================================================ */
/* FEATURES SECTION */
/* ============================================================ */
.features {
    padding: 5rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 0.15rem 1.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-weight: 900;
    font-size: 2.6rem;
    margin-top: 0.75rem;
}

.section-subtitle {
    color: var(--gray-dark);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--gold);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.feature-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-text {
    color: var(--gray-dark);
    font-weight: 300;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ============================================================ */
/* HOW IT WORKS */
/* ============================================================ */
.how-it-works {
    padding: 5rem 0;
    background: var(--gray);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    font-weight: 900;
    font-size: 2.8rem;
    color: var(--gold);
    opacity: 0.2;
    margin-bottom: 0.3rem;
}

.step-icon {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.step-title {
    font-weight: 700;
    font-size: 1rem;
}

.step-text {
    color: var(--gray-dark);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ============================================================ */
/* CTA SECTION */
/* ============================================================ */
.cta-section {
    padding: 4rem 0;
    background: var(--black);
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-weight: 900;
    font-size: 2.6rem;
    color: var(--white);
}

.cta-text {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.btn-cta {
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.8rem 3rem;
    margin-top: 1.5rem;
    transition: var(--transition);
}

.btn-cta:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255,215,0,0.2);
}

/* ============================================================ */
/* FOOTER */
/* ============================================================ */
footer {
    background: var(--black);
    color: rgba(255,255,255,0.6);
    padding: 2rem 0;
    border-top: 3px solid var(--gold);
    margin-top: auto;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--white);
}

.footer-brand i { color: var(--gold); margin-right: 0.5rem; }
.footer-brand .highlight { color: var(--gold); }

.footer-tagline {
    font-weight: 300;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.3);
    font-size: 1.4rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

.footer-copy p {
    font-size: 0.8rem;
    margin: 0;
}

/* ============================================================ */
/* AUTH PAGES */
/* ============================================================ */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.auth-card {
    background: var(--white);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--gold);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 2.2rem;
    color: var(--gold);
}

.auth-header h3 {
    font-weight: 800;
    margin-top: 0.5rem;
}

.auth-header p {
    color: var(--gray-dark);
}

.auth-form .form-group {
    margin-bottom: 1.2rem;
}

.auth-form label {
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.3rem;
}

.auth-form label i {
    color: var(--gold);
    margin-right: 0.5rem;
}

.auth-form .form-control {
    border: none;
    border-radius: 0;
    border-bottom: 2px solid #ddd;
    padding: 0.6rem 0;
    font-family: var(--font);
    transition: var(--transition);
    background: transparent;
}

.auth-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: none;
    outline: none;
}

.btn-auth {
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.8rem;
    width: 100%;
    transition: var(--transition);
}

.btn-auth:hover {
    background: var(--gold);
    color: var(--black);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}

/* ============================================================ */
/* DASHBOARD */
/* ============================================================ */
.dashboard-page {
    padding: 2rem 0 4rem;
}

.dashboard-title {
    font-weight: 900;
    font-size: 2rem;
}

.dashboard-title i {
    color: var(--gold);
    margin-right: 0.5rem;
}

.dashboard-welcome {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white);
    padding: 1.2rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.5;
}

.stat-number {
    font-weight: 900;
    font-size: 1.8rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================ */
/* BOT CARDS */
/* ============================================================ */
.bot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bot-card {
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.bot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.bot-card-header {
    background: var(--black);
    color: var(--white);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.bot-card-header i { color: var(--gold); }

.bot-name {
    font-weight: 600;
    flex: 1;
}

.bot-status {
    font-size: 0.6rem;
    text-transform: uppercase;
    padding: 0.15rem 0.7rem;
    background: var(--green);
    color: var(--white);
}

.bot-card-body {
    padding: 1rem 1.2rem;
}

.bot-card-body p {
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
}

.bot-card-body i {
    color: var(--gold);
    width: 1.5rem;
}

.bot-card-actions {
    padding: 0.8rem 1.2rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid #eee;
}

.btn-edit {
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    transition: var(--transition);
}

.btn-edit:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-delete {
    background: transparent;
    color: var(--red);
    border: 1px solid var(--red);
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
}

.btn-delete:hover {
    background: var(--red);
    color: var(--white);
}

.btn-add-bot {
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
}

.btn-add-bot:hover {
    background: var(--gold-dark);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
}

.empty-state i {
    font-size: 3.5rem;
    color: #ddd;
}

.empty-state h4 {
    margin-top: 1rem;
    font-weight: 600;
}

/* ============================================================ */
/* ADD BOT PAGE */
/* ============================================================ */
.add-bot-page {
    padding: 3rem 0;
}

.add-bot-card {
    background: var(--white);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--gold);
}

.add-bot-header {
    text-align: center;
    margin-bottom: 2rem;
}

.add-bot-header i {
    font-size: 2.2rem;
    color: var(--gold);
}

.add-bot-header h3 {
    font-weight: 800;
    margin-top: 0.5rem;
}

.add-bot-header p {
    color: var(--gray-dark);
}

.add-bot-form .form-group {
    margin-bottom: 1.2rem;
}

.add-bot-form label {
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.3rem;
}

.add-bot-form label i {
    color: var(--gold);
    margin-right: 0.5rem;
}

.add-bot-form .form-control {
    border: none;
    border-radius: 0;
    border-bottom: 2px solid #ddd;
    padding: 0.6rem 0;
    font-family: var(--font);
    transition: var(--transition);
    background: transparent;
}

.add-bot-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: none;
    outline: none;
}

.form-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--gray-dark);
}

.token-status {
    margin-bottom: 1rem;
}

.token-valid {
    padding: 0.6rem 1rem;
    background: #e8f5e9;
    color: var(--green);
    border-left: 3px solid var(--green);
    font-size: 0.85rem;
}

.token-valid i { margin-right: 0.5rem; }

.token-invalid {
    padding: 0.6rem 1rem;
    background: #fce4ec;
    color: var(--red);
    border-left: 3px solid var(--red);
    font-size: 0.85rem;
}

.token-invalid i { margin-right: 0.5rem; }

.btn-back {
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
}

.btn-back:hover {
    background: var(--gray-dark);
    color: var(--white);
}

/* ============================================================ */
/* BOT EDITOR */
/* ============================================================ */
.editor-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
}

.command-list {
    background: var(--white);
    box-shadow: var(--shadow);
}

.command-list-header {
    background: var(--black);
    color: var(--white);
    padding: 0.8rem 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.command-list-header i {
    color: var(--gold);
    margin-right: 0.5rem;
}

.command-items {
    padding: 0.5rem;
}

.command-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    color: var(--black);
    text-decoration: none;
    border-left: 3px solid transparent;
}

.command-item:hover {
    background: var(--gray);
}

.command-item.active {
    border-left-color: var(--gold);
    background: var(--gray);
}

.command-item code {
    font-size: 0.8rem;
}

.command-item i {
    color: var(--gray-dark);
    font-size: 0.7rem;
}

.command-add {
    color: var(--gold);
    font-weight: 600;
}

.command-add i {
    color: var(--gold);
}

.command-editor {
    background: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.command-editor .form-control {
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 0.6rem 0.8rem;
    font-family: var(--font);
}

.command-editor .code-editor {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: #1a1a1a;
    color: #e0e0e0;
    border: none;
    padding: 0.8rem;
    resize: vertical;
    min-height: 200px;
}

.editor-hint {
    background: var(--gray);
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    color: var(--gray-dark);
}

.editor-hint i {
    color: var(--gold);
    margin-right: 0.4rem;
}

.editor-hint code {
    background: var(--black);
    color: var(--gold);
    padding: 0.1rem 0.4rem;
}

.btn-save {
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 0;
    font-weight: 700;
    padding: 0.6rem 1.8rem;
}

.btn-save:hover {
    background: var(--gold-dark);
}

/* ============================================================ */
/* PROFILE */
/* ============================================================ */
.profile-page {
    padding: 3rem 0;
}

.profile-card {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--gold);
}

.profile-avatar {
    font-size: 5rem;
    color: var(--gold);
}

.profile-name {
    font-weight: 700;
    margin-top: 0.5rem;
}

.profile-email {
    color: var(--gray-dark);
}

.profile-plan {
    margin: 1rem 0;
}

.plan-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 0.2rem 1.2rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.plan-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-dark);
    margin-top: 0.2rem;
}

.profile-settings {
    background: var(--white);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.profile-settings h3 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.profile-settings h3 i {
    color: var(--gold);
    margin-right: 0.5rem;
}

.settings-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.settings-section h5 i {
    color: var(--gold);
    margin-right: 0.5rem;
}

.btn-change-password {
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 0;
    padding: 0.5rem 1.5rem;
}

.btn-change-password:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-upgrade {
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 0;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
}

.btn-upgrade:hover {
    background: var(--gold-dark);
}

/* ============================================================ */
/* RESPONSIVE */
/* ============================================================ */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .bot-grid { grid-template-columns: repeat(2, 1fr); }
    .editor-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .bot-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { flex-direction: column; text-align: center; }
    .section-title { font-size: 2rem; }
    .cta-title { font-size: 2rem; }
}

@media (max-width: 576px) {
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; text-align: center; }
    .hero-title { font-size: 1.8rem; }
    .command-editor .code-editor { min-height: 150px; font-size: 0.75rem; }
    .editor-actions { flex-direction: column; }
    .editor-actions .btn { width: 100%; text-align: center; }
}
/* ============================================================
   NEW: layout toggle, list view, pin, start/stop, bot-id line
   ============================================================ */

.layout-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.layout-btn {
    background: var(--white);
    border: none;
    padding: 0.45rem 0.7rem;
    color: var(--gray-dark);
    cursor: pointer;
    transition: var(--transition);
}
.layout-btn:hover { background: var(--gray); }
.layout-btn.active { background: var(--gold); color: var(--white); }

.bot-grid--list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.bot-grid--list .bot-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
}
.bot-grid--list .bot-card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
}
.bot-grid--list .bot-card-body p { margin: 0; }
.bot-grid--list .bot-card-actions { flex-wrap: nowrap; }

.bot-card { position: relative; }
.pin-ribbon {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--amber);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: var(--shadow);
    z-index: 2;
}
.bot-card.pinned { border: 1.5px solid var(--amber); }

.bot-id-line { display: flex; align-items: center; }
.bot-id { color: var(--gray-dark); font-size: 0.85rem; }

.btn-pin, .btn-start, .btn-stop {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--black);
}
.btn-pin:hover { background: var(--amber); color: var(--white); border-color: var(--amber); }
.btn-start { color: var(--green); border-color: var(--green); }
.btn-start:hover { background: var(--green); color: var(--white); }
.btn-stop { color: var(--red); border-color: var(--red); }
.btn-stop:hover { background: var(--red); color: var(--white); }

.bot-status.needs_token { background: rgba(245,166,35,0.15); color: var(--amber); }
.bot-status.stopped { background: rgba(229,72,77,0.12); color: var(--red); }

/* ============================================================
   NEW: bot-editor tabs (Commands / Errors / User Data / Bot Data / Broadcast)
   ============================================================ */
.editor-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.editor-tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.1rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-dark);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.editor-tab-btn:hover { color: var(--black); }
.editor-tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.editor-tab-panel { display: none; }
.editor-tab-panel.active { display: block; }

.error-row {
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    background: var(--white);
}
.error-row .error-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--gray-dark);
    margin-bottom: 0.3rem;
}
.error-row .error-cmd { font-family: var(--font-mono); color: var(--gold-dark); }
.error-row .error-text { font-family: var(--font-mono); font-size: 0.85rem; white-space: pre-wrap; word-break: break-word; }

.data-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
.data-table-row .k { font-family: var(--font-mono); font-weight: 600; }
.data-table-row .v { font-family: var(--font-mono); color: var(--gray-dark); word-break: break-word; }

.panel-empty {
    text-align: center;
    padding: 2rem;
    color: var(--gray-dark);
}
