/* ═══════════════════════════════════════════════════════════
   LakkaPoints – Kanta-asiakaspaneelin tyylit
   Font: Lato (pakollinen)
   ═══════════════════════════════════════════════════════════ */

:root {
    --lp-primary: #e63946;
    --lp-primary-dark: #c1121f;
    --lp-bg: #fafafa;
    --lp-card-bg: #ffffff;
    --lp-text: #1a1a2e;
    --lp-text-muted: #6b7280;
    --lp-border: #e5e7eb;
    --lp-success: #059669;
    --lp-radius: 12px;
    --lp-shadow: 0 4px 24px rgba(26, 26, 46, 0.08);
    --lp-shadow-lg: 0 8px 40px rgba(26, 26, 46, 0.12);
}

/* ── Base container ────────────────────────────────────────── */
.lp-dashboard {
    font-family: 'Lato', sans-serif;
    max-width: 440px;
    margin: 2rem auto;
    background: var(--lp-bg);
    border-radius: var(--lp-radius);
    border: 1px solid var(--lp-border);
    overflow: hidden;
    color: var(--lp-text);
    box-shadow: var(--lp-shadow);
}

.lp-dashboard *,
.lp-dashboard *::before,
.lp-dashboard *::after {
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

.lp-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ── Header ────────────────────────────────────────────────── */
.lp-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 24px 16px;
    background: var(--lp-card-bg);
    border-bottom: 1px solid var(--lp-border);
}

.lp-logo-mark {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--lp-primary);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

.lp-header-text {
    flex: 1;
    min-width: 0;
}

.lp-title {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 20px;
    margin: 0 0 2px;
    color: var(--lp-text);
    letter-spacing: -0.3px;
}

.lp-greeting {
    font-size: 14px;
    color: var(--lp-text-muted);
    margin: 0;
    font-weight: 400;
}

/* ── Points card ───────────────────────────────────────────── */
.lp-points-card {
    margin: 20px;
    padding: 28px 24px;
    background: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-primary-dark) 100%);
    border-radius: var(--lp-radius);
    color: #fff;
    text-align: center;
    box-shadow: var(--lp-shadow-lg);
    position: relative;
    overflow: hidden;
}

.lp-points-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.lp-points-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.85;
    margin-bottom: 6px;
}

.lp-points-value {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.lp-points-euro {
    font-size: 15px;
    font-weight: 400;
    opacity: 0.8;
}

.lp-first-purchase-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
}

/* ── QR section ────────────────────────────────────────────── */
.lp-qr-section {
    padding: 24px;
    text-align: center;
    background: var(--lp-card-bg);
    margin: 0 20px 20px;
    border-radius: var(--lp-radius);
    border: 1px solid var(--lp-border);
}

.lp-section-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 4px;
    color: var(--lp-text);
}

.lp-qr-instructions {
    font-size: 13px;
    color: var(--lp-text-muted);
    margin: 0 0 18px;
    line-height: 1.5;
}

.lp-qr-container {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid var(--lp-border);
}

.lp-qr-container canvas {
    display: block;
}

.lp-customer-id {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--lp-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Lato', monospace;
}

/* ── Footer ────────────────────────────────────────────────── */
.lp-footer {
    padding: 16px 24px;
    background: var(--lp-card-bg);
    border-top: 1px solid var(--lp-border);
    text-align: center;
}

.lp-footer-text {
    font-size: 12px;
    color: var(--lp-text-muted);
    margin: 0;
}

/* ── Login prompt / Registration ───────────────────────────── */
.lp-login-prompt,
.lp-register,
.lp-error,
.lp-success {
    text-align: center;
    padding: 40px 24px;
}

.lp-login-prompt .lp-logo-mark,
.lp-register .lp-logo-mark,
.lp-error .lp-logo-mark,
.lp-success .lp-logo-mark {
    margin: 0 auto 16px;
}

.lp-login-text,
.lp-register-text,
.lp-error-text,
.lp-success-text {
    font-size: 15px;
    color: var(--lp-text-muted);
    margin: 0 0 24px;
    line-height: 1.6;
}

.lp-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--lp-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.lp-btn:hover {
    background: var(--lp-primary-dark);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.lp-btn:active {
    transform: translateY(0);
}

/* ── Registration form ─────────────────────────────────────── */
.lp-register-form {
    max-width: 320px;
    margin: 0 auto;
    text-align: left;
}

.lp-field {
    margin-bottom: 16px;
}

.lp-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--lp-text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lp-field input[type="email"],
.lp-field input[type="tel"],
.lp-field input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--lp-border);
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--lp-text);
    background: #fff;
    transition: border-color 0.2s;
}

.lp-field input:focus {
    outline: none;
    border-color: var(--lp-primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.lp-field input[readonly] {
    background: #f3f4f6;
    color: var(--lp-text-muted);
}

.lp-register-form .lp-btn {
    width: 100%;
    margin-top: 8px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
    .lp-dashboard {
        margin: 1rem;
        border-radius: 8px;
    }

    .lp-points-value {
        font-size: 42px;
    }
}
