/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --primary-orange: #FF6B00;
    --secondary-gold: #FFD700;
    --dark-black: #1A1A1A;
    --light-white: #F5F5F5;
    --pure-white: #FFFFFF;
    --pure-black: #000000;
    --success-green: #10B981;
    --error-red: #EF4444;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(255, 107, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--dark-black) 0%, var(--pure-black) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* ============================================
   Background Animation
   ============================================ */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, var(--secondary-gold) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 80%;
    top: 30%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 30%;
    top: 70%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.particle:nth-child(4) {
    left: 70%;
    top: 80%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    left: 50%;
    top: 10%;
    animation-delay: 3s;
    animation-duration: 13s;
}

.particle:nth-child(6) {
    left: 20%;
    top: 60%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.particle:nth-child(7) {
    left: 90%;
    top: 50%;
    animation-delay: 2.5s;
    animation-duration: 15s;
}

.particle:nth-child(8) {
    left: 60%;
    top: 90%;
    animation-delay: 4.5s;
    animation-duration: 19s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(30px, -50px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, -100px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(50px, -30px) scale(1.1);
        opacity: 0.7;
    }
}

/* ============================================
   Split Layout
   ============================================ */
.split-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ============================================
   Visual Section (Left)
   ============================================ */
.visual-section {
    flex: 0 0 45%;
    background: linear-gradient(135deg, var(--dark-black) 0%, rgba(26, 26, 26, 0.95) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.15) 0%, rgba(255, 215, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.visual-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px 50px;
    justify-content: space-between;
}

.visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.visual-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.visual-logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.5));
    transition: transform 0.3s ease;
}

.visual-logo:hover .visual-logo-img {
    transform: scale(1.05);
}

.visual-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--pure-white);
    letter-spacing: -0.5px;
}

.back-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.back-link:hover {
    color: var(--pure-white);
    background: rgba(255, 255, 255, 0.15);
}

.visual-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    min-height: 300px;
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.visual-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 215, 0, 0.2) 100%);
    transform: scale(1);
}

.visual-image.active {
    opacity: 1;
    z-index: 1;
}

.visual-image-container:hover .visual-image.active {
    transform: scale(1.02);
}

/* Fallback if image doesn't load */
.visual-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.3) 0%, rgba(255, 215, 0, 0.2) 100%);
    border-radius: 12px;
    z-index: -1;
}

.visual-tagline {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.visual-tagline h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--pure-white);
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.visual-tagline p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.visual-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    cursor: pointer;
}

.visual-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.visual-dots .dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.visual-dots .dot.active {
    background: var(--primary-orange);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

/* ============================================
   Form Section (Right)
   ============================================ */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--dark-black);
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-wrapper {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 40px 45px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-gold));
    opacity: 0.8;
}


/* ============================================
   Form Container
   ============================================ */
.form-container {
    display: none;
    animation: slideIn 0.4s ease-out;
    position: relative;
}

.form-container.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--pure-white);
    margin-bottom: 8px;
    text-align: left;
}

.form-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
    margin-bottom: 32px;
}

.form-subtitle .switch-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.form-subtitle .switch-link:hover {
    color: var(--secondary-gold);
}

/* ============================================
   Form Elements
   ============================================ */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--pure-white);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition-medium);
    outline: none;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-size: 15px;
}

.input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
    transform: translateY(-1px);
}

.input-wrapper input:valid:not(:placeholder-shown) {
    border-color: rgba(255, 255, 255, 0.15);
}

.input-wrapper input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
    color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.input-wrapper:focus-within .input-icon {
    opacity: 0.8;
    color: var(--primary-orange);
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all var(--transition-fast);
    border-radius: 6px;
    z-index: 2;
}

