* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a0b2e, #4a2c7a);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-overlay.hidden {
    display: none;
}

.login-container {
    background: rgba(255, 255, 255, 0.05);
    
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.login-brand {
    margin-bottom: 30px;
}

.login-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    
}

.login-brand h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    background: linear-gradient(45deg, #d1bbff, #9e6dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.login-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.login-form {
    margin-bottom: 25px;
}

.login-form .input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-form input {
    width: 100%;
    background: rgba(26, 11, 46, 0.8); 
    border: 2px solid rgba(158, 109, 255, 0.3);
    border-radius: 15px;
    padding: 15px 50px 15px 20px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    font-size: 1rem;
    outline: none;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.login-form input:focus {
    border-color: #9e6dff;
    box-shadow: 0 0 20px rgba(158, 109, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.7;
}

.login-btn {
    width: 100%;
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(158, 109, 255, 0.4);
}

.demo-accounts {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.demo-accounts h4 {
    font-family: 'Fredoka One', cursive;
    margin-bottom: 15px;
    color: #d1bbff;
}

.demo-buttons {
    display: flex;
    gap: 10px;
}

.demo-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 15px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    font-size: 0.9rem;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.demo-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.user-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #d1bbff;
    margin-right: 10px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 107, 139, 0.2);
    border: 1px solid rgba(255, 107, 139, 0.3);
    border-radius: 20px;
    color: #ff6b8b;
    font-family: 'Comic Neue', cursive;
    font-size: 0.9rem;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.logout-btn:hover {
    background: rgba(255, 107, 139, 0.3);
    transform: translateY(-1px);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    
    background: rgba(255, 255, 255, 0.03);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.modal-container {
    
    
    background: #2a1548; 
    border: 3px solid #9e6dff;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px; 
    max-height: 90vh; 
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Fredoka One', cursive;
    color: #d1bbff;
    font-size: 1.3rem;
}

.modal-close {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 107, 139, 0.3);
    color: #ff6b8b;
}

.modal-content {
    padding: 30px 40px; 
    height: calc(90vh - 200px); 
    overflow-y: auto; 
}

.prompt-info {
    margin-bottom: 15px;
}

.prompt-info label {
    color: #d1bbff;
    font-weight: 600;
}

#modalPromptContent {
    width: 100%;
    min-height: 400px; 
    height: 50vh; 
    background: #1a0b2e; 
    border: 2px solid #4a2c7a;
    border-radius: 15px;
    padding: 20px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    font-size: 1.1rem; 
    line-height: 1.7;
    resize: vertical;
    outline: none;
}

#modalPromptContent:focus {
    border-color: #9e6dff;
    box-shadow: 0 0 15px rgba(158, 109, 255, 0.3);
}

.prompt-counter {
    text-align: right;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #d1bbff;
}

.modal-actions {
    padding: 0 25px 25px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.modal-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn.save {
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    color: #fff;
}

.modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(135deg, 
        #1a0b2e 0%, 
        #2d1b4e 25%, 
        #4a2c7a 50%, 
        #6a3d99 75%, 
        #8b4fb8 100%);
    background-size: 400% 400%;
    
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}


.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a0b2e, #4a2c7a);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-plushie {
    text-align: center;
}

.loading-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    
    margin-bottom: 20px;
}

.loading-text {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #d1bbff;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    border-radius: 2px;
    animation: loadingProgress 3s ease forwards;
}

.dashboard-header {
    position: sticky;
    top: 0;
    
    
    background: #1a0b2e; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    
}

.brand-info h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #d1bbff, #9e6dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 2px;
}

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

.ai-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    
}

.status-indicator.online {
    background: #6bcf7f;
}

