/* =========================
   THEME MADE BY KROJAC 2026
   ========================= */

:root {
    --font-sans: "Montserrat", sans-serif;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;

    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);

    /* default fallback (ako data-theme nije postavljen) */
    --bg: #fff;
    --text: #353535;
    --muted: #7f7f7f;

    --surface: #ffffff;
    --surface-2: #f3f4f6;
    --border: #e5e7eb;

    --link: #2563eb;
    --link-hover: #1d4ed8;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;

    --btn-outline-border: #d1d5db;
    --btn-outline-text: #374151;
    --btn-outline-bg-hover: #f3f4f6;

    /* Bootstrap helpers */
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
}

:root[data-theme="light"] {
    --bg: #fff; /* traženo */
    --text: #353535; /* traženo */
    --muted: #7f7f7f; /* traženo */

    --surface: #ffffff;
    --surface-2: #f3f4f6;

    --border: #e5e7eb;

    --link: #2563eb;
    --link-hover: #1d4ed8;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;

    --btn-outline-border: #d1d5db;
    --btn-outline-text: #374151;
    --btn-outline-bg-hover: #f3f4f6;

    /* Bootstrap helpers */
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
}

:root[data-theme="dark"] {
    --bg: #0b1220;
    --text: #e5e7eb;
    --muted: #94a3b8;

    --surface: #0f1a2e;
    --surface-2: #0b1730;

    --border: rgba(255, 255, 255, 0.12);

    --link: #60a5fa;
    --link-hover: #93c5fd;

    --primary: #3b82f6;
    --primary-hover: #60a5fa;

    --btn-outline-border: rgba(255, 255, 255, 0.18);
    --btn-outline-text: #e5e7eb;
    --btn-outline-bg-hover: rgba(255, 255, 255, 0.06);
}

/* =========================
   RESET & BASE
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 1rem;
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;

    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;

    color: var(--text);
    background-color: var(--bg);

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* =========================
   TYPOGRAPHY
   ========================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.6em 0;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.25rem;
}
h2 {
    font-size: 1.875rem;
}
h3 {
    font-size: 1.5rem;
}
h4 {
    font-size: 1.25rem;
}
h5 {
    font-size: 1.125rem;
}
h6 {
    font-size: 1rem;
}

p {
    margin: 0 0 1rem 0;
    color: var(--muted);
}

small {
    font-size: 0.875rem;
    color: var(--muted);
}

strong {
    font-weight: 600;
}

/* =========================
   LINKS
   ========================= */

a {
    color: var(--link);
    text-decoration: none;
    transition:
        color 0.15s ease,
        text-decoration-color 0.15s ease;
}

a:hover {
    color: var(--link-hover);
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* =========================
   LAYOUT HELPERS
   ========================= */

.container-narrow {
    max-width: 920px;
    margin-inline: auto;
}

.container-wide {
    max-width: 1280px;
    margin-inline: auto;
}

.section {
    padding: 4rem 0;
}

.section-sm {
    padding: 2rem 0;
}

/* =========================
   AUTH Layout
   ========================= */

.auth-split {
    min-height: 100vh;
    width: 100%;
}

.auth-left {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem 3.5rem 1.125rem;
}

.auth-header {
    margin-bottom: 3rem;
}

.auth-left-inner {
    width: 100%;
    max-width: 720px;
}

.auth-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.auth-logo {
    height: 2.4375rem;
    width: auto;
}

.auth-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-top-actions {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 1.125rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin: 3rem 0 3rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1 1 auto;
    border-top: 1px solid #e8ecf4;
}

.auth-footer {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    margin-top: auto;
}

.auth-footer-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-footer-links {
    display: flex;
    gap: 1rem;
}

.auth-footer-links a {
    color: #6b7280;
    text-decoration: none;
}

.auth-footer-links a:hover {
    text-decoration: underline;
}

.auth-right {
    background: linear-gradient(135deg, #b794f4, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 100vh;
}

.auth-right-img {
    max-width: 80%;
    height: auto;
    display: block;
}

/* Top auth buttons layout */
.auth-top-actions {
    display: grid;
    grid-template-columns: 3fr 2fr; /* 60/40 */
    gap: 1rem; /* tvoj gap */
    width: 100%;
}
.ui-btn--google,
.ui-btn--light {
    width: 100%;
}

/* 60% Google */
.ui-btn--google {
    flex: 0 0 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e3e6ef;
    color: #111;
    text-transform: uppercase;
    font-weight: 600;
}

/* 40% Napravi nalog */
.ui-btn--light {
    flex: 0 0 40%;

    background: #f5f6fa;
    color: #111;

    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover states */
.ui-btn--google:hover {
    background: #f5f6fa;
    border: none;
}

.ui-btn--light:hover {
    background: #fafafa;
}

/* Ikonica */
.ui-btn__icon {
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .ui-btn--google,
    .ui-btn--light {
        font-size: 0.75rem;
        height: 3rem !important;
    }
}

/* Checkbox wrapper */
.ui-check {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
}

/* Checkbox input */
.ui-check__input {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: #111; /* crni check */
    margin: 0;
}

/* Label */
.ui-check__label {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 991.98px) {
    .auth-left {
        padding: 1.5rem 1.125rem 0.875rem;
    }
    .auth-right {
        display: none;
    }
    .auth-logo {
        height: 2.25rem;
    }
}

/* ─── Auth page titles ─────────────────────────── */
.auth-title {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #111;
    margin: 0rem;
    text-transform: uppercase;
    line-height: 1.1;
}
.auth-subtitle {
    font-size: 0.9375rem;
    color: #111;
    margin: 0 0 2.75rem;
    line-height: 1.5;
}

/* ─── Auth alerts ──────────────────────────────── */
.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}
.auth-alert--error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}
.auth-alert--success {
    background: #fafafa;
    color: #111;
    border: 1px solid #cbcbcb;
}
.auth-alert--info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}
.auth-alert--info p {
    color: #1e40af;
}
.auth-alert--info strong {
    color: #1e3a8a;
}