.password-toggle:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.password-toggle .eye-icon {
    width: 18px;
    height: 18px;
    display: block;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.password-toggle:hover .eye-icon {
    color: rgba(255, 255, 255, 0.9);
}

.password-toggle .eye-icon-off {
    display: none;
}

.password-toggle.show-password .eye-icon:not(.eye-icon-off) {
    display: none;
}

.password-toggle.show-password .eye-icon-off {
    display: block;
}

.error-message {
    display: block;
    font-size: 12px;
    color: var(--error-red);
    margin-top: 6px;
    min-height: 18px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all var(--transition-medium);
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Form Options
   ============================================ */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-gold));
    border-color: var(--primary-orange);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--pure-white);
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.checkbox-label a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.checkbox-label a:hover {
    color: var(--secondary-gold);
}

.forgot-password {
    color: var(--primary-orange);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.forgot-password:hover {
    color: var(--secondary-gold);
    text-decoration: underline;
}

/* ============================================
   Submit Button
   ============================================ */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-gold));
    border: none;
    border-radius: 10px;
    color: var(--pure-white);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-md);
    margin-top: 6px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--pure-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: block;
}

/* ============================================
   Divider
   ============================================ */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 6px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 16px;
}

/* ============================================
   Social Login Buttons
   ============================================ */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.social-btn:active {
    transform: translateY(0);
}

.social-btn svg {
    flex-shrink: 0;
}

/* ============================================
   Form Switch Link
   ============================================ */
.form-switch {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

.switch-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
}

.switch-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-gold);
    transition: width var(--transition-medium);
}

.switch-link:hover {
    color: var(--secondary-gold);
}

.switch-link:hover::after {
    width: 100%;
}

/* ============================================
   Message Toast
   ============================================ */
.message-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    transform: translateX(400px) translateY(0);
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-orange);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 380px;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    margin: 0;
}

.message-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
    pointer-events: all;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.message-toast.success {
    border-left-color: var(--success-green);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
}

.message-toast.error {
    border-left-color: var(--error-red);
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(239, 68, 68, 0.2);
}

.message-toast::before {
    content: '';
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, var(--primary-orange), var(--secondary-gold));
    border-radius: 12px 0 0 12px;
}

.message-toast.success::before {
    background: linear-gradient(180deg, var(--success-green), #059669);
}

.message-toast.error::before {
    background: linear-gradient(180deg, var(--error-red), #DC2626);
}

.message-text {
    color: var(--pure-white);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
}

.message-toast .toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.9;
}

.message-toast .toast-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px) translateY(0);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .split-layout {
        flex-direction: column;
    }

    .visual-section {
        flex: 0 0 auto;
        min-height: 400px;
    }

    .visual-content {
        padding: 30px 40px;
    }

    .visual-image-container {
        margin: 30px 0;
        min-height: 250px;
    }

    .visual-tagline h2 {
        font-size: 32px;
    }

    .form-section {
        padding: 30px 20px;
    }
}

