/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove all underlines from links globally */
a {
    text-decoration: none !important;
}

a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
}

:root {
    /* EigenAI Brand Colors - Navy Blue Theme */
    --eigenai-navy: #1e3a5f;
    --eigenai-navy-light: #2c4a6e;
    --eigenai-navy-dark: #152a44;
    --eigenai-blue: #3d5a80;
    --eigenai-accent: #4a7ba7;

    --bg-primary: #f5f8fa;
    --bg-secondary: rgba(255, 255, 255, 0.92);
    --bg-tertiary: rgba(240, 245, 250, 0.8);
    --bg-card: rgba(255, 255, 255, 0.96);
    --bg-gradient: radial-gradient(circle at 15% 20%, rgba(30, 58, 95, 0.08), transparent 60%),
        radial-gradient(circle at 85% 80%, rgba(74, 123, 167, 0.12), transparent 58%),
        linear-gradient(180deg, #f5f8fa 0%, #f0f5fa 48%, #ebf2f9 100%);
    --border-color: rgba(30, 58, 95, 0.12);
    --border-light: rgba(30, 58, 95, 0.18);

    --text-primary: #1e3a5f;
    --text-secondary: #2c4a6e;
    --text-muted: #5a7a9d;
    --text-accent: #1e3a5f;

    --accent-primary: #2c4a6e;
    --accent-hover: #1e3a5f;
    --accent-secondary: #3d5a80;
    --accent-light: rgba(30, 58, 95, 0.12);
    --accent-gradient: linear-gradient(135deg, #1e3a5f 0%, #2c4a6e 55%, #3d5a80 100%);

    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;

    --shadow-sm: 0 12px 24px rgba(148, 163, 184, 0.18);
    --shadow-md: 0 24px 42px rgba(148, 163, 184, 0.2);
    --shadow-lg: 0 36px 60px rgba(99, 102, 241, 0.22);
    --button-shadow: 0 18px 38px rgba(99, 102, 241, 0.28);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 25% 0%, rgba(59, 130, 246, 0.08), transparent 55%),
        radial-gradient(circle at 90% 95%, rgba(14, 165, 233, 0.1), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 250, 255, 0.95) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08),
                0 1px 4px rgba(30, 58, 95, 0.08);
    transition: all 0.3s ease;
}

.header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.3) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header:hover::after {
    opacity: 1;
}

.header * {
    text-decoration: none !important;
}

.header a {
    text-decoration: none !important;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 48px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    position: relative;
}

.logo::before {
    content: "";
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle at center, 
        rgba(59, 130, 246, 0.08), 
        transparent 70%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.logo:hover::before {
    opacity: 1;
}

.logo * {
    text-decoration: none !important;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(30, 58, 95, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, 
        var(--eigenai-navy) 0%, 
        #2563eb 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: inherit !important;
}

.logo a:hover,
.logo a:focus,
.logo a:active,
.logo a:visited {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: inherit !important;
}

.nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav a,
.nav a:link,
.nav a:visited,
.nav a:hover,
.nav a:active {
    text-decoration: none !important;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: transparent;
}

.nav-link:hover,
.nav-link:focus,
.nav-link:active,
.nav-link:visited {
    text-decoration: none !important;
}

.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.08), 
        rgba(14, 165, 233, 0.08));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: var(--eigenai-navy);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    color: var(--eigenai-navy);
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.12), 
        rgba(14, 165, 233, 0.1));
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        #2563eb, 
        transparent);
    border-radius: 999px;
}

.main {
    flex: 1;
    padding: 56px 0;
}

