:root {
    --bg-color: #050510;
    --primary-color: #B8860B;
    /* Dark Goldenrod (Aged Gold) */
    --accent-color: #D4AF37;
    /* Previous primary as accent */
    --gold: #FFD700;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    z-index: -2;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Typography & Layout */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    background: rgba(5, 5, 16, 0.7);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.5);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    padding: 10px 24px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 10px;
}

.btn-outline-primary:hover {
    background: rgba(184, 134, 11, 0.2);
}

.width-100 {
    width: 100%;
}

/* Centered Hero Section - Updated */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 140px 5% 50px;
    text-align: center;
    gap: 40px;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
    width: 100%;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.2);
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-lg {
    padding: 16px 48px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* Hero Visual & Orb */
.orb-container {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Start centered */
    pointer-events: none;
}

.orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    left: 100px;
    top: 100px;
    filter: blur(80px);
    opacity: 0.6;
    animation: pulse 4s infinite alternate;
}

.orb-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.phone-mockup {
    width: 300px;
    height: 580px;
    background: rgba(20, 20, 30, 0.6);
    border-radius: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    /* Initial transform for simple float */
    transform: translateY(0px);
    animation: float 6s ease-in-out infinite;
}

.phone-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #d97706);
}

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

.status {
    font-size: 0.7rem;
    color: #4ade80;
}

.chat-area {
    padding: 20px;
    height: 420px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
}

/* Chat bubble styles */
.msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    line-height: 1.4;
    animation: popIn 0.3s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.msg.in {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.msg.out {
    background: var(--primary-color);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    color: white;
}

.input-area {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 10px;
}

.input-bar {
    flex: 1;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.send-btn {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Features */
.features-section {
    padding: 100px 5%;
    text-align: center;
}

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

.highlight {
    color: var(--primary-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    text-align: left;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 5%;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    /* Align cards vertically if heights differ */
}

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
}

.pricing-card.recommended {
    border: 2px solid var(--primary-color);
    background: rgba(184, 134, 11, 0.08);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.pricing-card.recommended:hover {
    transform: translateY(-10px) scale(1.08);
}

.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.features-list li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-section {
    padding: 50px 5% 100px;
    display: flex;
    justify-content: center;
}

.cta-content {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.1), rgba(212, 175, 55, 0.1));
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    max-width: 800px;
    width: 100%;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.method .icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Footer */
footer {
    padding: 50px 5%;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
}

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

.footer-links button.link-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    text-decoration: underline;
    margin-left: 20px;
}

.footer-links button.link-btn:hover {
    color: var(--primary-color);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    /* hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #11111b;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid var(--glass-border);
    max-height: 90vh;
    /* scrollable if needed */
}

.modal-content.scrollable {
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.close-modal:hover {
    color: white;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.text-content h3 {
    color: white;
    margin-top: 20px;
    margin-bottom: 10px;
}

.text-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HEADER NAV BUTTONS --- */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-text {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1rem;
}

.btn-text:hover {
    color: var(--primary-color);
}

/* --- DASHBOARD STYLES --- */

.dashboard-body {
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.dashboard-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    height: 100%;
    background: rgba(5, 5, 16, 0.85);
    /* Darker glass */
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 10;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-left: 10px;
}

.sidebar-logo {
    height: 32px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(184, 134, 11, 0.15);
    /* Primary Gold low opacity */
    color: var(--text-primary);
}

.nav-item.active {
    border-left: 3px solid var(--primary-color);
}

.nav-item .material-icons-round {
    font-size: 20px;
    color: inherit;
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.small {
    width: 36px;
    height: 36px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    transform: translateY(-2px);
}

.btn-logout .material-icons-round {
    font-size: 20px;
}

/* Dashboard Main */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    /* Slight tint */
}

.dashboard-header {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-main);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Cards Layout */
.grid-row-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.grid-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.dash-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
}

.dash-card.glow-border {
    border-color: rgba(184, 134, 11, 0.4);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.1);
}

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

.card-label {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.status-badge {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.status-badge.active {
    background: rgba(74, 222, 128, 0.15);
    /* Green tint */
    color: #4ade80;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.days-left-badge {
    background: rgba(239, 68, 68, 0.15);
    /* Red tint */
    color: #f87171;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.warning-icon {
    font-size: 16px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sm-icon {
    font-size: 16px;
}

/* Usage Card */
.star-icon {
    color: var(--gold);
    margin-right: 5px;
    vertical-align: middle;
}

.usage-text {
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-container {
    margin-top: 10px;
}

.progress-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
}

.progress-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Agent Status */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.agent-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.agent-phone {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-pill.connected {
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: 500;
}

/* Charts */
.chart-container {
    height: 200px;
    margin-top: 20px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    gap: 15px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-color), transparent);
    border-radius: 5px 5px 0 0;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.bar:hover {
    opacity: 1;
}

.line-chart {
    width: 100%;
    height: 100%;
}

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

    .sidebar {
        width: 80px;
        padding: 20px 10px;
    }

    .brand-name,
    .nav-item span:not(.material-icons-round),
    .user-info {
        display: none;
    }

    .sidebar-header {
        justify-content: center;
        padding-left: 0;
    }

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

@media (max-width: 768px) {
    .glass-nav .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links button.link-btn {
        margin: 10px;
    }
}

/* ========================================
   AGENTS PAGE STYLES
   ======================================== */

/* Agents Header */
.agents-header {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.15), rgba(212, 175, 55, 0.05));
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.3);
}

.page-icon .material-icons-round {
    font-size: 32px;
    color: white;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

.beta-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.beta-badge .material-icons-round {
    font-size: 18px;
}

/* Agents Grid */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* Agent Card Base */
.agent-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.agent-card:hover {
    transform: translateY(-5px);
    border-color: rgba(184, 134, 11, 0.3);
    box-shadow: 0 12px 32px rgba(184, 134, 11, 0.15);
}

/* Create Agent Card */
.create-agent-card {
    cursor: pointer;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.05), rgba(212, 175, 55, 0.02));
    border: 2px dashed rgba(184, 134, 11, 0.3);
}

.create-agent-card:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.1), rgba(212, 175, 55, 0.05));
}

