@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&family=Space+Grotesk:wght@600;700;800&display=swap');

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #121824;
    --bg-tertiary: #1a2234;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #6366f1; /* Deep Indigo */
    --primary-hover: #4f46e5;
    --accent-color: #a78bfa;
    --border-color: #1e293b;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    
    /* Theme color variables */
    --primary-violet: #7c3aed;
    --primary-teal: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

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

button:focus,
a:focus,
.btn:focus,
.reaction-btn:focus,
.logout-btn-icon:focus,
.file-btn-glow:focus,
.send-btn-glow:focus,
.code-badge:focus,
#sidebar-toggle-btn:focus,
.message-row:focus {
    outline: none !important;
}

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

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.nav-user strong {
    color: var(--text-primary);
}

/* Main Container Override */
main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Classic 2-Pane & 3-Pane Full Screen Split Layout */
.split-layout-container {
    display: flex;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    background: radial-gradient(circle at center, #200b2b 0%, #090d16 100%);
    position: relative;
}

/* Ambient glow blobs — injected via pseudo-elements to avoid touching HTML */
.split-layout-container::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: float 20s infinite alternate;
}

.split-layout-container::after {
    content: '';
    position: fixed;
    bottom: -15%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    animation: float 25s infinite alternate-reverse;
}

.sidebar-panel {
    width: 30%;
    min-width: 280px;
    max-width: 380px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 10;
}

.chat-panel {
    width: 70%;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(9, 13, 22, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    z-index: 10;
}

/* Sidebar elements */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-search-wrapper {
    position: relative;
}

.sidebar-search-wrapper input {
    width: 100%;
    padding: 0.65rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sidebar-search-wrapper input::placeholder {
    color: #475569;
}

.sidebar-search-wrapper input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12), 0 0 12px rgba(124, 58, 237, 0.15);
}

.sidebar-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.sidebar-chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-chat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid transparent;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar-chat-item:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
    border-left-color: rgba(124, 58, 237, 0.5);
    color: #f8fafc;
}

.sidebar-chat-item.active {
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-left: 3px solid var(--primary-violet);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.chat-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.chat-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.chat-item-badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.chat-item-badge.unread {
    background: #a78bfa !important;
    border-color: rgba(167, 139, 250, 0.4) !important;
    color: #0d0f1a !important;
    font-weight: 700;
}

.sidebar-chat-item.active .chat-item-badge {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* User profile section integrated into bottom of sidebar */
.sidebar-user-profile {
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    backdrop-filter: blur(8px);
}

.user-profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.user-profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4) 0%, rgba(6, 182, 212, 0.3) 100%);
    border: 1px solid rgba(124, 58, 237, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

.user-profile-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-profile-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.user-profile-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn-icon {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.logout-btn-icon:hover {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.15);
}

/* Chat Main Panel Layout */
.chat-area-header {
    padding: 1.1rem 2rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 5;
}

.chat-area-title-group {
    display: flex;
    flex-direction: column;
}

.chat-area-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.chat-area-status {
    font-size: 0.78rem;
    color: #06b6d4;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.chat-area-status-dot {
    width: 6px;
    height: 6px;
    background-color: #06b6d4;
    border-radius: 50%;
}

.chat-area-history {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Message Bubble alignments */
.message-row {
    display: flex;
    flex-direction: column;
    max-width: 65%;
}

.message-row.sent {
    align-self: flex-end;
    align-items: flex-end;
}

.message-row.received {
    align-self: flex-start;
    align-items: flex-start;
}

.msg-meta-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
    display: flex;
    gap: 0.4rem;
}

.sent .msg-meta-info {
    justify-content: flex-end;
}

.msg-bubble-content {
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    font-size: 0.92rem;
    line-height: 1.5;
    word-break: break-word;
}

.sent .msg-bubble-content {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.35) 0%, rgba(6, 182, 212, 0.12) 100%);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: #f8fafc;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.12);
}