.hero {
    text-align: center;
    margin-bottom: 80px;
    padding: 80px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(6, 182, 212, 0.1) 25%,
        transparent 70%);
    animation: heroGlow 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroGlow {
    0%, 100% { 
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% { 
        opacity: 0.9;
        transform: translateX(-50%) scale(1.1);
    }
}

.hero-title {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    font-size: 72px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, 
        #1e3a5f 0%, 
        #2563eb 30%, 
        #3b82f6 50%, 
        #06b6d4 70%,
        #0ea5e9 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
    text-shadow: none;
    filter: drop-shadow(0 4px 20px rgba(37, 99, 235, 0.25));
}

.hero-title::before {
    content: "Explore AI Models";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background: linear-gradient(135deg, 
        rgba(30, 58, 95, 0.15) 0%, 
        rgba(37, 99, 235, 0.15) 50%, 
        rgba(6, 182, 212, 0.15) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(20px);
    opacity: 0.8;
}

.hero-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #2563eb 20%, 
        #06b6d4 50%, 
        #3b82f6 80%, 
        transparent 100%);
    border-radius: 999px;
    animation: underlineShift 3s ease-in-out infinite;
}

@keyframes underlineShift {
    0%, 100% { 
        width: 120px;
        opacity: 0.6;
    }
    50% { 
        width: 180px;
        opacity: 1;
    }
}

.hero-description {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0;
    padding: 0 24px;
    z-index: 1;
    position: relative;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.model-placeholder {
    visibility: hidden;
}

.model-card {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.96) 0%, rgba(230, 237, 255, 0.92) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 34px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.model-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.model-card > * {
    position: relative;
    z-index: 1;
}

.model-card:hover:not(.coming-soon) {
    border-color: rgba(99, 102, 241, 0.38);
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.model-card:hover::before {
    opacity: 1;
}

.model-card.coming-soon {
    opacity: 0.55;
    cursor: not-allowed;
    border-style: dashed;
}

.model-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.model-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.model-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.55;
}

.model-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.feature-tag {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.model-button {
    width: 100%;
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 14px 26px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--button-shadow);
}

.model-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 28px 48px rgba(99, 102, 241, 0.28);
}

.model-button:disabled {
    background: rgba(148, 163, 184, 0.22);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.model-header {
    text-align: center;
    margin-bottom: 40px;
    display: grid;
    gap: 16px;
    justify-items: center;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    max-width: 700px;
}

/* Status indicator hidden globally */
.status-indicator,
.status-dot {
    display: none !important;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
    max-width: 720px;
}

.api-section {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.code-block {
    position: relative;
    background: #0f172a;
    border: 1px solid rgba(30, 41, 59, 0.85);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.4);
}

.code-block pre {
    padding: 22px;
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #f1f5f9;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.copy-button {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #1d4ed8;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.22);
}

.button-icon {
    font-size: 14px;
}

/* Side tabbed panels */
.side-tabs {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 18px;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96) 0%, rgba(230, 239, 255, 0.94) 100%);
    box-shadow: var(--shadow-sm);
}

.side-tabs__nav {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: rgba(241, 245, 255, 0.9);
    border-radius: calc(var(--radius-lg) - 4px);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.side-tabs__button {
    flex: 1;
    padding: 12px 18px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.side-tabs__button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    transition: inherit;
}

.side-tabs__button:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.side-tabs__button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.side-tabs__button.active {
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.14);
    box-shadow: 0 18px 32px rgba(99, 102, 241, 0.16);
}

.side-tabs__button.active::after {
    border-color: rgba(99, 102, 241, 0.3);
}

.side-tabs__body {
    flex: 1;
    border-radius: calc(var(--radius-lg) - 6px);
    background: rgba(255, 255, 255, 0.85);
    padding: 24px 22px;
    overflow: hidden;
}

.side-tabs__panel {
    display: none;
    height: 100%;
    animation: tabsFadeIn 0.18s ease-out;
    overflow-y: auto;
    padding-right: 4px;
}

.side-tabs__panel.active {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-tabs__panel::-webkit-scrollbar {
    width: 6px;
}

.side-tabs__panel::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.side-tabs__panel::-webkit-scrollbar-track {
    background: transparent;
}

.side-tabs__panel > section {
    margin-bottom: 0;
}

.panel-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-actions .generate-button {
    margin-top: 0;
}

.metadata-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    max-height: 500px;
    opacity: 1;
}

