* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #1a1f2e;
    --bg-tertiary: #252a3a;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-vibrant: #7c7fff;
    --success: #10b981;
    --success-vibrant: #22c55e;
    --error: #ef4444;
    --error-vibrant: #ff4444;
    --border: #374151;
    --user-message-bg: #6366f1;
    --user-message-bg-gradient: linear-gradient(135deg, #6366f1 0%, #7c7fff 100%);
    --jim-message-bg: #252a3a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0f1419 100%);
    color: var(--text-primary);
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Safe area support for notched devices */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    /* Prevent pull-to-refresh and overscroll on mobile */
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

header {
    padding: 1.25rem 2rem;
    background: rgba(26, 31, 46, 0.85);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    /* Safe area padding */
    padding-top: max(1.25rem, calc(1.25rem + env(safe-area-inset-top)));
    padding-left: max(2rem, calc(2rem + env(safe-area-inset-left)));
    padding-right: max(2rem, calc(2rem + env(safe-area-inset-right)));
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 100%;
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    justify-self: center;
    min-width: 0;
}

.logo-container {
    display: flex;
    align-items: baseline;
    flex-shrink: 0;
    justify-content: center;
}

.logo-accent {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.03em;
}

.logo-text {
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    overflow: hidden;
    align-items: flex-start;
    text-align: left;
    grid-column: 1;
    justify-self: flex-start;
}

.brand-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.brand-tagline {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    opacity: 0.75;
    line-height: 1.4;
}

.brand-version {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 0.03em;
    font-weight: 500;
    opacity: 0.7;
    margin-top: 0.1875rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
    padding: 0.5625rem 1.125rem;
    background: rgba(37, 42, 58, 0.7);
    border-radius: 14px;
    border: 1px solid rgba(55, 65, 81, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    grid-column: 3;
    justify-self: flex-end;
    position: relative;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    box-shadow: var(--shadow-sm);
}

.user-auth {
    position: relative;
    margin-left: 0.875rem;
    padding-left: 0.875rem;
    border-left: 1px solid rgba(64, 64, 64, 0.5);
}

.user-icon-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.user-icon-container:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-icon {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    transition: stroke 0.2s ease;
}

.user-icon-container:hover .user-icon,
.user-icon-container.authenticated .user-icon {
    stroke: var(--accent);
}

.username-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.user-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    overflow: hidden;
}

.user-menu-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: background 0.2s ease;
}

.user-menu-item:hover {
    background: var(--bg-tertiary);
}

.user-menu-username {
    cursor: default;
    color: var(--text-secondary);
    font-weight: 500;
}

.user-menu-username:hover {
    background: transparent;
}

.user-menu-logout {
    color: var(--error);
}

.user-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

.header-status:hover {
    background: rgba(37, 42, 58, 0.9);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2), var(--shadow-sm);
    transform: translateY(-1px);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-vibrant);
    display: inline-block;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7), 0 0 12px rgba(34, 197, 94, 0.4);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.status-indicator.error {
    background: var(--error);
    box-shadow: 0 0 8px var(--error);
}

.status-indicator.thinking {
    background: #ffa500;
    box-shadow: 0 0 8px #ffa500;
    animation: pulse 1s ease-in-out infinite;
}

.status-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.status-text.error {
    color: var(--error);
}

.status-text.thinking {
    color: #ffa500;
}

/* Legacy .status class support for JS */
.status {
    display: none;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--bg-primary);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 1.125rem 1.25rem;
    border-radius: 16px;
    max-width: 80%;
    word-wrap: break-word;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-message {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-vibrant) 100%);
    align-self: flex-end;
    margin-left: auto;
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.jim-message {
    background: var(--jim-message-bg);
    align-self: flex-start;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(55, 65, 81, 0.5);
}

.system-message {
    background: var(--bg-secondary);
    align-self: flex-start;
    border-left: 3px solid var(--accent);
    opacity: 0.9;
}
.system-message .message-sender {
    color: var(--text-secondary);
    font-weight: 500;
}
.system-message .message-body {
    color: var(--text-secondary);
    font-style: italic;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.message-sender {
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
}

.jim-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    object-fit: contain;
}