@media (max-width: 640px) {
    .form-wrapper {
        padding: 32px 24px;
        border-radius: 8px;
    }

    .form-title {
        font-size: 24px;
    }

    .visual-section {
        min-height: 350px;
    }

    .visual-content {
        padding: 25px 30px;
    }

    .visual-header {
        margin-bottom: 30px;
    }

    .visual-image-container {
        margin: 25px 0;
        min-height: 200px;
    }

    .visual-tagline h2 {
        font-size: 28px;
    }

    .back-link {
        font-size: 12px;
        padding: 6px 12px;
    }

    .social-login {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .forgot-password {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .form-wrapper {
        padding: 28px 20px;
        border-radius: 8px;
    }

    .auth-form {
        gap: 18px;
    }

    .visual-content {
        padding: 20px 25px;
    }

    .visual-tagline h2 {
        font-size: 24px;
    }

    .visual-image-container {
        min-height: 180px;
    }

    .message-toast {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        min-width: auto;
        transform: translateY(-100px);
    }

    .message-toast.show {
        transform: translateY(0);
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateY(-100px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ============================================
   Loading Animation Enhancement
   ============================================ */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.submit-btn.loading {
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-gold), var(--primary-orange));
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================
   Chat App Layout (ChatGPT Style)
   ============================================ */
body.chat-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-black);
    color: var(--pure-white);
    height: 100vh;
    overflow: hidden;
    display: flex;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sidebar - ChatGPT Style */
.sidebar {
    width: 260px;
    background: var(--pure-black);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: visible;
    opacity: 1;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 64px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 260px;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .sidebar-content {
    opacity: 0;
    pointer-events: none;
}

/* Collapsed Sidebar Icons */
.sidebar-icons-collapsed {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 8px;
    width: 64px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.sidebar.collapsed .sidebar-icons-collapsed {
    display: flex;
}

.sidebar-icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.sidebar-icon-btn:hover {
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-orange);
}

.sidebar-icon-btn svg {
    width: 20px;
    height: 20px;
}

.sidebar-account-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-gold));
    border-radius: 6px;
    color: var(--dark-black);
    font-weight: 600;
    font-size: 14px;
}

.sidebar-icons-divider {
    width: 32px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.sidebar-header {
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-toggle-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-toggle-btn svg {
    width: 16px;
    height: 16px;
}

.sidebar-icon-collapsed {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.sidebar-icon-collapsed.show {
    display: flex;
}

.sidebar-icon-collapsed:hover {
    background: rgba(255, 107, 0, 0.2);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.sidebar-icon-collapsed svg {
    width: 18px;
    height: 18px;
}

.new-chat-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-chat-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 0, 0.3);
    color: var(--primary-orange);
}

.new-chat-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Hide text when sidebar is collapsed */
.sidebar-text {
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .sidebar-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* Hide section headers when collapsed */
.sidebar.collapsed .history-section-header {
    display: none;
}

.sidebar.collapsed .new-chat-btn {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .sidebar-footer-btn {
    justify-content: center;
    padding: 10px;
}

.sidebar.collapsed .account-details {
    display: none;
}

.sidebar.collapsed .account-section {
    justify-content: center;
    padding: 8px;
}

.chat-history-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.history-section {
    padding: 8px;
}

.history-section-header {
    padding: 8px 12px 4px;
}

.history-section-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-history {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-history-container::-webkit-scrollbar {
    width: 6px;
}

.chat-history-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-history-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-history-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
    position: relative;
    min-height: 44px;
}

.sidebar.collapsed .history-item {
    justify-content: center;
    padding: 10px;
}

.sidebar.collapsed .history-item .history-title,
.sidebar.collapsed .history-item .history-actions {
    display: none;
}

.sidebar.collapsed .history-item svg {
    width: 20px;
    height: 20px;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.history-item:hover .history-actions {
    opacity: 1;
}

.history-item.active {
    background: rgba(255, 107, 0, 0.15);
    color: var(--primary-orange);
}

.history-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.history-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-actions {
    opacity: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.history-actions:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.history-actions svg {
    width: 16px;
    height: 16px;
}

.sidebar-footer {
    padding: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-top: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.account-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.account-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-gold));
    border-radius: 6px;
    color: var(--dark-black);
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.account-details {
    flex: 1;
    min-width: 0;
}

.account-name {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-plan {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-menu-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    flex-shrink: 0;
}

.account-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.account-menu-btn svg {
    width: 16px;
    height: 16px;
}

.sidebar-footer-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    width: 100%;
}

.sidebar-footer-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-footer-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Chat Header */
.chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--dark-black);
    flex-shrink: 0;
}

.header-content {
    max-width: 768px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.temporary-chat-indicator {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-green);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.model-selector-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.model-selector-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 0, 0.3);
    color: var(--primary-orange);
}

.model-selector-btn .chevron-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.model-selector-btn[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.empty-state-content {
    width: 100%;
    max-width: 768px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state-title {
    font-size: 32px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-align: center;
}

/* Chat Messages */
.message {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    animation: messageSlideIn 0.3s ease-out;
    max-width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.message:last-child {
    border-bottom: none;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-user {
    background: rgba(255, 107, 0, 0.03);
}

.message-assistant {
    background: transparent;
}

.message-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-gold));
    border-radius: 4px;
    color: var(--dark-black);
    font-weight: 600;
    font-size: 14px;
}

.message-user .message-avatar {
    background: rgba(255, 255, 255, 0.1);
    color: var(--pure-white);
}

.message-avatar svg {
    width: 18px;
    height: 18px;
}

.message-content {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 56px);
    padding-right: 48px;
    position: relative;
}

.message:hover .message-actions {
    opacity: 1;
}

.message-text {
    font-size: 15px;
    line-height: 1.75;
    word-wrap: break-word;
    white-space: pre-wrap;
    color: rgba(255, 255, 255, 0.9);
}

.message-text h1, .message-text h2, .message-text h3 {
    margin: 16px 0 8px 0;
    font-weight: 600;
    color: var(--pure-white);
}

.message-text h1 {
    font-size: 24px;
}

.message-text h2 {
    font-size: 20px;
}

.message-text h3 {
    font-size: 18px;
}

.message-text ul, .message-text ol {
    margin: 12px 0;
    padding-left: 24px;
}

.message-text li {
    margin: 6px 0;
    line-height: 1.6;
}

.message-text a {
    color: var(--primary-orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.message-text a:hover {
    color: var(--secondary-gold);
}

.message-text code.inline-code {
    background: rgba(255, 107, 0, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-orange);
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.message-text pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
    position: relative;
}

.message-text pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    white-space: pre;
}

.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    z-index: 10;
}

pre:hover .code-copy-btn {
    opacity: 1;
}

.code-copy-btn:hover {
    background: rgba(255, 107, 0, 0.2);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.code-copy-btn svg {
    width: 16px;
    height: 16px;
}

.message-text strong {
    font-weight: 600;
    color: var(--pure-white);
}

.message-text em {
    font-style: italic;
    opacity: 0.9;
}

/* Message Actions */
.message-actions {
    display: flex;
    gap: 4px;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.message-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.message-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 0, 0.3);
    color: var(--primary-orange);
}

.message-action-btn svg {
    width: 16px;
    height: 16px;
}

.stop-generation-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-top: 12px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 8px;
    color: var(--primary-orange);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stop-generation-btn:hover {
    background: rgba(255, 107, 0, 0.15);
    border-color: rgba(255, 107, 0, 0.5);
}

.stop-generation-btn svg {
    width: 16px;
    height: 16px;
}

/* Typing Indicator */
.message.typing .message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-top-left-radius: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Input Container */
.input-container-wrapper {
    width: 100%;
    padding: 24px;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--dark-black);
}

.input-container {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
}

.input-pill {
    width: 100%;
    display: flex;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 12px 16px;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    position: relative;
}

.input-pill:focus-within {
    border-color: rgba(255, 107, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

.attach-btn, .mic-btn, .voice-mode-btn {
    display: flex;
}

.voice-mode-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-gold));
    color: var(--dark-black);
}

.voice-mode-btn:hover {
    background: linear-gradient(135deg, #ff7a1a, #ffdd33);
}

.input-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.input-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.input-action-btn svg {
    width: 18px;
    height: 18px;
}

.send-button {
    display: flex !important;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-gold));
    color: var(--dark-black);
}