.received .msg-bubble-content {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.msg-bubble-content img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 12px;
    margin-top: 0.5rem;
    display: block;
}

/* Bottom sleek message input bar */
.chat-area-input-bar {
    padding: 1rem 1.5rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    z-index: 5;
}

.input-container-glow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50px;
    padding: 0.4rem 0.5rem 0.4rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.input-container-glow:focus-within {
    border-color: rgba(124, 58, 237, 0.6) !important;
    background: rgba(15, 23, 42, 0.8) !important;
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.6), 
                0 0 18px 2px rgba(124, 58, 237, 0.4),
                inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

.input-container-glow textarea {
    flex: 1;
    background: none !important;
    border: none !important;
    padding: 0.4rem 0.25rem !important;
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    resize: none;
    max-height: 120px;
    line-height: 1.5;
}

.input-container-glow textarea::placeholder {
    color: #475569;
}

.file-btn-glow {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.file-btn-glow:hover {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
}

.file-btn-glow.active {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.15);
}

.send-btn-glow {
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    border: none;
    color: #ffffff;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.send-btn-glow:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.55), 0 0 10px rgba(6, 182, 212, 0.25);
    filter: brightness(1.1);
}

.send-btn-glow:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

/* 3-Pane Right Detail Sidebar */
.right-detail-sidebar {
    width: 280px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, border-left-width 0.35s ease;
    padding: 1.5rem;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.right-detail-sidebar.collapsed {
    width: 0 !important;
    padding: 0 !important;
    opacity: 0;
    border-left-width: 0 !important;
    border-left-color: transparent !important;
    pointer-events: none;
}

.right-sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.right-sidebar-section h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.35rem;
}

.right-member-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.right-member-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
}

.member-role-badge {
    font-size: 0.68rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    margin-left: auto;
}

/* Empty State */
.empty-workspace-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
}

.pulse-lock-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* Generic Buttons and Alerts */
.form-group {
    margin-bottom: 1.5rem;
}

.auth-form label, .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.auth-form input, .form-control, .auth-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.92rem;
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
    transition: all 0.2s ease;
}

.auth-form input:focus, .form-control:focus, .auth-form select:focus {
    outline: none;
    border-color: var(--primary-color) !important;
}

.auth-form .helptext, .helptext {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    line-height: 1.4;
}

.auth-form ul.errorlist, ul.errorlist {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0 0;
    color: #ef4444;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Generic Buttons and Alerts */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    width: auto;
    font-size: inherit;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.alert-error, .alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

/* Django Form Select compat */
.auth-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1em;
    cursor: pointer;
}

/* Glassmorphic Auth Theme */
.glass-auth-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
    position: relative;
    background-color: #0b0f19;
    background-image: linear-gradient(135deg, #090d16 0%, #11102e 50%, #200b2b 100%);
    overflow: hidden;
    z-index: 1;
}

/* Subtle Noise Overlay */
.glass-auth-page-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -2;
}

/* Floating Light Blobs */
.glass-auth-page-container::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #7c3aed 0%, rgba(124, 58, 237, 0) 70%);
    top: -10%;
    left: -10%;
    filter: blur(100px);
    opacity: 0.25;
    pointer-events: none;
    z-index: -1;
    animation: float 20s infinite alternate;
}

