/**
 * GeneratorQR — UI tip aplicație nativă (mobile-first)
 */

:root {
    --font-display: "Manrope", "Segoe UI", sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
    --app-bg: #eef2f7;
    --app-surface: #ffffff;
    --app-ink: #122033;
    --app-muted: #5b6b7c;
    --app-primary: #0a5cad;
    --app-primary-soft: #e7f1fb;
    --app-accent: #0f8a5f;
    --app-danger: #c62828;
    --app-radius: 18px;
    --app-radius-sm: 12px;
    --app-shadow: 0 10px 28px rgba(18, 32, 51, 0.08);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --topbar-h: 56px;
    --tabbar-h: 64px;
    --touch: 48px;
}

[data-theme="dark"] {
    --app-bg: #0b1220;
    --app-surface: #152033;
    --app-ink: #e8eef6;
    --app-muted: #9aabc0;
    --app-primary: #4da3ff;
    --app-primary-soft: #1a2d45;
    --app-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* Base app shell */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.app-shell {
    font-family: var(--font-body);
    color: var(--app-ink);
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(10, 92, 173, 0.12), transparent 55%),
        radial-gradient(900px 400px at 100% 0%, rgba(15, 138, 95, 0.08), transparent 50%),
        var(--app-bg);
    min-height: 100dvh;
    padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, .app-brand strong, .card h2 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* Top bar tip app */
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--app-primary) 92%, #000 8%);
    color: #fff;
    padding: calc(0.55rem + var(--safe-top)) max(0.85rem, var(--safe-right)) 0.55rem max(0.85rem, var(--safe-left));
    box-shadow: 0 4px 18px rgba(10, 92, 173, 0.25);
    backdrop-filter: blur(10px);
}

.app-topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: var(--topbar-h);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff !important;
    text-decoration: none !important;
    min-width: 0;
}

.app-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.app-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.app-brand-text strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.app-tagline {
    font-size: 0.72rem;
    opacity: 0.85;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-nav {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.header-nav a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.header-nav a.is-active,
.header-nav a:hover {
    background: rgba(255, 255, 255, 0.18);
}

.app-topbar .theme-switch-wrapper {
    position: static;
    margin: 0;
}

.app-topbar .theme-switch-label {
    display: none;
}

/* Main content */
.app-main {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem max(0.85rem, var(--safe-left)) 1.25rem max(0.85rem, var(--safe-right));
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-main > .card,
.app-main > .contact-card,
.app-main > .dashboard-container,
.app-main > .dash,
.app-main > .pro-pricing {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
}

/* Cards / forms — touch friendly */
.app-shell .card {
    background: var(--app-surface);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    padding: 1.15rem 1.1rem 1.35rem;
    border: 1px solid color-mix(in srgb, var(--app-ink) 6%, transparent);
}

.app-shell .card:hover {
    transform: none;
}

.app-shell .card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--app-ink);
}

.app-shell .card h2::after {
    width: 36px;
    height: 3px;
    border-radius: 99px;
    background: var(--app-primary);
}

.app-shell input,
.app-shell select,
.app-shell textarea,
.app-shell .form-control {
    min-height: var(--touch);
    font-size: 16px; /* previne zoom iOS */
    border-radius: var(--app-radius-sm);
    border: 1px solid color-mix(in srgb, var(--app-ink) 14%, transparent);
    background: var(--app-surface);
    color: var(--app-ink);
    padding: 0.75rem 0.9rem;
    width: 100%;
}

.app-shell input[type="color"] {
    min-height: 44px;
    padding: 0.25rem;
}

.app-shell .btn,
.app-shell button.btn,
.app-shell .pro-button,
.app-shell .btn-primary,
.app-shell .btn-secondary,
.app-shell .btn-call,
.app-shell .btn-whatsapp,
.app-shell .btn-save,
.app-shell .btn-share,
.app-shell .btn-home,
.app-shell .btn-promo {
    min-height: var(--touch);
    border-radius: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.app-shell .btn:active,
.app-shell button:active,
.app-shell .app-tab:active {
    transform: scale(0.97);
}

.app-shell .btn-primary,
.app-shell button[type="submit"].btn-primary,
.app-shell form button[type="submit"] {
    background: var(--app-primary);
    color: #fff;
    width: 100%;
}

.app-shell .btn-secondary {
    background: var(--app-primary-soft);
    color: var(--app-primary);
}

.app-shell .options-toggle .btn-secondary,
.app-shell #toggle-options {
    width: 100%;
}

.app-shell .form-row {
    flex-direction: column;
    gap: 0.85rem;
}

.app-shell .action-buttons,
.app-shell .actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.app-shell .qr-result,
.app-shell #qrcode,
.app-shell #preview-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-shell #qrcode canvas,
.app-shell #preview-qr canvas,
.app-shell #qrcode img,
.app-shell #preview-qr img {
    max-width: min(280px, 78vw) !important;
    height: auto !important;
    border-radius: 12px;
}