/* ─── Verify email page ────────────────────────── */
.verify-card {
    padding: 1.125rem 0rem;
}
.verify-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #111;
    margin: 0 0 0.875rem;
}
.verify-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.verify-list__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #111;
}
.verify-notice {
    padding: 2.125rem 0rem;
}
.verify-notice__header {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    margin-bottom: 3.875rem;
}
.verify-notice__icon {
    width: 46px;
    height: 46px;
    background: #dbeafe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.verify-notice__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111;
    margin: 0rem;
}
.verify-notice__body {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}
.verify-notice__body strong {
    color: #1e40af;
    word-break: break-all;
}
/* ─── Token cost indicator (test create) ──── */
.syn-token-cost {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}
.syn-token-cost svg {
    flex-shrink: 0;
    color: #9ca3af;
}
.syn-token-cost strong {
    color: #111827;
    font-weight: 600;
}
.syn-token-cost__warn {
    color: #dc2626;
    font-weight: 600;
}

.verify-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}
.verify-logout__btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: inherit;
}

/* ─── Plan selection cards ─────────────────────── */
.auth-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}
.auth-plan-card {
    position: relative;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 0.625rem;
    cursor: pointer;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    text-align: center;
    user-select: none;
    background: #fff;
}
.auth-plan-card:hover {
    border-color: #a5b4fc;
}
.auth-plan-card--active {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.auth-plan-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.25rem;
}
.auth-plan-desc {
    font-size: 0.6875rem;
    color: #6b7280;
    line-height: 1.4;
}
.auth-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
}
@media (max-width: 420px) {
    .auth-plans {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   LANDING PAGE (welcome)
   ============================================================ */

body.public-layout {
    background: #f3f3f3;
    font-family:
        "Montserrat",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #0a0a0a;
    margin: 0;
}

.landing {
    min-height: 100vh;
    background: #f3f3f3;
    padding: 1.75rem 2rem 5rem;
    box-sizing: border-box;
}

/* ---------- HEADER ---------- */
.landing-header {
    max-width: 100rem;
    margin: 0 auto;
}

.landing-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0 3.5rem;
}

.landing-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.landing-logo img {
    height: 2.25rem;
    width: auto;
    display: block;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.landing-nav__link {
    color: #0a0a0a;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.landing-nav__link:hover {
    opacity: 0.65;
}

.landing-signup {
    display: inline-flex;
    align-items: center;
    background: #0a0a0a;
    color: #fff !important;
    padding: 0.6875rem 1.625rem;
    border-radius: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.15s ease,
        transform 0.15s ease;
    margin-left: 0.5rem;
}

.landing-signup:hover {
    background: #1f1f1f;
    transform: translateY(-0.0625rem);
}

/* Mobile burger */
.landing-burger {
    display: none;
    background: transparent;
    border: 0;
    width: 2.375rem;
    height: 2.375rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3125rem;
    cursor: pointer;
    padding: 0;
}

.landing-burger span {
    display: block;
    width: 1.375rem;
    height: 2px;
    background: #0a0a0a;
    border-radius: 0.125rem;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.landing-burger.open span:nth-child(1) {
    transform: translateY(0.4375rem) rotate(45deg);
}
.landing-burger.open span:nth-child(2) {
    opacity: 0;
}
.landing-burger.open span:nth-child(3) {
    transform: translateY(-0.4375rem) rotate(-45deg);
}

.landing-mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0 1.5rem;
    border-top: 1px solid #e6e6e6;
    margin-top: 0.25rem;
}

.landing-mobile-nav.open {
    display: flex;
}

.landing-mobile-nav__link {
    padding: 0.75rem 0.25rem;
    color: #0a0a0a;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #ececec;
}

.landing-signup--mobile {
    margin: 0.75rem 0 0;
    justify-content: center;
    text-align: center;
}

/* ---------- HERO ---------- */
.landing-hero {
    max-width: 100rem;
    margin: 0 auto;
    padding: 2.5rem 0 8rem;
    text-align: center;
}

.landing-hero__title {
    font-size: clamp(2.25rem, 5.6vw, 4.5rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1.75rem;
    color: #0a0a0a;
}

.landing-hero__subtitle {
    font-size: clamp(0.9375rem, 1.4vw, 1.125rem);
    line-height: 1.55;
    color: #4a4a4a;
    margin: 0 auto;
    max-width: 38.75rem;
    font-weight: 400;
}

/* ---------- PRICING ---------- */
.landing-pricing {
    max-width: 100rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.pricing-card {
    position: relative;
    background: transparent;
    border-radius: 1.5rem;
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.pricing-card--recommended {
    background: #ffffff;
    box-shadow:
        0 1.875rem 5rem -1.875rem rgba(0, 0, 0, 0.18),
        0 0.5rem 1.375rem -0.625rem rgba(0, 0, 0, 0.08);
    transform: translateY(-0.5rem);
}

.pricing-card__badge {
    position: absolute;
    top: -0.875rem;
    left: 50%;
    transform: translateX(-50%);
    background: #0a0a0a;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.4375rem 1rem;
    border-radius: 62.5rem;
    white-space: nowrap;
}

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

.pricing-card__name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.pricing-card__desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #5a5a5a;
    margin: 0;
}

.pricing-card__price-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.pricing-card__amount {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.pricing-card__period {
    font-size: 0.875rem;
    color: #5a5a5a;
    font-weight: 500;
}

.pricing-card__save {
    background: #ffe14a;
    color: #0a0a0a;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 0.875rem;
    border-radius: 62.5rem;
    white-space: nowrap;
}

.pricing-card__terms {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.375rem;
}

.pricing-card__term {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #5a5a5a;
    font-weight: 500;
}

.pricing-card__term svg {
    width: 1rem;
    height: 1rem;
    color: #8a8a8a;
    flex-shrink: 0;
}

.pricing-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1.625rem;
    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
    box-sizing: border-box;
}

.pricing-card__cta--dark {
    background: #0a0a0a;
    color: #fff;
}

.pricing-card__cta--dark:hover {
    background: #1f1f1f;
    transform: translateY(-0.0625rem);
    color: #fff;
}

.pricing-card__cta--primary {
    background: #1e7af2;
    color: #fff;
}

.pricing-card__cta--primary:hover {
    background: #1565d8;
    transform: translateY(-0.0625rem);
    color: #fff;
}

.pricing-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.4;
}

.pricing-card__features li a {
    color: inherit;
    text-decoration: underline;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pricing-card__features li a:hover {
    color: #1e7af2;
}

.pricing-card__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    background: #e8f1fe;
    color: #1e7af2;
    border-radius: 62.5rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-card__check svg {
    width: 0.75rem;
    height: 0.75rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
    .landing-pricing {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .pricing-card--recommended {
        transform: none;
    }
}

@media (max-width: 860px) {
    .landing {
        padding: 1.25rem 1.125rem 3.5rem;
    }
    .landing-nav {
        display: none;
    }
    .landing-burger {
        display: flex;
    }
    .landing-header__inner {
        padding: 0.25rem 0 2rem;
    }
    .landing-hero {
        padding: 1rem 0 2.5rem;
    }
    .landing-hero__title br {
        display: none;
    }
    .landing-hero__subtitle br {
        display: none;
    }
}

@media (max-width: 640px) {
    .landing-pricing {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .pricing-card {
        padding: 2rem 1.375rem;
    }
    .pricing-card__name {
        font-size: 1.5rem;
    }
    .pricing-card__amount {
        font-size: 2.125rem;
    }
}

/* ---------- REGISTER — odabrani plan ---------- */
.auth-plan-badge-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f7ff;
    border: 1px solid #c5dffe;
    border-radius: 0.625rem;
    padding: 0.625rem 0.875rem;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
}

.auth-plan-selected {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e4fd8;
}

.auth-plan-selected svg {
    color: #1e7af2;
    flex-shrink: 0;
}

.auth-plan-selected strong {
    font-weight: 700;
}

.auth-plan-change {
    font-size: 0.8125rem;
    color: #5a5a5a;
    text-decoration: underline;
    white-space: nowrap;
}

.auth-plan-change:hover {
    color: #1e7af2;
}