@keyframes float {
    0% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(30px, -50px) scale(1.1); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

.glass-auth-card {
    width: 100%;
    max-width: 440px;
    padding: 3rem 2.25rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.glass-auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

/* Header Logo & App Identity */
.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    border-radius: 18px;
    z-index: -1;
    opacity: 0.3;
}

.logo-icon {
    width: 28px;
    height: 28px;
}

.app-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Premium Form Elements */
.glass-form .form-group {
    margin-bottom: 1.25rem;
    text-align: left;
    position: relative;
}

.glass-form label:not(.remember-me) {
    display: block !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 0.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Remember Me Custom Styling */
.glass-form label.remember-me {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    user-select: none !important;
    font-size: 0.88rem !important;
    text-transform: none !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    letter-spacing: normal !important;
}

.glass-form label.remember-me input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    cursor: pointer !important;
    position: relative !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.glass-form label.remember-me input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #7c3aed, #06b6d4) !important;
    border-color: transparent !important;
}

.glass-form label.remember-me input[type="checkbox"]:checked::before {
    content: "" !important;
    width: 8px !important;
    height: 8px !important;
    background-color: #ffffff !important;
    clip-path: polygon(14% 44%, 0 58%, 38% 96%, 100% 23%, 86% 9%, 38% 68%) !important;
    display: block !important;
}

.glass-form label.remember-me input[type="checkbox"]:focus {
    border-color: rgba(124, 58, 237, 0.6) !important;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.4) !important;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.3s ease;
    width: 20px;
    height: 20px;
    z-index: 5;
}

.glass-form input:not([type="checkbox"]), .glass-form select {
    width: 100% !important;
    height: 52px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 0 1rem 0 2.75rem !important;
    color: #f8fafc !important;
    font-size: 0.95rem !important;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Input Glow Focus State */
.glass-form input:not([type="checkbox"]):focus, .glass-form select:focus {
    border-color: rgba(124, 58, 237, 0.6) !important;
    background: rgba(15, 23, 42, 0.8) !important;
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.6), 
                0 0 18px 2px rgba(124, 58, 237, 0.4),
                inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

.glass-form input:not([type="checkbox"]):focus ~ .input-icon, .glass-form select:focus ~ .input-icon {
    color: #f8fafc;
}

.glass-form input:not([type="checkbox"])::placeholder {
    color: #475569 !important;
}

/* Premium Gradient & Glow Buttons */
.glass-btn-primary {
    width: 100% !important;
    height: 52px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem !important;
}

.glass-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.55), 
                0 0 14px rgba(6, 182, 212, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
    filter: brightness(1.08) !important;
}

.glass-btn-primary:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4) !important;
    filter: brightness(0.95) !important;
}

/* Secondary link styled like 'Forgot Password?' and 'Remember Me' row */
.glass-links-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
    font-size: 0.88rem;
}

.glass-link {
    color: #06b6d4 !important;
    text-decoration: none !important;
    transition: color 0.2s, text-shadow 0.2s !important;
    font-weight: 500 !important;
}

.glass-link:hover {
    color: #22d3ee !important;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.4) !important;
    text-decoration: none !important;
}

.glass-footer-text {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    font-size: 0.88rem;
    color: #94a3b8;
    text-align: center;
}

.glass-form .helptext {
    display: block;
    font-size: 0.75rem;
    color: #64748b !important;
    margin-top: 0.4rem;
    margin-left: 0.5rem;
    line-height: 1.4;
}

.glass-form ul.errorlist {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0 0.5rem;
    color: #fca5a5;
    font-weight: 500;
}

/* Modal Form Styles */
.modal-glass-form .form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.modal-glass-form label {
    display: block !important;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-glass-form input, .modal-glass-form select {
    width: 100% !important;
    padding: 0.85rem 1.25rem !important;
    font-family: inherit !important;
    font-size: 0.92rem !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px !important;
    color: #f8fafc !important;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.modal-glass-form input::placeholder {
    color: #475569 !important;
}

.modal-glass-form input:focus, .modal-glass-form select:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(124, 58, 237, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12), 0 0 14px rgba(124, 58, 237, 0.15) !important;
}

.modal-glass-form .form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.25));
        border-color: rgba(167, 139, 250, 0.2);
    }
    50% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 25px rgba(167, 139, 250, 0.45));
        border-color: rgba(167, 139, 250, 0.4);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-glass-form option, .glass-form option {
    background-color: #121824 !important;
    color: #ffffff !important;
}

.modal-glass-form select, .form-control select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.2rem center !important;
    background-size: 1.1em !important;
    cursor: pointer;
}

.logo-dot {
    display: inline-block;
}

