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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e5e5e5;
    line-height: 1.5;
    padding: 40px 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Left Panel */
.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

/* Plan Selection */
.plan-cards {
    display: flex;
    gap: 16px;
}

.plan-card {
    position: relative;
    flex: 1;
    border: 1px solid #4dabf7;
    border-radius: 8px;
    padding: 16px;
    background-color: rgba(77, 171, 247, 0.05);
    cursor: pointer;
}

.plan-card input[type="radio"] {
    position: absolute;
    top: 16px;
    left: 16px;
    accent-color: #ffffff;
}

.plan-card-content {
    margin-left: 28px;
}

.plan-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.plan-desc {
    font-size: 13px;
    color: #a3a3a3;
    margin-top: 4px;
}

.plan-price {
    margin-top: 12px;
    font-size: 14px;
}

.old-price {
    text-decoration: line-through;
    color: #737373;
    margin-right: 8px;
}

.new-price {
    color: #ffffff;
    font-weight: 500;
}

.discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #4dabf7;
    font-size: 12px;
    font-weight: 500;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: #e5e5e5;
}

input[type="text"], select {
    width: 100%;
    padding: 10px 12px;
    background-color: transparent;
    border: 1px solid #404040;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: #737373;
}

input[type="text"]::placeholder {
    color: #737373;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a3a3a3%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 10px auto;
}

select option {
    background-color: #262626;
    color: #ffffff;
}

/* Payment Method */
.payment-box {
    border: 1px solid #404040;
    border-radius: 8px;
    overflow: hidden;
}

.payment-header {
    padding: 12px 16px;
    background-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4dabf7;
    font-weight: 500;
}

.payment-body {
    padding: 16px;
    border-top: 1px solid #404040;
}

.card-input-wrapper {
    position: relative;
}

.card-brands {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
}

.brand-box {
    width: 28px;
    height: 18px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 800;
    font-family: sans-serif;
    position: relative;
    overflow: hidden;
}

.brand-box.visa {
    background-color: #1a56a6;
    color: #fff;
    font-style: italic;
}

.brand-box.mc {
    background-color: #1c1c1c;
    border: 1px solid #404040;
}
.brand-box.mc .mc-circle-1, .brand-box.mc .mc-circle-2 {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
}
.brand-box.mc .mc-circle-1 {
    background-color: #eb001b;
    left: 4px;
    z-index: 1;
}
.brand-box.mc .mc-circle-2 {
    background-color: #f79e1b;
    right: 4px;
    z-index: 2;
    opacity: 0.9;
}

.brand-box.amex {
    background-color: #007bc1;
    color: #fff;
}
.brand-box.amex span {
    transform: scale(0.85);
}

.brand-box.discover {
    background-color: #fff;
    color: #000;
}
.brand-box.discover span {
    transform: scale(0.65);
    margin-left: -2px;
}
.brand-box.discover .discover-dot {
    width: 3px;
    height: 3px;
    background-color: #f58220;
    border-radius: 50%;
    position: absolute;
    right: 2px;
    bottom: 4px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #404040;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #ffffff;
    border-color: #ffffff;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-group label {
    margin-bottom: 0;
    color: #e5e5e5;
}

/* Right Panel */
.right-panel {
    width: 380px;
    position: sticky;
    top: 40px;
}

.summary-box {
    background-color: #262626;
    border-radius: 12px;
    padding: 24px;
}

.summary-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.text-muted {
    color: #a3a3a3;
}

.discount-text {
    color: #4dabf7;
}

.total-row {
    margin-top: 24px;
    margin-bottom: 24px;
    font-weight: 600;
    color: #ffffff;
    font-size: 15px;
}

.info-banner {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #404040;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #e5e5e5;
    line-height: 1.5;
}

.info-banner svg {
    flex-shrink: 0;
    color: #a3a3a3;
}

.terms-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.terms-label {
    font-size: 12px;
    color: #e5e5e5;
    line-height: 1.5;
    margin-bottom: 0;
}

