/* Modern Dark Glassmorphism Reset */
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ───────────────────────────────────── */
:root {
    --logo-gradient-start: #ff4d4d;
    --logo-gradient-end: #991b1b;
    --logo-glow: rgba(255, 77, 77, 0.4);
    --coral-bright: #ff6b6b;
    --cyan-bright: #e0e7ff;
    --bg-deep: #0a0a0a;
    --font-display: "Clash Display", system-ui, sans-serif;
    --hero-title-start: #ffffff;
    --hero-title-end: #ff4d4d;
}

/* ── Lobster Icon ─────────────────────────────────────── */
@keyframes lobster-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

.lobster-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.lobster-icon svg {
    width: 80px;
    height: 80px;
    animation: lobster-float 3.5s ease-in-out infinite;
    filter: drop-shadow(0 0 14px var(--logo-glow)) drop-shadow(0 0 30px rgba(255, 77, 77, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease, background 0.3s ease;
    border-radius: 50%;
}

.lobster-icon:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 14px var(--cyan-bright)) drop-shadow(0 0 35px rgba(0, 229, 204, 0.4));
    background: radial-gradient(circle, rgba(0, 229, 204, 0.15) 0%, transparent 70%);
}

/* Claw snap animation */
@keyframes clawSnap {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(-18deg);
    }

    20% {
        transform: rotate(0deg);
    }

    30% {
        transform: rotate(-10deg);
    }

    40% {
        transform: rotate(0deg);
    }
}

/* Antenna wiggle */
@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(8deg);
    }

    75% {
        transform: rotate(-8deg);
    }
}

.lobster-icon .claw-right {
    animation: clawSnap 4s ease-in-out infinite 0.2s;
    transform-origin: left center;
    transform-box: fill-box;
}

.lobster-icon .claw-left {
    animation: clawSnap 4s ease-in-out infinite;
    transform-origin: right center;
    transform-box: fill-box;
}

.lobster-icon .antenna {
    animation: wiggle 2s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes blink {

    0%,
    96%,
    98% {
        opacity: 1;
    }

    97%,
    99% {
        opacity: 0;
    }
}

.lobster-icon .eye-glow {
    animation: blink 3s ease-in-out infinite;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
a,
.btn,
.option-card,
.logo,
.brand {
    cursor: pointer;
}

button:disabled,
.btn.disabled,
.btn-loading {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.btn-loading {
    pointer-events: none !important;
}

body {
    font-family: 'Inconsolata', 'Inconsolata Fallback', 'Courier New', monospace;
    background-color: #000000;
    background-image:
        radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.02) 0, transparent 50%),
        radial-gradient(ellipse at 75% 70%, rgba(180, 180, 255, 0.02) 0, transparent 50%);
    background-size: 100% 100%;
    background-attachment: fixed;
    min-height: 100vh;
    color: #f7f9fc;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    padding: 20px 0;
    margin-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.brand {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: "Clash Display", system-ui, sans-serif;
    background: linear-gradient(135deg, var(--hero-title-start) 0%, var(--coral-bright) 52%, #00e5cc 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
    letter-spacing: -0.02em;
}

.brand .domain {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #fff;
}

/* Glassmorphism Cards */
.card,
.config-card,
.comparison-card,
.wizard-slide .card,
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: white;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Outer ring border on the main config card */
.config-card {
    outline: 1px solid rgba(255, 255, 255, 0.05);
    outline-offset: 6px;
}

.card:hover,
.config-card:hover,
.comparison-card:hover,
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7), 0 0 25px rgba(99, 102, 241, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Premium Entrance Animations */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

/* Animated OpenClaw brand word */
@keyframes openclaw-shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes openclaw-glow-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(255, 77, 77, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 18px rgba(255, 77, 77, 0.7));
    }
}

.openclaw-brand {
    font-family: "Clash Display", system-ui, sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, var(--hero-title-start) 0%, var(--coral-bright) 52%, #00e5cc 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
    display: inline-block;
    letter-spacing: -0.02em;
}

.hero p.subheading {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Config Section */
.config-section {
    margin-bottom: 20px;
    font-size: 1.0rem;
    gap: 21px;
}

.config-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 10px;
    display: block;
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 22px;
    height: 50px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 120px;
    width: 176px;
    font-size: 15px;
    font-weight: 500;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    user-select: none;
    touch-action: manipulation;
}

.option-card:hover:not(.disabled) {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.option-card.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.option-card.active .option-name {
    color: #fff;
    font-weight: 700;
}

.option-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.05);
}

.coming-soon {
    font-size: 0.7rem;
    color: #64748b;
    display: block;
    margin-top: 5px;
}