.metadata-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .side-tabs {
        padding: 16px;
    }

    .side-tabs__body {
        padding: 20px 18px;
    }
}

@media (max-width: 768px) {
    .side-tabs {
        padding: 14px;
        gap: 14px;
    }
    
    .side-tabs__button {
        font-size: 14px;
        padding: 10px 12px;
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    padding: 28px 0;
    text-align: center;
    color: var(--text-muted);
    backdrop-filter: blur(12px);
}

.input-group,
.slider-group,
.checkbox-group,
.select-group {
    margin-bottom: 24px;
}

.input-group label,
.slider-group label,
.select-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.input-group input,
.input-group textarea,
.select-group select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.input-group input:focus,
.input-group textarea:focus,
.select-group select:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.help-text {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 18px;
    }

    .models-grid {
        grid-template-columns: 1fr;
    }

    .model-card {
        padding: 28px;
    }

    .header {
        padding: 14px 0;
    }

    .header .container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .logo {
        height: 42px;
    }

    .logo-text {
        font-size: 20px;
    }

    .nav {
        gap: 10px;
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 14px;
        white-space: nowrap;
    }

    .auth-container {
        width: 100%;
        order: 10;
    }

    .auth-dropdown-toggle {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
        justify-content: space-between;
    }

    .auth-toggle-icon {
        font-size: 20px;
    }

    .auth-dropdown-menu {
        min-width: calc(100vw - 32px);
        right: 0;
        left: 0;
        margin: 0 16px;
        width: calc(100% - 32px);
    }

    .auth-button {
        padding: 12px 18px;
        font-size: 14px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .user-name {
        font-size: 14px;
    }

    .credits-display {
        padding: 14px 16px;
    }

    .credits-icon {
        font-size: 22px;
    }

    .credits-amount {
        font-size: 18px;
    }

    .add-credits-button {
        padding: 12px 18px;
        font-size: 14px;
    }

    /* Modal improvements for mobile */
    .modal-content {
        padding: 24px;
        width: 95%;
        max-height: 85vh;
    }

    .modal-content h2 {
        font-size: 24px;
    }

    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .amount-button {
        padding: 14px 10px;
        font-size: 16px;
    }

    .amount-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        position: relative;
    }

    .currency-symbol {
        position: absolute;
        left: 14px;
        top: 17px;
        transform: none;
        font-size: 18px;
        z-index: 1;
    }

    #credit-amount {
        width: 100%;
        padding: 15px 15px 15px 40px;
        font-size: 18px;
        box-sizing: border-box;
    }

    .credits-preview {
        text-align: center;
        order: 2;
        padding: 12px;
        background: rgba(59, 130, 246, 0.08);
        border-radius: var(--radius-sm);
        font-size: 15px;
        font-weight: 600;
    }

    .promo-code-input-wrapper {
        flex-direction: column;
    }

    .redeem-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 32px 0;
    }

    .hero {
        margin-bottom: 48px;
        padding: 50px 20px 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .model-card {
        padding: 24px;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .model-button {
        min-height: 48px;
        font-size: 15px;
    }

    /* Further optimize credit modal for very small screens */
    .modal-content {
        padding: 20px;
        width: 96%;
    }

    .modal-content h2 {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .custom-amount-description {
        font-size: 13px;
    }

    .currency-symbol {
        left: 12px;
        top: 15px;
        font-size: 16px;
    }

    #credit-amount {
        padding: 13px 13px 13px 36px;
        font-size: 16px;
    }

    .credits-preview {
        padding: 10px;
        font-size: 14px;
    }

    .purchase-button {
        font-size: 16px;
        padding: 14px 24px;
    }

    .promo-code-input {
        font-size: 15px;
        padding: 12px 14px;
    }

    .redeem-button {
        font-size: 15px;
        padding: 12px 24px;
    }
}

/* Touch-friendly improvements for all devices */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap target sizes for touch devices */
    button, .button, .nav-link, .model-button,
    .auth-button, .copy-button, .send-button,
    .generate-button, .download-button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .model-card:hover {
        transform: none;
    }

    /* Add active states for better touch feedback */
    button:active, .button:active, .nav-link:active,
    .model-button:active, .auth-button:active {
        opacity: 0.7;
        transform: scale(0.98);
    }

    /* Improve input touch targets */
    input[type="text"],
    input[type="number"],
    input[type="email"],
    textarea,
    select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Better touch scrolling */
    .chat-messages,
    .history-list,
    .side-tabs__panel {
        -webkit-overflow-scrolling: touch;
    }
}

