/* Mavlo – hlavni styly (generovano z odladeneho prototypu) */
body{margin:0;background:#FCFCFA;}
.hp{position:absolute!important;left:-9999px!important;opacity:0;height:0;overflow:hidden;}
.mavlo {
        --green: #1F6E54;
        --green-dark: #14503C;
        --green-soft: #E6F1EC;
        --ink: #1C2622;
        --muted: #66736D;
        --paper: #FCFCFA;
        --line: #E3E7E4;
        --amber-bg: #FBF3E2; --amber-tx: #8A6210;
        --red-bg: #FBEAEA; --red-tx: #A03434;
        --blue-bg: #E8F0FA; --blue-tx: #2C5C9E;
        font-family: 'Inter', system-ui, sans-serif;
        color: var(--ink); background: var(--paper);
        min-height: 100vh; display: flex; flex-direction: column;
        line-height: 1.6;
      }
      .mavlo * { box-sizing: border-box; }
      main { flex: 1; }
      h1, h2, h3 { font-family: 'Sora', sans-serif; line-height: 1.2; color: var(--ink); }
      h1 { font-size: 2rem; margin: 0 0 .75rem; font-weight: 800; }
      h2 { font-size: 1.35rem; margin: 1.5rem 0 .6rem; font-weight: 700; }
      h3 { font-size: 1.05rem; margin: 0 0 .4rem; font-weight: 700; }
      p { margin: 0 0 .9rem; }
      code { background: var(--green-soft); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
      .container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
      .narrow { max-width: 720px; }
      .center { text-align: center; }
      .center-text { text-align: center; }
      .muted { color: var(--muted); }
      .small { font-size: .82rem; }
      .mono { font-family: ui-monospace, monospace; font-size: .82rem; }
      .nowrap { white-space: nowrap; }

      /* Header */
      .site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
      .header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
      .logo { font-family: 'Sora'; font-weight: 800; font-size: 1.5rem; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 0; display:flex; align-items:center; }
      .logo-mark { display:inline-flex; align-items:center; justify-content:center; width: 34px; height: 34px; background: var(--green); color: #fff; border-radius: 10px; margin-right: 7px; font-size: 1.25rem; }
      .main-nav { display: flex; align-items: center; gap: 6px; }
      .main-nav > button { background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink); padding: 8px 12px; border-radius: 8px; }
      .main-nav > button:hover { background: var(--green-soft); }
      .burger { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }

      /* Buttons */
      .btn { font: inherit; font-weight: 600; border-radius: 10px; padding: 10px 18px; cursor: pointer; border: 1.5px solid transparent; transition: all .15s; text-decoration: none; display: inline-block; }
      .btn-primary { background: var(--green); color: #fff !important; }
      .btn-primary:hover { background: var(--green-dark); }
      .btn-primary:disabled { background: #B9C7C0; cursor: not-allowed; }
      .btn-outline { background: #fff; border-color: var(--green); color: var(--green); }
      .btn-outline:hover { background: var(--green-soft); }
      .btn-ghost { background: none; color: var(--ink); }
      .btn-ghost:hover { background: var(--green-soft); }
      .btn-danger-outline { background:#fff; border-color: #C25555; color: #A03434; }
      .btn-danger-outline:hover { background: var(--red-bg); }
      .btn-lg { padding: 13px 26px; font-size: 1.05rem; }
      .btn-sm { padding: 6px 12px; font-size: .85rem; }
      .btn-block { width: 100%; }
      .btn-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
      .link-btn { background: none; border: 0; color: var(--green); cursor: pointer; font: inherit; padding: 8px 0; text-decoration: underline; }
      .link-inline { background:none; border:0; padding:0; color: var(--green); text-decoration: underline; cursor: pointer; font: inherit; }

      /* Hero */
      .hero { padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 5vw, 48px); background: linear-gradient(180deg, var(--green-soft), var(--paper) 85%); }
      .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
      .eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
      .hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 18px; }
      .hero h1 em { font-style: normal; color: var(--green); }
      .lead { font-size: 1.13rem; color: #3C4843; }
      .hero-cta { display: flex; gap: 12px; margin: 22px 0 12px; flex-wrap: wrap; }
      .hero-fine { font-size: .85rem; color: var(--muted); }

      .demo-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 24px); box-shadow: 0 12px 40px rgba(20,80,60,.10); cursor: pointer; width: 100%; max-width: 360px; margin-left: auto; }
      .amount-row { flex-wrap: wrap; }
      .demo-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
      .demo-head strong { display: block; }
      .demo-head .muted { font-size: .82rem; display: block; }
      .demo-desc { font-size: .93rem; }
      .demo-fine { font-size: .76rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
      .amount-row { display: flex; gap: 8px; margin: 12px 0 14px; }

      .avatar { width: 46px; height: 46px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: 'Sora'; flex-shrink: 0; }
      .avatar-sm { width: 30px; height: 30px; font-size: .75rem; }
      .avatar-lg { width: 60px; height: 60px; font-size: 1.3rem; }
      .avatar-xl { width: 92px; height: 92px; font-size: 2rem; border: 4px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12); }

      .chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; transition: all .12s; }
      .chip:hover { border-color: var(--green); }
      .chip-on { background: var(--green); border-color: var(--green); color: #fff; }
      .chip-lg { padding: 12px 20px; font-size: 1.02rem; }
      .chip:disabled { opacity: .5; cursor: not-allowed; }
      .chip-preview { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }

      /* Sections */
      .section { padding: 56px 0; }
      .section-tint { background: var(--green-soft); }
      .section-title { font-size: 1.7rem; margin-top: 0; }
      .section-title em { font-style: normal; color: var(--green); }
      .section-lead { color: var(--muted); margin-top: -6px; }
      .cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
      .card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
      .split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
      .check-list { list-style: none; padding: 0; margin: 0 0 18px; }
      .check-list li { padding: 6px 0 6px 30px; position: relative; }
      .check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
      .steps { padding-left: 0; counter-reset: s; list-style: none; text-align: left; max-width: 560px; margin: 24px auto; }
      .steps li { counter-increment: s; padding: 10px 0 10px 48px; position: relative; }
      .steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; width: 32px; height: 32px; background: var(--green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: 'Sora'; }
      .steps-big li { padding-bottom: 16px; }
      .cta-strip { background: var(--green-soft); border-radius: 14px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
      .cta-strip p { margin: 0; font-weight: 600; }

      .info-box { background: var(--green-soft); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
      .info-box p:last-child { margin: 0; }
      .info-box.warn { background: var(--amber-bg); }
      .info-box.err { background: var(--red-bg); }
      .info-box.ok { background: var(--green-soft); }
      .terms-block { margin-bottom: 20px; }
      .terms-block p { color: #414D47; }

      /* Forms */
      .panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; margin-bottom: 22px; }
      .field { display: block; margin-bottom: 16px; }
      .field-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
      .field-hint { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }
      .mavlo input, .mavlo textarea, .mavlo select {
        width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line);
        border-radius: 10px; background: #fff; color: var(--ink);
      }
      .mavlo input:focus, .mavlo textarea:focus, .mavlo select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,110,84,.12); }
      .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
      .checkline { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; cursor: pointer; font-size: .93rem; }
      .checkline input { width: auto; margin-top: 3px; }
      .form-error { background: var(--red-bg); color: var(--red-tx); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: .9rem; }
      .slug-input { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
      .slug-input span { padding: 10px 4px 10px 12px; color: var(--muted); background: #F4F6F5; align-self: stretch; display: flex; align-items: center; }
      .slug-input input { border: 0; border-radius: 0; }
      .slug-input input:focus { box-shadow: none; }
      .wysiwyg-bar { display: flex; gap: 4px; border: 1.5px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 6px; background: #F4F6F5; }
      .wysiwyg-bar button { width: 32px; height: 30px; border: 0; background: none; border-radius: 6px; cursor: pointer; }
      .wysiwyg-bar button:hover { background: #fff; }
      .wysiwyg-bar + textarea { border-radius: 0 0 10px 10px; }
      .upload-box { display: flex; align-items: center; gap: 14px; }

      /* Auth */
      .auth-wrap { display: flex; justify-content: center; padding: 56px 20px; }
      .auth-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; width: 100%; max-width: 420px; }
      .auth-card h1 { font-size: 1.5rem; }
      .auth-links { display: flex; justify-content: space-between; margin-top: 12px; flex-wrap: wrap; }
      .demo-creds { margin-top: 18px; background: var(--green-soft); border-radius: 10px; padding: 12px 14px; font-size: .82rem; color: #2B4A3E; }
      .checkout-card { max-width: 400px; }
      .stripe-logo { font-family: 'Sora'; font-weight: 800; font-size: 1.4rem; color: #635BFF; text-align: center; letter-spacing: -0.02em; }
      .stripe-box { text-align: center; padding: 22px; border: 1.5px dashed var(--line); border-radius: 12px; margin: 16px 0; }

      /* App layout (dashboard + admin) */
      .app-layout { display: flex; min-height: calc(100vh - 64px); }
      .sidebar { width: 230px; border-right: 1px solid var(--line); background: #fff; padding: 22px 12px; flex-shrink: 0; }
      .sidebar-admin { background: #1C2622; border-color: #1C2622; }
      .sidebar-admin .sidebar-title { color: #9DB4A9; }
      .sidebar-admin .side-link { color: #D7E2DC; }
      .sidebar-admin .side-link:hover { background: #2A3630; }
      .sidebar-admin .side-link.on { background: var(--green); color: #fff; }
      .sidebar-title { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px; }
      .side-link { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; padding: 10px 12px; border-radius: 9px; cursor: pointer; color: var(--ink); margin-bottom: 2px; }
      .side-link:hover { background: var(--green-soft); }
      .side-link.on { background: var(--green); color: #fff; font-weight: 600; }
      .sidebar-sep { height: 1px; background: var(--line); margin: 12px 8px; }
      .app-content { flex: 1; padding: 32px; max-width: 1000px; }

      .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 18px 0; }
      .stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
      .stat-n { display: block; font-family: 'Sora'; font-weight: 800; font-size: 1.4rem; }
      .stat-l { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }

      .table { width: 100%; border-collapse: collapse; font-size: .9rem; }
      .table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
      .table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
      .table tr:last-child td { border-bottom: 0; }
      .table-panel { padding: 10px 16px; overflow-x: auto; }
      .msg-cell { max-width: 220px; }
      .row-new td { background: #FDFAF0; }
      .cell-creator { display: flex; align-items: center; gap: 8px; }

      .badge { display: inline-block; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
      .b-green { background: var(--green-soft); color: var(--green-dark); }
      .b-amber { background: var(--amber-bg); color: var(--amber-tx); }
      .b-red { background: var(--red-bg); color: var(--red-tx); }
      .b-gray { background: #EEF0EF; color: var(--muted); }
      .b-blue { background: var(--blue-bg); color: var(--blue-tx); }

      .filter-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
      .filter-bar input { max-width: 340px; }
      .filter-bar select { max-width: 220px; }
      .alert-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
      .alert-row:last-child { border-bottom: 0; }
      .alert-row p { margin: 2px 0 0; }
      .action-grid { display: flex; flex-wrap: wrap; gap: 10px; }
      .risk-select { max-width: 240px; }
      .detail-head { display: flex; align-items: center; gap: 16px; margin: 12px 0 6px; flex-wrap: wrap; }
      .detail-head h1 { margin: 0; }
      .danger-panel { border-color: #E8C9C9; }
      .ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
      .ticket-body { background: #F6F8F7; border-radius: 10px; padding: 16px; margin: 14px 0; white-space: pre-wrap; }

      /* Onboarding */
      .steps-bar { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
      .step-dot { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
      .step-dot span { width: 22px; height: 22px; border-radius: 50%; background: var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }
      .step-dot.cur { border-color: var(--green); color: var(--ink); font-weight: 600; }
      .step-dot.cur span, .step-dot.done span { background: var(--green); color: #fff; }
      .step-dot.done { color: var(--green); }

      /* Creator public page */
      .creator-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--cc, var(--green)) 14%, #fff), var(--paper)); padding: 52px 0 32px; text-align: center; }
      .creator-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
      .creator-hero h1 { margin: 12px 0 0; }
      .creator-type { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 0; }
      .creator-short { font-size: 1.08rem; max-width: 520px; margin: 6px 0 0; }
      .creator-links { display: flex; gap: 16px; margin-top: 10px; }
      .creator-links a { color: var(--green); font-weight: 600; text-decoration: none; }
      .creator-body { display: grid; grid-template-columns: 1fr 400px; grid-template-areas: "about card" "impact card"; gap: 28px 40px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
      .creator-about { grid-area: about; font-size: 1.02rem; color: #333F39; }
      .creator-impact { grid-area: impact; margin-top: 0; }
      .support-card { grid-area: card; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 10px 34px rgba(20,80,60,.08); position: sticky; top: 84px; }
      .support-card h2 { margin-top: 0; }
      .amount-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
      .pay-summary { background: var(--green-soft); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
      .pay-summary > div { display: flex; justify-content: space-between; }
      .pay-summary.boxed { background: #F4F6F5; }
      .pay-summary p { margin: 6px 0 0; }
      .legal-note { font-size: .82rem; color: var(--muted); background: #F6F8F7; border-radius: 10px; padding: 10px 12px; }

      .success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
      .spinner { width: 46px; height: 46px; border: 4px solid var(--line); border-top-color: var(--green); border-radius: 50%; margin: 0 auto 20px; animation: spin .8s linear infinite; }
      @keyframes spin { to { transform: rotate(360deg); } }

      .fee-preview { margin: 14px 0; }
      .fee-preview h3 { margin-top: 0; }

      /* Carousel */
      .carousel { position: relative; border-radius: 14px; overflow: hidden; margin: 22px 0; }
      .carousel-slide { aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; }
      .carousel-emoji { font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; }
      .carousel-label { font-weight: 600; font-size: .95rem; text-shadow: 0 1px 8px rgba(0,0,0,.3); padding: 0 16px; text-align: center; }
      .car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
      .car-btn:hover { background: #fff; }
      .car-prev { left: 12px; } .car-next { right: 12px; }
      .car-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
      .car-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
      .car-dot.on { background: #fff; }

      .about-title { margin-top: 0; }
      .impact-section { background: var(--green-soft); border-radius: 16px; padding: 24px 26px 10px; }
      .impact-section .carousel { margin-bottom: 24px; }

      /* Gallery editor */
      .gallery-edit { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 6px; }
      .gallery-thumb { position: relative; width: 116px; aspect-ratio: 16/10; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; }
      .thumb-x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: .65rem; cursor: pointer; line-height: 1; }
      .gallery-add { width: 116px; aspect-ratio: 16/10; border-radius: 10px; border: 1.5px dashed var(--line); background: #FAFBFA; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; }
      .gallery-add:hover { border-color: var(--green); color: var(--green); }
      .panel-title { margin-top: 0; }
      .char-count { margin-left: auto; align-self: center; font-size: .78rem; color: var(--muted); padding-right: 6px; }
      .char-count.over { color: var(--red-tx); font-weight: 700; }

      /* Terms */
      .terms-meta { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
      .terms-meta p:last-child { margin: 0; }
      .terms-tabs { display: flex; gap: 8px; margin: 4px 0 22px; flex-wrap: wrap; }
      .terms-doc h2 { margin-top: 1.8rem; }
      .terms-doc p { color: #3B4741; margin-bottom: .5rem; }
      .terms-sub { padding-left: 24px; }

      /* Footer */
      .site-footer { border-top: 1px solid var(--line); background: #fff; padding: 36px 0 28px; margin-top: 24px; }
      .footer-inner { display: grid; gap: 18px; }
      .logo-footer { font-size: 1.2rem; cursor: default; }
      .footer-tag { color: var(--muted); font-size: .9rem; max-width: 420px; }
      .footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
      .footer-nav button { background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink); padding: 0; }
      .footer-nav button:hover { color: var(--green); }
      .footer-note { font-size: .8rem; color: var(--muted); margin: 0; }

      .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 12px; font-size: .92rem; box-shadow: 0 8px 30px rgba(0,0,0,.25); z-index: 100; }

      /* Responsive */
      @media (max-width: 960px) {
        /* menu se sbalí do burgeru už na tabletu, jinak přetéká */
        .burger { display: block; }
        .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 14px 20px 18px; gap: 8px; box-shadow: 0 14px 30px rgba(0,0,0,.08); }
        .main-nav.open { display: flex; }
        .main-nav > button { text-align: left; }
        .main-nav .btn { text-align: center; }

        .hero-grid { grid-template-columns: 1fr; gap: 28px; }
        .hero-copy { text-align: center; }
        .hero-cta { justify-content: center; }
        .hero-demo { display: flex; justify-content: center; }
        .demo-card { margin: 0; }

        .split { grid-template-columns: 1fr; }
        .creator-body { grid-template-columns: 1fr; grid-template-areas: "about" "card" "impact"; }
        .cards-3 { grid-template-columns: 1fr; }
        .support-card { position: static; }
        .app-layout { flex-direction: column; }
        .sidebar { width: 100%; display: flex; overflow-x: auto; padding: 10px; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); }
        .sidebar-title, .sidebar-sep { display: none; }
        .side-link { white-space: nowrap; width: auto; }
        .app-content { padding: 20px 16px; }
      }
      @media (min-width: 600px) and (max-width: 960px) {
        /* tablet: karty výhod ve dvou sloupcích, ať sekce nejsou nekonečně dlouhé */
        .cards-3 { grid-template-columns: repeat(2, 1fr); }
        .cards-3 .card:last-child { grid-column: 1 / -1; }
      }
      @media (max-width: 680px) {
        .grid-2 { grid-template-columns: 1fr; }
        .hero-cta .btn { flex: 1; min-width: 0; }
        .btn-lg { padding: 12px 18px; font-size: 1rem; }
      }
      @media (prefers-reduced-motion: reduce) {
        .spinner { animation: none; }
        .btn, .chip { transition: none; }
      }

/* ===== Adaptace pro PHP verzi (odkazy místo tlačítek) ===== */
.logo, .logo:visited { text-decoration: none; color: var(--ink); }
.main-nav .navlink { background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink); padding: 8px 12px; border-radius: 8px; text-decoration: none; display: inline-block; }
.main-nav .navlink:hover { background: var(--green-soft); }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--green); }
.btn, .btn:visited { text-decoration: none; }
.chip { text-decoration: none; color: var(--ink); display: inline-block; }
a.chip-on { color: #fff; }
@media (max-width: 960px) {
  .main-nav .navlink { text-align: left; }
}

/* ===== Fáze 2: fotky, odhlášení, kód ===== */
.carousel-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel .carousel-slide { display: none; position: relative; }
.carousel .carousel-slide.on { display: flex; }
.gallery-thumb { overflow: visible; }
.gallery-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.avatar { position: relative; overflow: visible; }
.avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.logout-form { display: inline; margin: 0; }
.logout-form .btn { font: inherit; font-weight: 600; }
.code-input { font-family: 'Sora', sans-serif; font-size: 1.5rem; letter-spacing: .35em; text-align: center; }
.upload-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.upload-row input[type="file"] { max-width: 320px; font-size: .85rem; }
.char-note.over { color: var(--red-tx); font-weight: 700; }
@media (max-width: 960px) {
  .logout-form .btn { width: 100%; }
}

/* ===== Nový toast (desktop vpravo nahoře, mobil dole) ===== */
.toast {
  position: fixed; top: 80px; right: 24px; left: auto; bottom: auto; transform: none;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-left: 4px solid var(--green);
  box-shadow: 0 12px 34px rgba(20,40,30,.16);
  padding: 12px 18px; border-radius: 12px; font-size: .93rem;
  display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 32px));
  animation: toast-in .22s ease;
}
.toast-ico {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; font-size: .85rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.toast-warn { border-left-color: #C2903A; }
.toast-warn .toast-ico { background: #C2903A; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 680px) {
  .toast { top: auto; bottom: 18px; left: 16px; right: 16px; animation-name: toast-in-up; }
  @keyframes toast-in-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ===== Autosave a auto-upload ===== */
.js-hidden { display: none !important; }
.autosave-state { margin-left: 12px; }
.autosave-state.err { color: var(--red-tx); font-weight: 600; }
.panel h3 { margin-top: 1.2rem; }

/* ===== Fáze 3: platby, admin ===== */
.inline-form { display: inline-block; margin: 0 4px 4px 0; }
#supportBtn:disabled { background: #B9C7C0; }

/* ===== Fáze 4: plná administrace ===== */
.side-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #C24040; color: #fff; font-size: .72rem; font-weight: 700; margin-left: 6px; }
.alert-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line, #E3E7E4); flex-wrap: wrap; }
.alert-row:last-child { border-bottom: 0; }
.filter-bar { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; flex-wrap: wrap; }
.filter-bar input[type="text"] { flex: 1; min-width: 220px; }
.filter-bar select { padding: 10px 12px; border: 1px solid #CBD5CE; border-radius: 10px; background: #fff; font: inherit; }
.detail-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
.badge.b-blue { background: #E3EDF7; color: #2C5E8A; }

/* ===== v1.5.0: přepínač, mazání, blocklist ===== */
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; margin-bottom: 16px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { position: relative; flex-shrink: 0; width: 48px; height: 28px; border-radius: 999px; background: #C4CFC8; transition: background .18s; margin-top: 2px; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .18s; }
.switch input:checked + .switch-track { background: #1F6E54; }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid rgba(31,110,84,.35); outline-offset: 2px; }
.switch-label { line-height: 1.45; }

/* v1.9.0: atribut hidden má vždy přednost (opravuje trvale viditelné pole vlastní částky) */
[hidden] { display: none !important; }

/* ===== v1.10.0: tisknutelné doklady vyúčtování ===== */
body.bare { background: #fff; }
.doc-wrap { max-width: 820px; margin: 24px auto; padding: 0 16px; }
.doc-actions { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 14px; }
.doc { background: #fff; border: 1px solid #E3E7E4; border-radius: 12px; padding: 34px 38px; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.doc-head h1 { font-size: 1.35rem; margin: 0 0 4px; }
.doc-brand { font-weight: 800; font-size: 1.4rem; color: #1F6E54; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.doc-parties h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #66736D; margin: 0 0 6px; }
.doc-parties p { margin: 0; line-height: 1.55; }
.doc-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.doc-table th, .doc-table td { padding: 8px 10px; border-bottom: 1px solid #E3E7E4; text-align: left; }
.doc-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #66736D; }
.doc-table tfoot th, .doc-table tfoot td { border-top: 2px solid #1C2622; border-bottom: 0; font-weight: 700; }
.doc-table .num { text-align: right; white-space: nowrap; }
.doc-note { margin-top: 18px; font-size: .82rem; color: #66736D; line-height: 1.6; }
@media print {
    .noprint { display: none !important; }
    body.bare { background: #fff; }
    .doc { border: 0; padding: 0; }
    .doc-wrap { margin: 0; max-width: none; }
}
