/**
 * Slimkės gidas – scroll shell (kaip remux_convert) + premium UI
 */
body.sg-guide-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body.sg-guide-body .wrapper.sg-guide-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

body.sg-guide-body .container.sg-guide-container {
    min-height: min-content;
    height: auto !important;
    overflow: visible !important;
}

body.sg-guide-body #siteFooter {
    flex-shrink: 0;
}

/* iOS / siauras ekranas: natūralus body scroll (patikimesnis nei įdėtinis .wrapper) */
@media (max-width: 900px) {
    body.sg-guide-body {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.sg-guide-body .wrapper.sg-guide-wrapper {
        flex: 0 1 auto;
        min-height: unset;
        overflow: visible !important;
    }
}

.sg-guide-page {
    --sg-accent: var(--main-color, #6b9fff);
    --sg-gold: #e8b84a;
    --sg-gold-dim: rgba(232, 184, 74, 0.35);
    --sg-surface: rgba(18, 22, 30, 0.96);
    --sg-surface-elevated: rgba(22, 26, 36, 0.92);
    --sg-border: rgba(255, 255, 255, 0.11);
    --sg-border-hover: color-mix(in srgb, var(--sg-accent) 45%, rgba(255, 255, 255, 0.15));
    --sg-text: #e8eaed;
    --sg-text-muted: #9aa3b2;
    --sg-radius: 16px;
    --sg-radius-sm: 12px;
    --sg-touch: 44px;
    --sg-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --sg-shadow-inset: 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    --sg-transition: 0.22s ease;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(0.85rem, 3vw, 1.35rem) clamp(0.75rem, 3vw, 1.25rem);
    padding-bottom: calc(clamp(1.5rem, 4vw, 2.5rem) + env(safe-area-inset-bottom, 0px));
    width: 100%;
    box-sizing: border-box;
    color: var(--sg-text);
    color-scheme: dark;
}

.sg-hero-panel {
    position: relative;
    border-radius: var(--sg-radius);
    overflow: hidden;
    margin-bottom: 1.75rem;
    background: linear-gradient(165deg, var(--sg-surface) 0%, rgba(10, 12, 16, 0.94) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--sg-border);
    box-shadow: var(--sg-shadow), var(--sg-shadow-inset);
}

.sg-hero-panel__accent {
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        color-mix(in srgb, var(--sg-accent) 25%, transparent) 15%,
        var(--sg-accent) 50%,
        color-mix(in srgb, var(--sg-gold) 70%, var(--sg-accent)) 85%,
        transparent 100%
    );
}

.sg-hero-panel__body {
    padding: clamp(1.15rem, 3.5vw, 1.65rem) clamp(1rem, 3vw, 1.35rem);
    text-align: center;
}

.sg-hero-panel h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.2rem, 3.8vw, 1.65rem);
    font-weight: 600;
    color: #f4f6f8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.25;
}

.sg-hero-panel h1 .sg-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    margin-right: 0.35rem;
    vertical-align: middle;
    border-radius: 10px;
    background: color-mix(in srgb, var(--sg-gold) 18%, transparent);
    border: 1px solid var(--sg-gold-dim);
    color: var(--sg-gold);
    font-size: 1rem;
}

.sg-hero-panel .sg-hero-subtitle {
    margin: 0;
    font-size: clamp(0.88rem, 2.4vw, 1rem);
    color: var(--sg-text-muted);
    line-height: 1.55;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.sg-hero-disclaimer {
    display: inline-block;
    margin: 0.85rem 0 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    color: var(--sg-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    line-height: 1.4;
}

.sg-balance-card {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.15rem;
    padding: 0.75rem 1.2rem;
    background: linear-gradient(135deg, rgba(232, 184, 74, 0.14) 0%, rgba(180, 130, 40, 0.08) 100%);
    border: 1px solid var(--sg-gold-dim);
    border-radius: var(--sg-radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.sg-balance-card__icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(232, 184, 74, 0.18);
    border: 1px solid var(--sg-gold-dim);
    color: var(--sg-gold);
    font-size: 1.1rem;
}

.sg-balance-card__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sg-text-muted);
}

.sg-balance-card__value {
    display: block;
    font-size: clamp(1.15rem, 4vw, 1.45rem);
    font-weight: 700;
    color: var(--sg-gold);
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.sg-cta-panel {
    margin-top: 1.15rem;
    padding: 1rem 1.15rem;
    background: color-mix(in srgb, var(--sg-accent) 10%, rgba(18, 22, 30, 0.9));
    border: 1px dashed color-mix(in srgb, var(--sg-accent) 40%, transparent);
    border-radius: var(--sg-radius-sm);
}

.sg-cta-panel p {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: var(--sg-text-muted);
}

.sg-guest-bar {
    text-align: center;
    padding: 0.7rem 1rem;
    margin-bottom: 1.5rem;
    background: var(--sg-surface-elevated);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-sm);
    font-size: 0.85rem;
    color: var(--sg-text-muted);
    backdrop-filter: blur(8px);
}

.sg-tier-section {
    margin-bottom: 2rem;
}

.sg-tier-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.15rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sg-tier-head__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--sg-accent) 14%, rgba(255, 255, 255, 0.04));
    border: 1px solid color-mix(in srgb, var(--sg-accent) 30%, transparent);
    color: var(--sg-accent);
    font-size: 0.95rem;
}

