:root {
    --oj-green: #4D7C0F;
    --oj-green-dark: #1A2E05;
    --oj-green-mid: #365314;
    --oj-gold: #CA8A04;
    --oj-gold-light: #FDE68A;
    --oj-cream: #F7FEE7;
    --oj-bg: #F7FEE7;
    --oj-card: #FAF8F4;
    --oj-border: #d6d3d1;
    --oj-muted: #78716c;
    --oj-radius: 14px;
    --oj-fs: 16px;
    --oj-serif: "Fraunces", "Georgia", "Times New Roman", serif;
    --oj-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --site-header-h: 8.25rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; width: 100%; overflow-x: hidden; }
body {
    font-family: var(--oj-sans);
    background: var(--oj-green-dark);
    color: #1c1917;
    font-size: var(--oj-fs);
    -webkit-tap-highlight-color: transparent;
}

#app-root { min-height: 100vh; width: 100%; max-width: none; }

.shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 2rem;
    padding-top: calc(var(--site-header-h) + env(safe-area-inset-top, 0px));
    background: transparent;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.brand {
    color: var(--oj-gold-light);
    font-family: var(--oj-serif);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.01em;
    margin: 0.5rem 0 1rem;
}
.brand span { color: var(--oj-cream); font-family: var(--oj-sans); font-weight: 500; font-size: 0.9rem; display: block; opacity: 0.85; }

.card {
    background: var(--oj-card);
    border-radius: var(--oj-radius);
    padding: 1.35rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(26, 46, 5, 0.06);
    margin-bottom: 1rem;
}

.pin-screen { text-align: center; padding-top: 2rem; }
.pin-screen h1 { color: var(--oj-green-dark); margin: 0 0 0.5rem; font-family: var(--oj-serif); font-weight: 700; }
.pin-input {
    width: 100%; max-width: 200px; text-align: center;
    font-size: 1.5rem; letter-spacing: 0.4em;
    padding: 0.75rem; border: 2px solid var(--oj-border);
    border-radius: var(--oj-radius); margin: 1rem auto;
}

.lbl {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--oj-muted);
    margin: 0.75rem 0 0.25rem;
}
.lbl:first-child { margin-top: 0; }

