/* Lightning Spor — form + ortak */

:root {
    --c-primary: #2ee6a8;
    --c-secondary: #5dffc8;
    --c-bg: #0a1a14;
    --c-panel: color-mix(in srgb, #0d2e22 78%, transparent);
    --c-danger: #ff7b72;
    --c-warn: #f0c14b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 0;
    background-color: var(--c-bg);
    background-image:
        radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--c-primary) 15%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--c-primary) 12%, transparent) 0%, transparent 50%);
    color: #fff;
    font-family: Inter, system-ui, sans-serif;
}

html.embed body,
body.embed {
    min-height: 0;
    background: var(--c-bg);
}

.ls-wrap {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 0;
}

.font-headline { font-family: 'Plus Jakarta Sans', Inter, sans-serif; }
.text-primary { color: var(--c-primary) !important; }
.text-secondary { color: var(--c-secondary) !important; }

.border-glow {
    box-shadow: 0 0 15px color-mix(in srgb, var(--c-primary) 20%, transparent);
    border: 1px solid color-mix(in srgb, var(--c-primary) 30%, transparent);
}

.cta-gradient {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
    color: #0a1a14;
}

.glass-panel {
    background: var(--c-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid color-mix(in srgb, var(--c-primary) 20%, transparent);
}

.ls-logo {
    max-height: 64px;
    width: auto;
    display: block;
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 0 15px rgba(46, 230, 168, 0.4));
}

.ls-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 5vw, 2rem);
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem;
    text-align: center;
}

.ls-desc {
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 1.5rem;
}

.ls-field {
    margin-bottom: 1.1rem;
}

.ls-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}

.ls-label {
    font-weight: 600;
    font-size: 0.92rem;
}

.ls-help-link {
    background: none;
    border: none;
    color: var(--c-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.ls-help-link:hover { color: #fff; }

.ls-input {
    width: 100%;
    background: #0a241b;
    border: 1px solid rgba(46, 230, 168, 0.28);
    border-radius: 0.9rem;
    padding: 0.95rem 1rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    outline: none;
    color-scheme: dark;
    accent-color: var(--c-primary);
    caret-color: var(--c-primary);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ls-input::placeholder {
    color: rgba(255, 255, 255, 0.32);
    font-weight: 500;
}

.ls-input:hover {
    border-color: rgba(46, 230, 168, 0.45);
}

.ls-input:focus {
    border-color: var(--c-primary);
    background: #0c2c21;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 25%, transparent);
}

.ls-input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ls-btn {
    width: 100%;
    border: none;
    border-radius: 9999px;
    padding: 1rem 1.25rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: transform 0.15s, opacity 0.15s;
    box-shadow: 0 0 20px rgba(46, 230, 168, 0.3);
}

.ls-btn:hover:not(:disabled) { transform: scale(1.02); }
.ls-btn:active:not(:disabled) { transform: scale(0.97); }
.ls-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.ls-alert {
    display: none;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.ls-alert.show { display: block; }
.ls-alert.error {
    background: rgba(255, 123, 114, 0.12);
    border: 1px solid rgba(255, 123, 114, 0.45);
    color: #ffb4ab;
}
.ls-alert.info {
    background: rgba(46, 230, 168, 0.1);
    border: 1px solid rgba(46, 230, 168, 0.35);
    color: var(--c-secondary);
}

.ls-success {
    text-align: center;
    padding: 0.5rem 0.25rem;
}

.ls-success h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.6rem;
    margin: 0 0 0.75rem;
}

.ls-success p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0.35rem 0;
}

.ls-goal-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    padding: 0.65rem 1.1rem;
    border-radius: 9999px;
    background: rgba(46, 230, 168, 0.12);
    border: 1px solid rgba(46, 230, 168, 0.35);
    color: var(--c-secondary);
    font-weight: 700;
}

.ls-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}

.ls-modal.show { display: flex; }

.ls-modal-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: auto;
    border-radius: 1.25rem;
    padding: 1.5rem;
}

.ls-modal-help {
    max-width: 560px;
}

.ls-help-intro {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 1.1rem;
}

.ls-help-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.ls-help-steps > li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.ls-help-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    color: #0a1a14;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.ls-help-step-body {
    flex: 1;
    min-width: 0;
}

.ls-help-step-body p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.ls-help-step-body .ls-coupon-img {
    margin: 0.75rem 0 0;
    border: 1px solid color-mix(in srgb, var(--c-primary) 25%, transparent);
}

.ls-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: #a5a5a5;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.4rem;
}

.ls-modal-close:hover { color: #fff; }

.ls-coupon-img {
    width: 100%;
    border-radius: 0.85rem;
    margin: 1rem 0;
    display: block;
}

.ls-status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.ls-status-badge.active {
    background: rgba(46, 230, 168, 0.15);
    color: var(--c-primary);
}
.ls-status-badge.closed {
    background: rgba(255, 123, 114, 0.15);
    color: #ffb4ab;
}
.ls-status-badge.none {
    background: rgba(255, 255, 255, 0.08);
    color: #a5a5a5;
}

.ls-hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.hidden {
    display: none !important;
}