.sg-tier-head h2 {
    margin: 0;
    font-size: clamp(1rem, 2.8vw, 1.15rem);
    font-weight: 600;
    color: var(--sg-gold);
    letter-spacing: 0.03em;
    flex: 1;
}

.sg-featured-panel {
    position: relative;
    border-radius: var(--sg-radius);
    overflow: hidden;
    margin-bottom: 2rem;
    background: linear-gradient(
        155deg,
        color-mix(in srgb, var(--sg-gold) 12%, var(--sg-surface)) 0%,
        rgba(10, 12, 16, 0.94) 55%
    );
    border: 1px solid color-mix(in srgb, var(--sg-gold) 35%, var(--sg-border));
    box-shadow:
        0 8px 36px rgba(0, 0, 0, 0.4),
        0 0 40px color-mix(in srgb, var(--sg-gold) 8%, transparent);
}

.sg-featured-panel__accent {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sg-gold) 40%, color-mix(in srgb, var(--sg-accent) 60%, var(--sg-gold)) 70%, transparent);
}

.sg-featured-panel__body {
    padding: clamp(1rem, 3vw, 1.35rem);
}

.sg-featured-panel .sg-tier-head {
    border-bottom-color: color-mix(in srgb, var(--sg-gold) 25%, transparent);
}

.sg-featured-panel .sg-tier-head__icon {
    background: rgba(232, 184, 74, 0.15);
    border-color: var(--sg-gold-dim);
    color: var(--sg-gold);
}

.sg-price-hint {
    font-size: 0.86rem;
    color: var(--sg-text-muted);
    margin: 1rem 0 0;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--sg-gold);
    line-height: 1.45;
}

.sg-featured-actions {
    margin-top: 0.85rem;
}

.sg-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
}

@media (min-width: 640px) {
    .sg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .sg-grid.sg-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.15rem 1.1rem 1.1rem;
    border-radius: var(--sg-radius-sm);
    background: linear-gradient(165deg, var(--sg-surface-elevated) 0%, rgba(14, 16, 22, 0.88) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--sg-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28), var(--sg-shadow-inset);
    transition:
        transform var(--sg-transition),
        border-color var(--sg-transition),
        box-shadow var(--sg-transition);
}

@media (prefers-reduced-motion: no-preference) {
    .sg-card:hover {
        transform: translateY(-3px);
        border-color: var(--sg-border-hover);
        box-shadow:
            0 12px 28px rgba(0, 0, 0, 0.38),
            0 0 24px color-mix(in srgb, var(--sg-accent) 12%, transparent),
            var(--sg-shadow-inset);
    }
}

.sg-card--featured {
    border-color: color-mix(in srgb, var(--sg-gold) 40%, var(--sg-border));
}

.sg-card--risk {
    border-color: color-mix(in srgb, #e07070 35%, var(--sg-border));
}

.sg-card--risk:hover {
    border-color: color-mix(in srgb, #e07070 55%, transparent);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.38),
        0 0 20px rgba(220, 80, 80, 0.12),
        var(--sg-shadow-inset);
}

.sg-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.sg-card__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--sg-accent) 12%, rgba(255, 255, 255, 0.04));
    border: 1px solid color-mix(in srgb, var(--sg-accent) 28%, transparent);
    color: var(--sg-accent);
    font-size: 1rem;
}

.sg-card--featured .sg-card__icon {
    background: rgba(232, 184, 74, 0.14);
    border-color: var(--sg-gold-dim);
    color: var(--sg-gold);
}

.sg-card--risk .sg-card__icon {
    background: rgba(220, 80, 80, 0.12);
    border-color: rgba(220, 100, 100, 0.35);
    color: #f0a0a0;
}

.sg-card__head-text {
    flex: 1;
    min-width: 0;
}

.sg-card-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    color: #f4f6f8;
    line-height: 1.3;
}

.sg-badge {
    display: inline-block;
    margin-bottom: 0.15rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    background: color-mix(in srgb, var(--sg-accent) 22%, transparent);
    color: color-mix(in srgb, var(--sg-accent) 85%, #fff);
}

.sg-badge-gold {
    background: rgba(232, 184, 74, 0.22);
    color: var(--sg-gold);
}

.sg-badge-risk {
    background: rgba(220, 80, 80, 0.22);
    color: #f0a0a0;
}

.sg-card-summary {
    margin: 0;
    font-size: 0.88rem;
    color: var(--sg-text-muted);
    line-height: 1.5;
}

.sg-card-summary b,
.sg-step-item__text b,
.sg-card__note b {
    color: var(--sg-text);
    font-weight: 600;
}

.sg-step-list {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sg-step-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.45rem 0;
    position: relative;
}

.sg-step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 2.1rem;
    bottom: -0.1rem;
    width: 2px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--sg-accent) 35%, transparent),
        color-mix(in srgb, var(--sg-accent) 8%, transparent)
    );
    border-radius: 1px;
}