.member-role-dot {
    background-color: #6366f1;
}

.member-role-dot.admin {
    background-color: #a78bfa;
}

.hidden-initially {
    display: none !important;
}

/* Modal Layout Styles & Inline Banners */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 10000 !important;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.modal-content {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(32px) !important;
    -webkit-backdrop-filter: blur(32px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 28px !important;
    padding: 2.5rem !important;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.07) !important;
    position: relative;
    animation: modalFadeIn 0.25s ease;
}

.glass-message-banner {
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.glass-message-banner.success {
    background: rgba(6, 182, 212, 0.12) !important;
    border: 1px solid rgba(6, 182, 212, 0.25) !important;
    color: #06b6d4 !important;
}
.glass-message-banner.error, .glass-message-banner.danger {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
}
.glass-message-banner.info, .glass-message-banner.warning {
    background: rgba(167, 139, 250, 0.12) !important;
    border: 1px solid rgba(167, 139, 250, 0.25) !important;
    color: #a78bfa !important;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
    background: rgba(18, 24, 36, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
}

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

.toast-success {
    border-left: 4px solid #10b981;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toast-error {
    border-left: 4px solid #ef4444;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.toast-message {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #ffffff;
}

/* Header Badge & Toggle Button hover states */
.code-badge {
    transition: all 0.2s ease !important;
}
.code-badge:hover, #sidebar-toggle-btn:hover {
    background: rgba(124, 58, 237, 0.15) !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
}

#sidebar-toggle-btn.active {
    background: rgba(124, 58, 237, 0.2) !important;
    border-color: rgba(124, 58, 237, 0.4) !important;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.2) !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Lock layout height and prevent browser scroll bounce */
    html:has(.split-layout-container),
    body:has(.split-layout-container) {
        height: 100% !important;
        height: 100dvh !important;
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }

    .split-layout-container {
        height: 100% !important;
        height: 100dvh !important;
    }

    /* Main Layout */
    .index-layout .chat-panel {
        display: none !important;
    }
    
    .index-layout .sidebar-panel {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        border-right: none !important;
    }

    .detail-layout .sidebar-panel {
        display: none !important;
    }

    .detail-layout .chat-panel {
        width: 100% !important;
        position: relative !important;
    }

    /* Back Button */
    .mobile-back-btn {
        display: flex !important;
    }

    /* Header Bar */
    .chat-area-header {
        padding: 0.75rem 1rem !important;
        gap: 0.5rem !important;
    }
    
    .code-badge {
        padding: 0.35rem 0.6rem !important;
    }
    .code-badge span {
        font-size: 0.75rem !important;
    }
    
    #sidebar-toggle-btn {
        padding: 0.35rem 0.6rem !important;
    }
    #sidebar-toggle-btn span {
        display: none !important; /* Hide 'Info' text on mobile, keep icon */
    }

    /* Chat Area History & Messages */
    .chat-area-history {
        padding: 1rem !important;
    }

    /* Input Bar */
    .chat-area-input-bar {
        padding: 0.75rem 1rem !important;
    }

    /* Auth pages & Modal content */
    .glass-auth-card {
        padding: 2.5rem 1.5rem !important;
        border-radius: 24px !important;
    }
    
    .glass-auth-title {
        font-size: 1.8rem !important;
        margin-bottom: 1.5rem !important;
    }

    .modal-content {
        padding: 1.5rem !important;
        border-radius: 20px !important;
    }

    /* Toggled Sidebar Overlay on Mobile */
    .right-detail-sidebar {
        position: absolute !important;
        right: 0;
        top: 0;
        height: 100%;
        width: 80% !important;
        max-width: 300px;
        z-index: 1000 !important;
        background: rgba(11, 15, 25, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
    }
}

