* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.65) 0%, rgba(118, 75, 162, 0.65) 100%),
        url('background.jpg') center center / cover no-repeat fixed;
    background-color: #667eea; /* Fallback color */
    min-height: 100vh;
    color: #333;
    position: relative;
    letter-spacing: 0.3px;
}

/* Background overlay for better readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 0;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-brand h1 {
    font-family: 'Orbitron', 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.nav-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

.nav-link svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.container {
    max-width: 100vw;
    height: 100vh;
    overflow: hidden;
    padding-top: 70px; /* Space for fixed nav */
    position: relative;
    z-index: 1;
}

/* Auth Sections */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 100%;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-family: 'Orbitron', 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo p {
    font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 15px;
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Wallet Connect Section */
.wallet-connect-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.btn-wallet {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    color: #333;
    font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.btn-wallet svg {
    flex-shrink: 0;
    pointer-events: none;
}

.btn-wallet span {
    pointer-events: none;
}

.btn-wallet:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-wallet:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-phantom {
    border-color: #AB9FF2;
}

.btn-phantom:hover {
    background: linear-gradient(135deg, #AB9FF2 0%, #9B8FF2 100%);
    color: white;
    border-color: #AB9FF2;
}

.btn-solflare {
    border-color: #FC8D4D;
}

.btn-solflare:hover {
    background: linear-gradient(135deg, #FC8D4D 0%, #FC7D3D 100%);
    color: white;
    border-color: #FC8D4D;
}

.btn-adapter {
    border-color: #9945FF;
}

.btn-adapter:hover {
    background: linear-gradient(135deg, #9945FF 0%, #8935EF 100%);
    color: white;
    border-color: #9945FF;
}

/* Wallet Status */
.wallet-status {
    margin: 15px 0;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    animation: slideIn 0.3s ease-out;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-icon {
    font-size: 1.5rem;
}

.wallet-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wallet-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wallet-address {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.btn-disconnect {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff0000;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-disconnect:hover {
    background: #ff0000;
    color: white;
}

/* Token Verification Components */
.token-verification-status {
    margin-top: 20px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    text-align: center;
}

.verification-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.verification-loading p {
    margin: 0;
    color: #667eea;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
}

.token-verification-result {
    margin-top: 20px;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.token-verification-result.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.token-verification-result.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.verification-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.verification-icon {
    font-size: 3rem;
    animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.verification-message {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    line-height: 1.4;
}

.token-verification-result.success .verification-message {
    color: #059669;
}

.token-verification-result.error .verification-message {
    color: #dc2626;
}

.verification-details {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    white-space: pre-line;
    font-family: 'Space Grotesk', sans-serif;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Chat Section */
.chat-section {
    display: flex;
    height: 100vh;
    background: white;
}

.sidebar {
    width: 280px;
    background: #2d3748;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #3d4a5c;
    border-radius: 12px;
    margin-bottom: 20px;
}

.user-avatar {
    font-size: 2rem;
    margin-right: 12px;
}

.user-details {
    flex: 1;
}

.user-details span {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-menu {
    flex: 1;
}

.sidebar-menu h3 {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a0aec0;
    margin-bottom: 15px;
}

.sidebar-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu .social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.sidebar-menu .social-link svg {
    flex-shrink: 0;
}

.sidebar-menu .social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f7fafc;
}

.chat-header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.chat-header h2 {
    font-family: 'Orbitron', 'Space Grotesk', sans-serif;
    color: #2d3748;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 1px;
}

.chat-header p {
    font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.deep-think-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.message {
    display: flex;
    margin-bottom: 25px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    font-size: 2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.message-content {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 80%;
}

.message.user .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.message.user {
    flex-direction: row-reverse;
}

.message.user .message-avatar {
    margin-left: 15px;
    margin-right: 0;
}

.message-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.message-content li {
    margin-bottom: 5px;
    line-height: 1.6;
}

.chat-input-container {
    padding: 20px 30px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

#chatInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    max-height: 150px;
    transition: all 0.3s;
}

#chatInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-send:active {
    transform: translateY(0);
}

.btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-nav {
        padding: 10px 15px;
    }
    
    .nav-brand h1 {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    
    .nav-link {
        width: 36px;
        height: 36px;
    }
    
    .nav-link svg {
        width: 18px;
        height: 18px;
    }
    
    .container {
        padding-top: 60px;
    }
    
    /* Auth Section Mobile */
    .auth-section {
        padding: 15px;
        min-height: calc(100vh - 60px);
    }
    
    .auth-card {
        padding: 25px 20px;
        max-width: 100%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .logo h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .logo p {
        font-size: 0.85rem;
    }
    
    /* Form Mobile */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    /* Wallet Buttons Mobile */
    .btn-wallet {
        padding: 11px 15px;
        font-size: 0.9rem;
        gap: 10px;
    }
    
    .btn-wallet svg {
        width: 22px;
        height: 22px;
    }
    
    /* Token Verification Mobile */
    .token-verification-status {
        padding: 15px;
        margin-top: 15px;
    }
    
    .verification-loading {
        gap: 12px;
    }
    
    .spinner {
        width: 35px;
        height: 35px;
    }
    
    .verification-loading p {
        font-size: 0.9rem;
    }
    
    .token-verification-result {
        padding: 20px 15px;
        margin-top: 15px;
    }
    
    .verification-icon {
        font-size: 2.5rem;
    }
    
    .verification-message {
        font-size: 1.05rem;
    }
    
    .verification-details {
        font-size: 0.88rem;
    }
    
    /* Chat Section Mobile */
    .chat-section {
        flex-direction: column;
        height: calc(100vh - 60px);
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 200px;
        overflow-y: auto;
        padding: 15px;
        border-bottom: 1px solid #4a5568;
    }
    
    .user-info {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .user-avatar {
        font-size: 1.5rem;
        margin-right: 10px;
    }
    
    .user-details span {
        font-size: 0.9rem;
    }
    
    .btn-logout {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .sidebar-menu h3 {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .sidebar-menu a {
        padding: 10px 12px;
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .chat-header {
        padding: 15px 20px;
    }
    
    .chat-header h2 {
        font-size: 1.3rem;
    }
    
    .chat-header p {
        font-size: 0.85rem;
    }
    
    .deep-think-badge {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        font-size: 0.7rem;
        padding: 3px 10px;
        width: fit-content;
    }
    
    .chat-messages {
        padding: 20px 15px;
    }
    
    .message {
        margin-bottom: 20px;
    }
    
    .message-avatar {
        font-size: 1.5rem;
        margin-right: 10px;
    }
    
    .message.user .message-avatar {
        margin-left: 10px;
    }
    
    .message-content {
        max-width: 85%;
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .message-content p {
        margin-bottom: 8px;
        line-height: 1.5;
    }
    
    .message-content ul {
        margin-left: 18px;
        margin-bottom: 8px;
    }
    
    .message-content li {
        margin-bottom: 4px;
        font-size: 0.9rem;
    }
    
    .chat-input-container {
        padding: 15px;
    }
    
    .input-wrapper {
        gap: 8px;
    }
    
    #chatInput {
        padding: 10px 12px;
        font-size: 0.95rem;
        max-height: 120px;
    }
    
    .btn-send {
        padding: 10px 15px;
        font-size: 0.9rem;
        gap: 6px;
    }
    
    .btn-send span {
        display: none;
    }
    
    .btn-send svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .top-nav {
        padding: 8px 12px;
    }
    
    .nav-brand h1 {
        font-size: 0.95rem;
        letter-spacing: 0.3px;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-link {
        width: 32px;
        height: 32px;
    }
    
    .nav-link svg {
        width: 16px;
        height: 16px;
    }
    
    .container {
        padding-top: 55px;
    }
    
    /* Auth Section Extra Small Mobile */
    .auth-section {
        padding: 10px;
        min-height: calc(100vh - 55px);
    }
    
    .auth-card {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .logo {
        margin-bottom: 25px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .form-group input {
        padding: 9px 11px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .btn {
        padding: 11px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .divider {
        margin: 15px 0;
    }
    
    .divider span {
        font-size: 0.8rem;
        padding: 0 10px;
    }
    
    /* Wallet Buttons Extra Small */
    .wallet-connect-section {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .btn-wallet {
        padding: 10px 12px;
        font-size: 0.85rem;
        gap: 8px;
        border-radius: 8px;
    }
    
    .btn-wallet svg {
        width: 20px;
        height: 20px;
    }
    
    .btn-wallet span {
        font-size: 0.85rem;
    }
    
    /* Wallet Status Extra Small */
    .wallet-status {
        padding: 10px 12px;
        margin: 12px 0;
    }
    
    .wallet-info {
        gap: 10px;
    }
    
    .wallet-icon {
        font-size: 1.3rem;
    }
    
    .wallet-label {
        font-size: 0.7rem;
    }
    
    .wallet-address {
        font-size: 0.82rem;
    }
    
    .btn-disconnect {
        padding: 4px 8px;
        font-size: 1.1rem;
    }
    
    /* Token Verification Extra Small */
    .token-verification-status {
        padding: 12px;
        margin-top: 12px;
        border-radius: 10px;
    }
    
    .verification-loading {
        gap: 10px;
    }
    
    .spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }
    
    .verification-loading p {
        font-size: 0.85rem;
    }
    
    .token-verification-result {
        padding: 18px 12px;
        margin-top: 12px;
        border-radius: 10px;
    }
    
    .verification-content {
        gap: 12px;
    }
    
    .verification-icon {
        font-size: 2.2rem;
    }
    
    .verification-message {
        font-size: 1rem;
    }
    
    .verification-details {
        font-size: 0.82rem;
        line-height: 1.5;
    }
    
    .auth-switch {
        margin-top: 15px;
        font-size: 0.85rem;
    }
    
    /* Chat Section Extra Small */
    .sidebar {
        padding: 12px;
        max-height: 180px;
    }
    
    .user-info {
        padding: 10px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    .user-avatar {
        font-size: 1.3rem;
        margin-right: 8px;
    }
    
    .user-details span {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }
    
    .btn-logout {
        font-size: 0.7rem;
        padding: 3px 8px;
        border-radius: 5px;
    }
    
    .sidebar-menu h3 {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
        margin-bottom: 8px;
    }
    
    .sidebar-menu a {
        padding: 8px 10px;
        font-size: 0.85rem;
        margin-bottom: 5px;
        border-radius: 6px;
    }
    
    .sidebar-menu .social-link {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .sidebar-menu .social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .chat-header {
        padding: 12px 15px;
    }
    
    .chat-header h2 {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .chat-header p {
        font-size: 0.8rem;
    }
    
    .deep-think-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
        margin-top: 6px;
    }
    
    .chat-messages {
        padding: 15px 12px;
        flex: 1;
        overflow-y: auto;
    }
    
    .message {
        margin-bottom: 15px;
    }
    
    .message-avatar {
        font-size: 1.3rem;
        margin-right: 8px;
    }
    
    .message.user .message-avatar {
        margin-left: 8px;
    }
    
    .message-content {
        max-width: 90%;
        padding: 10px 12px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .message-content p {
        margin-bottom: 6px;
        line-height: 1.4;
    }
    
    .message-content ul {
        margin-left: 16px;
        margin-bottom: 6px;
    }
    
    .message-content li {
        margin-bottom: 3px;
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .message-content strong {
        font-weight: 700;
    }
    
    .message-content code {
        font-size: 0.82rem;
        padding: 2px 5px;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }
    
    .message-content pre {
        overflow-x: auto;
        font-size: 0.75rem;
        padding: 8px;
        border-radius: 6px;
    }
    
    .chat-input-container {
        padding: 12px;
    }
    
    .input-wrapper {
        gap: 6px;
    }
    
    #chatInput {
        padding: 9px 11px;
        font-size: 0.9rem;
        border-radius: 10px;
        max-height: 100px;
    }
    
    .btn-send {
        padding: 9px 12px;
        border-radius: 10px;
    }
    
    .btn-send svg {
        width: 16px;
        height: 16px;
    }
    
    /* Loading Spinner */
    .loading-spinner .spinner {
        width: 40px;
        height: 40px;
    }
}

/* Extra Small Devices (< 375px) */
@media (max-width: 374px) {
    .nav-brand h1 {
        font-size: 0.85rem;
    }
    
    .auth-card {
        padding: 18px 12px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .btn-wallet {
        font-size: 0.8rem;
        padding: 9px 10px;
    }
    
    .btn-wallet svg {
        width: 18px;
        height: 18px;
    }
    
    .verification-message {
        font-size: 0.95rem;
    }
    
    .verification-details {
        font-size: 0.78rem;
    }
    
    .message-content {
        font-size: 0.85rem;
        padding: 9px 10px;
    }
    
    .message-content li {
        font-size: 0.8rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .auth-section {
        min-height: auto;
        padding: 10px;
    }
    
    .auth-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .chat-section {
        height: 100vh;
    }
    
    .sidebar {
        max-height: 150px;
    }
    
    .chat-messages {
        padding: 15px;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .btn-wallet,
    .btn,
    .btn-send,
    .nav-link {
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn-wallet:active,
    .btn:active {
        transform: scale(0.98);
    }
    
    #chatInput {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
