:root {
    --bg-color: #141414;
    --card-bg: #1f1f1f;
    --header-bg: #141414;
    --border-color: #3c3c3c;
    --text-color: #ffffff;
    --muted-color: #c4c7c5;
    --accent-orange: #ff6b35;
    --accent-blue: #0070f3;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.view-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
    flex-grow: 1;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 40px 0;
}
.logo-wrapper {
    margin-bottom: 24px;
}
.hero-section h1 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    max-width: 650px;
    margin: 0 auto;
}

/* Features */
.features-grid-container {
    margin-top: 60px;
}
.section-tag-orange {
    color: var(--accent-orange);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.features-grid-container h2, .pricing-section h2, .api-reference-section h2 {
    font-size: 24px;
    margin-top: 8px;
}
.section-subtitle, .pricing-subtitle, .api-subtitle {
    color: var(--muted-color);
    font-size: 15px;
    margin-top: 6px;
    margin-bottom: 32px;
}
.features-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}
.feature-icon {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
    height: 32px;
    display: flex;
    align-items: center;
}
.text-orange { color: var(--accent-orange); }
.feature-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
}
.feature-card p {
    color: var(--muted-color);
    font-size: 13px;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    margin-top: 80px;
    text-align: center;
}
.pricing-subtitle {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: stretch;
}
.price-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.price-card.best-deal {
    border: 2px solid #4a4a4a;
    transform: scale(1.02);
}
.badge-row {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}
.badge-blue { background: #002d62; color: #4285f4; }
.badge-light { background: #ffffff; color: #000000; }
.price-card h3 {
    font-size: 15px;
    font-weight: 500;
    margin-top: 8px;
    color: var(--muted-color);
}
.price-value {
    font-size: 36px;
    font-weight: 700;
    margin: 20px 0;
}
.pay-btn {
    width: 100%;
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto;
}

/* API Reference Section */
.api-reference-section {
    margin-top: 80px;
}
.api-docs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.api-endpoint {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.api-header {
    width: 100%;
    background: var(--header-bg);
    border: none;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    outline: none;
    gap: 16px;
}
.api-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.method-tag {
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    min-width: 64px;
    padding: 4px 6px;
    border-radius: 4px;
    text-align: center;
}
.method-tag.get { background: rgba(52, 168, 83, 0.15); color: #34a853; }
.method-tag.post { background: rgba(66, 133, 244, 0.15); color: #4285f4; }
.method-tag.put { background: rgba(249, 171, 0, 0.15); color: #f9ab00; }
.method-tag.delete { background: rgba(234, 67, 53, 0.15); color: #ea4335; }
.path {
    color: #e3e3e3;
    font-family: monospace;
    font-size: 13px;
}
.description {
    color: var(--muted-color);
    font-size: 13px;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chevron-icon {
    color: var(--muted-color);
    transition: transform 0.2s ease;
}
.api-endpoint.active .chevron-icon {
    transform: rotate(180deg);
}
.api-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}
.api-content-inner {
    padding: 20px;
}
.section-title {
    color: var(--muted-color);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 14px 0 6px 0;
}
.section-title:first-child { margin-top: 0; }
.code-block {
    background: #141414;
    border: 1px solid #2d2d2d;
    border-radius: 6px;
    padding: 12px;
    overflow-x: auto;
}
.code-block code {
    color: #e3e3e3;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.5;
}

/* Claim Token Section Layout */
.claim-wrapper {
    text-align: center;
    padding: 60px 0;
    max-width: 680px;
    margin: 0 auto;
}
.claim-wrapper h1 { font-size: 32px; margin-bottom: 16px; }
.claim-lead { color: var(--muted-color); font-size: 15px; line-height: 1.6; margin-bottom: 40px; }

.claim-footer { margin-top: 60px; }
.claim-footer h3 { font-size: 16px; font-weight: 500; margin-bottom: 20px; }
.home-nav-btn {
    display: inline-block;
    background: #2b2b2b;
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--muted-color);
    font-size: 13px;
}

/* Mobile Responsive Matrix */
@media (max-width: 768px) {
    .features-wrapper { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
    .price-card.best-deal { transform: none; }
}

/* Ultra-Minimalist Custom-Styled Layout Engine */
.minimal-token-container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto 0 auto;
    background: #1f1f1f;
    border-radius: 14px;
    border: 1px solid #2d2d2d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.token-body {
    padding: 32px 40px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.token-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.fallback-box {
    background: #181818;
    border: 1px solid #2d2d2d;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 14px;
}

.token-wrapper {
    overflow-x: auto;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

#api-key-display,
#fallback-session-display {
    color: #e3e3e3;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    white-space: nowrap;
    user-select: all;
}

#fallback-session-display {
    color: #f2b8b5;
    font-size: 14px;
}

.quota-badge {
    color: #80868b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fallback-instructions {
    color: #c4c7c5;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 16px;
    text-align: left;
}

.fallback-instructions p {
    margin: 0;
}

.action-btn {
    background: transparent;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background-color 0.2s;
    flex-shrink: 0;
    position: relative;
}

.action-btn:hover {
    color: #ffffff;
    background-color: #2d2d2d;
}

.action-btn.copied {
    color: #81c995;
    background-color: rgba(129, 201, 149, 0.15);
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.action-btn:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.token-status {
    color: #9aa0a6;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    width: 100%;
}

.token-status.error {
    color: #f2b8b5;
    font-weight: 600;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #2d2d2d;
    border-top: 2px solid #a8c7fa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.gemini-note {
    width: 100%;
    max-width: 750px;
    margin: 0 auto 40px auto;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #c4c7c5;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    padding: 0 16px;
    box-sizing: border-box;
}

.gemini-note svg {
    color: #fdd663;
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .token-body {
        padding: 24px 20px;
    }
    #api-key-display,
    #fallback-session-display {
        font-size: 13px;
    }
    .token-row {
        gap: 12px;
    }
    .gemini-note {
        font-size: 12px;
        padding: 0 12px;
    }
}