/* Auth Container Styles */
.auth-container {
    position: relative;
    min-width: 150px;
    min-height: 42px;
}

/* Instant rendering - no transitions or animations to prevent flash */
.auth-container > * {
    transition: none !important;
    animation: none !important;
}

/* Auth Dropdown Toggle */
.auth-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 255, 0.9) 100%);
    border-radius: 14px;
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    user-select: none;
}

.auth-dropdown-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 1);
}

.auth-dropdown-toggle:active {
    transform: translateY(0);
}

.auth-toggle-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.auth-toggle-text {
    font-weight: 600;
    font-size: 14px;
    color: var(--eigenai-navy);
}

.auth-toggle-arrow {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    margin-left: auto;
}

.auth-dropdown-toggle.open .auth-toggle-arrow {
    transform: rotate(180deg);
}

/* Auth Dropdown Menu */
.auth-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 250, 255, 0.98) 100%);
    border-radius: 16px;
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.auth-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 250, 255, 0.98) 100%);
    border-left: 1.5px solid rgba(59, 130, 246, 0.2);
    border-top: 1.5px solid rgba(59, 130, 246, 0.2);
    transform: rotate(45deg);
}

/* Dropdown Sections */
.auth-dropdown-section {
    padding: 12px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.auth-dropdown-section:last-child {
    border-bottom: none;
}

.auth-dropdown-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.auth-button {
    width: 100%;
    padding: 12px 20px;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 255, 0.9) 100%);
    color: var(--eigenai-navy);
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15), 
        rgba(14, 165, 233, 0.12));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.auth-button span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-button:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.auth-button:hover::before {
    opacity: 1;
}

.auth-button:active {
    transform: translateX(2px);
}

.auth-button-primary {
    background: linear-gradient(135deg, 
        #2563eb 0%, 
        #3b82f6 50%, 
        #60a5fa 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: gradientShift 6s ease infinite;
}

.auth-button-primary::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.05));
}

.auth-button-primary:hover {
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateX(4px) scale(1.01);
}

.button--disabled,
.auth-button.button--disabled,
.send-button.button--disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

/* User Menu */
.user-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, 
        rgba(240, 249, 255, 0.9) 0%, 
        rgba(224, 242, 254, 0.9) 100%);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        #2563eb 0%, 
        #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 700;
    color: var(--eigenai-navy);
    font-size: 14px;
    margin-bottom: 2px;
    display: block;
}

.user-email {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Credits Display */
.credits-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, 
        #f0f9ff 0%, 
        #e0f2fe 50%,
        #dbeafe 100%);
    background-size: 200% 200%;
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: gradientShift 8s ease infinite;
}

.credits-display::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        rgba(59, 130, 246, 0.15), 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.credits-info {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.credits-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 6px rgba(59, 130, 246, 0.4));
    animation: float 3s ease-in-out infinite;
}

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