.send-button:hover {
    background: linear-gradient(135deg, #ff7a1a, #ffdd33);
    transform: scale(1.05);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--pure-white);
    font-size: 15px;
    font-family: inherit;
    padding: 0;
    outline: none;
    min-width: 0;
    max-height: 200px;
    resize: none;
    overflow-y: auto;
    line-height: 1.5;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input:focus {
    outline: none;
}

.input-footer {
    margin-top: 12px;
    text-align: center;
}

.input-disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* Voice Circle Button */
.voice-circle-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-gold));
    border: none;
    border-radius: 50%;
    color: var(--dark-black);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.voice-circle-button svg {
    width: 20px;
    height: 20px;
}

.voice-circle-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
}

.voice-circle-button:active {
    transform: scale(0.98);
}

.voice-circle-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Chat App Responsive */
@media (max-width: 768px) {
    .input-container {
        max-width: 92vw;
    }
    
    .empty-state-title {
        font-size: 28px;
    }
    
    .center-content {
        gap: 32px;
        padding: 32px 16px;
    }
    
    .app-header {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 56px;
    }
    
    .sidebar-icon {
        width: 40px;
        height: 40px;
    }
    
    .empty-state-title {
        font-size: 24px;
    }
    
    .input-pill {
        padding: 3px 3px 3px 10px;
    }
    
    .pill-button {
        width: 32px;
        height: 32px;
    }
    
    .voice-circle-button {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   Login Success Popup
   ============================================ */
.login-success-popup {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.login-success-popup.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    animation: popup-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes popup-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.success-checkmark {
    width: 100px;
    height: 100px;
    position: relative;
    transform: scale(0);
    animation: checkmark-scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.checkmark-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.5));
}

.checkmark-circle {
    stroke: var(--primary-orange);
    stroke-width: 3.5;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    fill: none;
    transform-origin: center;
    animation: circle-draw 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.checkmark-check {
    stroke: var(--secondary-gold);
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    transform-origin: center;
    animation: check-draw 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.6s forwards;
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6));
}

