:root {
    --bg-base: #050505;
    --bg-surface: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-primary: #8b5cf6;
    --accent-success: #10b981;
    --accent-danger: #f43f5e;
    --accent-admin: #f59e0b;
    --gradient-hero: linear-gradient(135deg, #e879f9 0%, #8b5cf6 50%, #3b82f6 100%);
    --gradient-admin: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-master: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    --sidebar-width: 240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea, select {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

body.lang-en .lang-id { display: none !important; }
body.lang-id .lang-en { display: none !important; }

h1, h2, h3, h4, .font-outfit {
    font-family: 'Outfit', sans-serif;
}

.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-admin {
    background: var(--gradient-master);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desktop-only {
    display: inline-block;
}

.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
}

.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: rgba(139, 92, 246, 0.15); }
.blob-2 { bottom: -10%; right: -10%; width: 40vw; height: 40vw; background: rgba(59, 130, 246, 0.15); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 1rem;
    min-height: 2.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-gradient {
    background: var(--gradient-admin);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    filter: brightness(1.1);
}

.btn-master {
    background: var(--gradient-master);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-master:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    filter: brightness(1.1);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--border-highlight);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-sm {
    min-height: 1.8rem;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

.btn-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border-highlight);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.05);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--border-highlight);
}

.btn-icon.danger {
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--accent-danger);
    background: transparent;
}

.btn-icon.danger:hover {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.5);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    cursor: pointer;
}

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

.lang-toggle {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(139, 92, 246, 0.25);
    gap: 0.3rem;
}

.badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.25);
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="url"], textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

input[type="date"] {
    color-scheme: dark;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.pwd-wrapper {
    position: relative;
    width: 100%;
}

.pwd-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.msg-box {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.msg-error {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-danger);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.msg-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--border-highlight); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }
textarea::-webkit-scrollbar { width: 4px; height: 4px; }

#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: rgba(16, 185, 129, 0.95);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.download-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.85);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(8px);
}

.download-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.dl-spinner {
    font-size: 3.5rem;
    color: var(--accent-primary);
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.dl-title {
    font-family: 'Outfit';
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.dl-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

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

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
    padding: 1.25rem;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    width: 100%;
    max-width: 28rem;
    padding: 1.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-overlay.show .modal-card {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
    flex-shrink: 0;
}

.modal-body {
    overflow-y: auto;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 3.5rem;
    z-index: 100;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.25rem 2rem 1.25rem;
    min-height: 100vh;
}

.auth-container {
    max-width: 24rem;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin: 0 auto;
}

.auth-container.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.auth-container h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.login-footer {
    margin-top: auto;
    padding-top: 2rem;
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.admin-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
    text-align: center;
}

.admin-link:hover {
    color: var(--accent-admin);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-wrapper {
    display: none;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.dashboard-wrapper.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.sidebar {
    width: var(--sidebar-width);
    background: rgba(5, 5, 5, 0.75);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 20;
    backdrop-filter: blur(24px);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 1rem 1.25rem;
    height: 3.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar-nav {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
    border-color: rgba(139, 92, 246, 0.2);
}

.nav-item.active i {
    color: var(--accent-primary);
}

.nav-item.admin-active {
    background: rgba(245, 158, 11, 0.1);
    color: var(--text-primary);
    border-color: rgba(245, 158, 11, 0.2);
}

.nav-item.admin-active i {
    color: var(--accent-admin);
}

.nav-item i {
    width: 1.1rem;
    text-align: center;
    font-size: 0.9rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

.nav-item.logout-btn {
    background: rgba(244, 63, 94, 0.08);
    color: var(--accent-danger);
    border: 1px solid rgba(244, 63, 94, 0.2);
    justify-content: center;
}

.main-panel {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.top-header {
    height: 3.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: rgba(5, 5, 5, 0.5);
    z-index: 10;
    flex-shrink: 0;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
}

.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-mini {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--gradient-admin);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Outfit';
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.avatar-mini.admin {
    background: var(--gradient-master);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.content-body {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
    flex-shrink: 0;
    max-width: 60rem;
    width: 100%;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

h2.section-title {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-highlight);
    background: rgba(255, 255, 255, 0.05);
}

.stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.addon-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.addon-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-highlight);
    background: rgba(255, 255, 255, 0.05);
}

.addon-banner {
    height: 110px;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 70%);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.1);
}

.addon-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.list-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.list-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.key-text {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px dashed var(--border-light);
    color: var(--accent-primary);
    letter-spacing: 1px;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.key-text.empty {
    color: var(--text-muted);
    font-style: italic;
    font-weight: normal;
    border-color: transparent;
    background: transparent;
    letter-spacing: normal;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.history-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.02);
}

.history-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.85rem;
    vertical-align: middle;
}

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

.history-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.version-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Outfit';
    font-weight: 600;
    color: #fff;
    font-size: 0.75rem;
    display: inline-block;
    text-align: center;
    min-width: 50px;
}

.profile-grid {
    display: grid;
    gap: 1.25rem;
    max-width: 36rem;
}

.profile-field {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    padding: 1.25rem;
    border-radius: 12px;
}

.profile-field .value {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.guide-step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.guide-number {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit';
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.guide-content h4 {
    font-family: 'Outfit';
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.guide-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.chat-box-wrapper {
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    max-width: 100%;
}

.chat-header {
    padding: 1.25rem;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

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

.chat-header-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gradient-admin);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

.chat-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-base);
}

.chat-bubble {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    font-size: 0.85rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.chat-them {
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    align-self: flex-start;
    border-radius: 14px 14px 14px 4px;
}

.chat-me {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #fff;
    align-self: flex-end;
    border-radius: 14px 14px 4px 14px;
}

.chat-time {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.4rem;
    color: var(--text-muted);
}

.chat-input-area {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--bg-input);
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
    align-items: center;
}

.chat-input-area input {
    flex-grow: 1;
    border-radius: 9999px;
    padding: 0.8rem 1.25rem;
    border: 1px solid var(--border-highlight);
    background: rgba(0, 0, 0, 0.5);
}

.chat-input-area button {
    background: var(--accent-primary);
    color: #fff;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.chat-input-area button:hover {
    transform: scale(1.05);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 15;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    }
    .mobile-toggle { display: block; }
    .content-body { padding: 1rem; }
    .history-table th:nth-child(3),
    .history-table td:nth-child(3) {
        display: none;
    }
    .chat-bubble { max-width: 90%; }
}

.mask-toggle {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s;
    padding: 0.2rem;
}

.mask-toggle:hover {
    opacity: 1;
    transform: scale(1.1);
    color: var(--text-primary);
}