.sg-step-item__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sg-accent);
    background: color-mix(in srgb, var(--sg-accent) 14%, rgba(255, 255, 255, 0.03));
    border: 1px solid color-mix(in srgb, var(--sg-accent) 35%, transparent);
    border-radius: 50%;
    font-variant-numeric: tabular-nums;
}

.sg-card--featured .sg-step-item__num {
    color: var(--sg-gold);
    background: rgba(232, 184, 74, 0.12);
    border-color: var(--sg-gold-dim);
}

.sg-step-item__text {
    flex: 1;
    font-size: 0.86rem;
    color: rgba(232, 234, 237, 0.88);
    line-height: 1.45;
    padding-top: 0.2rem;
}

.sg-card__note {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0;
    padding: 0.55rem 0.65rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: color-mix(in srgb, var(--sg-gold) 75%, #fff);
    background: rgba(232, 184, 74, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(232, 184, 74, 0.15);
}

.sg-card__note-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
    opacity: 0.85;
    font-size: 0.75rem;
}

.sg-card--risk .sg-card__note {
    color: #f0c0c0;
    background: rgba(220, 80, 80, 0.08);
    border-color: rgba(220, 100, 100, 0.2);
}

.sg-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.65rem;
}

.sg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: var(--sg-touch);
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    color: #fff !important;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--sg-accent) 95%, #fff 5%),
        color-mix(in srgb, var(--sg-accent) 75%, #000 25%)
    );
    border: 1px solid color-mix(in srgb, var(--sg-accent) 50%, transparent);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--sg-accent) 25%, transparent);
    cursor: pointer;
    transition: filter var(--sg-transition), transform var(--sg-transition);
}

.sg-btn:focus-visible {
    outline: 2px solid var(--sg-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
    .sg-btn:hover {
        filter: brightness(1.1);
        transform: translateY(-1px);
    }
}

.sg-btn-sm {
    min-height: 38px;
    padding: 0.38rem 0.85rem;
    font-size: 0.8rem;
}

.sg-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--sg-border);
    box-shadow: none;
    color: var(--sg-text) !important;
}

.sg-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    filter: none;
}

.sg-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #444 !important;
    border-color: #555 !important;
    box-shadow: none;
    transform: none !important;
}

.sg-btn-gold {
    background: linear-gradient(145deg, #d4a84a, #a07830);
    border-color: var(--sg-gold-dim);
    box-shadow: 0 4px 14px rgba(232, 184, 74, 0.2);
}

.sg-alert-panel {
    position: relative;
    border-radius: var(--sg-radius-sm);
    overflow: hidden;
    margin-bottom: 2rem;
    padding: 1rem 1.15rem 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(120, 40, 40, 0.2) 0%, rgba(18, 22, 30, 0.92) 100%);
    border: 1px solid rgba(220, 100, 100, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.sg-alert-panel__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #e07070, #a04040);
}

.sg-alert-panel__inner {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.sg-alert-panel__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(220, 80, 80, 0.2);
    color: #f0a0a0;
    font-size: 1rem;
}

.sg-alert-panel h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: #f5b0b0;
}

.sg-alert-panel p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--sg-text-muted);
    line-height: 1.5;
}

.sg-faq-section .sg-tier-head {
    margin-bottom: 1rem;
}

.sg-accordion details {
    border-radius: var(--sg-radius-sm);
    margin-bottom: 0.55rem;
    background: var(--sg-surface-elevated);
    border: 1px solid var(--sg-border);
    overflow: hidden;
    transition: border-color var(--sg-transition);
}

.sg-accordion details[open] {
    border-color: color-mix(in srgb, var(--sg-accent) 35%, var(--sg-border));
}

.sg-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    color: #f4f6f8;
    list-style: none;
    user-select: none;
}

.sg-accordion summary::-webkit-details-marker {
    display: none;
}

.sg-accordion summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--sg-text-muted);
    transition: transform var(--sg-transition);
    flex-shrink: 0;
}

.sg-accordion details[open] summary::after {
    transform: rotate(180deg);
    color: var(--sg-accent);
}

.sg-accordion summary:focus-visible {
    outline: 2px solid var(--sg-accent);
    outline-offset: -2px;
}

.sg-accordion details p {
    margin: 0;
    padding: 0.75rem 1rem 1rem;
    font-size: 0.88rem;
    color: var(--sg-text-muted);
    line-height: 1.55;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (prefers-reduced-motion: reduce) {
    .sg-card,
    .sg-btn,
    .sg-accordion summary::after {
        transition: none;
    }
    .sg-card:hover {
        transform: none;
    }
}