.message-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.message-body {
    line-height: 1.6;
    color: var(--text-primary);
}

.message-body p {
    margin: 0.5rem 0;
}

.message-body p:first-child {
    margin-top: 0;
}

.message-body p:last-child {
    margin-bottom: 0;
}

.message-body pre {
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.message-body code {
    background: var(--bg-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--accent);
}

.message-body pre code {
    background: transparent;
    padding: 0;
}

.message-body ul,
.message-body ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-body li {
    margin: 0.25rem 0;
}

.message-body strong {
    color: var(--accent);
}

.message-body em {
    color: var(--text-secondary);
}

.input-container {
    padding: 1.5rem;
    background: rgba(26, 31, 46, 0.9);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    /* Safe area padding for mobile */
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
}

.chat-form {
    display: flex;
    gap: 0.75rem;
}

.message-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: rgba(37, 42, 58, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.6);
    border-radius: 28px;
    color: var(--text-primary);
    font-size: 1rem;
    font-size: max(16px, 1rem); /* Prevent zoom on iOS */
    font-family: inherit;
    resize: none;
    overflow-y: auto;
    max-height: 150px; /* Limit max height for multiline */
    /* Better mobile input styling */
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px; /* iOS/Android touch target minimum */
    line-height: 1.5;
    /* Auto-resize textarea */
    overflow-wrap: break-word;
    word-wrap: break-word;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.message-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(37, 42, 58, 0.95);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), var(--shadow-sm);
    transform: translateY(-1px);
}

.message-input::placeholder {
    color: var(--text-secondary);
}

.send-button {
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-vibrant) 100%);
    color: white;
    border: none;
    border-radius: 28px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    /* Mobile touch target optimization */
    min-width: 60px;
    min-height: 44px; /* iOS/Android touch target minimum */
    /* Better touch feedback */
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.3);
    touch-action: manipulation; /* Remove 300ms delay */
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.3);
}

.send-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-vibrant) 100%);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.send-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-sm), 0 0 15px rgba(99, 102, 241, 0.3);
}