.credits-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.credits-label {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.credits-amount {
    color: var(--eigenai-navy);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* Add Credits Button */
.add-credits-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, 
        #10b981 0%, 
        #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.add-credits-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.add-credits-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.add-credits-button:hover::before {
    opacity: 1;
}

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

.add-credits-icon {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    float: right;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 28px;
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.credit-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.credit-package {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.credit-package:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.credit-package.popular {
    border-color: var(--accent-primary);
    border-width: 3px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credit-package h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    color: var(--text-primary);
}

.package-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.package-credits {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.package-savings {
    color: var(--success);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px 0;
    text-align: left;
}

.package-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
    padding-left: 24px;
}

.package-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.package-button {
    width: 100%;
    padding: 12px 24px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.package-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--button-shadow);
}

.pricing-note {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

/* Credit Purchase Form */
.pricing-info {
    margin-bottom: 32px;
    text-align: center;
}

.pricing-rate {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.credit-purchase-form {
    max-width: 500px;
    margin: 0 auto;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.amount-button {
    padding: 16px 12px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-button:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.amount-button.popular {
    border-color: var(--accent-primary);
    border-width: 3px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Section subtitle for modal sections */
.section-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    margin-top: 8px;
}

/* Divider with text */
.divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 28px 0;
}

.divider-with-text::before,
.divider-with-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider-with-text span {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom amount section */
.custom-amount-section {
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.custom-amount-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.custom-amount {
    margin-bottom: 0;
}

.custom-amount label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    pointer-events: none;
}

#credit-amount {
    flex: 1;
    padding: 16px 16px 16px 36px;
    font-size: 20px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-primary);
    transition: border-color 0.2s;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

#credit-amount::-webkit-outer-spin-button,
#credit-amount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#credit-amount:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.credits-preview {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-primary);
    white-space: nowrap;
}

.amount-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.purchase-button {
    width: 100%;
    padding: 16px 32px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--button-shadow);
}

.purchase-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.purchase-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Promo Code Section */
.promo-code-section {
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-top: 24px;
}

.promo-code-input-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.promo-code-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.promo-code-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.redeem-button {
    padding: 14px 32px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.redeem-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.redeem-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.promo-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.promo-message-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.promo-message-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.promo-message-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ============ Shared API Documentation Styles ============ */

.api-docs-section {
    padding: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.api-key-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.api-key-notice h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.api-key-notice p {
    margin: 0;
    opacity: 0.95;
}

.api-key-notice a {
    color: white;
    text-decoration: underline;
}

.api-endpoint-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.http-method {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
}

.endpoint-url {
    font-family: 'Monaco', 'Courier New', monospace;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.endpoint-title {
    font-size: 20px;
    margin: 0 0 8px 0;
}

.endpoint-description {
    color: #64748b;
    margin-bottom: 16px;
}

.cost-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef3c7;
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.cost-label {
    font-weight: 600;
    color: #92400e;
}

.cost-value {
    color: #92400e;
}

.code-section {
    margin-bottom: 24px;
    position: relative;
}

.code-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
}

.code-block {
    background: #0f172a;
    color: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.code-block code {
    color: #e2e8f0;
}

.copy-code-btn {
    position: absolute;
    top: 40px;
    right: 12px;
    background: #475569;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.copy-code-btn:hover {
    background: #64748b;
}

.parameters-section,
.response-section,
.error-section {
    margin-bottom: 24px;
}

.parameters-section h4,
.response-section h4,
.error-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
}

.docs-page .docs-toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.docs-page .docs-toc ul li {
    margin-bottom: 8px;
    font-size: 15px;
}

.docs-page .docs-toc ul li ul {
    margin-top: 6px;
    margin-bottom: 6px;
    padding-left: 18px;
}

.docs-page .docs-toc a {
    color: #1d4ed8;
    text-decoration: none;
}

.docs-page .docs-toc a:hover {
    text-decoration: underline;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.params-table th {
    text-align: left;
    padding: 12px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

.params-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.params-table code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
}

.history-button--top-right {
    margin-left: 0;
}

.panel-header-with-history {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-header-with-history h2,
.panel-header-with-history h3 {
    margin: 0;
}