.custom-checkbox {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox label {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #4dabf7;
    border-radius: 4px;
    cursor: pointer;
}

.custom-checkbox label:after {
    content: "";
    position: absolute;
    display: block;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.submit-btn:hover {
    background-color: #e5e5e5;
}

/* Landing Page Styles */
.landing-body {
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #333;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-weight: 500;
}

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

.nav-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a span {
    font-size: 10px;
    color: #a3a3a3;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.btn-outline {
    border: 1px solid #404040;
    background: transparent;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.btn-solid {
    background: #fff;
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.landing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.landing-title {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
}

.landing-subtitle {
    font-size: 18px;
    color: #e5e5e5;
    margin-bottom: 40px;
    line-height: 1.5;
}

.login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    margin-bottom: 40px;
}

.login-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e3a8a;
    color: #60a5fa;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid #1e40af;
    white-space: nowrap;
    z-index: 10;
}

.badge-new {
    background: #2563eb;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 4px;
    font-weight: 500;
}

.login-box {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 32px 24px;
    padding-top: 40px;
}

.btn-google {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #404040;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}

.btn-google:hover {
    background: #262626;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #737373;
    font-size: 12px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #404040;
}

.divider span {
    padding: 0 10px;
}

.email-input {
    width: 100%;
    background: #262626;
    border: 1px solid #404040;
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 16px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.email-input.input-error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: -12px;
    margin-bottom: 16px;
    display: none;
    text-align: left;
}

.btn-email {
    width: 100%;
    background: #fff;
    color: #000;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
}

.terms-text {
    font-size: 12px;
    color: #737373;
}

.terms-text a {
    color: #a3a3a3;
    text-decoration: underline;
}

.btn-download {
    background: transparent;
    border: 1px solid #404040;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* Chat Page Styles */
.chat-body {
    background-color: #1e1e1e;
    display: flex;
    height: 100vh;
    overflow: hidden;
    padding: 0;
}

.sidebar {
    width: 60px;
    background-color: #1e1e1e;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.sidebar-top, .sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #a3a3a3;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: #262626;
    color: #fff;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #e1cec2;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    position: relative;
}

.upgrade-pill {
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    color: #a3a3a3;
}

.upgrade-pill a {
    color: #fff;
    text-decoration: none;
}

.profile-btn {
    position: absolute;
    right: 16px;
    background: transparent;
    border: none;
    color: #a3a3a3;
    cursor: pointer;
}

.chat-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.chat-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #d49575;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.chat-input-container {
    width: 100%;
    max-width: 700px;
}

.unavailable-banner {
    background: #262626;
    border: 1px solid #333;
    border-radius: 12px 12px 0 0;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.unavailable-banner div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.learn-more {
    color: #a3a3a3;
    text-decoration: underline;
}

.close-banner {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

.chat-input-box {
    background: #262626;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 16px;
    cursor: pointer;
}

.chat-input-box input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    margin-bottom: 24px;
    pointer-events: none;
}

.input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.model-select {
    background: transparent;
    border: none;
    color: #a3a3a3;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.quick-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    color: #e5e5e5;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

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

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    text-align: center;
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 20px;
}

.modal-content p {
    color: #a3a3a3;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.modal-btn {
    width: 100%;
    margin-bottom: 12px;
    cursor: pointer;
}

/* Responsiveness */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    
    .right-panel {
        width: 100%;
        position: static;
    }
    
    .nav-links, .nav-actions {
        display: none;
    }
}

/* 3D Secure Modal Styles */
.auth-modal {
    background-color: #ffffff;
    border-radius: 4px;
    width: 380px;
    min-height: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    padding: 32px;
}

#loading-state {
    align-items: center;
    justify-content: center;
}

.loading-bar {
    width: 250px;
    height: 12px;
    background-color: #f3f4f6;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    width: 40%;
    height: 100%;
    background-color: #5850ec;
    animation: loading 1.5s infinite linear;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

.loading-logo {
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    color: #1a56a6;
    font-family: sans-serif;
}
.loading-logo.mc-logo {
    color: #eb001b;
    font-style: normal;
}

.ds-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.ds-bank-logo {
    color: #1a56a6;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ds-card-logo {
    font-size: 24px;
    font-weight: 900;
    font-style: italic;
    color: #1a56a6;
    font-family: sans-serif;
}
.ds-card-logo.mc-logo {
    color: #eb001b;
    font-style: normal;
}

.ds-body {
    flex-grow: 1;
    color: #000;
}

.ds-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 16px;
}

.ds-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.ds-form {
    margin-top: 24px;
    text-align: center;
}

.ds-form label {
    display: block;
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}

.ds-input {
    width: 240px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 2px;
    margin-bottom: 12px;
    text-align: center;
    background: #fff;
    color: #000000 !important;
    font-size: 16px;
    outline: none;
}
.ds-input:focus {
    border-color: #1a56a6;
}

.ds-submit {
    background-color: #1a56a6;
    color: #fff;
    border: none;
    padding: 12px 0;
    width: 240px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: bold;
    display: block;
    margin: 0 auto 24px;
    font-size: 14px;
}

.ds-link {
    color: #1a56a6;
    font-size: 11px;
    text-decoration: none;
    font-weight: bold;
    display: block;
    text-align: center;
    margin-top: 32px;
}

.ds-footer {
    border-top: 1px solid #e5e5e5;
    padding-top: 16px;
    margin-top: 16px;
    font-size: 12px;
    color: #1a56a6;
    font-weight: bold;
    text-align: center;
}
/* -- Toasts -- */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.app-toast {
    background: #fff;
    color: #ef4444;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1), 0 0 0 1px rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    border-left: 4px solid #ef4444;
    font-family: 'Inter', Arial, sans-serif;
}
.app-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* -- OTP Button Spinner -- */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.otp-error-msg {
    color: #ef4444;
    font-size: 13px;
    margin-top: 10px;
    margin-bottom: 12px;
    display: none;
    text-align: center;
    font-weight: bold;
    background: #fef2f2;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #fee2e2;
}

/* ---- COMPREHENSIVE RESPONSIVE DESIGN (MOBILE & TABLET) ---- */
@media (max-width: 900px) {
    body {
        padding: 20px 15px;
    }
    .container {
        gap: 24px;
        padding: 0;
    }
    .plan-cards {
        flex-direction: column;
    }
    .right-panel {
        padding: 20px;
    }
    .section-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    /* Modals Mobile */
    .auth-modal {
        width: 90%;
        min-width: 300px;
        max-width: 400px;
        padding: 24px 20px;
        margin: 0 auto;
    }
    
    /* Index Page Mobile */
    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    .hero-buttons button, .hero-buttons a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Chat Page Mobile */
    .chat-layout {
        flex-direction: column;
    }
    .chat-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #333;
        padding-bottom: 10px;
    }
    .chat-main {
        height: 70vh;
    }
    .message {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .nav-actions {
        display: none !important;
    }
    .logo-text {
        font-size: 18px;
    }
    .hero h1 {
        font-size: 28px;
    }
    
    /* Billing Form Adjustments */
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    .form-group {
        width: 100%;
    }
    .ds-title {
        font-size: 18px;
    }
    .ds-text {
        font-size: 13px;
    }
    
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    .app-toast {
        width: auto;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .chat-body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: 60px;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid #333;
        overflow-x: auto;
    }
    .sidebar-top, .sidebar-bottom {
        flex-direction: row;
        gap: 8px;
    }
    .main-chat {
        height: calc(100vh - 60px);
    }
}

/* ---- CHAT MOBILE OVERRIDES ---- */
@media (max-width: 768px) {
    .chat-body {
        flex-direction: column-reverse;
    }
    .sidebar {
        width: 100%;
        height: 60px;
        min-height: 60px;
        flex-direction: row;
        border-right: none;
        border-bottom: none;
        border-top: 1px solid #333;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
        background: #1e1e1e;
        z-index: 100;
    }
    .sidebar-top, .sidebar-bottom {
        flex-direction: row;
        gap: 12px;
        margin: 0;
        padding: 0;
    }
    .main-chat {
        height: calc(100vh - 60px);
        width: 100%;
        padding-top: 60px; /* space for header */
    }
    .chat-header {
        top: 10px;
        right: 10px;
        z-index: 50;
    }
    .chat-title {
        font-size: 24px;
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
        gap: 8px;
    }
    .chat-title .title-icon {
        display: none;
    }
    .quick-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .quick-btn {
        padding: 8px 12px;
        font-size: 13px;
        background: rgba(255,255,255,0.05);
    }
    .chat-input-container {
        padding: 10px;
    }
    .chat-input {
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .chat-title {
        font-size: 20px;
    }
}
