:root {
    --color-bg-default: #0d1117;
    --color-text-primary: #ffffff;
    --color-text-secondary: #7d8590;
    --color-accent: #238636;
    --color-accent-hover: #2ea043;
    --color-border: #30363d;
    --color-border-subtle: rgba(240, 246, 252, 0.1);
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --gradient-hero: radial-gradient(ellipse at top, #2f2a50 0%, #0d1117 70%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: transparent !important;
    background: transparent !important;
    color: var(--color-text-primary);
    font-family: var(--font-stack);
    line-height: 1.5;
    overflow-x: hidden;
}

main {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

.container-xl {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* Header */
.header {
    padding: 32px 0;
    background-color: transparent;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.logo-link {
    position: relative;
    left: auto;
    transform: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-global {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 8px;
}

.nav-item {
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
}

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

.search-container {
    position: relative;
}

.search-btn {
    background: #20252c;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 6px 12px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    width: 240px;
    cursor: text;
    justify-content: space-between;
}

.search-slash {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0 4px;
    font-size: 12px;
}

/* Buttons */
.btn-link {
    color: var(--color-text-primary);
    font-weight: 500;
}

/* Header Buttons */
.btn-header {
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-header:hover::before {
    opacity: 1;
}

.btn-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-header:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-header-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: #fff;
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.btn-header-blue::before {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
}

.btn-header-green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    color: #fff;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.btn-header-green::before {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
}

.btn-mktg {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.5);
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-mktg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-mktg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-mktg:hover::before {
    opacity: 1;
}

.btn-mktg:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-neutral {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 24px;
    color: var(--color-text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-neutral::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-neutral:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-neutral:hover::before {
    opacity: 1;
}

.btn-neutral:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    padding-top: 16px;
    padding-bottom: 64px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, rgba(88, 166, 255, 0.22) 0%, rgba(88, 166, 255, 0.06) 35%, rgba(13, 17, 23, 0) 70%),
        radial-gradient(ellipse at 50% 0%, #2f2a50 0%, #0d1117 70%);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.hero-badge-link {
    display: inline-flex;
    align-items: center;
    background: rgba(56, 139, 253, 0.15);
    border: 1px solid rgba(56, 139, 253, 0.4);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: 0.2s;
    gap: 8px;
}

.hero-badge-link:hover {
    background: rgba(56, 139, 253, 0.25);
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    margin-top: -45px;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #fff 60%, rgba(255, 255, 255, 0.4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.hero-logo img {
    width: 290px;
    height: 290px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-desc {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
    align-items: center;
}

.hero-menu-group {
    flex-wrap: wrap;
    gap: 12px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-menu {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px 20px;
    color: var(--color-text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
}

.btn-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-menu:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-menu:hover::before {
    opacity: 1;
}

.btn-menu:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-menu-active {
    background: linear-gradient(135deg, #4A90E2 0%, #6BA3E8 50%, #8BB5ED 100%);
    border-color: rgba(74, 144, 226, 0.5);
    color: #fff;
}

.btn-menu-active::before {
    background: linear-gradient(135deg, #6BA3E8 0%, #4A90E2 50%, #8BB5ED 100%);
}

.btn-menu-active:hover {
    background: linear-gradient(135deg, #6BA3E8 0%, #4A90E2 50%, #8BB5ED 100%);
    border-color: rgba(74, 144, 226, 0.7);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.signup-input-group {
    display: flex;
}

.email-input {
    padding: 12px 16px;
    border-radius: 6px 0 0 6px;
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: 16px;
    width: 240px;
    outline: none;
}

.signup-input-group .btn-mktg {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

/* IDE / Visual Section */
.hero-visual-container {
    margin-top: 64px;
    position: relative;
    z-index: 2;
}

.ide-window {
    background: #161b22;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.ide-header {
    background: #0d1117;
    padding: 12px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--color-border);
}

.ide-content-wrapper {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.ide-content-module {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(30px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.ide-content-module.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: all;
    z-index: 1;
}

.ide-content {
    display: flex;
    height: 100%;
    width: 100%;
}

.ide-sidebar {
    width: 50px;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
    gap: 16px;
}

.ide-main {
    flex: 1;
    display: flex;
}

.ide-tabs {
    background: #0d1117;
    border-bottom: 1px solid var(--color-border);
    display: flex;
}

.ide-tab {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
    border-right: 1px solid var(--color-border);
    background: #161b22;
}

.ide-tab.active {
    background: #161b22;
    color: #fff;
    border-top: 2px solid #ffcc00;
}

.ide-code-area {
    padding: 24px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 14px;
    color: #e6edf3;
    line-height: 1.6;
    flex: 1;
}

.copilot-ghost {
    color: #7d8590;
    font-style: italic;
}

.ide-copilot-chat {
    width: 350px;
    border-right: 1px solid var(--color-border);
    background: #0d1117;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.tomai-app-preview {
    flex: 1;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: radial-gradient(1200px 600px at 70% 30%, rgba(60, 130, 255, 0.16), rgba(0, 0, 0, 0)),
        radial-gradient(900px 500px at 30% 70%, rgba(0, 180, 140, 0.12), rgba(0, 0, 0, 0)),
        #0b0f14;
}

.tomai-app-topbar {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(10px);
}

.tomai-app-logo {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}

.tomai-app-logo img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.tomai-app-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex: 1 1 auto;
    overflow: hidden;
}

.tomai-app-tab {
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    user-select: none;
}

.tomai-app-tab.active {
    color: #e6edf3;
    background: rgba(72, 140, 255, 0.22);
    border: 1px solid rgba(72, 140, 255, 0.28);
}

.tomai-app-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.tomai-app-auth-link {
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.tomai-app-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(13, 17, 23, 0.45);
    flex-wrap: nowrap;
    overflow: hidden;
}

.tomai-app-chip {
    font-size: 12px;
    line-height: 1;
    padding: 7px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    white-space: nowrap;
    user-select: none;
}

.tomai-app-chip.accent {
    background: rgba(72, 140, 255, 0.18);
    border-color: rgba(72, 140, 255, 0.22);
    color: rgba(220, 235, 255, 0.95);
}

.tomai-app-chip.primary {
    background: rgba(255, 204, 0, 0.9);
    border-color: rgba(255, 204, 0, 0.7);
    color: #000000 !important;
}

.tomai-app-chip.confirm-btn-black {
    background: rgba(255, 204, 0, 0.9);
    border-color: rgba(255, 204, 0, 0.7);
    color: #000000 !important;
    font-weight: 500;
}

.tomai-app-spacer {
    flex: 1 1 auto;
}

.tomai-app-select {
    font-size: 12px;
    line-height: 1;
    padding: 7px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    white-space: nowrap;
    user-select: none;
}

.tomai-app-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.tomai-app-title {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.tomai-app-input {
    margin-top: 22px;
    width: min(760px, calc(100% - 48px));
    height: 56px;
    border-radius: 999px;
    background: rgba(13, 17, 23, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
}

.tomai-app-input-icons,
.tomai-app-input-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.7);
}

.tomai-app-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

.tomai-app-placeholder {
    flex: 1 1 auto;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    user-select: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tomai-settings-preview {
    flex: 1;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: radial-gradient(1200px 600px at 70% 30%, rgba(60, 130, 255, 0.14), rgba(0, 0, 0, 0)),
        radial-gradient(900px 500px at 30% 70%, rgba(0, 180, 140, 0.12), rgba(0, 0, 0, 0)),
        #0b0f14;
}

.tomai-settings-topbar {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(10px);
}

.tomai-settings-logo {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}

.tomai-settings-logo img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.tomai-settings-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex: 1 1 auto;
    overflow: hidden;
}

.tomai-settings-tab {
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    user-select: none;
}

.tomai-settings-tab.active {
    color: #e6edf3;
    background: rgba(72, 140, 255, 0.22);
    border: 1px solid rgba(72, 140, 255, 0.28);
}

.tomai-settings-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.tomai-settings-auth-link {
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.tomai-settings-body {
    flex: 1;
    display: flex;
    min-height: 0;
}

.tomai-settings-sidebar {
    width: 190px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(13, 17, 23, 0.4);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tomai-settings-sideitem {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    user-select: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tomai-settings-sideitem.active {
    background: rgba(72, 140, 255, 0.2);
    border-color: rgba(72, 140, 255, 0.26);
    color: rgba(230, 237, 243, 0.95);
}

.tomai-settings-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
}

.tomai-settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 2px 12px;
}

.tomai-settings-title {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.tomai-settings-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tomai-settings-btn {
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    user-select: none;
    white-space: nowrap;
}

.tomai-settings-btn-green {
    background: rgba(46, 160, 67, 0.35);
    border-color: rgba(46, 160, 67, 0.35);
    color: rgba(255, 255, 255, 0.92);
}

.tomai-settings-btn-muted {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
}

.tomai-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    user-select: none;
}

.tomai-toggle-pill {
    width: 44px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    padding: 2px;
    flex: 0 0 auto;
}

.tomai-toggle-pill.small {
    width: 38px;
    height: 20px;
}

.tomai-toggle-pill.on {
    background: rgba(46, 160, 67, 0.35);
    border-color: rgba(46, 160, 67, 0.35);
}

.tomai-toggle-knob {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.tomai-toggle-pill.small .tomai-toggle-knob {
    width: 16px;
    height: 16px;
}

.tomai-toggle-pill.on .tomai-toggle-knob {
    transform: translateX(20px);
}

.tomai-toggle-pill.small.on .tomai-toggle-knob {
    transform: translateX(16px);
}

.tomai-settings-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.tomai-settings-status-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    padding: 0 2px 10px;
}

.tomai-provider-bar {
    padding: 10px;
    border-radius: 14px;
    background: rgba(13, 17, 23, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.tomai-provider-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tomai-provider-group-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    user-select: none;
}

.tomai-provider-items {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tomai-provider-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    user-select: none;
    white-space: nowrap;
}

.tomai-provider-item .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.tomai-provider-item.active {
    background: rgba(72, 140, 255, 0.18);
    border-color: rgba(72, 140, 255, 0.22);
    color: rgba(230, 237, 243, 0.95);
}

.tomai-provider-item.active .dot {
    background: rgba(46, 160, 67, 0.9);
}

.tomai-providers {
    width: 150px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(13, 17, 23, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tomai-provider {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tomai-provider .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.tomai-provider.active {
    background: rgba(72, 140, 255, 0.18);
    border-color: rgba(72, 140, 255, 0.22);
    color: rgba(230, 237, 243, 0.95);
}

.tomai-provider.active .dot {
    background: rgba(46, 160, 67, 0.9);
}

.tomai-config-card {
    flex: 1;
    min-width: 0;
    border-radius: 16px;
    background: rgba(13, 17, 23, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tomai-config-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tomai-config-card-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.tomai-config-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    user-select: none;
}

.tomai-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tomai-field {
    position: relative;
    padding: 10px 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tomai-field-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
}

.tomai-field-input {
    font-size: 12px;
    color: rgba(230, 237, 243, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 44px;
}

.tomai-field-suffix {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(2px);
    font-size: 12px;
    padding: 6px 9px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
    user-select: none;
}

.tomai-models {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tomai-model-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tomai-model-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
}

.tomai-settings-scrollbar {
    width: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    align-self: stretch;
    position: relative;
    overflow: hidden;
}

.tomai-settings-scrollbar::after {
    content: '';
    position: absolute;
    left: 1px;
    top: 28%;
    width: 6px;
    height: 34%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.tomai-tools-preview {
    flex: 1;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: radial-gradient(1200px 600px at 65% 30%, rgba(60, 130, 255, 0.12), rgba(0, 0, 0, 0)),
        radial-gradient(900px 500px at 35% 70%, rgba(255, 200, 0, 0.08), rgba(0, 0, 0, 0)),
        #0b0f14;
}

.tomai-tools-topbar {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(10px);
}

.tomai-tools-logo {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}

.tomai-tools-logo img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.tomai-tools-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex: 1 1 auto;
    overflow: hidden;
}

.tomai-tools-tab {
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    user-select: none;
}

.tomai-tools-tab.active {
    color: rgba(0, 0, 0, 0.9);
    background: rgba(255, 204, 0, 0.92);
    border: 1px solid rgba(255, 204, 0, 0.7);
}

.tomai-tools-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.tomai-tools-auth-link {
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    user-select: none;
}

.tomai-tools-body {
    flex: 1;
    min-height: 0;
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tomai-tools-title {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    letter-spacing: 0.4px;
}

.tomai-tools-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
}

.tomai-tool-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(13, 17, 23, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    min-width: 0;
}

.tomai-tool-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex: 0 0 auto;
}

.tomai-tool-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tomai-tool-name {
    font-size: 13px;
    font-weight: 700;
    color: rgba(230, 237, 243, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tomai-tool-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 980px) {
    .tomai-tools-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tomai-games-preview {
    flex: 1;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: radial-gradient(1200px 600px at 65% 30%, rgba(140, 90, 255, 0.14), rgba(0, 0, 0, 0)),
        radial-gradient(900px 500px at 35% 70%, rgba(60, 130, 255, 0.10), rgba(0, 0, 0, 0)),
        #0b0f14;
}

.tomai-games-topbar {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(10px);
}

.tomai-games-logo {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}

.tomai-games-logo img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.tomai-games-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex: 1 1 auto;
    overflow: hidden;
}

.tomai-games-tab {
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    user-select: none;
}

.tomai-games-tab.active {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(140, 90, 255, 0.25);
    border: 1px solid rgba(140, 90, 255, 0.32);
}

.tomai-games-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.tomai-games-auth-link {
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    user-select: none;
}

.tomai-games-body {
    flex: 1;
    min-height: 0;
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tomai-games-title {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    letter-spacing: 0.4px;
}

.tomai-games-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
}

.tomai-game-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(13, 17, 23, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    min-width: 0;
}

.tomai-game-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tomai-game-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex: 0 0 auto;
}

.tomai-game-name {
    font-size: 14px;
    font-weight: 800;
    color: rgba(230, 237, 243, 0.94);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tomai-game-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tomai-game-action {
    height: 30px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    user-select: none;
}

.tomai-games-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.42);
    text-align: center;
    user-select: none;
}

@media (max-width: 980px) {
    .tomai-games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tomai-library-preview {
    flex: 1;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: radial-gradient(1200px 600px at 62% 30%, rgba(0, 180, 140, 0.12), rgba(0, 0, 0, 0)),
        radial-gradient(900px 500px at 38% 70%, rgba(60, 130, 255, 0.10), rgba(0, 0, 0, 0)),
        #0b0f14;
}

.tomai-library-topbar {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(10px);
}

.tomai-library-logo {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}

.tomai-library-logo img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.tomai-library-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex: 1 1 auto;
    overflow: hidden;
}

.tomai-library-tab {
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    user-select: none;
}

.tomai-library-tab.active {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 180, 140, 0.22);
    border: 1px solid rgba(0, 180, 140, 0.26);
}

.tomai-library-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.tomai-library-auth-link {
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    user-select: none;
}

.tomai-library-body {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 12px;
    padding: 14px;
}

.tomai-library-left {
    width: 260px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tomai-library-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tomai-library-btn {
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    white-space: nowrap;
}

.tomai-library-btn.tiny {
    height: 30px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
}

.tomai-library-btn.green {
    border-color: rgba(46, 160, 67, 0.45);
    color: rgba(130, 220, 150, 0.95);
    background: rgba(46, 160, 67, 0.12);
}

.tomai-library-btn.orange {
    border-color: rgba(255, 168, 0, 0.5);
    color: rgba(255, 210, 140, 0.95);
    background: rgba(255, 168, 0, 0.12);
}

.tomai-library-btn.blue {
    border-color: rgba(72, 140, 255, 0.45);
    color: rgba(200, 225, 255, 0.95);
    background: rgba(72, 140, 255, 0.14);
}

.tomai-library-btn.red {
    border-color: rgba(245, 108, 108, 0.45);
    color: rgba(255, 170, 170, 0.95);
    background: rgba(245, 108, 108, 0.12);
}

.tomai-library-btn.dim {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.03);
}

.tomai-library-treehead {
    padding: 10px 10px 8px;
    border-radius: 16px;
    background: rgba(13, 17, 23, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tomai-library-tree-title {
    font-size: 13px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
}

.tomai-library-tree-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tomai-library-mini {
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
}

.tomai-library-mini.warn {
    border-color: rgba(255, 168, 0, 0.45);
    color: rgba(255, 210, 140, 0.92);
    background: rgba(255, 168, 0, 0.10);
}

.tomai-library-tree {
    flex: 1;
    min-height: 0;
    padding: 10px;
    border-radius: 16px;
    background: rgba(13, 17, 23, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.tomai-library-node {
    height: 34px;
    padding: 0 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
    min-width: 0;
}

.tomai-library-node.active {
    background: rgba(0, 180, 140, 0.16);
    border-color: rgba(0, 180, 140, 0.2);
    color: rgba(230, 237, 243, 0.95);
}

.tomai-library-node .node-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tomai-library-main {
    flex: 1;
    min-width: 0;
    border-radius: 16px;
    background: rgba(13, 17, 23, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tomai-library-editor-header {
    padding: 12px 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 17, 23, 0.35);
}

.tomai-library-editor-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tomai-library-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 800;
}

.tomai-library-title-input {
    flex: 1 1 auto;
    min-width: 160px;
    height: 34px;
    border-radius: 12px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(230, 237, 243, 0.9);
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tomai-library-editor-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.tomai-library-toolbar {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tomai-library-toolbar .tool {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 900;
    user-select: none;
}

.tomai-library-editor {
    flex: 1;
    min-height: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.tomai-library-paragraph {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(230, 237, 243, 0.88);
}

.tomai-library-paragraph.muted {
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 980px) {
    .tomai-library-left {
        width: 220px;
        min-width: 220px;
    }
}

.bottom-nav-pills {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    padding-bottom: 48px;
}

.nav-pill {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 24px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.nav-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-pill.active {
    background: linear-gradient(135deg, #ffcc00 0%, #ffdb4d 50%, #ffeb99 100%);
    border-color: rgba(255, 204, 0, 0.5);
    color: #000;
}

/* Customers */
.customers-section {
    padding: 64px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.logos-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    position: relative;
}

.logos-carousel-wrapper {
    overflow: hidden;
    flex: 1;
    max-width: calc(100% - 80px);
    /* 留出按钮空间 */
    position: relative;
    height: 150px;
}

.logos-carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    gap: 24px;
    align-items: center;
    will-change: transform;
}

.logos-carousel-track.no-transition {
    transition: none;
}

.logos-carousel-slide {
    flex: 0 0 auto;
    width: 112.5px;
    /* 150px * 3/4 = 112.5px for 3:4 ratio */
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-carousel-image {
    width: 112.5px;
    /* 150px * 3/4 = 112.5px for 3:4 ratio */
    height: 150px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.logo-carousel-image:hover {
    opacity: 1;
}

.logos-carousel-toggle {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logos-carousel-toggle:hover {
    background: rgba(22, 27, 34, 1);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.logos-carousel-toggle .logos-play-icon,
.logos-carousel-toggle .logos-pause-icon {
    width: 24px;
    height: 24px;
}

/* 机器人表情切换动画 */
.robot-expression {
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.robot-expression.expression-entering {
    opacity: 0;
    transform: scale(0.85) translate(0, 0);
    animation: expression-enter 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.robot-expression.expression-exiting {
    animation: expression-exit 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.robot-expression.expression-active {
    opacity: 1;
    transform: scale(1) translate(0, 0);
}

@keyframes expression-enter {
    0% {
        opacity: 0;
        transform: scale(0.85) translate(0, 0);
    }

    60% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
}

@keyframes expression-exit {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }

    40% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: scale(0.85) translate(0, 0);
    }
}

.robot-button {
    position: relative;
    overflow: visible;
}

/* 眼睛眨眼动画（高度变化：从高到低） */
.robot-eye {
    transform-origin: center;
    transition: transform 0.15s ease-out;
}

.robot-eye.blinking {
    animation: blink 0.3s ease-out;
}

@keyframes blink {

    0%,
    100% {
        transform: scaleY(1);
        /* 正常高度 */
    }

    50% {
        transform: scaleY(0.05);
        /* 高度变低，几乎变成一条线 */
    }
}

/* Feature Sections Generic */
.feature-section {
    padding: 70px 0;
    position: relative;
    border-top: 1px solid var(--color-border);
}

.feature-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.feature-icon-wrapper {
    margin-bottom: 24px;
}

.feature-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.feature-subtitle {
    font-size: 24px;
    color: var(--color-text-secondary);
}

/* Accelerate (Tabbed) */
.accelerate-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.accelerate-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.accel-item {
    padding: 24px;
    cursor: pointer;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.accel-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accel-item.active {
    background: rgba(255, 204, 0, 0.1);
    border-left: 3px solid #ffcc00;
}

.accel-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.accel-item.active h3 {
    color: #ffcc00;
}

.accel-item p {
    color: var(--color-text-secondary);
    display: none;
    /* Hidden by default */
}

.accel-item.active p {
    display: block;
}

.accelerate-visual {
    flex: 2;
    background: #161b22;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 600px;
    box-shadow: 0 0 80px rgba(124, 58, 237, 0.1);
}

/* Accelerate Content Modules */
.accel-content-module {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.accel-content-module.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
    z-index: 1;
}

.accel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.accel-image:hover {
    transform: scale(1.02);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: #ccc;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Security */
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.glass-card {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
    height: 100%;
    backdrop-filter: blur(10px);
}

.sec-card-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.sec-card-desc {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item h4 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--color-text-secondary);
}

/* Collaboration */
.collab-visual {
    background: #0d1117;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(219, 97, 162, 0.15);
}

.project-table {
    width: 100%;
    border-collapse: collapse;
}

.project-table th,
.project-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 14px;
}

.project-table th {
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Issues / Footer Grid */
.issues-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.quote-card {
    padding: 48px;
}

.quote-text {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.4;
}

/* Scale Section - 三个独立的游戏卡片 */
.scale-section {
    background: transparent !important;
    border: none !important;
    padding: 64px 0 !important;
}

.scale-section .container-xl {
    display: block;
}

.scale-section .scale-cards-wrapper {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: nowrap;
    margin-top: 15px;
    margin-bottom: 15px;
}

.scale-card {
    padding: 24px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 280px;
    flex-shrink: 0;
    margin: 20px 0;
    box-sizing: border-box;
}

.scale-card>div:first-child {
    font-weight: 700;
    font-size: 24px;
    text-align: left;
    margin-bottom: 16px;
}

.scale-card>div:last-child {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.scale-card:hover {
    border-color: #ff0000 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* CTA Footer */
.cta-footer {
    text-align: center;
    padding: 128px 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(147, 51, 234, 0.25) 0%, rgba(147, 51, 234, 0.08) 40%, rgba(13, 17, 23, 0) 70%),
        linear-gradient(180deg, transparent, #0d1117);
}

.cta-footer h2 {
    font-size: 64px;
    margin-bottom: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.1;
}

/* Utils */
.text-gradient-purple {
    background: linear-gradient(90deg, #9333ea, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(90deg, #3b82f6, #2dd4bf);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-purple-glow {
    box-shadow: 0 0 200px rgba(147, 51, 234, 0.25);
}

.bg-green-glow {
    box-shadow: 0 0 200px rgba(46, 160, 67, 0.2);
}

.mr-2 {
    margin-right: 8px;
}

.mb-2 {
    margin-bottom: 8px;
}

.w-full {
    width: 100%;
}

/* Footer */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-default);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
}

.legal {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.legal span {
    color: var(--color-text-secondary);
}

.legal a {
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.legal a:hover {
    color: var(--color-text-primary);
}

.container-xl .scale-cards-wrapper,
.container-xl .scale-cards-wrapper:hover {
    border: 0 !important;
    padding: 0;
    width: 80%;
    margin: 0 auto;
    background-color: #0d1117 !important;
}