.fld, select.fld, textarea.fld {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--oj-border);
    border-radius: 10px;
    background: #fafaf9;
    font-size: var(--oj-fs);
    font-family: inherit;
}
select.fld { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2378716c' stroke-width='2.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.65rem center; }
.fld:focus { outline: 2px solid var(--oj-green); border-color: var(--oj-green); }
.fld[readonly] { background: #f5f5f4; color: #57534e; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.25rem; border-radius: 10px; border: none;
    font-weight: 700; font-size: 0.95rem; cursor: pointer;
    font-family: inherit;
}
.btn-primary { background: var(--oj-gold); color: var(--oj-green-dark); width: 100%; }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: #e7e5e4; color: #44403c; }
.btn-ghost { background: transparent; color: var(--oj-green); border: 1px solid var(--oj-green); }
.btn-sm { padding: 0.45rem 0.75rem; font-size: 0.8rem; }
.btn-row { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.btn-row .btn-primary { flex: 1; }

.steps {
    display: flex; gap: 0.35rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.step-dot {
    flex: 1; min-width: 2.5rem; height: 4px; border-radius: 2px;
    background: rgba(255,255,255,.25);
}
.step-dot.done { background: var(--oj-gold); }
.step-dot.active { background: #fff; }

.wizard-title {
    margin: 0 0 0.25rem;
    font-family: var(--oj-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--oj-green-dark);
}
.wizard-sub { margin: 0 0 1rem; color: var(--oj-muted); font-size: 0.88rem; line-height: 1.5; }

.gerk-card {
    border: 1px solid var(--oj-border);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.75rem;
    background: #fafaf9;
}
.gerk-head { display: flex; justify-content: space-between; align-items: start; gap: 0.5rem; }
.gerk-head strong { color: var(--oj-green-dark); }

.sorte-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin-top: 0.5rem; }
.sorte-table th { text-align: left; color: var(--oj-muted); font-size: 0.65rem; text-transform: uppercase; padding: 0.35rem 0.25rem; }
.sorte-table td { padding: 0.25rem; vertical-align: top; }
.sorte-table select, .sorte-table input { width: 100%; padding: 0.35rem; font-size: 0.8rem; border-radius: 6px; border: 1px solid var(--oj-border); }

.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.summary-box {
    background: #ecfccb; border-radius: 10px; padding: 0.75rem; text-align: center;
}
.summary-box .val { font-size: 1.35rem; font-weight: 800; color: var(--oj-green-dark); }
.summary-box .cap { font-size: 0.7rem; color: var(--oj-muted); text-transform: uppercase; }

.check-row { display: flex; align-items: start; gap: 0.5rem; margin-top: 0.75rem; }
.check-row input { margin-top: 0.2rem; }

.toast-wrap {
    position: fixed; top: calc(var(--site-header-h) + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
    z-index: 200; display: flex; flex-direction: column; gap: 0.35rem;
    pointer-events: none; width: min(90vw, 400px);
}
.toast {
    background: var(--oj-green-dark); color: var(--oj-gold-light);
    padding: 0.65rem 1rem; border-radius: 10px; font-weight: 600; font-size: 0.85rem;
    opacity: 0; transform: translateY(-8px); transition: all 0.2s;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.err { background: #7f1d1d; color: #fff; }

.app-header,
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    z-index: 1000;
    background: var(--oj-green-dark);
    padding-top: env(safe-area-inset-top, 0px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(247, 254, 231, 0.1);
    box-sizing: border-box;
}

.site-logo { min-width: 0; line-height: 1.15; }
.site-logo strong {
    display: block;
    font-family: var(--oj-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--oj-cream);
    letter-spacing: 0.01em;
}
.site-logo span {
    display: block;
    margin-top: 0.15rem;
    color: rgba(247, 254, 231, 0.72);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(70vw, 28rem);
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.app-header-status {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--oj-gold-light);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(253, 230, 138, 0.2);
}

.btn-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(247, 254, 231, 0.25);
    background: transparent;
    color: var(--oj-cream);
    font-family: var(--oj-sans);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}
.btn-header:hover { background: rgba(255, 255, 255, 0.06); }

.app-nav {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(247, 254, 231, 0.08);
}

.app-nav::-webkit-scrollbar { display: none; }

.app-nav button {
    flex: 0 0 auto;
    min-height: 2.85rem;
    padding: 0.55rem 0.85rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(247, 254, 231, 0.62);
    font-family: var(--oj-sans);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.15;
    cursor: pointer;
    white-space: nowrap;
}

.app-nav button.active {
    color: var(--oj-gold-light);
    border-bottom-color: var(--oj-gold);
    background: rgba(255, 255, 255, 0.04);
}

@media (min-width: 900px) {
    .site-header-inner { padding: 1rem 2rem; }
    .app-nav {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        padding: 0 1rem;
    }
    .app-nav button {
        font-size: 0.72rem;
        padding: 0.65rem 0.75rem;
    }
}

.stanje-grid {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.stanje-chip {
    background: #f5f5f4; border: 1px solid var(--oj-border); border-radius: 8px;
    padding: 0.4rem 0.6rem; font-size: 0.75rem; display: flex; flex-direction: column; gap: 0.1rem;
    min-width: 7rem;
}
.stanje-chip strong { color: var(--oj-green-dark); font-size: 0.7rem; }
.stanje-litri { color: var(--oj-gold); font-weight: 700; }

.veriga-chain {
    display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.35rem 0.5rem;
    margin-top: 0.5rem; padding: 0.65rem; background: #f5f5f4; border-radius: 8px;
}
.veriga-korak { min-width: 4.5rem; }
.veriga-korak-label { font-size: 0.65rem; color: var(--oj-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.veriga-korak-value { font-weight: 700; font-size: 0.85rem; color: var(--oj-green-dark); }
.veriga-arrow { color: var(--oj-gold); font-weight: 700; align-self: center; font-size: 0.9rem; }

.grid3 {
    display: grid; grid-template-columns: 1fr; gap: 0.75rem;
}
@media (min-width: 480px) {
    .grid3 { grid-template-columns: repeat(3, 1fr); }
}

.temp-tedni-wrap {
    background: #f5f5f4; border: 1px solid var(--oj-border); border-radius: 8px;
    padding: 0.5rem 0.65rem; margin-top: 0.5rem;
}
.temp-teden {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.3rem 0; border-bottom: 1px solid #e7e5e4; font-size: 0.75rem;
}
.temp-teden:last-child { border-bottom: none; }
.temp-teden-label { color: var(--oj-muted); }
.temp-status { font-weight: 700; font-size: 0.7rem; }
.temp-ok { color: #15803d; }
.temp-warn { color: #dc2626; }
.temp-missing { color: #a8a29e; font-style: italic; }

.err-text { color: #b91c1c; font-size: 0.85rem; margin-top: 0.5rem; }
.ok-text { color: var(--oj-green); font-size: 0.85rem; margin-top: 0.5rem; }

.obrazec-preview {
    font-size: 0.8rem; background: #f5f5f4; border-radius: 10px;
    padding: 1rem; margin-top: 1rem; line-height: 1.5;
}
.obrazec-preview dt { font-weight: 700; color: var(--oj-muted); font-size: 0.65rem; text-transform: uppercase; margin-top: 0.5rem; }
.obrazec-preview dd { margin: 0.1rem 0 0; }

.hidden { display: none !important; }

.vnos-card {
    background: #fafaf9;
    border: 1px solid var(--oj-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
}
.vnos-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.vnos-head strong { color: var(--oj-green-dark); }
.vnos-tag {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    background: #ecfccb; color: var(--oj-green-dark); padding: 0.2rem 0.5rem; border-radius: 6px;
}
.vnos-body { font-size: 0.85rem; line-height: 1.45; }
.vnos-karantena { color: #b45309; font-weight: 600; font-size: 0.8rem; }
.vnos-muted { color: var(--oj-muted); font-size: 0.78rem; margin-top: 0.2rem; }
.dnevnik-list { margin-top: 0.5rem; }

.izvoz-moduli { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.35rem; }
.izvoz-modul-row {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 0.65rem; background: #fafaf9; border: 1px solid var(--oj-border);
    border-radius: 10px; font-size: 0.85rem; cursor: pointer;
}
.izvoz-modul-row input { width: 1.1rem; height: 1.1rem; accent-color: var(--oj-green); }
.izvoz-modul-label { flex: 1; line-height: 1.3; }
.izvoz-modul-count { font-size: 0.72rem; color: var(--oj-muted); white-space: nowrap; }

.rok-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.rok-card {
    background: #fafaf9; border: 1px solid var(--oj-border); border-radius: 12px;
    padding: 0.85rem 1rem; border-left-width: 4px;
}
.rok-card.rok-zamujeno { border-left-color: #dc2626; background: #fef2f2; }
.rok-card.rok-kmalu { border-left-color: #d97706; background: #fffbeb; }
.rok-card.rok-prihodnost { border-left-color: #78716c; }
.rok-card.rok-ok { border-left-color: var(--oj-green); background: #f7fee7; opacity: 0.92; }
.rok-card.rok-preskoceno { border-left-color: #a8a29e; opacity: 0.75; }
.rok-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.35rem; }
.rok-head strong { color: var(--oj-green-dark); font-size: 0.95rem; }
.rok-badge { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.rok-opis { margin: 0; font-size: 0.82rem; line-height: 1.4; color: #44403c; }
.rok-datum { margin: 0.35rem 0 0; font-size: 0.78rem; font-weight: 600; color: #57534e; }
.rok-muted { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--oj-muted); }
.rok-povzetek { margin: 0.5rem 0 0; }
.rok-chip { font-size: 0.72rem; padding: 0.2rem 0.5rem; border-radius: 6px; background: #f5f5f4; border: 1px solid #e7e5e4; }
.rok-chip.rok-zamujeno { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.rok-chip.rok-kmalu { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.rok-chip.rok-ok { background: #ecfccb; border-color: #bef264; color: var(--oj-green-dark); }

.obrazci-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.75rem; }
.obrazci-tab {
    border: 1px solid var(--oj-border); background: #fafaf9; border-radius: 8px;
    padding: 0.4rem 0.65rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; color: #57534e;
}
.obrazci-tab.active { background: var(--oj-green-dark); color: #fff; border-color: var(--oj-green-dark); }

.profil-pasica {
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
    padding: 0.6rem 0.75rem; margin: 0 0 0.75rem; font-size: 0.8rem;
}
.profil-pasica-label {
    font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
    color: var(--oj-green); margin-bottom: 0.25rem;
}
.profil-pasica-body { display: flex; flex-direction: column; gap: 0.15rem; line-height: 1.35; }
.profil-pasica-body strong { color: var(--oj-green-dark); font-size: 0.88rem; }

/* —— Landing page (oljar.top) —— */
.landing-page { background: var(--oj-green-dark); color: var(--oj-cream); }

.landing-header {
    width: 100%;
    background: var(--oj-green-dark);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-nav-link {
    color: rgba(247, 254, 231, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
}
.landing-nav-link:hover { color: var(--oj-gold-light); }

.btn-header-gold {
    background: var(--oj-gold);
    color: var(--oj-green-dark);
    border-color: var(--oj-gold);
    font-weight: 700;
}
.btn-header-gold:hover { background: #eab308; }

.landing-hero {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3.5rem;
    text-align: center;
}

.landing-kicker {
    margin: 0 0 1.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--oj-gold);
}

.landing-hero h1 {
    margin: 0 0 1.25rem;
    font-family: var(--oj-serif);
    font-size: clamp(2rem, 5vw, 2.85rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--oj-cream);
}
.landing-hero h1 em {
    font-style: italic;
    color: var(--oj-gold-light);
}

.landing-lead {
    margin: 0 auto 2rem;
    max-width: 34rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(247, 254, 231, 0.82);
}

.landing-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.landing-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    background: var(--oj-gold);
    color: var(--oj-green-dark);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.landing-btn-primary:hover { background: #eab308; }

.landing-btn-secondary {
    color: var(--oj-cream);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.landing-btn-secondary:hover { color: var(--oj-gold-light); }

.landing-domain {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(247, 254, 231, 0.5);
}
.landing-domain strong { color: rgba(247, 254, 231, 0.75); font-weight: 600; }

.landing-registries {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.landing-section-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--oj-gold);
    text-align: center;
}

.landing-registries h2 {
    margin: 0 0 2rem;
    font-family: var(--oj-serif);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--oj-cream);
    text-align: center;
    line-height: 1.25;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 900px) {
    .landing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .landing-grid { grid-template-columns: 1fr; }
    .landing-hero { padding-top: 2.5rem; }
}

.landing-card {
    background: var(--oj-card);
    border-radius: var(--oj-radius);
    padding: 1.35rem 1.25rem 1.5rem;
    border: 1px solid rgba(26, 46, 5, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.landing-tag {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: #ffedd5;
    color: #9a3412;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.landing-card h3 {
    margin: 0 0 0.5rem;
    font-family: var(--oj-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--oj-green-dark);
}

.landing-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #44403c;
}

.landing-footer {
    border-top: 1px solid rgba(247, 254, 231, 0.1);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(247, 254, 231, 0.45);
}
.landing-footer a { color: var(--oj-gold-light); text-decoration: none; }
.landing-footer a:hover { text-decoration: underline; }