/* Contact landing — full mobile */
.app-shell .contact-card {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: var(--app-radius);
    overflow: hidden;
    box-shadow: var(--app-shadow);
    background: var(--app-surface);
}

.app-shell .contact-header {
    padding: 1.5rem 1.1rem 1.2rem;
}

.app-shell .quick-actions {
    gap: 0.85rem;
    flex-wrap: wrap;
}

.app-shell .quick-action-btn {
    width: 52px;
    height: 52px;
}

.app-shell .whatsapp-message-box {
    border-radius: var(--app-radius-sm);
}

.app-shell .promo-banner {
    border-radius: var(--app-radius);
    margin-top: 0.5rem;
}

.app-shell .pro-section {
    border-radius: var(--app-radius);
    padding: 1.25rem 1rem;
}

.app-shell .pro-button {
    width: 100%;
    display: inline-flex !important;
}

.app-shell .stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.app-shell .benefit-item {
    align-items: flex-start;
}

.app-shell .qr-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.9rem;
}

.app-shell .dashboard-header h1 {
    font-size: 1.35rem;
}

.app-shell .user-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.app-shell .user-quick-actions .btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.65rem 0.5rem;
}

.app-shell .dashboard-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* ========== Dashboard clar ========== */
.dash {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.dash-hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem 1.1rem;
    border-radius: var(--app-radius);
    background: linear-gradient(145deg, var(--app-primary) 0%, color-mix(in srgb, var(--app-primary) 70%, #062a4d) 100%);
    color: #fff;
    box-shadow: var(--app-shadow);
}

.dash-eyebrow {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.dash-hero h1 {
    margin: 0.2rem 0 0.35rem;
    font-size: 1.45rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: #fff;
}

.dash-sub {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    opacity: 0.92;
    max-width: 36ch;
}

.dash-plan {
    align-self: flex-start;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dash-plan-label {
    font-size: 0.72rem;
    opacity: 0.85;
    width: 100%;
}

.dash-plan strong {
    font-size: 1.05rem;
    font-family: var(--font-display);
}

.dash-plan-link,
.dash-plan-ok {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: underline !important;
}

.dash-plan-ok {
    text-decoration: none !important;
    opacity: 0.95;
}

.dash-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.dash-cta-primary,
.dash-cta-secondary {
    min-height: var(--touch);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none !important;
}

.dash-cta-primary {
    background: var(--app-primary);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(10, 92, 173, 0.25);
}

.dash-cta-secondary {
    background: var(--app-surface);
    color: var(--app-ink) !important;
    border: 1px solid color-mix(in srgb, var(--app-ink) 10%, transparent);
}

.dash-cta-inline {
    width: auto;
    align-self: flex-start;
    padding-inline: 1.1rem;
}

.dash-kpis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.dash-kpi {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: var(--app-radius);
    background: var(--app-surface);
    border: 1px solid color-mix(in srgb, var(--app-ink) 7%, transparent);
    box-shadow: var(--app-shadow);
}

.dash-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    flex-shrink: 0;
    font-size: 1.1rem;
}

.dash-kpi-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--app-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-kpi-value {
    margin: 0.15rem 0;
    font-size: 1.65rem;
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    color: var(--app-ink);
}

.dash-kpi-value--sm {
    font-size: 1.15rem;
}

.dash-kpi-hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--app-muted);
}

.dash-panel {
    background: var(--app-surface);
    border-radius: var(--app-radius);
    border: 1px solid color-mix(in srgb, var(--app-ink) 7%, transparent);
    box-shadow: var(--app-shadow);
    padding: 1rem 1rem 0.35rem;
}

.dash-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.dash-panel-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-family: var(--font-display);
    color: var(--app-ink);
}

