/* Root Variables - Dark AMOLED Theme Only */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #121212;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --accent-primary: #2aabee;
    --accent-hover: #1e8acc;
    --border-color: #1f1f1f;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
}

/* Header */
.header {
    text-align: center;
    padding: 2rem 0;
    position: relative;
    animation: fadeInDown 0.5s ease;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Profile Link */
.profile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.profile-link:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.profile-link:active {
    transform: translateY(0);
}

.profile-link svg {
    transition: var(--transition);
}

.profile-link:hover svg {
    stroke: white;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Search Container */
.search-container {
    position: relative;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease 0.1s both;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    pointer-events: none;
    opacity: 0.5;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .modules-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* Module Card */
.module-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.5s ease both;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.module-card:active {
    transform: translateY(-2px);
}

.module-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.module-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.module-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Module Detail View */
.module-detail {
    animation: slideInRight 0.3s ease;
}

.module-detail.hidden {
    display: none;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.4s ease;
}

.back-button {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.back-button:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.detail-content {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.4s ease 0.1s both;
}

.command-section {
    margin-bottom: 1.5rem;
}

.command-section:last-child {
    margin-bottom: 0;
}

.command-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.command-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: var(--transition);
}

.command-item:hover {
    background: var(--border-color);
}

.command-name {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.command-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Loading Indicator */
.loading {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeIn 0.3s ease;
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: fadeIn 0.5s ease 0.2s both;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeIn 0.3s ease;
}

.no-results.hidden {
    display: none;
}

.no-results-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results small {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Stagger animations for module cards */
.module-card:nth-child(1) { animation-delay: 0.05s; }
.module-card:nth-child(2) { animation-delay: 0.1s; }
.module-card:nth-child(3) { animation-delay: 0.15s; }
.module-card:nth-child(4) { animation-delay: 0.2s; }
.module-card:nth-child(5) { animation-delay: 0.25s; }
.module-card:nth-child(6) { animation-delay: 0.3s; }
.module-card:nth-child(n+7) { animation-delay: 0.35s; }

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding: 0.75rem;
    }

    .header {
        padding: 1.5rem 0;
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.875rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .search-input {
        padding: 0.875rem 2.5rem 0.875rem 0.875rem;
        font-size: 0.9rem;
    }

    .modules-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .module-card {
        padding: 1rem 0.75rem;
    }

    .module-icon {
        font-size: 2rem;
    }

    .detail-content {
        padding: 1rem;
    }
}

/* User Info Section */
.user-info {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    animation: fadeInDown 0.4s ease;
    position: relative;
    overflow: hidden;
}

.user-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
}

.user-info.hidden {
    display: none;
}

.user-info-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.user-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.user-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--border-color));
    color: var(--text-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-username {
    font-size: 0.95rem;
    color: var(--accent-primary);
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}

.user-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.user-id {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Validation Status */
.validation-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.validation-pending {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
    color: #f57c00;
    border: 1px solid rgba(255, 193, 7, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.validation-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
    animation: pulseSuccess 0.5s ease;
}

.validation-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(244, 67, 54, 0.05));
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.3);
    animation: shakeError 0.5s ease;
}

.status-icon {
    font-size: 1.125rem;
    animation: fadeIn 0.3s ease;
}

.status-text {
    white-space: nowrap;
    font-weight: 600;
}

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

/* Chat Info Section */
.chat-info {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.4s ease 0.1s both;
}

.chat-info.hidden {
    display: none;
}

.chat-info-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    gap: 1rem;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.info-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: right;
    max-width: 65%;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid #f44336;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    animation: slideInError 0.4s ease;
    box-shadow: 0 4px 20px rgba(244, 67, 54, 0.25);
    position: relative;
}

.error-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f44336, #e53935);
    border-radius: 14px 14px 0 0;
}

.error-message.hidden {
    display: none;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    animation: shakeError 0.5s ease;
    filter: drop-shadow(0 4px 8px rgba(244, 67, 54, 0.3));
}

.error-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: #f44336;
    margin-bottom: 0.75rem;
}

.error-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.retry-button {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
    animation: fadeIn 0.6s ease 0.2s both;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.retry-button:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
}

.retry-button:active {
    transform: translateY(0);
    animation: buttonPress 0.2s ease;
}

/* Help Button (Fixed) */
.help-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.35);
    transition: var(--transition);
    z-index: 1000;
    animation: fadeIn 0.5s ease, floatAnimation 3s ease-in-out infinite;
}

.help-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    opacity: 0.7;
    animation: ripple 2s infinite;
}

.help-button:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.45);
}

.help-button:active {
    transform: scale(0.95);
}

.help-icon {
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    max-width: 540px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 10px;
}

.modal-close:hover {
    background: #f44336;
    color: white;
    border-color: #f44336;
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.75rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.help-section {
    margin-bottom: 1.75rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.help-section:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.1);
    transform: translateY(-2px);
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.help-section ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.help-section li {
    padding: 0.625rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-section li::before {
    content: '→';
    color: var(--accent-primary);
    font-weight: bold;
}

.help-section a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.help-section a:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

.debug-button {
    background: linear-gradient(135deg, var(--bg-secondary), var(--border-color));
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.debug-button::before {
    content: '📋';
}

.debug-button:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.debug-button:active {
    transform: translateY(0);
}

.help-note {
    margin-top: 0.75rem;
    font-size: 0.825rem;
    color: var(--text-secondary);
    font-style: italic;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    border-left: 3px solid var(--accent-primary);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

@keyframes buttonPress {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes pulseSuccess {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Mobile adjustments for user info */
@media (max-width: 640px) {
    .user-info {
        padding: 1.25rem;
    }

    .user-info-content {
        flex-direction: column;
        text-align: center;
    }

    .user-avatar,
    .user-avatar-placeholder {
        width: 80px;
        height: 80px;
    }

    .user-avatar-placeholder {
        font-size: 2.75rem;
    }

    .user-details {
        width: 100%;
    }

    .user-name {
        font-size: 1.25rem;
    }

    .user-meta {
        justify-content: center;
    }

    .validation-status {
        margin-top: 0.75rem;
        width: 100%;
    }

    .info-value {
        max-width: 55%;
        font-size: 0.875rem;
    }

    .help-button {
        bottom: 1rem;
        right: 1rem;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px;
    }

    .modal-header,
    .modal-body {
        padding: 1.25rem;
    }

    .modal-title {
        font-size: 1.375rem;
    }

    .help-section {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .help-section h4 {
        font-size: 1.05rem;
    }

    .error-message {
        padding: 2rem 1.5rem;
    }

    .error-icon {
        font-size: 3.5rem;
    }

    .error-title {
        font-size: 1.375rem;
    }

    .error-text {
        font-size: 0.95rem;
    }
}

/* Print styles */
@media print {
    .theme-toggle,
    .search-container,
    .back-button,
    .help-button {
        display: none;
    }
}