@keyframes checkmark-scale-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes circle-draw {
    0% {
        stroke-dashoffset: 157;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes check-draw {
    0% {
        stroke-dashoffset: 30;
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
        transform: scale(1);
    }
}

.checkmark-svg.animate .checkmark-circle {
    stroke-dashoffset: 0;
}

.checkmark-svg.animate .checkmark-check {
    stroke-dashoffset: 0;
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--pure-white);
    margin: 0;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--pure-white);
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Settings Panel */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-overlay.show {
    opacity: 1;
    visibility: visible;
}

.settings-panel {
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--dark-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.settings-overlay.show .settings-panel {
    transform: scale(1);
}

.settings-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 8px 12px 16px 12px;
    flex-shrink: 0;
}

.settings-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--pure-white);
}

.settings-close-btn svg {
    width: 18px;
    height: 18px;
}

.settings-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.settings-tabs {
    width: 240px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    overflow-y: auto;
    flex-shrink: 0;
}

.settings-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-tab svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.settings-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.settings-tab:hover svg {
    opacity: 1;
}

.settings-tab.active {
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-orange);
    border-left-color: var(--primary-orange);
}

.settings-tab.active svg {
    opacity: 1;
    color: var(--primary-orange);
}

.settings-tab-content {
    flex: 1;
    padding: 32px 40px;
    overflow-y: auto;
    background: var(--dark-black);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--pure-white);
    margin-bottom: 16px;
}

.settings-option {
    margin-bottom: 20px;
}

.settings-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-orange);
    cursor: pointer;
}

.radio-option span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.color-picker-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker {
    width: 60px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

.color-input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--pure-white);
    font-size: 14px;
    font-family: 'Courier New', monospace;
    outline: none;
}

.color-input:focus {
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.08);
}

.settings-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--pure-white);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.settings-select:focus {
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.08);
}

.settings-select option {
    background: var(--dark-black);
    color: var(--pure-white);
}

/* Notifications Tab */
.tab-panel-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--pure-white);
    margin: 0 0 32px 0;
}

.notification-category {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-category:last-child {
    border-bottom: none;
}

.notification-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.notification-info {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--pure-white);
    margin: 0 0 8px 0;
}