/* Disable text selection on buttons for better mobile UX */
.send-button {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.hint-desktop {
    display: block;
}

.hint-mobile {
    display: none;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.error-message {
    color: var(--error);
    font-weight: 500;
}

/* Scrollbar styling */
.chat-container::-webkit-scrollbar {
    width: 8px;
}

.chat-container::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.chat-container::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: var(--border);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    body {
        /* Prevent overscroll bounce on iOS */
        overscroll-behavior: none;
        position: fixed;
        width: 100%;
    }
    
    header {
        padding: 1rem 1.25rem;
        padding-top: max(1rem, calc(1rem + env(safe-area-inset-top)));
        padding-left: max(1.25rem, calc(1.25rem + env(safe-area-inset-left)));
        padding-right: max(1.25rem, calc(1.25rem + env(safe-area-inset-right)));
    }
    
    .header-content {
        gap: 1.25rem;
        grid-template-columns: 1fr auto 1fr;
    }
    
    .header-brand {
        min-width: 0;
        grid-column: 2;
        justify-self: center;
    }
    
    .brand-info {
        grid-column: 1;
        justify-self: flex-start;
        min-width: 0;
    }
    
    .logo-accent {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .brand-name {
        font-size: 0.875rem;
    }
    
    .brand-tagline {
        font-size: 0.65625rem;
    }
    
    .header-status {
        padding: 0.5rem 0.875rem;
        flex-shrink: 0;
        grid-column: 3;
        justify-self: flex-end;
    }
    
    .status-text {
        font-size: 0.75rem;
    }
    
    .status-indicator {
        width: 6px;
        height: 6px;
    }
    
    .message {
        max-width: 90%;
        padding: 0.875rem;
        font-size: 0.9375rem; /* Slightly larger for readability */
        line-height: 1.5;
    }
    
    .message-header {
        font-size: 0.8rem;
        margin-bottom: 0.375rem;
    }
    
    .message-time {
        font-size: 0.7rem;
    }
    
    .chat-container {
        padding: 1rem;
        /* Better scroll on mobile */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }
    
    .input-container {
        padding: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    .chat-form {
        gap: 0.5rem;
    }
    
    .message-input {
        padding: 0.875rem 0.875rem;
        font-size: 16px; /* Prevent zoom on iOS - must be at least 16px */
        border-radius: 8px;
    }
    
    .send-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
        border-radius: 8px;
    }
    
    .hint-desktop {
        display: none;
    }
    
    .hint-mobile {
        display: block;
    }
    
    .input-hint {
        font-size: 0.7rem;
        margin-top: 0.375rem;
    }
    
    /* Better code blocks on mobile */
    .message-body pre {
        font-size: 0.85rem;
        padding: 0.625rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .message-body code {
        font-size: 0.85em;
        padding: 0.15rem 0.35rem;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    header {
        padding: 0.875rem 1rem;
        padding-top: max(0.875rem, calc(0.875rem + env(safe-area-inset-top)));
    }
    
    .header-content {
        grid-template-columns: 1fr auto 1fr;
        gap: 1rem;
    }
    
    .header-brand {
        grid-column: 2;
        justify-self: center;
    }
    
    .brand-info {
        grid-column: 1;
        justify-self: flex-start;
    }
    
    .logo-accent {
        font-size: 1.75rem;
    }
    
    .logo-text {
        font-size: 1.35rem;
    }
    
    .header-status {
        grid-column: 3;
        justify-self: flex-end;
        padding: 0.4rem 0.75rem;
    }
    
    .message {
        max-width: 95%;
        padding: 0.75rem;
    }
    
    .chat-container {
        padding: 0.875rem;
    }
    
    .input-container {
        padding: 0.875rem;
    }
    
    .message-input {
        padding: 0.75rem;
        font-size: 16px;
    }
    
    .send-button {
        padding: 0.75rem 1rem;
        min-width: 55px;
    }
}

    /* Landscape phone optimization */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 0.75rem 1rem;
        padding-top: max(0.75rem, calc(0.75rem + env(safe-area-inset-top)));
    }
    
    .header-content {
        gap: 0.75rem;
        grid-template-columns: 1fr auto 1fr;
    }
    
    .header-brand {
        grid-column: 2;
        justify-self: center;
    }
    
    .brand-info {
        grid-column: 1;
        justify-self: flex-start;
    }
    
    .logo-accent {
        font-size: 1.75rem;
    }
    
    .logo-text {
        font-size: 1.35rem;
    }
    
    .brand-name {
        font-size: 0.8125rem;
    }
    
    .brand-tagline {
        font-size: 0.625rem;
    }
    
    .header-status {
        padding: 0.4375rem 0.75rem;
        grid-column: 3;
        justify-self: flex-end;
    }
    
    .status-text {
        font-size: 0.71875rem;
    }
    
    .chat-container {
        padding: 0.75rem 1rem;
    }
    
    .input-container {
        padding: 0.75rem 1rem;
    }
    
    .message {
        padding: 0.625rem;
        max-width: 85%;
    }
}

/* Login Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: rgba(26, 31, 46, 0.95);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.auth-error {
    padding: 0.75rem 1rem;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--error);
    border-radius: 8px;
    color: var(--error);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(37, 42, 58, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.6);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(37, 42, 58, 0.95);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), var(--shadow-sm);
    transform: translateY(-1px);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-vibrant) 100%);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-vibrant) 100%);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-sm), 0 0 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(55, 65, 81, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: rgba(37, 42, 58, 0.8);
    color: var(--text-primary);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-dismiss {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: underline;
    margin-top: 0.5rem;
}

.btn-dismiss:hover {
    color: var(--text-primary);
}

.auth-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}