/* Image Lightbox Modal */
#imageLightboxModal {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 99999 !important;
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-image-animate {
    animation: lightboxZoomIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Message Interactions (Double-Click, Emoji, Replies, Edits) */

/* Double-Click Pointer Hint */
.message-row {
    cursor: pointer;
    -webkit-touch-callout: none; /* Disable default touch callout on iOS */
}

/* Quote Box inside message bubble */
.msg-reply-quote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #a78bfa;
    border-radius: 6px;
    padding: 6px 12px;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    text-align: left;
}
.msg-reply-quote:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.msg-reply-quote strong {
    color: #c084fc;
}

/* Flash Highlight for jumping to original message */
.flash-highlight {
    animation: flashHighlightAnim 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes flashHighlightAnim {
    0% {
        box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.6);
        border-color: rgba(167, 139, 250, 0.8) !important;
    }
    100% {
        box-shadow: 0 0 0 0px rgba(167, 139, 250, 0);
    }
}

/* Reactions Container & Badge */
.message-reactions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding: 0 4px;
}
.reaction-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 3px 9px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}
.reaction-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
    color: #ffffff;
}
.reaction-badge.active {
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.3);
    color: #c084fc;
}
.reaction-badge.active:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.4);
}

/* Glassmorphic Actions Context Overlay */
.message-actions-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    z-index: 10000;
}
.actions-overlay-menu {
    position: absolute;
    background: rgba(15, 21, 36, 0.82) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 10px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    animation: scaleIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 250px;
    user-select: none;
}
@keyframes scaleIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.reactions-row {
    display: flex;
    justify-content: space-around;
    padding: 4px 6px;
    gap: 4px;
}
.reaction-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 10px;
    transition: all 0.2s ease;
}
.reaction-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.28);
}
.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 2px 4px;
}
.actions-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.action-menu-item {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s ease;
    width: 100%;
}
.action-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}
.action-menu-item svg {
    opacity: 0.65;
    transition: opacity 0.15s ease;
}
.action-menu-item:hover svg {
    opacity: 1;
}
.action-menu-item.danger {
    color: #fca5a5;
}
.action-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}
.edited-label {
    font-size: 0.72rem;
    opacity: 0.45;
    margin-left: 5px;
    font-style: italic;
    font-weight: normal;
}

/* SPA View Transitions & Ambient Background for Authentication */
.auth-view {
    display: none;
    opacity: 0;
    transform: scale(0.98) translateY(5px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-view.active {
    display: block;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.glass-ambient-bg {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    background: linear-gradient(135deg, #090d16 0%, #11102e 50%, #200b2b 100%) !important;
    overflow: hidden !important;
}

.glass-ambient-noise {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0.015 !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E") !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.glass-glow-blob {
    position: absolute !important;
    border-radius: 50% !important;
    filter: blur(100px) !important;
    opacity: 0.25 !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.glass-glow-blob-1 {
    width: 500px !important;
    height: 500px !important;
    background: radial-gradient(circle, #7c3aed 0%, rgba(124, 58, 237, 0) 70%) !important;
    top: -10% !important;
    left: -10% !important;
    animation: float 20s infinite alternate !important;
}

.glass-glow-blob-2 {
    width: 600px !important;
    height: 600px !important;
    background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%) !important;
    bottom: -15% !important;
    right: -10% !important;
    animation: float 25s infinite alternate-reverse !important;
}

/* Password Validator Tooltip/Popup */
.password-validator-popup {
    position: absolute;
    left: 0;
    top: 100%;
    transform: translateY(8px) scale(0.95);
    width: 100%;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 
                0 8px 10px -6px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-sizing: border-box;
}

.password-validator-popup::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 24px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(15, 23, 42, 0.96) transparent;
}

.password-validator-popup.show {
    opacity: 1;
    transform: translateY(8px) scale(1);
    pointer-events: auto;
}

.validator-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.validator-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.req-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.req-icon::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #64748b;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Valid State */
.req-item.valid {
    color: #4ade80;
}

.req-item.valid .req-icon::before {
    content: '✓';
    background-color: transparent;
    color: #4ade80;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 0;
    width: auto;
    height: auto;
    transform: scale(1.1);
}