.notification-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.notification-link {
    font-size: 14px;
    color: var(--primary-orange);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.notification-link:hover {
    color: var(--secondary-gold);
}

.notification-delivery {
    flex-shrink: 0;
}

.delivery-select {
    min-width: 140px;
    padding: 8px 32px 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    transition: all 0.2s ease;
}

.delivery-select:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.delivery-select:focus {
    border-color: var(--primary-orange);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

.delivery-select option {
    background: var(--dark-black);
    color: var(--pure-white);
    padding: 8px;
}

/* Personalization Tab */
.personalization-section {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.personalization-section:last-child {
    border-bottom: none;
}

.characteristics-section {
    margin-top: 32px;
}

.personalization-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.personalization-info {
    flex: 1;
    min-width: 0;
}

.personalization-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--pure-white);
    margin-bottom: 8px;
}

.personalization-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

.personalization-select {
    min-width: 180px;
    padding: 10px 36px 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    transition: all 0.2s ease;
}

.personalization-select:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.personalization-select:focus {
    border-color: var(--primary-orange);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

.personalization-select option {
    background: var(--dark-black);
    color: var(--pure-white);
}

.characteristics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.characteristic-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.characteristic-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.characteristic-select {
    padding: 8px 32px 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    transition: all 0.2s ease;
}

.characteristic-select:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.characteristic-select:focus {
    border-color: var(--primary-orange);
    background-color: rgba(255, 255, 255, 0.08);
}

.characteristic-select option {
    background: var(--dark-black);
    color: var(--pure-white);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--pure-white);
    margin: 0 0 20px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.section-header.collapsible {
    cursor: pointer;
    user-select: none;
}

.section-header.collapsible:hover .section-title {
    color: rgba(255, 255, 255, 0.9);
}

.collapse-icon {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease;
}

.section-header.collapsible.collapsed .collapse-icon {
    transform: rotate(180deg);
}

.custom-instructions-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--pure-white);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
}

.custom-instructions-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.custom-instructions-textarea:focus {
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

.form-field {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--pure-white);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

.form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--pure-white);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
}

.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-textarea:focus {
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

.help-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.help-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.help-icon svg {
    width: 16px;
    height: 16px;
}

.manage-btn {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.manage-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.toggle-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-option:last-child {
    border-bottom: none;
}

.toggle-info {
    flex: 1;
    min-width: 0;
}

.toggle-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--pure-white);
    margin-bottom: 4px;
    cursor: pointer;
}

.toggle-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s ease;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s ease;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #3b82f6;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-switch:hover .toggle-slider {
    background-color: rgba(255, 255, 255, 0.3);
}

.toggle-switch input:checked:hover + .toggle-slider {
    background-color: #60a5fa;
}

.advanced-options {
    display: block;
}

@media (max-width: 768px) {
    .characteristics-grid {
        grid-template-columns: 1fr;
    }
    
    .personalization-option {
        flex-direction: column;
        align-items: stretch;
    }
    
    .personalization-select {
        width: 100%;
    }
}

/* Apps Tab */
.apps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    min-height: 400px;
}

.apps-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s ease;
}

.app-icon:hover {
    transform: scale(1.1);
}

.app-icon svg {
    width: 36px;
    height: 36px;
}

.app-icon-light {
    background: rgba(255, 255, 255, 0.95);
    position: relative;
}

.app-icon-glow {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.app-icon-grid {
    background: rgba(255, 255, 255, 0.1);
}

.grid-dots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 32px;
    height: 32px;
}

.grid-dots .dot {
    width: 8px;
    height: 8px;
    background: #90EE90;
    border-radius: 50%;
}

.app-icon-gradient {
    background: rgba(255, 255, 255, 0.1);
}

.app-icon-gradient svg {
    width: 40px;
    height: 40px;
}

.apps-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin: 0 0 32px 0;
    max-width: 500px;
    line-height: 1.5;
}

.explore-apps-btn {
    padding: 12px 32px;
    background: var(--pure-white);
    color: var(--dark-black);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.explore-apps-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.explore-apps-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .apps-icons {
        gap: 16px;
    }
    
    .app-icon {
        width: 56px;
        height: 56px;
    }
    
    .app-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .apps-description {
        font-size: 14px;
        padding: 0 16px;
    }
}

/* Schedules Tab */
.schedules-container {
    padding: 0;
}

.schedules-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.schedules-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.schedules-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
}