.dash-panel-head a {
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
}

.dash-empty {
    text-align: center;
    padding: 1.5rem 0.75rem 1.75rem;
}

.dash-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.85rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    font-size: 1.5rem;
}

.dash-empty h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

.dash-empty p {
    margin: 0 0 1rem;
    color: var(--app-muted);
    font-size: 0.95rem;
}

.dash-qr-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dash-qr-item {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.9rem 0;
    border-top: 1px solid color-mix(in srgb, var(--app-ink) 8%, transparent);
}

.dash-qr-item:first-child {
    border-top: none;
}

.dash-qr-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--app-primary);
    background: var(--app-primary-soft);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.25rem;
}

.dash-qr-title {
    display: block;
    font-size: 1.02rem;
    color: var(--app-ink);
}

.dash-qr-meta {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: var(--app-muted);
}

.dash-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dash-link {
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
    color: var(--app-primary) !important;
}

.dash-devices {
    list-style: none;
    margin: 0;
    padding: 0 0 0.85rem;
}

.dash-devices li {
    margin-bottom: 0.75rem;
}

.dash-device-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.dash-device-bar {
    height: 8px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--app-ink) 8%, transparent);
    overflow: hidden;
}

.dash-device-bar > span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--app-primary);
}

.dash-upsell {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.1rem;
    border-radius: var(--app-radius);
    background: color-mix(in srgb, #f0c14b 18%, var(--app-surface));
    border: 1px solid color-mix(in srgb, #b8860b 25%, transparent);
}

.dash-upsell h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.dash-upsell p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.92rem;
}

.dash-account-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.35rem 0 0.5rem;
}

.dash-account-links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    background: var(--app-surface);
    border: 1px solid color-mix(in srgb, var(--app-ink) 7%, transparent);
    color: var(--app-ink) !important;
    text-decoration: none !important;
    font-weight: 600;
}

.dash-account-links a.is-danger {
    color: var(--app-danger) !important;
}

.dash-account-links a i {
    width: 1.25rem;
    text-align: center;
    color: var(--app-primary);
}

.dash-account-links a.is-danger i {
    color: var(--app-danger);
}