/* CTA Section */
.cta-section {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.btn-google {
    background: white;
    color: #0f172a;
    border: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 16px;
    height: 44px;
    width: 210px;
    justify-content: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow:
        rgba(0, 0, 0, 0.5) 0px 0px 0px 2px,
        rgba(255, 255, 255, 0.19) 0px 0px 14px 0px,
        rgba(0, 0, 0, 0.2) 0px -1px 0.4px 0px inset,
        rgb(255, 255, 255) 0px 1px 0.4px 0px inset;
}

.btn-google:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-google img {
    width: 16px;
    height: 16px;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
}

/* Make spinner black on all white-background buttons */
.btn-primary.btn-loading::after,
.btn-primary-compact.btn-loading::after,
.btn-premium-save.btn-loading::after,
.btn-google.btn-loading::after {
    border-color: rgba(0, 0, 0, 0.15);
    border-top-color: #000;
}

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

.urgency-pill {
    display: inline-block;
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    margin-top: 15px;
    border: 1px solid rgba(220, 38, 38, 0.4);
}

/* Comparison Section */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 50px;
}

.use-case-section {
    margin-top: 60px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.comparison-card {
    background: rgba(0, 0, 0, 0.4);
    /* Darker for comparison */
}

.comparison-header {
    color: #94a3b8;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.step-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.step-time {
    color: #64748b;
    font-family: monospace;
}

.total-time {
    margin-top: 20px;
    font-weight: 700;
    font-size: 1.25rem;
    color: #f87171;
    text-align: right;
    padding-top: 15px;
}

.big-time {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
    margin-bottom: 15px;
    text-shadow: 0 0 50px rgba(99, 102, 241, 0.3);
}

.claw-desc {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 15px;
}

.claw-sub {
    color: #94a3b8;
}

/* Use Case Tags */
/* Ticker Animation */
.tags-wrapper {
    width: 100%;
    margin: 40px 0;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tags-row {
    display: flex;
    margin-bottom: 16px;
    width: 100%;
    white-space: nowrap;
}

.tags-track {
    display: flex;
    gap: 12px;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.scroll-left .tags-track {
    animation-name: scroll-left;
    animation-duration: 40s;
}

.scroll-right .tags-track {
    animation-name: scroll-right;
    animation-duration: 45s;
    /* Slightly different speed for visual interest */
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Enhancing tag pills for ticker */
.tag-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

/* Footer */
.main-footer {
    width: 100%;
    text-align: center;
    padding: 30px 0 50px;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.main-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.main-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.tag-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
    font-style: italic;
    font-size: 0.9rem;
}

/* Wizard / Dashboard Styles */
.main-content {
    display: none;
    /* Modal Overlay Styles */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

/* Telegram Guide Styles */
#slide-telegram {
    max-width: 900px !important;
}

.telegram-layout {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.telegram-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.telegram-video-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.telegram-video-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #000;
}

.telegram-video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.telegram-instructions h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 600;
}

.telegram-steps {
    margin: 0;
    padding-left: 20px;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.telegram-steps li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.telegram-steps a {
    color: #a5b4fc;
    text-decoration: none;
}

.telegram-steps a:hover {
    text-decoration: underline;
}

.code-badge {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85em;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Wizard Controls */
.wizard-header-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.btn-text-icon {
    background: transparent;
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    padding: 8px;
}

.btn-text-icon:hover {
    color: white;
}

/* Ensure slides are vertically centered */
.wizard-slide {
    width: 100%;
    max-width: 500px;
    margin: auto;
    display: none;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-slide.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.slide-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.step-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #cbd5e1;
}

.form-group input {
    width: auto;
    min-width: 250px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.1rem;
    color: #fff;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group small {
    color: #64748b;
    margin-top: 8px;
    display: block;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: #000000;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border-radius: 30px;
    padding: 14px 32px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.4), 0 0 15px rgba(255, 255, 255, 0.2);
    background: #f1f5f9;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-success {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Deployment Progress - Professional Automation Tool */
.deployment-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    min-height: 400px;
}

.deployment-status {
    margin-top: 32px;
    max-width: 480px;
}

.deployment-step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.deployment-step-subtext {
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.6;
}

.deployment-wait-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(16, 185, 129, 0.9);
    margin: 12px 0 0 0;
    line-height: 1.6;
    animation: fadeSlide 2s ease-in-out infinite;
}

@keyframes fadeSlide {

    0%,
    100% {
        opacity: 0.6;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

/* Success Screen - Credits & Purchase */
.success-container {
    text-align: center;
    padding: 30px 20px;
}

.credits-card {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 400px;
}

.credits-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.credits-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.credits-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #10b981;
}

.credits-subtext {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.purchase-credits-section {
    margin: 20px auto;
    max-width: 400px;
}

.purchase-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.purchase-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.form-group-inline {
    flex: 1;
    text-align: left;
}

.form-group-inline label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.form-group-inline input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inconsolata', monospace;
}

.form-group-inline input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

/* Dashboard Access Buttons */
.dashboard-access {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-outline svg {
    opacity: 0.7;
}

/* Spinners & Animations */
.spinner-green {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(16, 185, 129, 0.1);
    border-top: 4px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

/* In-Card Profile */
.in-card-profile {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.in-card-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.profile-info {
    flex: 1;
}

.p-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.p-email {
    color: #94a3b8;
    font-size: 0.8rem;
}

.btn-icon-logout {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-icon-logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* Adjust Wizard Slides for In-Card display */
.wizard-slide {
    animation: fadeSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.slide-actions.centered {
    display: flex;
    justify-content: center;
    gap: 15px;
}

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

.pairing-wait {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #a5b4fc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.wizard-slide .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.form-group {
    width: 100%;
    text-align: left;
}

.slide-actions {
    width: 100%;
    justify-content: space-between;
}

/* Log Viewer */
.log-viewer {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    font-family: 'Menlo', monospace;
    color: #e2e8f0;
    margin-top: 20px;
}

/* User Profile */
.user-name {
    color: #e2e8f0;
    font-weight: 500;
}

.user-avatar {
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-logout {
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout:hover {
    color: #FFF;
    border-color: #FFF;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }

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

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

/* Compact Profile and Deploy Button Row */
.profile-deploy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.in-card-profile-compact {
    display: flex;
    align-items: center;
    /*background: rgba(255, 255, 255, 0.03);*/
    padding: 8px 12px;
    border-radius: 20px;
    gap: 18px;
    flex: 0;
    border: 0px solid rgba(130, 130, 130, 0.08);
}

.in-card-profile-compact img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info-compact {
    flex: 1;
    min-width: 0;
}

.p-name-compact {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-email-compact {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-icon-logout-compact {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-logout-compact:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.btn-primary-compact {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: #000000;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.4), 0 0 15px rgba(255, 255, 255, 0.2);
    background: #f1f5f9;
}

/* Compact Dashboard Access */
.dashboard-access-compact {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-buttons-compact {
    display: flex;
    gap: 8px;
}

.btn-outline-compact {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-outline-compact:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.btn-outline-compact svg {
    opacity: 0.7;
}

/* ── Default model info badge ── */
.default-model-info {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin: 10px 0 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.default-model-info strong {
    color: #a5b4fc;
}

/* ── Custom API Key Toggle Row ── */
.custom-api-toggle-row {
    display: flex;
    justify-content: center;
    margin: 12px 0 4px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.25s, border-color 0.25s;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: transform 0.25s, background 0.25s;
}

.toggle-label input:checked+.toggle-switch {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
}

.toggle-label input:checked+.toggle-switch::after {
    transform: translateX(18px);
    background: #fff;
}

.toggle-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ── Custom API Panel ── */
.custom-api-panel {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    animation: fadeSlideIn 0.2s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-api-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    text-align: center;
}

/* ── Provider Cards Grid ── */
.custom-provider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.custom-provider-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.custom-provider-card:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.custom-provider-card.selected {
    background: rgba(99, 102, 241, 0.18);
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.provider-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.provider-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.2;
}

.provider-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ── API Key Input Group ── */
.custom-api-input-group {
    margin-top: 4px;
    animation: fadeSlideIn 0.18s ease;
}

.custom-api-input-group label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
    font-weight: 500;
    text-align: left;
}

.api-key-input-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.api-key-input-row input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 9px 12px;
    color: #fff;
    font-size: 0.82rem;
    font-family: 'Inconsolata', monospace;
    transition: border-color 0.2s;
    outline: none;
}

.api-key-input-row input:focus {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
}

.api-key-input-row input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.btn-eye {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.18s, color 0.18s;
    flex-shrink: 0;
}

.btn-eye:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.api-key-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: left;
}

/* Landing Page Model Selection */
.options-grid-models {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.model-option-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 22px;
    height: 50px;
    box-sizing: border-box;
    min-width: 120px;
    width: 176px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    user-select: none;
    touch-action: manipulation;
}

.model-option-card:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(99, 102, 241, 0.15);
}

.model-option-card.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.model-option-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.05);
}

.model-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    text-transform: uppercase;
}

.model-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
    display: block;
}

.model-name {
    display: block;
    font-weight: 600;
    color: #fff;
    font-size: 0.85rem;
}

.model-sub {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
    font-weight: 700;
}

.model-recommended {
    font-size: 0.62rem;
    font-weight: 700;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 4px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.model-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
}

/* ========================================= */
/* Global Credits Widget (Bottom Corner) */
/* ========================================= */

.credits-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.credits-widget .credits-icon {
    color: #10b981;
}

.credits-widget.low-balance {
    border-color: rgba(239, 68, 68, 0.5);
    /* red border */
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.credits-widget.low-balance .credits-icon {
    color: #ef4444;
}

.credits-widget.low-balance .credits-text {
    color: #ef4444;
}

.credits-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

/* ── Premium Global Loader Spinner ────────────────────── */
.premium-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #6366f1;
    border-right: 3px solid #ff4d4d;
    border-radius: 50%;
    animation: premium-spin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

@keyframes premium-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}