.create-agent-icon {
    position: relative;
    margin-bottom: 1rem;
}

.whatsapp-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon .material-icons-round {
    font-size: 48px;
    color: white;
}

.add-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.5);
}

.add-badge .material-icons-round {
    font-size: 24px;
    color: white;
}

.create-agent-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.create-agent-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0 0;
}

/* Agent Card Header */
.agent-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.agent-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.agent-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.agent-avatar .material-icons-round {
    font-size: 28px;
    color: white;
}

.agent-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Agent Info Row */
.agent-info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-icon {
    font-size: 18px;
    opacity: 0.7;
}

.info-text {
    color: var(--text-secondary);
}

/* Agent Status Box */
.agent-status-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.agent-status-box.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.status-icon-check {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon-check .material-icons-round {
    font-size: 28px;
    color: white;
}

.status-info {
    flex: 1;
}

.status-label {
    font-weight: 600;
    color: #10b981;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.status-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Configure Button */
.btn-configure {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.btn-configure:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.4);
}

.btn-configure .material-icons-round {
    font-size: 20px;
}

/* Agent Actions */
.agent-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-action {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 500;
}

.btn-action .material-icons-round {
    font-size: 18px;
}

.btn-action.secondary:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.btn-action.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

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

    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .btn-action {
        width: 100%;
    }
}

/* ========================================
   PROMPTS PAGE STYLES
   ======================================== */

/* Prompts Header */
.prompts-header {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(184, 134, 11, 0.05));
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.prompts-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.prompts-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

/* Agent Selection Card */
.agent-selection-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.selection-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selection-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.agent-select {
    min-width: 200px;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agent-select:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.agent-select option {
    background: #1a1a2e;
    color: var(--text-primary);
}

.ai-config-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(184, 134, 11, 0.03));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    flex: 1;
    min-width: 300px;
}

.ai-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.ai-icon .material-icons-round {
    font-size: 24px;
    color: white;
}

.ai-info h3 {
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.ai-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
}

.agent-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.agent-label strong {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-save-main {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.btn-save-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-save-main .material-icons-round {
    font-size: 18px;
}

.save-hint {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Configuration Sections */
.config-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.config-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: fit-content;
}

.config-section:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Section Headers with Colors */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.training-section .section-header {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.1));
}

.products-section .section-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
}

.files-section .section-header {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.1));
}

