/* ═══════════════════════════════════════════════════════
   ParkNGo Lah — Minimal, clean design
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #fafafa;
    color: #222;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
    word-break: break-word;
}

a { color: inherit; text-decoration: none; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }

/* ── Container ─────────────────────────────────────── */
.container {
    max-width: 440px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 48px 0 36px;
}
.hero .logo {
    font-size: 48px;
    margin-bottom: 16px;
}
.hero h1 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.3px;
}
.tagline {
    color: #777;
    font-size: 15px;
    margin-top: 6px;
    line-height: 1.5;
}
.tagline strong {
    color: #2563eb;
    font-weight: 600;
}

/* ── Cards ─────────────────────────────────────────── */
.card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px 22px;
    margin: 16px 0;
}
.card h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #111;
}
.card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* ── Forms ─────────────────────────────────────────── */
label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 6px;
    color: #555;
}

input[type="text"] {
    width: 100%;
    padding: 13px 16px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: border-color 0.15s;
    background: #fafafa;
    color: #111;
}
input[type="text"]:focus {
    border-color: #2563eb;
    outline: none;
    background: #fff;
}
.hint {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
    margin-bottom: 18px;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
    text-decoration: none;
}
.btn:active { opacity: 0.8; }

.btn-primary {
    background: #2563eb;
    color: #fff;
}
.btn-primary:hover { background: #1d4ed8; }

.btn-outline {
    background: #fff;
    color: #222;
    border: 1px solid #ddd;
    font-weight: 500;
}
.btn-outline:hover { background: #eff6ff; border-color: #2563eb; color: #2563eb; }

.btn-telegram {
    background: #222;
    color: #fff;
}
.btn-telegram:hover { background: #444; }

.btn-outline.danger {
    border-color: #fcc;
    color: #c00;
}
.btn-outline.danger:hover { background: #fff5f5; }

/* ── QR Code ────────────────────────────────────────── */
.qr-wrapper {
    display: flex;
    justify-content: center;
    margin: 18px 0;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
}
.qr-wrapper img {
    border-radius: 6px;
}
.qr-url {
    font-size: 11px;
    color: #aaa;
    word-break: break-all;
    margin: 10px 0 6px;
    text-align: center;
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}

.actions {
    display: flex;
    gap: 8px;
    margin: 18px 0;
}
.actions .btn { flex: 1; }

/* ── Steps Section ─────────────────────────────────── */
.steps { margin: 12px 0 20px; }
.steps h2 {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.step-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
}
.step-num {
    width: 28px;
    height: 28px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}
.step-body { font-size: 14px; color: #444; }

/* ── Info Section ──────────────────────────────────── */
.info-section { margin: 16px 0; }
.info-section h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #111;
}
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.feature-list li {
    padding: 11px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    color: #666;
}
.feature-list li:last-child { border-bottom: none; }

/* ── Footer ────────────────────────────────────────── */
footer {
    text-align: center;
    padding: 40px 0 16px;
    color: #bbb;
    font-size: 13px;
}
footer .small { font-size: 11px; margin-top: 4px; color: #ccc; }

/* ── Utility ───────────────────────────────────────── */
.small { font-size: 13px; color: #888; line-height: 1.5; }
.success { color: #090; }

/* ── Push Setup ────────────────────────────────────── */
.push-setup {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 22px;
    margin-top: 20px;
    text-align: center;
}
.push-setup h3 { font-size: 15px; margin-bottom: 8px; color: #111; }
.push-setup p { font-size: 13px; color: #777; margin-bottom: 14px; }
.warn-box {
    background: #fff8f0;
    border: 1px solid #ffe0b0;
    color: #850;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* ── Dashboard Link ────────────────────────────────── */
.dashboard-link-box {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 18px;
    margin: 18px 0;
    text-align: center;
}
.dashboard-link-box p { margin-bottom: 10px; font-size: 14px; color: #666; }

/* ── Popup Modal ──────────────────────────────────── */
.popup-overlay {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center; justify-content: center;
    padding: 20px;
}
.popup-overlay.active { display: flex; }
.popup-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: popIn 0.25s ease;
}
.popup-close {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none; font-size: 24px;
    cursor: pointer; color: #aaa; line-height: 1;
}
.popup-close:hover { color: #111; }
.popup-icon { font-size: 48px; margin-bottom: 12px; }
.popup-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #111; }
.popup-box p { font-size: 14px; color: #555; line-height: 1.6; }
@keyframes popIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* ── Install Banner ───────────────────────────────── */
.install-banner {
    position: fixed; bottom: 16px; left: 16px; right: 16px;
    background: #fff; border: 1px solid #e0e0e0;
    border-radius: 14px; padding: 14px 18px; z-index: 900;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    animation: slideUp 0.3s ease;
}
.install-banner-inner {
    display: flex; align-items: center; gap: 12px; justify-content: space-between;
}
.install-banner-inner span { font-size: 14px; font-weight: 500; color: #333; }
.install-dismiss {
    position: absolute; top: 4px; right: 10px;
    background: none; border: none; font-size: 18px; color: #aaa; cursor: pointer;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── Mobile ────────────────────────────────────────── */
@media (max-width: 480px) {
    .container { padding: 20px 14px 48px; }
    .hero { padding: 32px 0 24px; }
    .hero h1 { font-size: 24px; }
    .hero .logo { font-size: 40px; }
    .card { padding: 20px 16px; border-radius: 10px; }
    .tagline { font-size: 14px; }
    
    /* Larger touch targets */
    .btn { padding: 14px 18px; font-size: 15px; min-height: 48px; }
    input[type="text"] { padding: 14px 15px; font-size: 16px; }
    
    /* Full-width on small screens */
    .popup-box { margin: 0 10px; padding: 24px 18px; }
    .popup-close { top: 8px; right: 10px; font-size: 28px; }
    
    /* Chat fixes */
    .chat-messages { max-height: 180px; }
    .quick-msgs { gap: 4px; padding: 10px; }
    .quick-msg-btn { font-size: 12px; padding: 7px 10px; }
    
    /* Prevent horizontal scroll */
    .notify-page { padding: 20px 14px; overflow-x: hidden; }
    .car-plate-display { font-size: 24px !important; padding: 12px 24px !important; }
}
