:root {
    --bg-color: #1f3c32;
    --card-bg: rgba(19, 48, 38, 0.95);
    --text-color: #e9f3e2;
    --muted-text: #bfd6c0;
    --accent-primary: #a8d38a;
    --accent-primary-hover: #b6df98;
    --accent-outline: #c3e2a4;
    --accent-blog-bg: rgba(168, 211, 138, 0.08);
    --accent-blog-border: #a8d38a;
    --font-family: "DM Sans", "Segoe UI", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body,
html {
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    font-family: var(--font-family);
    color: var(--text-color);
    overflow: hidden;
}

/* Base style for squircle elements */
.squircle {
    border-radius: 32px;
    corner-shape: squircle;
}

/* Iframe Container */
.iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Loader / Landing Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 32px 16px;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-card {
    text-align: center;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 48px 28px;
    border-radius: 40px;
    corner-shape: squircle;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(168, 211, 138, 0.1);
    max-width: 480px;
    width: 100%;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-logo {
    width: 180px;
    height: auto;
    margin-bottom: 32px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.welcome-title {
    font-size: 1.5rem;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 700;
}

.welcome-subtitle {
    font-size: 0.95rem;
    color: var(--muted-text);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.benefits-grid {
    text-align: left;
    margin-bottom: 24px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(168, 211, 138, 0.05);
    border-radius: 20px;
    corner-shape: squircle;
    margin-bottom: 12px;
    border: 1px solid rgba(168, 211, 138, 0.1);
}

.benefit-icon {
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    corner-shape: squircle;
}

.benefit-text strong {
    font-size: 0.9rem;
    color: #fff;
    display: block;
    margin-bottom: 2px;
}

.benefit-text span {
    font-size: 0.8rem;
    color: var(--muted-text);
    line-height: 1.4;
}

.info-notice.micro {
    background: rgba(168, 211, 138, 0.08);
    border-radius: 14px;
    corner-shape: squircle;
    border: 1px solid rgba(168, 211, 138, 0.2);
    padding: 10px;
    margin-bottom: 24px;
}

.info-notice.micro p {
    font-size: 0.75rem;
    color: var(--accent-primary);
    margin: 0;
}

.main-cta {
    width: 100%;
    font-size: 1rem;
    font-weight: 700;
    padding: 18px;
    cursor: pointer;
    border: none;
    border-radius: 20px;
    corner-shape: squircle;
    color: #1f3c32;
    background: var(--accent-primary);
    box-shadow: 0 8px 18px rgba(14, 49, 28, 0.22);
    transition: transform 0.2s, background 0.2s;
}

.main-cta:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
}

.time-estimate {
    font-size: 0.75rem;
    color: var(--muted-text);
    margin-top: 14px;
    text-align: center;
}

.time-estimate span {
    font-weight: 400;
    color: rgba(191, 214, 192, 0.6);
}

/* Spinner & Fallback */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(168, 211, 138, 0.1);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin: 0 auto 20px;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hidden {
    display: none !important;
}

#fallback-actions {
    margin-top: 32px;
}

.btn-primary {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 2px solid var(--accent-outline);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 20px;
    corner-shape: squircle;
}

#loading-spinner p {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .loader-overlay {
        padding: 0;
        align-items: flex-start;
    }

    .loader-card {
        border-radius: 0;
        min-height: 100vh;
        max-width: 100%;
        padding: 48px 24px;
    }
}