.section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.training-section .section-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.products-section .section-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.files-section .section-icon {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.section-icon .material-icons-round {
    font-size: 28px;
    color: white;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Config Content */
.config-content {
    padding: 2rem;
}

.config-group {
    margin-bottom: 2rem;
}

.config-group:last-child {
    margin-bottom: 0;
}

.config-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Fields */
.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.input-field,
.textarea-field {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.input-field:focus,
.textarea-field:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.textarea-field {
    resize: vertical;
    min-height: 120px;
}

/* Speech Style Selector */
.speech-style-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.radio-card {
    position: relative;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.radio-card input {
    display: none;
}

.radio-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.radio-card.active {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.2), rgba(212, 175, 55, 0.1));
    border-color: var(--primary-color);
}

.radio-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-direction: column;
}

.radio-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.radio-badge {
    font-size: 1.2rem;
}

/* Toggle Option */
.toggle-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.toggle-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.toggle-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.toggle-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toggle-icon .material-icons-round {
    font-size: 22px;
    color: white;
}

.toggle-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.toggle-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Tabs */
.tabs-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.tab-btn {
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* List Header */
.list-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.btn-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-filter:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.items-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.btn-add-item {
    width: 100%;
    padding: 1rem;
    background: rgba(184, 134, 11, 0.1);
    border: 2px dashed rgba(184, 134, 11, 0.3);
    color: var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.btn-add-item:hover {
    background: rgba(184, 134, 11, 0.15);
    border-color: var(--primary-color);
}

/* Product Item */
.product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.product-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-image {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.product-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-icon .material-icons-round {
    font-size: 20px;
}

/* Payment Settings */
.payment-settings {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.payment-header .material-icons-round {
    font-size: 24px;
    color: var(--primary-color);
}

.payment-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.payment-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.payment-settings .form-field label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-settings .form-field label .material-icons-round {
    font-size: 18px;
    color: var(--primary-color);
}

/* FAQ Items */
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-info {
    flex: 1;
}

.faq-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-question {
    background: transparent;
    border: none;
    padding: 0.5rem 0;
    font-weight: 500;
}

.faq-question:focus {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 6px;
}

.faq-actions {
    display: flex;
    gap: 0.5rem;
}

.faq-answer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-improve {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-improve:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Upload Area */
.document-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.upload-area {
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.upload-area .material-icons-round {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-area p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
}

.btn-upload {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.3);
}

.upload-area small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state .material-icons-round {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
}

/* Buttons */
.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

.expand-btn {
    width: 100%;
    justify-content: center;
}

/* Floating Save Button */
.btn-save-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
    z-index: 100;
}

.btn-save-floating:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.5);
}

/* Responsive */
@media (max-width: 1400px) {
    .config-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .prompts-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .config-content {
        padding: 1.5rem;
    }

    .speech-style-selector {
        grid-template-columns: 1fr;
    }

    .list-header {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .btn-save-floating {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        justify-content: center;
    }
}

/* ========================================
   CHAT CONFIG MODE
   ======================================== */

.config-mode-section {
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.mode-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.mode-toggle-container {
    display: flex;
    gap: 1rem;
}

.mode-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-toggle-btn:hover {
    background: rgba(255,255,255,0.1);
}

.mode-toggle-btn.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.mode-toggle-btn .material-icons-round {
    font-size: 2rem;
    color: #3b82f6;
}

.mode-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.mode-name {
    font-weight: 600;
    font-size: 1rem;
}

.mode-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chat-container {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header-info .material-icons-round {
    font-size: 2rem;
    color: #3b82f6;
}

.chat-header-info h3 {
    margin: 0;
    font-size: 1rem;
}

.chat-status {
    font-size: 0.8rem;
    color: #10b981;
}

.chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar .material-icons-round {
    font-size: 1.2rem;
    color: #3b82f6;
}

.chat-message.user .message-avatar {
    background: rgba(139, 92, 246, 0.2);
}

.chat-message.user .message-avatar .material-icons-round {
    color: #8b5cf6;
}

.message-content {
    background: rgba(255,255,255,0.05);
    padding: 0.75rem 1rem;
    border-radius: 12px;
}

.chat-message.user .message-content {
    background: rgba(59, 130, 246, 0.2);
}

.message-content p {
    margin: 0;
    line-height: 1.5;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    display: block;
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
}

.chat-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.btn-send {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: #3b82f6;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-send:hover {
    background: #2563eb;
}

.chat-hint {
    text-align: center;
    padding: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    background: rgba(59, 130, 246, 0.05);
    margin: 0;
}

.save-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.save-bar .save-hint {
    margin: 0;
    color: var(--text-secondary);
}

/* ========================================
   CLIENTS PAGE
   ======================================== */

.clients-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.stat-icon.green { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.stat-icon.yellow { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.stat-info h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.clients-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-filter-group {
    display: flex;
    gap: 0.75rem;
    flex: 1;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box .material-icons-round {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 0.95rem;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    cursor: pointer;
}

.filter-btn:hover {
    background: rgba(255,255,255,0.1);
}

.filter-btn.active {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #f59e0b;
}

.btn-add-client {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: none;
    background: #3b82f6;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.btn-add-client:hover {
    background: #2563eb;
}

.clients-table-container {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
}

.clients-table th,
.clients-table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.clients-table th {
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.clients-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.clients-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.client-name {
    font-weight: 500;
}

.client-phone {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-favorite {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.5rem;
}

.btn-favorite:hover,
.btn-favorite.active {
    color: #f59e0b;
}

.client-actions {
    display: flex;
    gap: 0.5rem;
}

.client-actions .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-actions .btn-icon:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.client-actions .btn-icon.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.empty-clients {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-clients .material-icons-round {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-clients h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .mode-toggle-container {
        flex-direction: column;
    }
    
    .clients-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
}

/* ==========================================
   LOGIN PAGE
   ========================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #11111b;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.login-brand .logo {
    width: 36px;
    height: 36px;
}

.login-brand .brand-name {
    font-size: 1.3rem;
    font-weight: 700;
}

.login-card h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.login-card form {
    text-align: left;
}

.login-error {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.login-back {
    display: inline-block;
    margin-top: 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.login-back:hover {
    color: var(--primary-color);
}