.save-all-btn, .home-btn {
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.save-all-btn {
    box-shadow: 0 4px 15px rgba(158, 109, 255, 0.3);
}

.home-btn {
    background: linear-gradient(45deg, #6bcf7f, #4ecdc4);
    box-shadow: 0 4px 15px rgba(107, 207, 127, 0.3);
}

.save-all-btn:hover, .home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(158, 109, 255, 0.4);
}

.add-info-global-btn {
    background: linear-gradient(45deg, #4ecdc4, #6bcf7f) !important;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.add-info-global-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
    background: linear-gradient(45deg, #3bb5a8, #5bb36b) !important;
}

.dashboard-main {
    padding-top: 20px;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    min-height: calc(100vh - 120px);
}

.dashboard-sidebar {
    background: rgba(255, 255, 255, 0.05);
    
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.ai-avatar-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.ai-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.avatar-mood-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, #9e6dff, #d1bbff, #6bcf7f, #ffd93d);
    background-size: 400% 400%;
    
    z-index: -1;
}

.avatar-sparkles {
    position: absolute;
    top: -10px;
    right: -10px;
}

.sparkle {
    position: absolute;
    font-size: 1rem;
    
}

.sparkle:nth-child(1) { animation-delay: 0s; }
.sparkle:nth-child(2) { animation-delay: 1s; top: 10px; right: 10px; }
.sparkle:nth-child(3) { animation-delay: 2s; top: 20px; right: -5px; }

.ai-name-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 8px 15px;
    color: #fff;
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
    outline: none;
}

.ai-name-input:focus {
    border-color: #9e6dff;
    box-shadow: 0 0 15px rgba(158, 109, 255, 0.3);
}

.mood-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.mood-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.mood-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.mood-btn.active {
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    box-shadow: 0 4px 15px rgba(158, 109, 255, 0.4);
}

.sidebar-nav {
    margin-bottom: 30px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    color: #fff;
    box-shadow: 0 4px 15px rgba(158, 109, 255, 0.3);
}

.nav-icon {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.nav-text {
    flex: 1;
    font-weight: 600;
}

.nav-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.nav-item.active .nav-badge {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.stats-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-icon {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.stat-value {
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    font-weight: 700;
    color: #d1bbff;
}

.dashboard-content {
    background: rgba(255, 255, 255, 0.05);
    
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.content-section {
    display: none;
    padding: 30px;
}

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

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-emoji {
    font-size: 2.5rem;
    
}

.section-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.instructions-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.instruction-card {
    background: rgba(255, 255, 255, 0.08);
    
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(158, 109, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

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

.card-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: #d1bbff;
}

.card-toggle {
    position: relative;
}

.card-toggle input[type="checkbox"] {
    display: none;
}

.card-toggle label {
    display: block;
    width: 50px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.card-toggle label:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: #fff;
    border-radius: 50%;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.card-toggle input[type="checkbox"]:checked + label {
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
}

.card-toggle input[type="checkbox"]:checked + label:before {
    transform: translateX(25px);
}

.instruction-textarea {
    width: 100%;
    min-height: 120px;
    background: #1a0b2e; 
    border: 2px solid #4a2c7a;
    border-radius: 15px;
    padding: 15px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.instruction-textarea:focus {
    border-color: #9e6dff;
    box-shadow: 0 0 15px rgba(158, 109, 255, 0.3);
}

.instruction-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.textarea-counter {
    text-align: right;
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.current-count {
    color: #d1bbff;
    font-weight: 600;
}

.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.style-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.style-tag:hover {
    background: rgba(255, 255, 255, 0.15);
}

.style-tag.active {
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    border-color: transparent;
    color: #fff;
}

.restriction-list {
    margin-top: 15px;
}

.restriction-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.restriction-icon {
    font-size: 1rem;
}

.meme-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.meme-tag {
    padding: 6px 12px;
    background: rgba(255, 217, 61, 0.2);
    border: 1px solid rgba(255, 217, 61, 0.3);
    border-radius: 15px;
    font-size: 0.85rem;
    color: #ffd93d;
}

.updates-container {
    display: block;
    width: 100%;
}

.update-composer {
    background: rgba(255, 255, 255, 0.08);
    
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

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

.composer-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: #d1bbff;
}

.composer-type select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 12px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    outline: none;
}

.update-title, .update-content {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 12px 15px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    margin-bottom: 15px;
    outline: none;
}

.update-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.update-content {
    min-height: 100px;
    resize: vertical;
}

.update-title:focus, .update-content:focus {
    border-color: #9e6dff;
    box-shadow: 0 0 15px rgba(158, 109, 255, 0.3);
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.composer-tags {
    display: flex;
    gap: 10px;
}

.tag-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 12px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    width: 120px;
    outline: none;
}

.add-tag-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.add-tag-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(158, 109, 255, 0.4);
}

.publish-update-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #6bcf7f, #4d96ff);
    border: none;
    border-radius: 15px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.publish-update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 207, 127, 0.3);
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag .remove-tag {
    cursor: pointer;
    opacity: 0.7;
}

.tag .remove-tag:hover {
    opacity: 1;
}

.updates-list {
    width: 100%;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.update-item {
    background: rgba(255, 255, 255, 0.08);
    
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
    margin-bottom: 15px;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.update-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(158, 109, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.update-item.active {
    border-color: #9e6dff;
    box-shadow: 0 0 20px rgba(158, 109, 255, 0.3);
}

.update-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.update-badge.feature {
    background: linear-gradient(45deg, #6bcf7f, #4d96ff);
    color: #fff;
}

.update-badge.partnership {
    background: linear-gradient(45deg, #ffd93d, #ff9f87);
    color: #333;
}

.update-badge.event {
    background: linear-gradient(45deg, #ff6b8b, #ff9f87);
    color: #fff;
}

.update-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.update-priority {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.update-priority.high {
    background: rgba(255, 107, 139, 0.3);
    color: #ff6b8b;
}

.update-priority.medium {
    background: rgba(255, 217, 61, 0.3);
    color: #ffd93d;
}

.update-priority.low {
    background: rgba(107, 207, 127, 0.3);
    color: #6bcf7f;
}

.update-item .update-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #d1bbff;
}

.update-summary {
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 15px;
}

.update-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.update-actions {
    display: flex;
    gap: 10px;
}

.edit-update-btn, .delete-update-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.edit-update-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.delete-update-btn {
    background: rgba(255, 107, 139, 0.2);
    color: #ff6b8b;
}

.edit-update-btn:hover, .delete-update-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.personality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.personality-card {
    background: rgba(255, 255, 255, 0.08);
    
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px;
}

.personality-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #d1bbff;
}

.personality-sliders {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slider-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #d1bbff;
}

.slider-container {
    position: relative;
}

.personality-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.personality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(158, 109, 255, 0.4);
}

.personality-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.voice-samples {
    background: rgba(255, 255, 255, 0.08);
    
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px;
}

.voice-samples h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #d1bbff;
}

.sample-message {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 12px;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.sample-message:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.sample-avatar {
    font-size: 2rem;
    
}

.sample-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.play-sample-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.play-sample-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(158, 109, 255, 0.4);
}

.voice-templates {
    background: rgba(255, 255, 255, 0.08);
    
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px;
}

.voice-templates h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #d1bbff;
}

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

.template-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.template-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.template-card.active {
    border-color: #9e6dff;
    background: rgba(158, 109, 255, 0.2);
}

.template-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    
}

.template-card h4 {
    font-family: 'Fredoka One', cursive;
    margin-bottom: 8px;
    color: #d1bbff;
}

.template-card p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.08);
    
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px;
    text-align: center;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(158, 109, 255, 0.15);
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.metric-icon {
    font-size: 1.5rem;
}

.metric-title {
    font-weight: 600;
    color: #d1bbff;
}

.metric-value {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #d1bbff, #9e6dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-change {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.metric-change.positive {
    color: #6bcf7f;
}

.metric-change.negative {
    color: #ff6b8b;
}

.metric-chart {
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.satisfaction-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.satisfaction-fill {
    height: 100%;
    background: linear-gradient(45deg, #6bcf7f, #4d96ff);
    border-radius: 4px;
    transition: width 1s ease;
}

.response-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.indicator-dot.excellent {
    background: #6bcf7f;
    
}

.accuracy-breakdown {
    text-align: left;
}

.accuracy-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.detailed-analytics {
    background: rgba(255, 255, 255, 0.08);
    
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px;
}

.analytics-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    color: #d1bbff;
    background: rgba(158, 109, 255, 0.2);
}

.tab-content {
    display: none;
}

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

.top-questions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
}

.question-rank {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.question-text {
    flex: 1;
    font-weight: 600;
}

.question-count {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #d1bbff;
}

.topic-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.topic-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-weight: 600;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.topic-tag.large {
    font-size: 1.3rem;
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
}

.topic-tag.medium {
    font-size: 1.1rem;
    background: rgba(158, 109, 255, 0.3);
}

.topic-tag.small {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
}

.error-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.error-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
}

.error-type {
    font-weight: 600;
}

.error-count {
    background: rgba(255, 107, 139, 0.3);
    color: #ff6b8b;
    padding: 4px 12px;
    border-radius: 10px;
    font-weight: 700;
}

.error-trend {
    font-size: 0.9rem;
    opacity: 0.8;
}

.chat-preview-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.chat-window {
    background: rgba(255, 255, 255, 0.08);
    
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
}

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

.chat-avatar {
    position: relative;
}

.chat-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #6bcf7f;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    
}

.chat-info {
    flex: 1;
}

.chat-info h3 {
    font-family: 'Fredoka One', cursive;
    margin-bottom: 2px;
    color: #d1bbff;
}

.chat-info p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.clear-chat-btn, .export-chat-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.clear-chat-btn:hover, .export-chat-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 80%;
}

.message.ai-message {
    align-self: flex-start;
}

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

.message-avatar img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.message-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 12px 15px;
    position: relative;
}

.user-message .message-content {
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
}

.message-text {
    line-height: 1.4;
    margin-bottom: 5px;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: right;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #d1bbff;
    border-radius: 50%;
    
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.chat-input-area {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.chat-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 12px 20px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    outline: none;
}

.chat-input:focus {
    border-color: #9e6dff;
    box-shadow: 0 0 15px rgba(158, 109, 255, 0.3);
}

.send-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(158, 109, 255, 0.4);
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-question-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    font-size: 0.85rem;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.quick-question-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.chat-settings {
    background: rgba(255, 255, 255, 0.08);
    
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px;
    height: fit-content;
}

.chat-settings h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #d1bbff;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #d1bbff;
}

.setting-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 12px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    outline: none;
}

.toggle-switch {
    position: relative;
    display: inline-block;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch label {
    display: block;
    width: 50px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.toggle-switch label:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: #fff;
    border-radius: 50%;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.toggle-switch input[type="checkbox"]:checked + label {
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
}

.toggle-switch input[type="checkbox"]:checked + label:before {
    transform: translateX(25px);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.settings-card {
    background: rgba(255, 255, 255, 0.08);
    
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px;
}

.settings-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #d1bbff;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.setting-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.setting-item label {
    font-weight: 600;
    color: #d1bbff;
}

.api-key-display {
    display: flex;
    gap: 10px;
    align-items: center;
}

.api-key-display input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 12px;
    color: #fff;
    font-family: 'Courier New', monospace;
    width: 200px;
    outline: none;
}

.regenerate-btn {
    padding: 8px 15px;
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    font-size: 0.85rem;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.regenerate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(158, 109, 255, 0.4);
}

.data-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.data-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    border: none;
    border-radius: 12px;
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.data-btn.export, .data-btn.import, .data-btn.backup {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.data-btn.reset.warning {
    background: rgba(255, 107, 139, 0.2);
    color: #ff6b8b;
    border: 1px solid rgba(255, 107, 139, 0.3);
}

.data-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: rgba(255, 255, 255, 0.1);
    
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateX(300px);
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
    border-left: 4px solid #9e6dff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #9e6dff, transparent);
    width: 100%;
    animation: notificationProgress 6s linear forwards;
}

@keyframes notificationProgress {
    0% { width: 100%; }
    80% { width: 20%; }
    100% { width: 0%; }
}

.notification.success {
    border-left-color: #6bcf7f;
}

.notification.success::before {
    background: linear-gradient(90deg, #6bcf7f, transparent);
}

.notification.error {
    border-left-color: #ff6b8b;
}

.notification.error::before {
    background: linear-gradient(90deg, #ff6b8b, transparent);
}

.notification.info {
    border-left-color: #4d96ff;
}

.notification.info::before {
    background: linear-gradient(90deg, #4d96ff, transparent);
}

@media (max-width: 1200px) {
    .dashboard-container {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .dashboard-sidebar {
        position: relative;
        top: 0;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .updates-container {
        grid-template-columns: 1fr;
    }
    
    .personality-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-preview-container {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .dashboard-header {
        padding: 15px 10px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }
    
    .brand-info h1 {
        font-size: 1.8rem;
    }
    
    .brand-subtitle {
        font-size: 0.9rem;
    }
    
    .ai-status {
        font-size: 0.85rem;
    }
    
    .user-info {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .logout-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .dashboard-content {
        padding: 15px 10px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .section-description {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .bot-prompt-card {
        padding: 18px;
        margin-bottom: 15px;
    }
    
    .bot-card-header h3 {
        font-size: 1.2rem;
    }
    
    .prompt-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .edit-prompt-btn, .add-info-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-height: 44px;
    }
    
    .instruction-textarea {
        font-size: 0.9rem;
        padding: 12px;
        min-height: 120px;
    }
    
    .ai-avatar-section {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .ai-avatar {
        width: 80px;
        height: 80px;
    }
    
    .ai-name-input {
        font-size: 1rem;
        text-align: center;
    }
    
    .mood-selector {
        justify-content: center;
    }
    
    .mood-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .nav-item {
        padding: 12px 15px;
        text-align: center;
    }
    
    .nav-text {
        font-size: 0.9rem;
    }
    
    .sidebar-footer {
        text-align: center;
    }
    
    .stats-mini {
        justify-content: center;
    }
    
    .settings-card {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .settings-card h3 {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .setting-item label {
        font-size: 1rem;
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }
    
    .setting-item input[type="email"],
    .setting-item input[type="text"] {
        width: 100%;
        padding: 12px 15px;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        color: #fff;
        outline: none;
    }
    
    .setting-item input[type="email"]:focus,
    .setting-item input[type="text"]:focus {
        border-color: #9e6dff;
        box-shadow: 0 0 10px rgba(158, 109, 255, 0.3);
    }
    
    .change-password-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .change-password-form .input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .change-password-form input {
        width: 100%;
        padding: 12px 15px;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        color: #fff;
        outline: none;
        box-sizing: border-box;
    }
    
    .change-password-form input:focus {
        border-color: #9e6dff;
        box-shadow: 0 0 10px rgba(158, 109, 255, 0.3);
    }
    
    .change-password-form input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }
    
    .update-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
        min-height: 48px;
        margin-top: 8px;
        justify-content: center;
        border-radius: 12px;
    }
    
    .api-key-display {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .api-key-display input {
        width: 100%;
        padding: 12px 15px;
        font-size: 0.85rem;
        box-sizing: border-box;
    }
    
    .regenerate-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px;
        justify-content: center;
    }
    
    .data-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .data-btn {
        padding: 14px 20px;
        font-size: 0.9rem;
        min-height: 48px;
        width: 100%;
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes loadingFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(158, 109, 255, 0.3); }
    50% { box-shadow: 0 0 30px rgba(158, 109, 255, 0.6); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes moodRing {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(180deg); }
}

@keyframes emojiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1); }
}

@keyframes slideIn {
    0% { transform: translateX(300px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}


@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 15px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    outline: none;
}

.input-group input:focus {
    border-color: #9e6dff;
    box-shadow: 0 0 10px rgba(158, 109, 255, 0.3);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.update-btn {
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
    margin-top: 20px;
}

.update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(158, 109, 255, 0.4);
}

.bot-prompt-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.bot-prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9e6dff, #d1bbff, #6bcf7f);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bot-prompt-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(158, 109, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.bot-prompt-card:hover::before {
    opacity: 1;
}

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

.bot-card-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    color: #d1bbff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bot-status {
    background: linear-gradient(45deg, #6bcf7f, #4ecdc4);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(107, 207, 127, 0.3);
}

.bot-prompt-preview {
    margin: 16px 0;
}

.prompt-text {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-family: 'Comic Neue', cursive;
    font-size: 0.9rem;
    border-left: 3px solid #9e6dff;
    position: relative;
}

.prompt-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.prompt-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-prompt-btn {
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(158, 109, 255, 0.3);
}

.edit-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(158, 109, 255, 0.4);
    background: linear-gradient(45deg, #8a5ff0, #c7a8ff);
}

.edit-prompt-btn:active {
    transform: translateY(0);
}

.add-info-btn {
    background: linear-gradient(45deg, #4ecdc4, #6bcf7f) !important;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3) !important;
}

.add-info-btn:hover {
    background: linear-gradient(45deg, #3bb5a8, #5bb36b) !important;
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4) !important;
}

.extras-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.extra-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.extra-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.extra-item::before {
    content: '💡';
    position: absolute;
    left: -8px;
    top: -8px;
    background: linear-gradient(45deg, #4ecdc4, #6bcf7f);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.extra-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Comic Neue', cursive;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.del-extra-btn {
    background: linear-gradient(45deg, #ff6b8b, #ff8a9b);
    color: #fff;
    border: none;
    border-radius: 20px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 107, 139, 0.3);
    flex-shrink: 0;
}

.del-extra-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 139, 0.5);
    background: linear-gradient(45deg, #ff5577, #ff7788);
}

.user-management-container {
    display: grid;
    gap: 30px;
    margin-top: 20px;
}

.create-user-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.create-user-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ecdc4, #6bcf7f);
    opacity: 1;
}

.create-user-section h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: #d1bbff;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.create-user-section h3::before {
    content: '👤';
    font-size: 1.2rem;
}

.create-user-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.create-user-form input,
.create-user-form select {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    font-size: 0.95rem;
    outline: none;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.create-user-form select option {
    background: #2a1a4a;
    color: #fff;
    padding: 8px;
}

.create-user-form input:focus,
.create-user-form select:focus {
    border-color: #4ecdc4;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.create-user-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.create-user-btn {
    background: linear-gradient(45deg, #4ecdc4, #6bcf7f);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.create-user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
    background: linear-gradient(45deg, #3bb5a8, #5bb36b);
}

.users-list-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.users-list-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9e6dff, #d1bbff);
    opacity: 1;
}

.users-list-section h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: #d1bbff;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.users-list-section h3::before {
    content: '👥';
    font-size: 1.2rem;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.user-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(158, 109, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.user-email {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: #d1bbff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-email::before {
    content: '📧';
    font-size: 1rem;
}

.user-details {
    font-family: 'Comic Neue', cursive;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    line-height: 1.4;
}

.user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-action-btn {
    background: linear-gradient(45deg, #9e6dff, #d1bbff);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(158, 109, 255, 0.3);
}

.user-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(158, 109, 255, 0.4);
}

.user-action-btn.toggle-user-btn.inactive {
    background: linear-gradient(45deg, #ff6b8b, #ff8a9b);
    box-shadow: 0 2px 8px rgba(255, 107, 139, 0.3);
}

.user-action-btn.toggle-user-btn.inactive:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 139, 0.4);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .create-user-btn {
        width: 100%;
        justify-content: center;
    }
    
    .user-actions {
        justify-content: center;
    }
    
    .login-container {
        margin: 10px;
        padding: 25px 20px;
        max-width: 100%;
        width: calc(100% - 20px);
    }
    
    .login-brand h1 {
        font-size: 1.8rem;
    }
    
    .login-brand p {
        font-size: 0.9rem;
    }
    
    .login-avatar {
        width: 70px;
        height: 70px;
    }
    
    .login-form input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .login-btn {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
    
    .modal-container {
        margin: 15px;
        padding: 20px;
        max-width: calc(100vw - 30px);
        max-height: calc(100vh - 30px);
        overflow-y: auto;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    #modalPromptContent, #addInfoContent, #editExtraContent {
        min-height: 300px; 
        height: 40vh;
        font-size: 1rem;
        padding: 15px;
    }
    
    .modal-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .notification {
        font-size: 0.85rem;
        padding: 12px 15px;
        margin: 8px;
        max-width: calc(100vw - 16px);
    }
    
    .extra-item {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .extra-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .del-extra-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        min-height: 36px;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        gap: 10px;
        padding: 5px;
    }
    
    .dashboard-header {
        padding: 10px 5px;
    }
    
    .header-container {
        gap: 10px;
    }
    
    .brand-info h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .brand-subtitle {
        font-size: 0.8rem;
    }
    
    .brand-avatar {
        width: 35px;
        height: 35px;
    }
    
    .user-info {
        font-size: 0.75rem;
        padding: 8px 12px;
        word-break: break-all;
    }
    
    .logout-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .dashboard-content {
        padding: 10px 5px;
    }
    
    .dashboard-sidebar {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .section-description {
        font-size: 0.8rem;
        padding: 0 10px;
    }
    
    .bot-prompt-card {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .bot-card-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .bot-card-header h3 {
        font-size: 1.1rem;
    }
    
    .bot-status {
        align-self: center;
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .prompt-text {
        font-size: 0.85rem;
        line-height: 1.3;
        margin: 10px 0;
        max-height: 100px;
        overflow-y: auto;
    }
    
    .prompt-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }
    
    .edit-prompt-btn, .add-info-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.85rem;
        min-height: 44px;
        justify-content: center;
    }
    
    .instruction-textarea {
        font-size: 0.85rem;
        padding: 10px;
        min-height: 100px;
    }
    
    .ai-avatar {
        width: 60px;
        height: 60px;
    }
    
    .ai-name-input {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .mood-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .nav-item {
        padding: 10px 12px;
    }
    
    .nav-text {
        font-size: 0.8rem;
    }
    
    .nav-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .login-container {
        margin: 5px;
        padding: 20px 15px;
    }
    
    .login-brand h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .login-brand p {
        font-size: 0.8rem;
    }
    
    .login-avatar {
        width: 60px;
        height: 60px;
    }
    
    .login-form input {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .input-icon {
        font-size: 0.9rem;
    }
    
    .login-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .modal-container {
        margin: 10px;
        padding: 15px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }
    
    .modal-header {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
        line-height: 1.2;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    #modalPromptContent, #addInfoContent, #editExtraContent {
        min-height: 250px; 
        height: 35vh;
        font-size: 0.95rem;
        padding: 12px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.85rem;
        min-height: 44px;
        justify-content: center;
    }
    
    .notification {
        font-size: 0.8rem;
        padding: 10px 12px;
        margin: 5px;
        max-width: calc(100vw - 10px);
        word-break: break-word;
    }
    
    .extra-item {
        padding: 10px;
        margin-bottom: 6px;
    }
    
    .extra-text {
        font-size: 0.8rem;
        line-height: 1.3;
        word-break: break-word;
    }
    
    .del-extra-btn {
        padding: 5px 8px;
        font-size: 0.7rem;
        min-height: 32px;
    }
    
    .bot-selection-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .bot-select-card {
        padding: 15px;
    }
    
    .bot-select-name {
        font-size: 1rem;
    }
    
    .bot-select-info {
        font-size: 0.8rem;
    }
    
    .user-management-container {
        padding: 10px;
    }
    
    .create-user-form {
        gap: 12px;
    }
    
    .create-user-form input,
    .create-user-form select {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .create-user-btn {
        padding: 12px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .user-item {
        padding: 12px;
    }
    
    .user-email {
        font-size: 1rem;
        word-break: break-word;
    }
    
    .user-details {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .user-action-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .chat-window {
        max-height: 60vh;
    }
    
    .chat-header {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .chat-info h3 {
        font-size: 1rem;
    }
    
    .chat-info p {
        font-size: 0.8rem;
    }
    
    .chat-actions {
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }
    
    .clear-chat-btn, .export-chat-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    
    .chat-messages {
        padding: 8px;
        max-height: 300px;
    }
    
    .message {
        margin-bottom: 8px;
    }
    
    .message-content {
        padding: 8px 10px;
        max-width: 85%;
    }
    
    .message-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .message-time {
        font-size: 0.7rem;
    }
    
    .chat-input-container {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }
    
    .chat-input {
        font-size: 0.85rem;
        padding: 10px 12px;
        min-height: 40px;
    }
    
    .send-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.85rem;
        min-height: 44px;
        justify-content: center;
    }
    
    .quick-questions {
        gap: 6px;
        padding: 0 5px;
    }
    
    .quick-question-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        border-radius: 15px;
    }
    
    .metric-card {
        padding: 12px;
    }
    
    .metric-title {
        font-size: 0.8rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .metric-change {
        font-size: 0.7rem;
    }
    
    .analytics-tabs {
        flex-direction: column;
        gap: 6px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .question-item {
        padding: 8px;
    }
    
    .question-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .question-count {
        font-size: 0.7rem;
    }
    
    .topic-tag {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .topic-tag.large {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .topic-tag.medium {
        font-size: 0.75rem;
        padding: 5px 9px;
    }
    
    .error-item {
        padding: 8px;
    }
    
    .error-type {
        font-size: 0.8rem;
    }
    
    .error-count {
        font-size: 0.9rem;
    }
    
    .loading-screen {
        padding: 20px;
    }
    
    .loading-avatar {
        width: 80px;
        height: 80px;
    }
    
    .loading-text {
        font-size: 1.2rem;
        margin: 15px 0;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    .personality-card {
        padding: 15px;
    }
    
    .personality-card h3 {
        font-size: 1.1rem;
    }
    
    .slider-group label {
        font-size: 0.8rem;
    }
    
    .sample-message {
        padding: 10px;
    }
    
    .sample-text {
        font-size: 0.8rem;
    }
    
    .template-card {
        padding: 12px;
    }
    
    .template-card h4 {
        font-size: 0.9rem;
    }
    
    .template-card p {
        font-size: 0.75rem;
    }
    
    .update-item {
        padding: 12px;
    }
    
    .update-item .update-title {
        font-size: 1rem;
    }
    
    .update-summary {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .update-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .update-meta {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .update-actions {
        flex-direction: column;
        gap: 6px;
        margin-top: 8px;
    }
    
    .edit-update-btn, .delete-update-btn {
        width: 100%;
        padding: 8px;
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .settings-card {
        padding: 15px 12px;
        margin-bottom: 12px;
    }
    
    .settings-card h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .setting-item {
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .setting-item label {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }
    
    .setting-item input[type="email"],
    .setting-item input[type="text"] {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .change-password-form {
        gap: 10px;
    }
    
    .change-password-form input {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 8px;
        min-height: 40px;
    }
    
    .update-btn {
        padding: 12px 18px;
        font-size: 0.9rem;
        min-height: 44px;
        border-radius: 10px;
        margin-top: 20px;
    }
    
    .api-key-display input {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .regenerate-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .data-btn {
        padding: 12px 15px;
        font-size: 0.85rem;
        min-height: 44px;
    }
}

.bot-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.bot-select-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.bot-select-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(158, 109, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.bot-select-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ecdc4, #6bcf7f);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bot-select-card:hover::before {
    opacity: 1;
}

.bot-select-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.bot-select-name {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: #d1bbff;
    margin-bottom: 8px;
}

.bot-select-info {
    font-family: 'Comic Neue', cursive;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

#addInfoContent {
    width: 100%;
    min-height: 400px; 
    height: 50vh; 
    background: #1a0b2e; 
    border: 2px solid #4a2c7a;
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    font-size: 1.1rem; 
    line-height: 1.7;
    resize: vertical;
    outline: none;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

#addInfoContent:focus {
    border-color: #4ecdc4;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

#addInfoContent::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

#editExtraContent {
    width: 100%;
    min-height: 400px; 
    height: 50vh; 
    background: #1a0b2e; 
    border: 2px solid #4a2c7a;
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    font-family: 'Comic Neue', cursive;
    font-size: 1.1rem; 
    line-height: 1.7;
    resize: vertical;
    outline: none;
    
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

#editExtraContent:focus {
    border-color: #9e6dff;
    box-shadow: 0 0 15px rgba(158, 109, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

#editExtraContent::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.login-error-msg {
    margin-top: 10px;
    color: #ff6b8b;
    font-family: 'Comic Neue', cursive;
    font-size: 0.9rem;
    min-height: 1.2rem;
}