@media (min-width: 640px) {
    .dash-hero {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .dash-cta {
        grid-template-columns: 1.4fr 1fr;
    }

    .dash-kpis {
        grid-template-columns: repeat(3, 1fr);
    }

    .dash-qr-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .dash-upsell {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Bottom tab bar */
.app-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    min-height: calc(var(--tabbar-h) + var(--safe-bottom));
    padding: 0.35rem 0.25rem calc(0.35rem + var(--safe-bottom));
    background: color-mix(in srgb, var(--app-surface) 92%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--app-ink) 8%, transparent);
    box-shadow: 0 -8px 24px rgba(18, 32, 51, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.app-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 52px;
    color: var(--app-muted) !important;
    text-decoration: none !important;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font-display);
    border-radius: 14px;
    margin: 0 0.15rem;
}

.app-tab i {
    font-size: 1.2rem;
}

.app-tab.is-active {
    color: var(--app-primary) !important;
    background: var(--app-primary-soft);
}

.app-tab-pro.is-active {
    color: #b8860b !important;
    background: color-mix(in srgb, #f0c14b 22%, var(--app-surface));
}

/* Footer: contrast clar pe toate temele (nu moșteni text alb din style.css) */
.site-footer {
    margin-top: 2rem;
    padding: 1.75rem 1.1rem calc(1.25rem + var(--safe-bottom));
    background: var(--app-ink) !important;
    color: #e8eef6 !important;
    font-size: 0.92rem;
    border-top: none;
}

.site-footer .footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.site-footer .footer-section h3 {
    color: #ffffff !important;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}

.site-footer .footer-section h3::after {
    background-color: rgba(255, 255, 255, 0.35) !important;
}

.site-footer .footer-section p,
.site-footer .copyright,
.site-footer .copyright p {
    color: rgba(232, 238, 246, 0.85) !important;
    opacity: 1 !important;
}

.site-footer a,
.site-footer .footer-section ul li a,
.site-footer .social-links a {
    color: #ffffff !important;
    opacity: 1 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.35);
}

.site-footer a:hover,
.site-footer .footer-section ul li a:hover {
    color: #ffffff !important;
    text-decoration-color: #ffffff;
}

.site-footer .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-section ul li {
    margin-bottom: 0.45rem;
}

.site-footer .copyright {
    max-width: 1100px;
    margin: 1.25rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.85rem;
}

.desktop-only {
    display: none !important;
}

/* ——— Pricing page ——— */
.app-main > .pricing {
    flex: 1 1 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.pricing {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0.25rem 0 1.5rem;
}

.pricing-hero {
    text-align: left;
    margin-bottom: 1.25rem;
}

.pricing-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--app-ink);
    margin: 0 0 0.15rem;
    letter-spacing: -0.03em;
}

.pricing-hero h1 {
    font-size: 2.4rem;
    line-height: 1;
    margin: 0 0 0.5rem;
    color: var(--app-primary);
}

.pricing-lead {
    margin: 0;
    color: var(--app-muted);
    font-size: 1.05rem;
    line-height: 1.45;
}

.pricing-msg {
    padding: 0.75rem 1rem;
    border-radius: var(--app-radius-sm);
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.pricing-msg.is-ok {
    background: color-mix(in srgb, var(--app-accent) 12%, var(--app-surface));
    color: var(--app-ink);
}

.pricing-msg.is-err {
    background: color-mix(in srgb, var(--app-danger) 12%, var(--app-surface));
    color: var(--app-ink);
}

.pricing-note {
    margin: 0 0 1rem;
    padding: 0.65rem 0;
    color: var(--app-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid color-mix(in srgb, var(--app-ink) 10%, transparent);
}

.pricing-status {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.pricing-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.pricing-perks li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.35rem;
    color: var(--app-ink);
    font-size: 0.98rem;
}

.pricing-perks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--app-primary);
}

.pricing-block {
    margin-bottom: 1.5rem;
}

.pricing-block h2 {
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
    color: var(--app-ink);
    font-weight: 700;
}

.pricing-block-sub {
    margin: -0.35rem 0 1rem;
    color: var(--app-muted);
    font-size: 0.95rem;
}

.pricing-plans {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pricing-plan {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "radio name price" "radio days days";
    gap: 0.15rem 0.75rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border: 1.5px solid color-mix(in srgb, var(--app-ink) 14%, transparent);
    border-radius: var(--app-radius-sm);
    background: var(--app-surface);
    cursor: pointer;
}

.pricing-plan input {
    grid-area: radio;
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--app-primary);
}

.pricing-plan-name {
    grid-area: name;
    font-weight: 700;
    color: var(--app-ink);
}

.pricing-plan-price {
    grid-area: price;
    font-weight: 700;
    color: var(--app-ink);
    text-align: right;
}

.pricing-plan-days {
    grid-area: days;
    font-size: 0.85rem;
    color: var(--app-muted);
}

.pricing-plan.is-on {
    border-color: var(--app-primary);
    box-shadow: inset 3px 0 0 var(--app-primary);
}

.pricing-pay {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pricing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.pricing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch);
    padding: 0.7rem 1.15rem;
    border-radius: var(--app-radius-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-align: center;
}

.pricing-btn-full {
    width: 100%;
}

.pricing-btn-primary {
    background: var(--app-primary);
    color: #fff !important;
}

.pricing-btn-primary:hover {
    filter: brightness(1.05);
    color: #fff !important;
}

.pricing-btn-outline {
    background: var(--app-surface);
    color: var(--app-ink) !important;
    border-color: color-mix(in srgb, var(--app-ink) 18%, transparent);
}

.pricing-btn-ghost {
    background: transparent;
    color: var(--app-primary) !important;
    border-color: color-mix(in srgb, var(--app-primary) 35%, transparent);
}

.pricing-hint {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: var(--app-muted);
    text-align: center;
}

.pricing-hint a {
    color: var(--app-primary);
}

/* Modals pe ecran mic */
.app-shell .modal-content {
    width: min(96vw, 480px);
    max-height: 85dvh;
    overflow: auto;
    border-radius: var(--app-radius);
    margin: 8vh auto;
}

/* Landscape phone */
@media (max-height: 480px) and (orientation: landscape) {
    .app-tagline {
        display: none;
    }
    body.app-shell {
        padding-bottom: calc(52px + var(--safe-bottom));
    }
    .app-tab span {
        display: none;
    }
}

/* Tablet+ desktop */
@media (min-width: 768px) {
    body.app-shell {
        padding-bottom: 0;
    }

    .app-tabbar {
        display: none;
    }

    .desktop-only {
        display: flex !important;
    }

    .app-main {
        max-width: 1100px;
        padding: 1.75rem 1.25rem 2.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
    }

    .app-main > .card {
        max-width: 560px;
        flex: 1 1 420px;
        padding: 1.75rem;
    }

    .app-shell .actions {
        grid-template-columns: 1fr 1fr !important;
    }

    .app-shell .form-row {
        flex-direction: row;
    }

    .app-shell .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .app-shell .user-quick-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .app-shell .user-quick-actions .btn {
        width: auto;
    }

    .site-footer {
        margin-top: 2.5rem;
        padding: 2.25rem 1.5rem 1.75rem;
    }

    .site-footer .footer-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
        max-width: 1100px;
    }

    .pricing {
        max-width: 480px;
        padding-top: 0.5rem;
    }

    .pricing-hero h1 {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .app-brand-text strong {
        font-size: 1.15rem;
    }
    .app-topbar-inner {
        min-height: 64px;
    }
}

body.no-tabbar {
    padding-bottom: calc(12px + var(--safe-bottom));
}

body.no-tabbar .app-tabbar {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-main > .admin-page,
.app-main > .dash {
    width: 100%;
    max-width: none;
}

.admin-plan-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.admin-plan-form .form-control,
.admin-plan-form select {
    flex: 1 1 140px;
    min-width: 120px;
    min-height: 44px;
}

.admin-plan-form .btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 110px;
    padding: 0.65rem 1rem;
}

.dash-qr-type.is-pro {
    color: #8a6d00;
    background: color-mix(in srgb, #f0c14b 28%, var(--app-surface));
}

.migrate-log {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.migrate-log li {
    padding: 0.55rem 0;
    border-top: 1px solid color-mix(in srgb, var(--app-ink) 8%, transparent);
    font-size: 0.9rem;
    word-break: break-word;
}

.migrate-ok { color: var(--app-accent); }
.migrate-skip { color: var(--app-muted); }
.migrate-err { color: var(--app-danger); }

.admin-login-form .btn-primary {
    width: 100%;
}

@media (min-width: 640px) {
    .admin-user-list .dash-qr-item {
        align-items: flex-start;
    }
    .admin-plan-form {
        width: auto;
        max-width: 280px;
        flex-direction: column;
        align-items: stretch;
    }
    .admin-plan-form .btn {
        width: 100%;
    }
}

.app-topbar.is-scrolled {
    box-shadow: 0 8px 24px rgba(10, 92, 173, 0.35);
}

body.keyboard-open {
    padding-bottom: 12px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