.inline-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
    margin: 0 4px;
}

.inline-icon {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.7);
    display: inline-block;
    vertical-align: middle;
}

.info-icon {
    color: rgba(255, 255, 255, 0.6);
}

.clock-icon {
    color: rgba(255, 255, 255, 0.6);
}

.menu-icon-wrapper {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 2px;
}

.menu-icon {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    vertical-align: middle;
}

.schedules-manage-btn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--pure-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    align-self: flex-start;
}

.schedules-manage-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.schedules-manage-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

/* Data Controls Tab */
.data-controls-list {
    display: flex;
    flex-direction: column;
}

.data-control-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-control-item:last-child {
    border-bottom: none;
}

.data-control-info {
    flex: 1;
}

.data-control-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.data-control-action {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.data-control-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.chevron-icon {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

.data-control-action:hover .chevron-icon {
    transform: translateX(2px);
}

.data-control-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--pure-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.data-control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.data-control-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.data-control-btn-danger {
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.data-control-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.7);
    color: #ff6b6b;
}

.data-control-btn-danger:active {
    background: rgba(239, 68, 68, 0.15);
}

/* Security Tab */
.security-section {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.security-section:last-child {
    border-bottom: none;
}

.security-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--pure-white);
    margin: 0 0 20px 0;
}

.security-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.security-item:last-child {
    margin-bottom: 0;
}

.security-info {
    flex: 1;
    min-width: 0;
}

.security-info-with-icon {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.apple-icon {
    width: 24px;
    height: 24px;
    color: var(--pure-white);
    flex-shrink: 0;
    margin-top: 2px;
}

.security-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--pure-white);
    margin: 0 0 6px 0;
}

.security-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.security-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.security-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.security-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.security-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.security-action-btn .chevron-icon {
    width: 14px;
    height: 14px;
}

.security-action {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
}

.security-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.security-action:hover .chevron-icon {
    transform: translateX(2px);
}

.security-disconnect-btn {
    padding: 8px 20px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.security-disconnect-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.7);
    color: #ff6b6b;
}

.security-logout-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--pure-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.security-logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.security-logout-btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.5);
}

.security-logout-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.7);
    color: #ff6b6b;
}

/* Parental Controls Tab */
.parental-controls-container {
    padding: 0;
}

.parental-controls-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.parental-controls-header .tab-panel-title {
    margin: 0;
}

.parental-controls-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.parental-controls-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 32px 0;
    max-width: 600px;
}

.add-family-member-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.add-family-member-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.add-family-member-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.add-family-member-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Account Menu */
.account-menu {
    position: fixed;
    background: var(--dark-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    min-width: 160px;
}

.account-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.account-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.account-menu-item-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.account-menu-item svg {
    width: 16px;
    height: 16px;
}

/* History Menu */
.history-menu {
    position: fixed;
    background: var(--dark-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    min-width: 160px;
}

.history-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.history-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.history-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.history-menu-item.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-red);
}

.history-menu-item svg {
    width: 16px;
    height: 16px;
}

/* Recording State */
.mic-btn.recording {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-red);
    animation: pulse-recording 1.5s ease-in-out infinite;
}

@keyframes pulse-recording {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Light Mode */
body.light-mode {
    background: #f5f5f5;
    color: #1a1a1a;
}

body.light-mode .sidebar {
    background: #ffffff;
    border-right-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .chat-header {
    background: #ffffff;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .message-text {
    color: rgba(0, 0, 0, 0.9);
}

body.light-mode .input-pill {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .input-disclaimer {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .settings-panel {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .settings-title {
    color: #1a1a1a;
}

body.light-mode .settings-label {
    color: rgba(0, 0, 0, 0.8);
}

body.light-mode .radio-option span {
    color: rgba(0, 0, 0, 0.8);
}

body.light-mode .color-input,
body.light-mode .settings-select {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body.light-mode .history-menu {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .history-menu-item {
    color: rgba(0, 0, 0, 0.8);
}