@import url('https://fonts.googleapis.com/css2?family=Charis+SIL:ital,wght@0,400;0,700;1,400;1,700&family=Outfit:wght@300;400;500;600;700;800&display=swap');
:root {
  --bg: #f4efe7;
  --bg-deep: #151412;
  --ink: #1e1b17;
  --muted: #746f66;
  --muted-dark: #b9b0a2;
  --card: rgba(255,255,255,.76);
  --card-strong: rgba(255,255,255,.92);
  --line: rgba(32,28,23,.12);
  --line-dark: rgba(255,255,255,.13);
  --gold: #b89255;
  --gold-soft: #ead9bd;
  --rose: #7b6753;
  --plum: #1d1b18;
  --plum-2: #2c2924;
  --cream: #fffaf0;
  --green: #58705e;
  --red: #9e4f4f;
  --shadow: 0 28px 78px rgba(36,31,24,.13);
  --shadow-dark: 0 26px 80px rgba(0,0,0,.32);
  --radius: 34px;
  --radius-lg: 48px;
}* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(184,146,85,.18), transparent 32%),
    radial-gradient(circle at 92% 10%, rgba(38,34,28,.08), transparent 34%),
    linear-gradient(135deg, #fbf7ef 0%, #f1e8da 48%, #e7dac8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.ambient { position: fixed; border-radius: 999px; filter: blur(48px); opacity: .6; pointer-events: none; z-index: -1; }
.ambient-one { width: 420px; height: 420px; left: -160px; top: 110px; background: rgba(199,154,89,.36); }
.ambient-two { width: 520px; height: 520px; right: -220px; top: 20px; background: rgba(75,31,47,.18); }
.app-topbar {
  width: min(1220px, calc(100% - 32px));
  margin: 18px auto 0;
  height: 72px;
  padding: 0 12px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 14px;
  z-index: 20;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,249,241,.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 60px rgba(58,31,22,.11);
  border-radius: 999px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 950; letter-spacing: -.04em; font-size: 20px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #fff8ef; background: linear-gradient(145deg, #171511, #2c2922 58%, var(--gold));
  font-family: 'Charis SIL', Georgia, serif; font-style: italic; box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 14px 30px rgba(62,29,39,.24);
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 11px 14px; border-radius: 999px; color: rgba(33,22,26,.78); font-weight: 800; font-size: 14px; }
.main-nav a:hover { background: rgba(255,255,255,.74); color: var(--ink); }
.main-nav .nav-cta { color: #fff; background: linear-gradient(135deg, #1d1b18, #4a4135); box-shadow: 0 12px 30px rgba(61,27,39,.19); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 20px; box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.page-shell { width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 72px; position: relative; }
h1, h2, h3 { margin: 0; letter-spacing: -.06em; line-height: .96; color: var(--ink); }
h1 { font-size: clamp(52px, 8.6vw, 112px); font-weight: 950; }
h2 { font-size: clamp(34px, 4.8vw, 66px); font-weight: 950; }
h3 { font-size: clamp(24px, 2.5vw, 34px); font-weight: 900; }
p { margin: 0; color: var(--muted); }
.lead { font-size: clamp(18px, 2.1vw, 24px); color: rgba(33,22,26,.76); max-width: 720px; }
.eyebrow { color: #8a6f44; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 950; }
.hero-grid { min-height: calc(100svh - 126px); display: grid; grid-template-columns: 1.05fr .75fr; align-items: center; gap: clamp(28px, 6vw, 90px); padding: 38px 0 70px; }
.hero-copy { display: grid; gap: 26px; }
.hero-actions, .profile-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; border-radius: 999px; padding: 14px 20px; font-weight: 950; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff8ef; background: linear-gradient(135deg, #1d1b18 0%, #4d4436 58%, #b89255 100%); box-shadow: 0 20px 48px rgba(67,29,42,.23); }
.button-ghost, .button-soft { color: var(--ink); background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 12px 34px rgba(60,35,28,.08); }
.button-full { width: 100%; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span, .soft-pill, .creator-tags span, .phone-pills span, .mini-stack span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 999px;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.76); color: rgba(33,22,26,.74); font-weight: 850; font-size: 13px;
}
.luxury-phone {
  width: min(420px, 100%); min-height: 690px; margin-inline: auto; padding: 14px; border-radius: 56px;
  background: linear-gradient(160deg, #151412, #2f2b25 62%, #b89255);
  box-shadow: var(--shadow-dark); border: 1px solid rgba(255,255,255,.2); position: relative;
}
.phone-top { width: 96px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.3); margin: 10px auto 18px; }
.phone-scene { min-height: 622px; border-radius: 42px; overflow: hidden; background: linear-gradient(180deg, #2e1a25, #1a1015); position: relative; padding: 18px; display: flex; align-items: flex-end; }
.phone-portrait { position: absolute; inset: 0; background: radial-gradient(circle at 52% 28%, rgba(255,239,215,.18), transparent 12%), radial-gradient(ellipse at 50% 36%, rgba(198,166,118,.26), transparent 18%), linear-gradient(160deg, #1b1915 0%, #454037 60%, #b89255 100%); }
.phone-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,10,16,.92), transparent 55%); }
.phone-glass { position: relative; z-index: 1; width: 100%; padding: 22px; border-radius: 30px; background: rgba(255,248,239,.13); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(18px); color: #fff8ef; display: grid; gap: 12px; }
.phone-glass h3 { color: #fff8ef; }
.phone-glass p { color: rgba(255,248,239,.76); }
.phone-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.phone-pills span { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.18); color: rgba(255,248,239,.86); }
.section-head { display: grid; gap: 14px; text-align: center; max-width: 850px; margin: 30px auto 32px; }
.section-head.wide { max-width: 980px; }
.section-head.compact { margin-top: 76px; }
.feature-grid, .creator-grid, .content-grid, .metric-grid, .fee-calculator, .package-grid, .wallet-grid, .pricing-model { display: grid; gap: 28px; }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.creator-grid { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.content-grid, .metric-grid, .fee-calculator { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.package-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.wallet-grid, .pricing-model { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.feature-card, .creator-card, .content-card, .panel-card, .metric-card, .wallet-card, .price-hero-card, .qr-card, .demo-panel, .login-card, .pricing-strip, .split-panel {
  background: var(--card); border: 1px solid rgba(255,255,255,.76); box-shadow: var(--shadow); border-radius: var(--radius); backdrop-filter: blur(20px);
}
.feature-card { padding: 30px; display: grid; gap: 18px; min-height: 260px; }
.icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #1d1b18, var(--gold)); color: #fff8ef; font-weight: 950; }
.split-panel, .pricing-strip { margin: 28px 0; padding: clamp(26px, 5vw, 56px); display: grid; grid-template-columns: 1fr .7fr; gap: 28px; align-items: center; }
.mini-stack { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.pricing-strip { background: linear-gradient(135deg, rgba(29,27,24,.97), rgba(67,59,47,.92)); color: #fff8ef; border-color: rgba(255,255,255,.16); }
.pricing-strip h2, .pricing-strip p, .pricing-strip .eyebrow { color: #fff8ef; }
.pricing-strip p { opacity: .78; }
.creator-card { overflow: hidden; }
.creator-cover { min-height: 290px; position: relative; display: flex; align-items: flex-end; justify-content: flex-start; padding: 22px; background: radial-gradient(circle at 50% 18%, rgba(255,239,215,.22), transparent 14%), linear-gradient(145deg, #1d1b18, #575046 55%, #b89255); }
.creator-card:nth-child(even) .creator-cover { background: radial-gradient(circle at 48% 18%, rgba(255,239,215,.20), transparent 14%), linear-gradient(145deg, #161512, #403a32 55%, #9f7b47); }
.creator-cover span { color: rgba(255,248,239,.82); font-family: 'Charis SIL', Georgia, serif; font-style: italic; font-size: 42px; letter-spacing: -.08em; }
.creator-body { padding: 0 26px 28px; display: grid; gap: 12px; }
.avatar { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin-top: -34px; color: #fff8ef; background: linear-gradient(145deg, #1d1b18, #5b5143, var(--gold)); border: 5px solid #fff8ef; box-shadow: 0 16px 36px rgba(0,0,0,.14); font-weight: 950; font-size: 28px; position: relative; z-index: 2; }
.avatar-large { width: 104px; height: 104px; margin: -54px 0 0; font-size: 42px; }
.creator-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-hero { margin-top: 16px; border-radius: var(--radius-lg); overflow: hidden; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.72); box-shadow: var(--shadow); }
.profile-cover { height: 430px; padding: 32px; display: flex; align-items: flex-end; background: radial-gradient(circle at 52% 18%, rgba(255,239,215,.22), transparent 13%), linear-gradient(150deg, #1d1b18 0%, #5b5146 52%, #b89255 100%); }
.profile-cover span { color: rgba(255,248,239,.84); font-family: 'Charis SIL', Georgia, serif; font-size: clamp(42px, 8vw, 98px); font-style: italic; letter-spacing: -.08em; }
.profile-info { padding: 0 clamp(24px, 4vw, 48px) 48px; display: flex; gap: 32px; align-items: flex-start; }
.profile-info > div:last-child { display: grid; gap: 18px; min-width: 0; }
.wallet-pill { display: inline-flex; width: fit-content; padding: 12px 15px; border-radius: 999px; color: #fff8ef; background: linear-gradient(135deg, #1d1b18, #4a4135); font-weight: 900; }
.token-panel { margin-top: 42px; }
.content-card { overflow: hidden; }
.media-placeholder { height: 280px; position: relative; display: grid; place-items: center; color: rgba(255,248,239,.88); background: linear-gradient(145deg, #1d1b18, #5a5145, #b89255); }
.media-placeholder.video { background: linear-gradient(145deg, #141312, #343029, #7d6b56); }
.media-placeholder span { font-family: 'Charis SIL', Georgia, serif; font-size: 54px; font-style: italic; letter-spacing: -.08em; }
.lock-badge { position: absolute; right: 16px; top: 16px; padding: 9px 12px; border-radius: 999px; background: rgba(20,12,17,.72); color: #fff8ef; font-weight: 900; }
.content-body { padding: 28px; display: grid; gap: 16px; }
.content-meta { display: flex; justify-content: space-between; gap: 12px; color: #8a6f44; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 950; }
.unlocked-box { padding: 14px; border-radius: 20px; background: rgba(88,124,101,.12); color: var(--green); font-weight: 850; }
.pricing-model { margin-bottom: 18px; }
.price-hero-card { padding: clamp(26px, 5vw, 48px); display: grid; gap: 10px; }
.price-hero-card span { color: #8a6f44; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 950; }
.price-hero-card strong { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.06em; line-height: .95; }
.price-hero-card.featured { color: #fff8ef; background: linear-gradient(135deg, #1d1b18, #4a4135); border-color: rgba(255,255,255,.18); }
.price-hero-card.featured strong, .price-hero-card.featured p, .price-hero-card.featured span { color: #fff8ef; }
.metric-card, .wallet-card { padding: 25px; display: grid; gap: 8px; }
.metric-card span, .wallet-card span { color: var(--muted); font-weight: 850; }
.metric-card strong, .wallet-card strong { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.05em; line-height: 1; }
.metric-card small { color: var(--muted); font-weight: 750; }
.panel-card, .qr-card, .demo-panel { padding: clamp(24px, 4vw, 38px); }
.prose-card { margin-top: 22px; display: grid; gap: 12px; }
.login-layout, .order-layout, .creator-admin-grid { display: grid; grid-template-columns: .86fr 1fr; gap: 22px; align-items: start; }
.order-layout, .creator-admin-grid { grid-template-columns: 1fr .9fr; }
.form-stack { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: rgba(33,22,26,.82); font-weight: 900; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.78); color: var(--ink); border-radius: 18px; padding: 13px 14px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: rgba(184,146,85,.46); box-shadow: 0 0 0 4px rgba(184,146,85,.12); }
.demo-panel { display: grid; gap: 12px; }
.demo-login { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; border-radius: 22px; border: 1px solid rgba(255,255,255,.76); background: rgba(255,255,255,.62); cursor: pointer; text-align: left; }
.demo-login span { color: var(--muted); }
.section-inline { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.package-card { width: 100%; min-height: 168px; padding: 22px; display: grid; gap: 10px; text-align: left; border-radius: 28px; border: 1px solid rgba(255,255,255,.76); background: rgba(255,255,255,.66); cursor: pointer; color: var(--ink); box-shadow: 0 18px 42px rgba(50,30,24,.08); transition: transform .18s ease, box-shadow .18s ease; }
.package-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.package-card span { color: #8a6f44; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 950; }
.package-card strong { font-size: 28px; letter-spacing: -.04em; }
.package-card small { color: var(--muted); font-weight: 850; }
.package-grid > form, .content-grid > article, .creator-grid > article, .metric-grid > article, .wallet-grid > article, .pricing-model > article { min-width: 0; }
.profile-actions { gap: 14px; }
.profile-actions .soft-pill { margin-bottom: 4px; }
.content-card, .package-card, .metric-card, .wallet-card, .price-hero-card, .panel-card { overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .11em; }
.status-chip, .order-status { display: inline-flex; padding: 9px 12px; border-radius: 999px; font-weight: 950; background: rgba(199,154,89,.16); color: #866036; }
.status-chip.paid, .order-status.paid { background: rgba(88,124,101,.15); color: var(--green); }
.mini-button { border: 0; border-radius: 999px; padding: 9px 12px; cursor: pointer; color: #fff8ef; background: var(--plum); font-weight: 900; }
.creator-fees { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.creator-fees article { padding: 20px; border-radius: 26px; background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.76); }
.payment-details { display: grid; gap: 8px; margin-top: 22px; }
.payment-details div { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-weight: 900; }
dd { margin: 0; font-weight: 950; text-align: right; }
.qr-card { text-align: center; }
.qr-demo { width: min(270px, 100%); height: auto; border-radius: 28px; box-shadow: 0 24px 50px rgba(36,21,27,.18); margin-bottom: 14px; }
textarea[data-copy] { min-height: 118px; font-size: 12px; }
.only-demo { margin-top: 14px; }
.notice { width: min(1220px, calc(100% - 32px)); margin: 12px auto; padding: 15px 18px; border-radius: 22px; background: rgba(255,255,255,.74); border: 1px solid rgba(255,255,255,.86); font-weight: 900; color: var(--muted); box-shadow: 0 14px 42px rgba(50,30,24,.08); }
.notice-ok { color: var(--green); }
.notice-error { color: var(--red); }
.site-footer { width: min(1220px, calc(100% - 32px)); margin: 0 auto 32px; padding: 26px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer div { display: grid; gap: 3px; }
.site-footer strong { color: var(--ink); }
@media (max-width: 980px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav { position: fixed; top: 92px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; padding: 16px; border-radius: 28px; background: rgba(255,248,239,.96); border: 1px solid rgba(255,255,255,.86); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .hero-grid, .split-panel, .pricing-strip, .login-layout, .order-layout, .creator-admin-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding-top: 30px; }
  .luxury-phone { min-height: 600px; }
  .phone-scene { min-height: 536px; }
  .feature-grid, .creator-grid, .content-grid, .metric-grid, .fee-calculator, .package-grid, .wallet-grid, .pricing-model, .creator-fees { grid-template-columns: 1fr; gap: 24px; }
  .mini-stack { justify-content: flex-start; }
  .section-inline { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .page-shell { width: min(100% - 22px, 1220px); padding-top: 22px; }
  .app-topbar { width: min(100% - 22px, 1220px); height: 64px; top: 10px; padding-left: 12px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  h1 { font-size: clamp(42px, 14vw, 66px); }
  h2 { font-size: clamp(32px, 11vw, 48px); }
  .hero-actions .button { width: 100%; }
  .luxury-phone { min-height: 520px; border-radius: 42px; padding: 10px; }
  .phone-scene { min-height: 462px; border-radius: 34px; }
  .profile-cover { height: 260px; padding: 22px; }
  .profile-info { flex-direction: column; gap: 22px; padding-bottom: 34px; }
  .avatar-large { margin-top: -52px; }
  .feature-card, .creator-card, .content-card, .panel-card, .metric-card, .wallet-card, .price-hero-card, .qr-card, .demo-panel, .pricing-strip, .split-panel { border-radius: 28px; }
}

/* v4 – stabilnější dashboardy, větší rozestupy a zeď příspěvků */
:root { --gap-xl: clamp(28px, 4vw, 44px); }
.page-shell { overflow: visible; }
.dashboard-hero { margin: 18px 0 28px; display: grid; gap: 14px; max-width: 920px; }
.dashboard-hero h1 { font-size: clamp(42px, 6vw, 78px); }
.metric-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap-xl); align-items: stretch; margin: 28px 0 var(--gap-xl); }
.metric-card { min-height: 170px; align-content: start; position: relative; isolation: isolate; }
.metric-card strong { max-width: 100%; overflow-wrap: anywhere; word-break: normal; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; }
.creator-admin-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-xl); margin-bottom: var(--gap-xl); }
.creator-admin-grid > *, .metric-grid > *, .package-grid > *, .content-wall > *, .post-admin-list > * { min-width: 0; }
.panel-card { margin-bottom: var(--gap-xl); }
.form-stack > label, .form-stack .edit-grid, .form-stack .compose-grid { min-width: 0; }

.logic-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 34px 0; }
.logic-strip article { padding: 24px; border-radius: 30px; background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.82); box-shadow: 0 18px 42px rgba(50,30,24,.07); display: grid; gap: 8px; }
.logic-strip strong { font-size: 20px; letter-spacing: -.04em; }
.logic-strip span { color: var(--muted); font-weight: 760; }

.subscribe-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 28px 0; padding: clamp(24px, 4vw, 38px); border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,255,255,.76), rgba(236,219,191,.56)); border: 1px solid rgba(255,255,255,.82); box-shadow: var(--shadow); }
.subscribe-card > div { display: grid; gap: 10px; max-width: 720px; }
.status-big { display: inline-flex; align-items: center; justify-content: center; min-width: 128px; min-height: 52px; border-radius: 999px; color: #fff8ef; background: linear-gradient(135deg, #1d1b18, #4a4135); font-weight: 950; }

.content-wall { display: grid; gap: 38px; max-width: 860px; margin: 0 auto; }
.wall-post { overflow: hidden; border-radius: var(--radius); background: var(--card-strong); border: 1px solid rgba(255,255,255,.86); box-shadow: var(--shadow); }
.wall-post-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.wall-post-head > div:not(.avatar) { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
.wall-post-head strong { font-size: 18px; }
.wall-post-head span { color: var(--muted); font-size: 13px; font-weight: 760; }
.wall-post-head em { font-style: normal; padding: 8px 11px; border-radius: 999px; background: rgba(184,146,85,.13); color: #806139; font-size: 12px; font-weight: 950; white-space: nowrap; }
.small-avatar { width: 48px; height: 48px; margin: 0; font-size: 20px; border-width: 3px; }
.wall-post .media-placeholder { height: clamp(280px, 48vw, 540px); }
.wall-post .content-body { padding: clamp(24px, 4vw, 36px); }

.wall-admin { scroll-margin-top: 110px; }
.post-admin-list { display: grid; gap: 26px; }
.post-admin-card { position: relative; display: grid; gap: 14px; padding: 24px; border-radius: 30px; background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.82); box-shadow: 0 18px 42px rgba(50,30,24,.07); }
.post-admin-card form { min-width: 0; }
.post-admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.post-admin-head strong { font-size: 20px; overflow-wrap: anywhere; }
.post-admin-head span { padding: 7px 10px; border-radius: 999px; background: rgba(184,146,85,.13); color: #806139; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 950; }
.edit-grid, .compose-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.compose-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.mini-button.danger { background: #7b3f3f; }
.muted-card { opacity: .72; }

.chat-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .38fr); gap: var(--gap-xl); align-items: start; }
.chat-header { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; margin-bottom: 24px; }
.chat-header > div:first-child { display: grid; gap: 10px; min-width: 0; }
.chat-header h1 { font-size: clamp(38px, 5vw, 70px); }
.chat-balance { min-width: 150px; padding: 16px; border-radius: 24px; background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.82); display: grid; gap: 2px; text-align: center; }
.chat-balance span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.chat-balance strong { font-size: 34px; letter-spacing: -.05em; }
.chat-feed { display: grid; gap: 16px; padding: 18px; border-radius: 30px; background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.72); margin-bottom: 18px; }
.chat-bubble { max-width: min(76%, 620px); padding: 16px 18px; border-radius: 24px; background: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.82); display: grid; gap: 8px; }
.chat-bubble.from-me { justify-self: end; background: linear-gradient(135deg, #1d1b18, #4a4135); color: #fff8ef; }
.chat-bubble.from-me p, .chat-bubble.from-me span { color: rgba(255,248,239,.78); }
.chat-bubble.from-them { justify-self: start; }
.chat-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.chat-meta span { color: var(--muted); }
.chat-bubble.from-me .chat-meta span { color: rgba(255,248,239,.66); }
.locked-message { display: grid; gap: 8px; padding: 14px; border-radius: 20px; background: rgba(184,146,85,.12); }
.chat-media { min-height: 180px; border-radius: 22px; display: grid; place-items: center; color: #fff8ef; background: linear-gradient(145deg, #1d1b18, #5a5145, #b89255); font-family: 'Charis SIL', Georgia, serif; font-size: 42px; letter-spacing: -.06em; }
.chat-compose { display: grid; gap: 14px; }
.chat-side { position: sticky; top: 110px; display: grid; gap: 16px; }
.mini-stack.left { justify-content: flex-start; }
.chat-list { display: grid; gap: 12px; }
.chat-list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; border-radius: 24px; background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.82); }
.chat-list-item span { color: var(--muted); font-weight: 800; }

@media (max-width: 980px) {
  .logic-strip, .chat-shell, .creator-admin-grid { grid-template-columns: 1fr; }
  .chat-side { position: static; }
  .edit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .metric-grid, .creator-admin-grid, .logic-strip, .post-admin-list { gap: 22px; }
  .metric-card { min-height: auto; }
  .subscribe-card, .chat-header, .chat-list-item { flex-direction: column; align-items: stretch; }
  .content-wall { gap: 28px; }
  .wall-post-head { align-items: flex-start; flex-wrap: wrap; }
  .wall-post-head em { margin-left: 62px; }
  .edit-grid, .compose-grid { grid-template-columns: 1fr; }
  .chat-bubble { max-width: 100%; }
  .chat-balance { text-align: left; }
}

/* v5 – knihovna obsahu pro velké množství příspěvků */
input, textarea, select { max-width: 100%; min-width: 0; }
.panel-card, .metric-card, .feature-card, .wallet-card, .content-card { overflow: hidden; }
.content-library { overflow: visible; }
.library-head h2 { font-size: clamp(34px, 4.4vw, 58px); }
.library-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.library-stats article { min-width: 0; padding: 18px; border-radius: 24px; background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.82); display: grid; gap: 3px; }
.library-stats span { color: var(--muted); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .11em; }
.library-stats strong { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.05em; line-height: 1; }
.library-toolbar { display: grid; grid-template-columns: minmax(240px, 1.4fr) minmax(160px, .75fr) minmax(150px, .65fr) minmax(130px, .55fr) auto; gap: 14px; align-items: end; padding: 18px; border-radius: 28px; background: rgba(255,255,255,.46); border: 1px solid rgba(255,255,255,.74); margin: 20px 0 12px; }
.library-toolbar > * { min-width: 0; }
.library-toolbar-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.library-summary-line { color: var(--muted); font-weight: 850; margin: 14px 0 18px; }
.library-summary-line strong { color: var(--ink); }
.library-list { display: grid; gap: 14px; }
.library-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) minmax(190px, auto); gap: 16px; align-items: start; padding: 16px; border-radius: 28px; background: rgba(255,255,255,.70); border: 1px solid rgba(255,255,255,.84); box-shadow: 0 16px 38px rgba(50,30,24,.07); }
.library-row.is-muted { opacity: .7; }
.library-thumb { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; color: #fff8ef; background: linear-gradient(145deg, #1d1b18, #5a5145, #b89255); box-shadow: 0 14px 28px rgba(36,21,27,.12); }
.library-thumb.video { background: linear-gradient(145deg, #151412, #3f3a32, #8b6a3c); }
.library-thumb span { font-size: 28px; font-weight: 950; }
.library-main { min-width: 0; display: grid; gap: 8px; }
.library-title-line { display: grid; gap: 10px; }
.library-title-line strong { font-size: 19px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.library-main p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.library-badges { display: flex; gap: 7px; flex-wrap: wrap; }
.library-badges span { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; background: rgba(184,146,85,.12); color: #806139; font-size: 12px; font-weight: 950; white-space: nowrap; }
.library-badges .status-chip { background: rgba(88,112,94,.13); color: var(--green); }
.status-chip.draft { background: rgba(184,146,85,.14); color: #806139; }
.status-chip.archived { background: rgba(80,74,67,.12); color: #655d54; }
.library-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 850; }
.library-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 190px; }
.library-edit { position: relative; }
.library-edit summary { list-style: none; cursor: pointer; text-align: center; border-radius: 999px; padding: 10px 14px; color: #fff8ef; background: linear-gradient(135deg, #1d1b18, #4a4135); font-weight: 950; }
.library-edit summary::-webkit-details-marker { display: none; }
.library-edit[open] { position: static; }
.library-edit[open] summary { margin-bottom: 14px; }
.library-edit[open] .form-stack { position: absolute; left: 16px; right: 16px; z-index: 7; margin-top: 8px; padding: 20px; border-radius: 26px; background: rgba(255,250,243,.98); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 28px 72px rgba(36,31,24,.22); }
.library-row:has(.library-edit[open]) { padding-bottom: 360px; }
.compact-edit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.empty-state { padding: 28px; border-radius: 28px; background: rgba(255,255,255,.58); border: 1px solid rgba(255,255,255,.78); display: grid; gap: 8px; text-align: center; }
.library-pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 22px; }
.library-pagination span { font-weight: 950; color: var(--muted); }

@supports not selector(:has(*)) {
  .library-edit[open] .form-stack { position: relative; left: auto; right: auto; box-shadow: 0 18px 42px rgba(50,30,24,.12); }
}

@media (max-width: 1040px) {
  .library-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-toolbar-actions { justify-content: flex-start; }
  .library-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-row { grid-template-columns: 74px minmax(0, 1fr); }
  .library-thumb { width: 74px; height: 74px; }
  .library-actions { grid-column: 2; min-width: 0; flex-direction: row; flex-wrap: wrap; }
  .library-actions > * { flex: 1 1 160px; }
  .compact-edit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .library-stats, .library-toolbar { grid-template-columns: 1fr; }
  .library-row { grid-template-columns: 1fr; gap: 12px; }
  .library-thumb { width: 100%; height: 120px; }
  .library-actions { grid-column: auto; flex-direction: column; }
  .library-edit[open] .form-stack { position: relative; left: auto; right: auto; margin-top: 12px; box-shadow: 0 18px 42px rgba(50,30,24,.14); }
  .library-row:has(.library-edit[open]) { padding-bottom: 16px; }
  .compact-edit-grid { grid-template-columns: 1fr; }
}
.library-row { position: relative; }

/* v6 – chat attachments and internal notifications */
.nav-with-badge { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.nav-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 900; background: #b89255; color: #160f13; box-shadow: 0 8px 20px rgba(184,146,85,.28); }
.notifications-panel { margin-bottom: var(--gap-lg); }
.notification-list { display: grid; gap: 12px; }
.notification-item { display: grid; gap: 4px; padding: 15px 16px; border-radius: 22px; background: rgba(255,255,255,.56); border: 1px solid rgba(255,255,255,.78); color: inherit; text-decoration: none; }
.notification-item.unread { background: rgba(255,247,234,.96); border-color: rgba(184,146,85,.45); box-shadow: 0 18px 50px rgba(84, 61, 32, .08); }
.notification-item span { color: var(--muted); font-weight: 650; }
.notification-item small { color: var(--muted); font-weight: 800; letter-spacing: .04em; }
.small-status { font-size: 20px; padding: 14px 18px; white-space: nowrap; }
.compact-empty { padding: 18px; min-height: auto; }
.file-drop { border: 1px dashed rgba(184,146,85,.55); background: rgba(255,247,234,.56); border-radius: 22px; padding: 14px; display: grid; gap: 10px; }
.file-drop input[type="file"] { padding: 10px; border-radius: 16px; background: rgba(255,255,255,.72); }
.file-drop small, .compose-grid small { color: var(--muted); font-weight: 750; line-height: 1.45; }
.chat-media-frame { margin: 0; overflow: hidden; border-radius: 22px; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.15); }
.chat-media-frame img, .chat-media-frame video { display: block; width: 100%; max-height: 430px; object-fit: cover; }
.chat-bubble.from-me .chat-media-frame { border-color: rgba(255,248,239,.2); }
.chat-list-item strong { display: inline-flex; align-items: center; gap: 8px; }
.chat-list-item em { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; background: #b89255; color: #160f13; font-style: normal; font-size: 12px; font-weight: 950; }
.wallet-card { gap: 12px; }
@media (max-width: 760px) {
  .notification-item { padding: 14px; }
  .chat-media-frame img, .chat-media-frame video { max-height: 320px; }
}

/* v7: registrace fanouška / tvůrkyně */
.register-layout { align-items: start; }
.register-form .two-cols { grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row,
.switch-card {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.54);
  box-shadow: 0 16px 34px rgba(50,30,24,.06);
  cursor: pointer;
}
.check-row input,
.switch-card input { width: 18px; min-width: 18px; height: 18px; margin-top: 2px; accent-color: #8a6f44; }
.switch-card strong { display: block; color: var(--ink); font-size: 15px; }
.switch-card small { display: block; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.creator-register-fields { display: none; gap: 14px; padding: 18px; border-radius: 26px; background: rgba(255,250,243,.72); border: 1px solid rgba(184,146,85,.2); }
.creator-register-fields.is-visible { display: grid; }
.register-divider { display: flex; align-items: center; gap: 12px; color: #8a6f44; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 950; }
.register-divider::before,
.register-divider::after { content: ''; height: 1px; flex: 1; background: rgba(184,146,85,.22); }
.notice-soft { background: rgba(255,255,255,.64); color: var(--muted); border-color: rgba(184,146,85,.24); }
.small-notice { margin: 0; font-size: 13px; line-height: 1.55; }
.form-footnote { color: var(--muted); margin-top: 14px; }
.form-footnote a { color: #8a6f44; font-weight: 900; }
.register-info-panel .panel-note { margin-top: 22px; padding: 18px; border-radius: 24px; background: rgba(255,255,255,.58); border: 1px solid rgba(255,255,255,.7); }
.register-info-panel .panel-note p { margin-bottom: 0; }
@media (max-width: 760px) {
  .register-form .two-cols { grid-template-columns: 1fr; }
}


/* v8 – editorial luxury redesign: méně HeroHero, více privátní klub */
:root {
  --bg: #f7f2ea;
  --bg-deep: #100f0d;
  --ink: #171513;
  --muted: #756e62;
  --muted-dark: #c7bcab;
  --card: rgba(255, 252, 246, .88);
  --card-strong: rgba(255, 252, 246, .96);
  --line: rgba(23, 21, 19, .105);
  --line-dark: rgba(255, 255, 255, .13);
  --gold: #a98754;
  --gold-soft: #e8d7b8;
  --rose: #756756;
  --plum: #171513;
  --plum-2: #26221d;
  --cream: #fffbf3;
  --green: #546d59;
  --red: #8f4b4b;
  --shadow: 0 22px 70px rgba(37, 31, 24, .095);
  --shadow-dark: 0 28px 90px rgba(0,0,0,.35);
  --radius: 24px;
  --radius-lg: 34px;
  --gap-xl: clamp(34px, 4.8vw, 58px);
}

body {
  background:
    radial-gradient(circle at 72% -12%, rgba(168,135,84,.12), transparent 36%),
    radial-gradient(circle at 8% 0%, rgba(255,255,255,.76), transparent 34%),
    linear-gradient(180deg, #fbf7ef 0%, #f4ede2 46%, #e9dece 100%);
  font-family: 'Manrope', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.012em;
}
body::before {
  opacity: .16;
  background-image:
    linear-gradient(rgba(23,21,19,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,21,19,.04) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, #000, transparent 66%);
}
.ambient { opacity: .28; filter: blur(72px); }
.ambient-one { background: rgba(168,135,84,.28); }
.ambient-two { background: rgba(29,27,24,.12); }

.app-topbar {
  height: 76px;
  margin-top: 20px;
  padding: 0 16px 0 18px;
  border-radius: 0;
  background: rgba(255,252,246,.82);
  border: 1px solid rgba(23,21,19,.08);
  box-shadow: 0 18px 55px rgba(37,31,24,.07);
}
.brand { gap: 13px; font-size: 19px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark {
  border-radius: 0;
  width: 44px;
  height: 44px;
  background: #171513;
  color: #f8ead2;
  font-family: 'Charis SIL', Georgia, serif;
  font-size: 27px;
  font-weight: 700;
  box-shadow: none;
}
.main-nav { gap: 2px; }
.main-nav a {
  padding: 11px 13px;
  border-radius: 0;
  color: rgba(23,21,19,.68);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.main-nav a:hover { background: rgba(23,21,19,.045); color: var(--ink); }
.main-nav .nav-cta,
.button-primary,
.mini-button,
.library-edit summary {
  background: #171513;
  color: #fff7e9;
  box-shadow: 0 18px 44px rgba(23,21,19,.15);
}
.nav-toggle { border-radius: 0; box-shadow: none; border: 1px solid var(--line); background: #fffaf2; }

.page-shell { padding-top: 42px; }
h1, h2, h3 {
  font-family: 'Charis SIL', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .94;
}
h1 { font-size: clamp(58px, 9.5vw, 126px); }
h2 { font-size: clamp(42px, 5.6vw, 82px); }
h3 { font-size: clamp(28px, 3vw, 44px); }
p { color: var(--muted); }
.lead {
  max-width: 760px;
  color: rgba(23,21,19,.69);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.74;
}
.eyebrow {
  color: #8d7245;
  letter-spacing: .22em;
  font-weight: 800;
  font-size: 11px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .72fr);
  gap: clamp(42px, 7vw, 105px);
  padding-top: 52px;
}
.hero-copy { gap: 30px; }
.hero-actions, .profile-actions { gap: 14px; }
.button {
  border-radius: 0;
  padding: 15px 22px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.button:hover { transform: translateY(-1px); }
.button-ghost, .button-soft {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(23,21,19,.18);
  box-shadow: none;
}
.trust-row { gap: 9px; }
.trust-row span, .soft-pill, .creator-tags span, .phone-pills span, .mini-stack span {
  border-radius: 0;
  background: rgba(255,252,246,.58);
  border: 1px solid rgba(23,21,19,.09);
  color: rgba(23,21,19,.68);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .035em;
}

.luxury-phone {
  border-radius: 0;
  padding: 12px;
  min-height: 660px;
  background: #171513;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 32px 90px rgba(23,21,19,.22);
}
.phone-top { display: none; }
.phone-scene {
  border-radius: 0;
  min-height: 636px;
  background: #201d19;
  padding: 26px;
}
.phone-portrait {
  background:
    linear-gradient(to top, rgba(14,13,12,.96), rgba(14,13,12,.18) 54%, rgba(14,13,12,.18)),
    radial-gradient(ellipse at 48% 30%, rgba(239,213,172,.36), transparent 17%),
    linear-gradient(145deg, #161513 0%, #423b31 55%, #a98754 100%);
}
.phone-glass {
  border-radius: 0;
  padding: 28px;
  background: rgba(17,15,13,.66);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
}
.phone-glass .eyebrow { color: #dec28e; }
.phone-glass h3 { color: #fff7e9; }

.section-head { margin: 54px auto 42px; gap: 18px; }
.section-head.compact { margin-top: 96px; }
.feature-grid, .creator-grid, .content-grid, .metric-grid, .fee-calculator, .package-grid, .wallet-grid, .pricing-model { gap: clamp(24px, 3vw, 38px); }

.feature-card, .creator-card, .content-card, .panel-card, .metric-card, .wallet-card, .price-hero-card, .qr-card, .demo-panel, .login-card, .pricing-strip, .split-panel,
.wall-post, .post-admin-card, .subscribe-card, .logic-strip article, .library-row, .library-stats article, .library-toolbar, .notification-item, .chat-feed, .chat-bubble, .chat-balance, .chat-list-item, .empty-state, .package-card, .register-info-panel .panel-note, .check-row, .switch-card, .creator-register-fields {
  border-radius: 0 !important;
  background: rgba(255,252,246,.86);
  border: 1px solid rgba(23,21,19,.09);
  box-shadow: 0 18px 56px rgba(37,31,24,.065);
  backdrop-filter: none;
}
.feature-card, .panel-card, .metric-card, .wallet-card, .price-hero-card, .qr-card, .demo-panel { padding: clamp(26px, 4vw, 44px); }
.feature-card { min-height: 270px; }
.feature-card h3, .panel-card h3, .metric-card h3, .wallet-card h3 { font-family: 'Charis SIL', Georgia, serif; }
.icon {
  border-radius: 0;
  width: 54px;
  height: 54px;
  background: transparent;
  color: #8d7245;
  border: 1px solid rgba(141,114,69,.34);
  font-family: 'Charis SIL', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}
.split-panel, .pricing-strip {
  grid-template-columns: 1fr .74fr;
  padding: clamp(34px, 5vw, 70px);
}
.pricing-strip {
  background: #171513 !important;
  color: #fff7e9;
  border-color: rgba(255,255,255,.11);
}
.pricing-strip h2, .pricing-strip p, .pricing-strip .eyebrow { color: #fff7e9; }
.mini-stack span { padding: 12px 14px; }

.creator-card { background: #fffcf6; }
.creator-cover, .creator-card:nth-child(even) .creator-cover {
  min-height: 310px;
  background:
    linear-gradient(to top, rgba(17,15,13,.70), transparent 58%),
    radial-gradient(ellipse at 48% 34%, rgba(247,228,192,.22), transparent 18%),
    linear-gradient(145deg, #171513 0%, #50483d 66%, #a98754 100%);
}
.creator-cover span, .profile-cover span, .media-placeholder span {
  font-family: 'Charis SIL', Georgia, serif;
  font-weight: 600;
}
.creator-body { padding: 0 28px 30px; gap: 14px; }
.avatar, .avatar-large, .small-avatar {
  border-radius: 0;
  background: #171513;
  color: #fff7e9;
  border-color: #fffcf6;
  box-shadow: 0 14px 36px rgba(23,21,19,.16);
  font-family: 'Charis SIL', Georgia, serif;
}

.profile-hero {
  border-radius: 0;
  background: rgba(255,252,246,.82);
  border: 1px solid rgba(23,21,19,.09);
}
.profile-cover {
  background:
    linear-gradient(to top, rgba(17,15,13,.72), transparent 58%),
    radial-gradient(ellipse at 48% 32%, rgba(247,228,192,.22), transparent 17%),
    linear-gradient(150deg, #171513 0%, #51483c 58%, #a98754 100%);
}
.profile-cover span { color: rgba(255,247,233,.90); }
.wallet-pill, .status-big {
  border-radius: 0;
  background: #171513;
  box-shadow: none;
  letter-spacing: .06em;
}

.media-placeholder, .library-thumb, .chat-media {
  border-radius: 0;
  background:
    linear-gradient(to top, rgba(17,15,13,.70), transparent 58%),
    linear-gradient(145deg, #171513, #4c453a 64%, #a98754);
}
.media-placeholder.video, .library-thumb.video { background: linear-gradient(145deg, #171513, #38342d, #756142); }
.lock-badge { border-radius: 0; background: rgba(17,15,13,.78); }
.content-body, .wall-post .content-body { gap: 18px; }
.content-meta { color: #8d7245; font-size: 11px; }
.unlocked-box { border-radius: 0; background: rgba(84,109,89,.105); }

.price-hero-card.featured {
  background: #171513 !important;
  border-color: rgba(255,255,255,.12);
}
.price-hero-card strong, .metric-card strong, .wallet-card strong {
  font-family: 'Charis SIL', Georgia, serif;
  font-weight: 600;
}
.metric-card strong, .wallet-card strong { font-size: clamp(34px, 4vw, 56px); }

input, textarea, select {
  border-radius: 0;
  background: rgba(255,252,246,.78);
  border: 1px solid rgba(23,21,19,.12);
  padding: 14px 15px;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(141,114,69,.55);
  box-shadow: 0 0 0 4px rgba(168,135,84,.12);
}
label { color: rgba(23,21,19,.78); font-weight: 750; }
.demo-login, .creator-fees article, .notice, .file-drop {
  border-radius: 0;
  background: rgba(255,252,246,.76);
  border: 1px solid rgba(23,21,19,.09);
}
.notice { box-shadow: 0 12px 38px rgba(37,31,24,.055); }
.status-chip, .order-status, .post-admin-head span, .wall-post-head em, .library-badges span, .nav-badge, .chat-list-item em {
  border-radius: 0;
  background: rgba(168,135,84,.13);
  color: #745b34;
}
.status-chip.paid, .order-status.paid { background: rgba(84,109,89,.14); color: var(--green); }

.content-wall { max-width: 900px; gap: 44px; }
.wall-post-head { padding: 24px 26px; }
.wall-post-head strong { font-family: 'Manrope', Inter, sans-serif; font-size: 16px; letter-spacing: -.01em; }
.library-toolbar { padding: 22px; }
.library-stats { gap: 16px; }
.library-row { padding: 18px; gap: 18px; }
.library-title-line strong { font-size: 18px; }
.library-edit[open] .form-stack { border-radius: 0; background: rgba(255,252,246,.99); border-color: rgba(23,21,19,.1); }
.chat-bubble.from-me { background: #171513; color: #fff7e9; }
.chat-bubble.from-me p, .chat-bubble.from-me span { color: rgba(255,247,233,.77); }
.chat-media-frame { border-radius: 0; }

.site-footer {
  border-top: 1px solid rgba(23,21,19,.12);
  padding-top: 30px;
}
.site-footer strong { font-family: 'Charis SIL', Georgia, serif; font-size: 24px; font-weight: 600; }

@media (max-width: 980px) {
  .app-topbar { border-radius: 0; }
  .main-nav { border-radius: 0; background: rgba(255,252,246,.98); }
  .hero-grid, .split-panel, .pricing-strip { grid-template-columns: 1fr; }
  .luxury-phone { min-height: 560px; }
  .phone-scene { min-height: 536px; }
}
@media (max-width: 560px) {
  .page-shell { padding-top: 26px; }
  .app-topbar { height: 66px; }
  .brand { font-size: 15px; letter-spacing: .06em; }
  .brand-mark { width: 38px; height: 38px; font-size: 24px; }
  h1 { font-size: clamp(48px, 16vw, 76px); }
  h2 { font-size: clamp(36px, 12vw, 58px); }
  .button { width: 100%; }
  .luxury-phone { min-height: 500px; }
  .phone-scene { min-height: 476px; padding: 18px; }
  .phone-glass { padding: 22px; }
  .creator-cover { min-height: 260px; }
  .profile-cover { height: 280px; }
}

/* v9 – luxusnější salon / magazínový vzhled, méně tabulek */
:root {
  --bg: #f6efe3;
  --ink: #1b1510;
  --muted: #7b6e61;
  --obsidian: #15110d;
  --obsidian-2: #241c15;
  --champagne: #d6b873;
  --champagne-soft: #efe1c4;
  --pearl: rgba(255, 252, 245, .88);
  --paper: #fffaf1;
  --line: rgba(46, 33, 21, .115);
  --shadow: 0 28px 90px rgba(45, 31, 18, .12);
  --shadow-deep: 0 38px 120px rgba(21, 17, 13, .24);
  --radius: 34px;
  --radius-lg: 52px;
}
html { background: #f6efe3; }
body {
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -8%, rgba(214,184,115,.34), transparent 32%),
    radial-gradient(circle at 92% 2%, rgba(21,17,13,.18), transparent 28%),
    linear-gradient(135deg, #fff9ef 0%, #f5ecdd 48%, #e9dac2 100%);
}
body::before {
  opacity: .18;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(87,62,35,.16) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 58%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - .5px), rgba(76,55,33,.08) 50%, transparent calc(50% + .5px)),
    linear-gradient(180deg, rgba(255,255,255,.28), transparent 42%);
  opacity: .42;
  z-index: -1;
}
h1, h2, h3, .brand, .price-hero-card strong, .metric-card strong, .wallet-card strong {
  font-family: 'Charis SIL', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -.055em;
}
h1 { font-size: clamp(56px, 8.8vw, 124px); line-height: .88; }
h2 { font-size: clamp(36px, 5.4vw, 76px); line-height: .93; }
h3 { font-size: clamp(25px, 2.8vw, 40px); line-height: .98; }
p { font-weight: 400; }
.lead { font-size: clamp(18px, 2vw, 25px); line-height: 1.52; max-width: 760px; }
.eyebrow {
  color: #92723c;
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 800;
}

.app-topbar {
  height: 78px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  background: rgba(255, 250, 242, .70);
  border: 1px solid rgba(255,255,255,.86);
  box-shadow: 0 24px 70px rgba(45,31,18,.13);
}
.brand { font-size: 22px; letter-spacing: -.035em; }
.brand-mark {
  border-radius: 50%;
  background: radial-gradient(circle at 28% 18%, #f7e5bd 0, #caa663 24%, #1a140e 66%);
  color: #fff9ef;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 16px 42px rgba(30,20,12,.24);
}
.main-nav a {
  font-family: 'Outfit', ui-sans-serif, sans-serif;
  letter-spacing: .025em;
  font-weight: 700;
  color: rgba(27,21,16,.74);
}
.main-nav .nav-cta, .button-primary, .mini-button {
  background: linear-gradient(135deg, #17120d 0%, #33271c 54%, #c39a4d 100%);
  color: #fff9ef;
  box-shadow: 0 18px 44px rgba(45,31,18,.19);
}

.hero-grid {
  min-height: calc(100svh - 132px);
  grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr);
  gap: clamp(34px, 6vw, 92px);
  padding-top: clamp(34px, 5vw, 72px);
}
.hero-copy {
  position: relative;
  padding: clamp(22px, 4vw, 44px) 0;
}
.hero-copy::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(146,114,60,.44), transparent);
}
.hero-actions { gap: 14px; }
.button {
  border-radius: 999px;
  padding: 15px 23px;
  text-transform: none;
  letter-spacing: .015em;
  font-family: 'Outfit', ui-sans-serif, sans-serif;
  font-weight: 750;
}
.button-ghost, .button-soft {
  background: rgba(255,250,242,.62);
  border: 1px solid rgba(53,37,22,.13);
  color: var(--ink);
  box-shadow: 0 14px 38px rgba(45,31,18,.07);
}
.trust-row span, .soft-pill, .creator-tags span, .phone-pills span, .mini-stack span {
  border-radius: 999px;
  background: rgba(255,250,242,.68);
  border: 1px solid rgba(53,37,22,.105);
  box-shadow: 0 10px 26px rgba(45,31,18,.045);
}

.luxury-phone {
  border-radius: 48px;
  padding: 13px;
  background: linear-gradient(155deg, #100c09, #2b2118 62%, #d2ac61);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow-deep);
  transform: rotate(1.4deg);
}
.luxury-phone::before {
  content: "";
  position: absolute;
  inset: 26px -24px auto auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(214,184,115,.28);
  filter: blur(32px);
}
.phone-scene { border-radius: 36px; overflow: hidden; }
.phone-portrait {
  background:
    linear-gradient(to top, rgba(13,10,8,.96), rgba(13,10,8,.08) 58%),
    radial-gradient(ellipse at 52% 28%, rgba(255,222,163,.46), transparent 14%),
    linear-gradient(145deg, #17120d 0%, #4e4032 56%, #b28b46 100%);
}
.phone-glass {
  border-radius: 28px;
  background: rgba(18,14,10,.58);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.section-head { margin-top: 72px; }
.feature-card, .creator-card, .content-card, .panel-card, .metric-card, .wallet-card, .price-hero-card, .qr-card, .demo-panel, .login-card, .pricing-strip, .split-panel,
.wall-post, .post-admin-card, .subscribe-card, .logic-strip article, .library-row, .library-stats article, .library-toolbar, .notification-item, .chat-feed, .chat-bubble, .chat-balance, .chat-list-item, .empty-state, .package-card, .register-info-panel .panel-note, .check-row, .switch-card, .creator-register-fields {
  border-radius: var(--radius) !important;
  background: var(--pearl);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.panel-card, .feature-card, .metric-card, .wallet-card, .price-hero-card, .qr-card, .demo-panel, .login-card {
  position: relative;
  overflow: hidden;
}
.panel-card::before, .feature-card::before, .metric-card::before, .wallet-card::before, .price-hero-card::before, .demo-panel::before, .login-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.72), transparent 34%, rgba(214,184,115,.12));
  opacity: .86;
}
.panel-card > *, .feature-card > *, .metric-card > *, .wallet-card > *, .price-hero-card > *, .demo-panel > *, .login-card > * { position: relative; z-index: 1; }
.feature-card:hover, .creator-card:hover, .content-card:hover, .library-row:hover, .wallet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 34px 98px rgba(45,31,18,.15);
}
.feature-card, .creator-card, .content-card, .library-row, .wallet-card { transition: transform .22s ease, box-shadow .22s ease; }
.icon {
  border-radius: 18px;
  background: rgba(27,21,16,.04);
  color: #9b793e;
  border: 1px solid rgba(155,121,62,.22);
}

.split-panel {
  border-radius: var(--radius-lg) !important;
  background:
    linear-gradient(135deg, rgba(255,250,242,.88), rgba(238,221,188,.56)),
    radial-gradient(circle at 12% 18%, rgba(214,184,115,.22), transparent 26%);
}
.pricing-strip {
  border-radius: var(--radius-lg) !important;
  background:
    radial-gradient(circle at 84% 18%, rgba(214,184,115,.22), transparent 30%),
    linear-gradient(135deg, #130f0b, #2d2218 70%) !important;
  border: 1px solid rgba(255,255,255,.12);
}

.creator-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.creator-card {
  overflow: hidden;
  background: rgba(255,250,242,.90);
  border-radius: 38px !important;
}
.creator-cover, .creator-card:nth-child(even) .creator-cover {
  min-height: 360px;
  border-radius: 0 0 34px 34px;
  margin: 12px;
  background:
    linear-gradient(to top, rgba(18,14,10,.76), transparent 62%),
    radial-gradient(ellipse at 51% 33%, rgba(255,224,168,.40), transparent 15%),
    linear-gradient(145deg, #15110d 0%, #534635 58%, #bf9851 100%);
}
.creator-cover span {
  font-size: clamp(50px, 7vw, 92px);
  opacity: .9;
}
.creator-body { padding: 0 30px 32px; }
.avatar, .avatar-large, .small-avatar {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 18%, #efdcae, #b78f49 26%, #17120d 64%);
  border-color: #fff9ef;
}

.profile-hero {
  border-radius: var(--radius-lg) !important;
  background: rgba(255,250,242,.84);
  box-shadow: var(--shadow);
}
.profile-cover {
  height: clamp(330px, 42vw, 520px);
  border-radius: 38px;
  margin: 12px;
  background:
    linear-gradient(to top, rgba(18,14,10,.78), rgba(18,14,10,.05) 60%),
    radial-gradient(ellipse at 50% 31%, rgba(255,224,168,.38), transparent 14%),
    linear-gradient(150deg, #15110d 0%, #564735 56%, #c29b52 100%);
}
.profile-cover span { font-size: clamp(70px, 11vw, 150px); }
.profile-info { padding: 0 clamp(26px, 4vw, 44px) 40px; }
.wallet-pill, .status-big { border-radius: 999px; }

.media-placeholder, .library-thumb, .chat-media {
  border-radius: 28px;
  background:
    linear-gradient(to top, rgba(18,14,10,.74), transparent 63%),
    radial-gradient(ellipse at 52% 30%, rgba(255,224,168,.35), transparent 17%),
    linear-gradient(145deg, #15110d, #514535 62%, #c09a53);
}
.content-card {
  border-radius: 36px !important;
  overflow: hidden;
}
.content-card .media-placeholder { margin: 12px 12px 0; }
.wall-post {
  border-radius: 42px !important;
  background: rgba(255,250,242,.92);
}
.wall-post .media-placeholder { margin: 12px; border-radius: 34px; }
.lock-badge, .status-chip, .order-status, .post-admin-head span, .wall-post-head em, .library-badges span, .nav-badge, .chat-list-item em {
  border-radius: 999px;
}

.metric-grid { gap: clamp(22px, 3vw, 34px); }
.metric-card {
  min-height: 190px;
  background:
    radial-gradient(circle at 90% 14%, rgba(214,184,115,.18), transparent 28%),
    rgba(255,250,242,.88);
}
.metric-card span, .wallet-card span, .price-hero-card span {
  color: #94733b;
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: 11px;
  font-weight: 800;
}
.metric-card strong, .wallet-card strong, .price-hero-card strong {
  color: #1b1510;
  line-height: .92;
}
.price-hero-card.featured, .metric-card:nth-child(2) {
  background:
    radial-gradient(circle at 88% 16%, rgba(214,184,115,.28), transparent 30%),
    linear-gradient(135deg, #15110d, #2d2218) !important;
  color: #fff9ef;
}
.price-hero-card.featured span, .price-hero-card.featured p, .metric-card:nth-child(2) span, .metric-card:nth-child(2) small { color: rgba(255,249,239,.72); }
.price-hero-card.featured strong, .metric-card:nth-child(2) strong { color: #fff9ef; }

/* Admin tabulky jako luxusní ledger, ne tvrdá tabulka */
.table-wrap {
  overflow: visible;
  border: 0;
  background: transparent;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}
thead { display: none; }
tr {
  background: rgba(255,250,242,.78);
  box-shadow: 0 16px 44px rgba(45,31,18,.07);
}
td {
  border: 0;
  padding: 18px 14px;
  vertical-align: middle;
}
td:first-child { border-radius: 24px 0 0 24px; font-weight: 800; color: #94733b; }
td:last-child { border-radius: 0 24px 24px 0; }

/* Knihovna obsahu jako prémiové dlaždice */
.content-library { padding: clamp(28px, 4vw, 48px); }
.library-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.library-stats article { padding: 22px; }
.library-toolbar {
  border-radius: 34px !important;
  background: rgba(255,250,242,.62);
}
.library-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  align-items: start;
}
.library-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 12px;
  gap: 0;
  border-radius: 36px !important;
  overflow: hidden;
}
.library-thumb {
  width: 100%;
  height: 210px;
  border-radius: 28px;
  margin: 0 0 16px;
}
.library-thumb span { font-family: 'Charis SIL', Georgia, serif; font-size: 52px; }
.library-main { padding: 0 8px 12px; }
.library-title-line strong { font-family: 'Charis SIL', Georgia, serif; font-size: 25px; line-height: 1.02; letter-spacing: -.05em; }
.library-badges { margin-top: 4px; }
.library-meta { border-top: 1px solid rgba(46,33,21,.10); padding-top: 11px; }
.library-actions {
  padding: 12px 8px 8px;
  border-top: 1px solid rgba(46,33,21,.10);
}
.library-edit summary {
  border-radius: 999px;
  background: #17120d;
  color: #fff9ef;
  padding: 12px 16px;
  text-align: center;
}
.library-edit[open] .form-stack {
  border-radius: 28px;
  background: rgba(255,250,242,.98);
  margin-top: 14px;
}

input, textarea, select {
  border-radius: 18px;
  background: rgba(255,252,247,.84);
  border: 1px solid rgba(46,33,21,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.file-drop, .demo-login, .creator-fees article, .notice, .notification-item, .chat-list-item {
  border-radius: 28px !important;
}
.check-row, .switch-card, .creator-register-fields { border-radius: 28px !important; }

.chat-shell { gap: clamp(24px, 3.4vw, 42px); }
.chat-feed {
  background:
    radial-gradient(circle at 50% 0%, rgba(214,184,115,.13), transparent 32%),
    rgba(255,250,242,.54);
  padding: clamp(18px, 3vw, 30px);
}
.chat-bubble {
  border-radius: 28px 28px 28px 8px !important;
  max-width: min(78%, 640px);
}
.chat-bubble.from-me { border-radius: 28px 28px 8px 28px !important; }
.chat-list-item { background: rgba(255,250,242,.78); }

.site-footer {
  border-top: 1px solid rgba(46,33,21,.12);
  margin-top: 50px;
}

@media (max-width: 980px) {
  .hero-copy::before { display: none; }
  .luxury-phone { transform: none; }
  .library-toolbar { grid-template-columns: 1fr; }
  .library-toolbar-actions { justify-content: stretch; }
  .library-toolbar-actions .button { width: 100%; }
  table, tbody, tr, td { display: block; }
  tr { border-radius: 28px; padding: 12px; margin-bottom: 14px; }
  td { padding: 9px 10px; }
  td:first-child, td:last-child { border-radius: 0; }
}
@media (max-width: 560px) {
  .app-topbar { border-radius: 28px; }
  h1 { font-size: clamp(48px, 16vw, 78px); }
  .profile-cover { margin: 8px; border-radius: 28px; }
  .library-list { grid-template-columns: 1fr; }
  .library-thumb { height: 190px; }
  .chat-bubble { max-width: 100%; }
}

/* v10: jasný editor příspěvku místo schovaného inline details formuláře */
.post-editor-panel {
  margin: 26px 0 30px;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 42px;
  background:
    radial-gradient(circle at 16% 0%, rgba(213, 179, 118, .22), transparent 34%),
    linear-gradient(145deg, rgba(255, 252, 246, .96), rgba(239, 226, 207, .78));
  border: 1px solid rgba(53, 38, 22, .12);
  box-shadow: 0 30px 90px rgba(43, 30, 18, .12);
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: stretch;
  overflow: hidden;
}
.post-editor-visual {
  min-height: 100%;
  border-radius: 32px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(18, 14, 10, .94), rgba(61, 47, 29, .9)),
    radial-gradient(circle at 65% 25%, rgba(217, 182, 122, .55), transparent 30%);
  color: #fff9ef;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 24px 60px rgba(41, 28, 15, .18);
}
.post-editor-visual.video {
  background:
    linear-gradient(145deg, rgba(18, 14, 10, .94), rgba(45, 40, 34, .92)),
    radial-gradient(circle at 65% 25%, rgba(183, 144, 82, .52), transparent 30%);
}
.post-editor-visual span {
  font-family: 'Charis SIL', Georgia, serif;
  font-size: clamp(58px, 9vw, 108px);
  line-height: 1;
}
.post-editor-body {
  min-width: 0;
  display: grid;
  gap: 20px;
  align-content: start;
}
.post-editor-head {
  align-items: start;
  gap: 18px;
}
.post-editor-head h3 {
  margin: 0 0 8px;
  font-family: 'Charis SIL', Georgia, serif;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: .98;
  letter-spacing: -.055em;
}
.post-editor-form {
  display: grid;
  gap: 18px;
}
.post-editor-form label {
  display: grid;
  gap: 9px;
  min-width: 0;
  font-weight: 900;
  color: rgba(31, 24, 17, .88);
}
.post-editor-form label > span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #8f703c;
}
.post-editor-form input,
.post-editor-form textarea,
.post-editor-form select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(37, 27, 17, .22);
  background: rgba(255, 255, 255, .76);
  color: #1f1811;
  font: inherit;
  font-weight: 760;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 10px 22px rgba(45,31,18,.04);
}
.post-editor-form textarea {
  min-height: 138px;
  resize: vertical;
  line-height: 1.55;
}
.post-editor-form input:focus,
.post-editor-form textarea:focus,
.post-editor-form select:focus {
  outline: 3px solid rgba(184, 146, 85, .22);
  border-color: rgba(184, 146, 85, .7);
  background: #fffdf8;
}
.post-editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.post-editor-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.post-editor-actions .button { min-width: 190px; }
.post-editor-danger {
  padding-top: 16px;
  border-top: 1px solid rgba(46, 33, 21, .12);
}
.library-edit-link {
  display: block;
  text-align: center;
  text-decoration: none;
  background: #17120d;
  color: #fff9ef !important;
  width: 100%;
}
.library-actions form { margin: 0; }
.library-actions .mini-button { width: 100%; }
@media (max-width: 900px) {
  .post-editor-panel { grid-template-columns: 1fr; border-radius: 34px; }
  .post-editor-visual { min-height: 190px; }
  .post-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .post-editor-panel { padding: 12px; border-radius: 30px; }
  .post-editor-grid { grid-template-columns: 1fr; }
  .post-editor-actions .button { width: 100%; min-width: 0; }
}

/* v11 – reálná média v příspěvcích a profilech */
.avatar.has-image { overflow: hidden; padding: 0; background: #1d1b18; }
.avatar.has-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creator-cover.has-image, .profile-cover.has-image { padding: 0; overflow: hidden; background: #1d1b18; }
.creator-cover.has-image img, .profile-cover.has-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.95) contrast(1.02); }
.profile-cover.has-image::after, .creator-cover.has-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,13,12,.05), rgba(16,13,12,.42)); pointer-events: none; }
.profile-cover.has-image { min-height: clamp(260px, 38vw, 520px); }
.media-upload-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.post-media-frame { margin: 12px; overflow: hidden; border-radius: 34px; background: #171513; min-height: clamp(280px, 48vw, 540px); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.post-media { width: 100%; height: 100%; max-height: 72vh; object-fit: contain; display: block; background: #171513; }
.post-media-frame.image .post-media { object-fit: cover; min-height: clamp(280px, 48vw, 540px); }
.media-placeholder.has-hidden-media { background: linear-gradient(145deg, rgba(29,27,24,.96), rgba(90,81,69,.94), rgba(184,146,85,.78)); }
.media-note { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,248,239,.82); }
.library-thumb.has-media { overflow: hidden; background: #171513; }
.library-thumb.has-media img, .library-thumb.has-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-editor-visual.has-media { overflow: hidden; background: #171513; }
.post-editor-visual.has-media img, .post-editor-visual.has-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-editor-visual.has-media video { object-fit: contain; background: #171513; }
.post-file-field { margin: 8px 0 4px; }
@media (max-width: 760px) {
  .media-upload-pair { grid-template-columns: 1fr; }
  .post-media-frame { border-radius: 24px; margin: 10px; }
  .profile-cover.has-image { min-height: 260px; }
}

/* v12 – více členských balíčků, profil pro fotografy a smlouvy */
.membership-shop,
.membership-settings,
.photographer-settings,
.contract-settings { margin-top: 28px; }
.membership-head { align-items: flex-start; }
.current-membership {
  min-width: 220px;
  padding: 16px 18px;
  border: 1px solid rgba(184,146,85,.32);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(244,234,216,.76));
  display: grid;
  gap: 3px;
}
.current-membership span,
.current-membership small { color: rgba(34,27,20,.62); font-size: 12px; }
.current-membership strong { font-family: 'Charis SIL', Georgia, serif; font-size: 21px; }
.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.membership-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(44,31,20,.15);
  border-radius: 28px;
  background: rgba(255,255,255,.7);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
}
.membership-card.is-current {
  border-color: rgba(184,146,85,.72);
  box-shadow: 0 18px 50px rgba(84,58,31,.12);
}
.membership-card h3 { margin: 0; font-size: 29px; }
.membership-card > strong { font-size: 22px; }
.membership-card > strong small { font-size: 12px; font-weight: 600; opacity: .62; }
.membership-card p { flex: 1; }
.tier-level {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(184,146,85,.14);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.membership-cancel { margin-top: 22px; text-align: right; }
.tier-editor { display: grid; gap: 14px; margin-top: 22px; }
.tier-editor-row {
  display: grid;
  grid-template-columns: 58px minmax(150px, .8fr) minmax(130px, .45fr) minmax(260px, 1.5fr) 150px;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(46,33,21,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.55);
}
.tier-number {
  align-self: center;
  font-family: 'Charis SIL', Georgia, serif;
  font-size: 28px;
  color: rgba(92,68,39,.55);
}
.tier-description textarea { min-height: 72px; }
.compact-check { align-self: center; margin: 0; }
.form-two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.rate-editor { display: grid; gap: 12px; margin-top: 8px; }
.rate-editor-row {
  display: grid;
  grid-template-columns: minmax(160px,1fr) 130px 150px minmax(220px,1.4fr) 105px;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(46,33,21,.11);
  border-radius: 20px;
  background: rgba(255,255,255,.5);
}
.penalty-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.contract-warning,
.contract-hint {
  padding: 15px 17px;
  border-left: 4px solid #b88f52;
  border-radius: 12px;
  background: rgba(247,229,195,.56);
  line-height: 1.55;
}
.photographer-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: clamp(24px,4vw,48px);
  border: 1px solid rgba(47,34,22,.14);
  border-radius: 38px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(236,221,196,.76));
  box-shadow: 0 24px 70px rgba(63,42,22,.09);
}
.photographer-identity { display: flex; align-items: center; gap: 22px; max-width: 800px; }
.photographer-identity h1 { margin: 5px 0 10px; }
.photographer-actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.photographer-layout {
  display: grid;
  grid-template-columns: minmax(0,1.7fr) minmax(260px,.7fr);
  gap: 20px;
  margin-top: 24px;
}
.rate-public-list { display: grid; gap: 10px; margin-top: 18px; }
.rate-public-list article {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(43,31,20,.12);
}
.rate-public-list article:last-child { border-bottom: 0; }
.rate-public-list article p { margin: 5px 0 0; font-size: 13px; opacity: .68; }
.rate-public-list article > span { white-space: nowrap; font-weight: 800; }
.travel-price { display: grid; gap: 4px; padding: 22px 0; }
.travel-price strong { font-family: 'Charis SIL', Georgia, serif; font-size: 40px; }
.travel-price span { opacity: .62; }
.photographer-conditions { margin-top: 20px; }
.post-editor-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

@media (max-width: 1050px) {
  .tier-editor-row { grid-template-columns: 52px repeat(2,minmax(0,1fr)); }
  .tier-description { grid-column: 2 / -1; }
  .compact-check { grid-column: 2 / -1; }
  .rate-editor-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rate-notes { grid-column: 1 / -1; }
  .penalty-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .photographer-hero,
  .photographer-identity { flex-direction: column; align-items: flex-start; }
  .photographer-actions { width: 100%; }
  .photographer-layout { grid-template-columns: 1fr; }
  .form-two,
  .penalty-grid { grid-template-columns: 1fr; }
  .tier-editor-row { grid-template-columns: 44px 1fr; }
  .tier-editor-row > label { grid-column: 2; }
  .tier-description,
  .compact-check { grid-column: 2; }
  .rate-editor-row { grid-template-columns: 1fr; }
  .rate-notes,
  .rate-editor-row .compact-check { grid-column: 1; }
  .rate-public-list article { align-items: flex-start; flex-direction: column; }
  .rate-public-list article > span { white-space: normal; }
}


/* v12.2 – samostatná a přehledná stránka Nastavení */
.settings-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin: 18px 0 28px;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(47,34,22,.13);
  border-radius: 38px;
  background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(239,225,202,.78));
  box-shadow: 0 24px 70px rgba(63,42,22,.08);
}
.settings-hero > div:first-child { max-width: 820px; }
.settings-hero h1 { margin: 5px 0 12px; font-size: clamp(38px, 5vw, 68px); }
.settings-hero p { max-width: 760px; }
.settings-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.settings-layout {
  display: grid;
  grid-template-columns: minmax(240px, .55fr) minmax(0, 2fr);
  gap: 24px;
  align-items: start;
}
.settings-sidebar {
  position: sticky;
  top: 92px;
  padding: 18px;
  display: grid;
  gap: 18px;
}
.settings-nav-group { display: grid; gap: 7px; }
.settings-nav-group > span {
  padding: 2px 10px 7px;
  color: rgba(50,36,24,.52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.settings-nav-group a {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 17px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.settings-nav-group a:hover {
  transform: translateX(3px);
  border-color: rgba(184,146,85,.3);
  background: rgba(255,255,255,.62);
}
.settings-nav-group a strong { font-size: 14px; }
.settings-nav-group a small { color: rgba(47,34,22,.58); line-height: 1.35; }
.settings-content { min-width: 0; display: grid; gap: 22px; }
.settings-section { margin: 0; scroll-margin-top: 105px; }
.settings-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(46,33,21,.1);
}
.settings-section-head h2 { margin: 4px 0 8px; }
.settings-section-head p { margin: 0; }
.settings-section-number {
  flex: 0 0 auto;
  font-family: 'Charis SIL', Georgia, serif;
  font-size: 42px;
  line-height: 1;
  color: rgba(184,146,85,.42);
}
.settings-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.settings-category-heading {
  scroll-margin-top: 100px;
  padding: 28px 8px 6px;
}
.settings-category-heading h2 { margin: 4px 0 8px; font-size: clamp(32px, 4vw, 50px); }
.settings-category-heading p { max-width: 760px; }
.settings-toggle {
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(184,146,85,.27);
  border-radius: 19px;
  background: rgba(247,234,210,.48);
}
.settings-toggle > span { display: grid; gap: 3px; }
.settings-toggle small { color: rgba(47,34,22,.58); }
.dashboard-settings-shortcut { display: flex; flex-direction: column; }
.dashboard-settings-shortcut > p { margin-bottom: 18px; }
.settings-shortcut-list { display: grid; gap: 9px; margin: 4px 0 18px; }
.settings-shortcut-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
  border: 1px solid rgba(45,32,21,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.48);
  color: inherit;
  text-decoration: none;
}
.settings-shortcut-list a:hover { border-color: rgba(184,146,85,.4); }
.settings-shortcut-list strong { color: #8b642e; white-space: nowrap; font-size: 13px; }
@media (max-width: 980px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .settings-hero { flex-direction: column; align-items: flex-start; border-radius: 28px; }
  .settings-hero-actions { width: 100%; justify-content: flex-start; }
  .settings-hero-actions .button { flex: 1; text-align: center; }
  .settings-sidebar { grid-template-columns: 1fr; }
  .settings-section-head { align-items: center; }
  .settings-section-number { font-size: 32px; }
  .settings-form-actions { align-items: stretch; }
  .settings-form-actions .button { width: 100%; text-align: center; }
}

/* v12.3 – chat ve stylu moderních soukromých zpráv */
.dm-shell {
  height: min(820px, calc(100svh - 150px));
  min-height: 620px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(46,33,21,.12);
  border-radius: 34px;
  background: rgba(255,252,247,.88);
  box-shadow: 0 28px 80px rgba(46,33,21,.12);
  backdrop-filter: blur(22px);
}
.dm-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(46,33,21,.10);
  background: rgba(249,244,236,.72);
}
.dm-sidebar-head {
  min-height: 94px;
  padding: 22px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.dm-sidebar-head > div { min-width: 0; }
.dm-sidebar-head h1 {
  margin-top: 3px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -.045em;
}
.dm-kicker {
  display: block;
  color: #8a6f44;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dm-count {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fffaf0;
  background: #171513;
  font-size: 12px;
  font-weight: 900;
}
.dm-search {
  margin: 0 16px 14px;
  padding: 0 14px;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(46,33,21,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.72);
  color: #8c8378;
}
.dm-search span { font-size: 20px; line-height: 1; transform: translateY(-1px); }
.dm-search input {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: 14px;
}
.dm-conversation-list {
  min-height: 0;
  flex: 1;
  padding: 0 9px 14px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.dm-conversation {
  min-width: 0;
  padding: 11px 10px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-radius: 18px;
  transition: background .18s ease, transform .18s ease;
}
.dm-conversation:hover { background: rgba(255,255,255,.76); }
.dm-conversation.is-active {
  background: #fff;
  box-shadow: 0 10px 28px rgba(46,33,21,.08);
}
.dm-avatar {
  width: 50px;
  height: 50px;
  flex: none;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.96);
  border-radius: 50%;
  color: #fffaf0;
  background: linear-gradient(145deg, #171513, #625442 68%, #b89255);
  box-shadow: 0 8px 20px rgba(46,33,21,.15);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}
.dm-avatar.has-image { background: #ddd2c1; }
.dm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dm-avatar-large { width: 46px; height: 46px; }
.dm-avatar-xl { width: 88px; height: 88px; font-size: 30px; }
.dm-conversation-copy, .dm-conversation-top, .dm-conversation-bottom { min-width: 0; }
.dm-conversation-copy { display: grid; gap: 3px; }
.dm-conversation-top, .dm-conversation-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dm-conversation-top strong {
  min-width: 0;
  overflow: hidden;
  color: #211e1a;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dm-conversation-top time {
  flex: none;
  color: #9a9186;
  font-size: 10px;
  font-weight: 700;
}
.dm-conversation-bottom > span {
  min-width: 0;
  overflow: hidden;
  color: #837b71;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dm-conversation-bottom em {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #b89255;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}
.dm-sidebar-empty {
  margin: auto;
  padding: 28px;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}
.dm-sidebar-empty > span { font-size: 34px; color: #b89255; }
.dm-sidebar-empty p { font-size: 13px; }
.dm-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.46);
}
.dm-chat-head {
  min-height: 79px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(46,33,21,.09);
  background: rgba(255,252,247,.88);
  backdrop-filter: blur(18px);
}
.dm-person { min-width: 0; display: flex; align-items: center; gap: 12px; }
.dm-person > span:last-child { min-width: 0; display: grid; }
.dm-person strong {
  overflow: hidden;
  color: #211e1a;
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dm-person small { color: #8b8278; font-size: 11px; }
.dm-head-actions { display: flex; align-items: center; gap: 9px; }
.dm-token-pill, .dm-profile-link {
  padding: 8px 11px;
  border-radius: 999px;
  color: #71675c;
  background: rgba(237,229,216,.72);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.dm-profile-link { color: #fffaf0; background: #171513; }
.dm-feed {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 25px clamp(18px, 4vw, 48px) 28px;
  background:
    radial-gradient(circle at 50% -10%, rgba(184,146,85,.10), transparent 36%),
    rgba(252,249,244,.42);
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.dm-day-divider {
  margin: 15px 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dm-day-divider span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #91887e;
  background: rgba(234,228,218,.74);
  font-size: 10px;
  font-weight: 800;
}
.dm-message {
  margin: 5px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.dm-message.from-me { align-items: flex-end; }
.dm-bubble {
  max-width: min(68%, 580px);
  overflow: hidden;
  border: 1px solid rgba(46,33,21,.08);
  border-radius: 20px 20px 20px 6px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(46,33,21,.055);
}
.dm-message.from-me .dm-bubble {
  border-color: transparent;
  border-radius: 20px 20px 6px 20px;
  color: #fffaf0;
  background: #171513;
  box-shadow: 0 9px 24px rgba(23,21,19,.16);
}
.dm-bubble > p { padding: 10px 14px; color: #38322c; font-size: 14px; line-height: 1.48; }
.dm-message.from-me .dm-bubble > p { color: #fffaf0; }
.dm-message > time {
  margin: 3px 7px 0;
  color: #a49b90;
  font-size: 9px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .15s ease;
}
.dm-message:hover > time { opacity: 1; }
.dm-media { margin: 0; overflow: hidden; background: #181512; }
.dm-media img, .dm-media video { display: block; width: 100%; max-height: 430px; object-fit: cover; }
.dm-media-placeholder {
  min-width: 220px;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #fffaf0;
  background: linear-gradient(145deg, #171513, #625442, #b89255);
  font-weight: 800;
}
.dm-locked-content {
  min-width: min(310px, 66vw);
  padding: 17px;
  display: grid;
  justify-items: start;
  gap: 8px;
  background: linear-gradient(145deg, #f5ecde, #fffaf2);
}
.dm-locked-content p { color: #766b5e; font-size: 13px; }
.dm-locked-content.sent-lock { color: #fffaf0; background: #171513; }
.dm-locked-content.sent-lock p { color: rgba(255,250,240,.76); }
.dm-lock-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #b89255;
}
.dm-unlock-button {
  margin-top: 2px;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #171513;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}
.dm-empty-chat, .dm-no-selection {
  min-height: 100%;
  padding: 40px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.dm-empty-chat h2, .dm-no-selection h2 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 28px;
  letter-spacing: -.04em;
}
.dm-empty-chat p, .dm-no-selection p { font-size: 13px; }
.dm-no-selection > span { font-size: 46px; color: #b89255; }
.dm-compose {
  min-height: 76px;
  padding: 12px 15px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  border-top: 1px solid rgba(46,33,21,.09);
  background: rgba(255,252,247,.94);
}
.dm-attach, .dm-tools > summary {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(46,33,21,.11);
  border-radius: 50%;
  color: #4b443d;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(46,33,21,.06);
}
.dm-attach input { display: none; }
.dm-tools { position: relative; flex: none; }
.dm-tools > summary { list-style: none; }
.dm-tools > summary::-webkit-details-marker { display: none; }
.dm-tools[open] > summary { color: #fff; background: #171513; }
.dm-tools-popover {
  position: absolute;
  left: 0;
  bottom: 54px;
  z-index: 8;
  width: min(310px, calc(100vw - 48px));
  padding: 15px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(46,33,21,.11);
  border-radius: 20px;
  background: #fffaf3;
  box-shadow: 0 22px 55px rgba(46,33,21,.20);
}
.dm-tools-popover label { display: grid; gap: 5px; color: #6d645b; font-size: 11px; font-weight: 800; }
.dm-tools-popover input, .dm-tools-popover select { min-height: 40px; padding: 8px 10px; border-radius: 12px; }
.dm-file-picker {
  padding: 11px 12px;
  border: 1px dashed rgba(46,33,21,.18);
  border-radius: 13px;
  cursor: pointer;
  text-align: center;
}
.dm-file-picker input { display: none; }
.dm-message-field {
  min-width: 0;
  min-height: 44px;
  flex: 1;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(46,33,21,.11);
  border-radius: 22px;
  background: #fff;
}
.dm-message-field textarea {
  width: 100%;
  max-height: 120px;
  padding: 0;
  resize: none;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #29241f;
  font-size: 14px;
  line-height: 1.55;
}
.dm-send {
  min-height: 44px;
  padding: 0 17px;
  flex: none;
  border: 0;
  border-radius: 999px;
  color: #fffaf0;
  background: #171513;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 820px) {
  .dm-shell {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .dm-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(46,33,21,.10);
  }
  .dm-sidebar-head { min-height: 70px; padding: 15px 18px 10px; }
  .dm-sidebar-head h1 { font-size: 25px; }
  .dm-search { margin-bottom: 10px; }
  .dm-conversation-list {
    display: flex;
    gap: 5px;
    padding: 0 10px 12px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .dm-conversation { width: 235px; flex: 0 0 235px; }
  .dm-main { min-height: min(680px, calc(100svh - 120px)); }
}

@media (max-width: 560px) {
  .dm-shell { margin-inline: -8px; border-radius: 24px; }
  .dm-search { display: none; }
  .dm-sidebar-head { min-height: 60px; }
  .dm-conversation-list { padding-top: 2px; }
  .dm-chat-head { min-height: 67px; padding: 10px 12px; }
  .dm-token-pill { display: none; }
  .dm-feed { padding: 18px 11px 22px; }
  .dm-bubble { max-width: 84%; }
  .dm-message > time { opacity: 1; }
  .dm-compose { padding: 10px; }
  .dm-send { padding: 0 13px; }
  .dm-tools-popover { left: -2px; }
}

/* V12.4: čisté přihlašovací obrazovky pro ostrý provoz */
.login-layout.is-single{grid-template-columns:minmax(0,680px);justify-content:center}
.login-layout.is-single .login-card{width:100%}


/* V12.5: testovací přístupy na přihlašovací stránce */
.test-login-panel{
  margin-top:26px;
  padding-top:24px;
  border-top:1px solid rgba(46,33,21,.12);
}
.test-login-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.test-login-head h2{margin:.15rem 0 0;font-size:clamp(1.35rem,2.3vw,1.8rem)}
.test-mode-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:52px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(117,72,92,.12);
  border:1px solid rgba(117,72,92,.22);
  color:#6f4055;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.12em;
}
.test-login-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.test-login-card{
  display:flex;
  flex-direction:column;
  gap:13px;
  min-width:0;
  padding:17px;
  border-radius:20px;
  border:1px solid rgba(46,33,21,.10);
  background:rgba(255,255,255,.58);
  box-shadow:0 12px 32px rgba(67,47,34,.06);
}
.test-login-copy{display:flex;flex-direction:column;gap:4px}
.test-login-copy strong{font-size:1rem}
.test-login-copy span{font-size:.82rem;color:var(--muted);line-height:1.45}
.test-login-credentials{display:flex;flex-direction:column;gap:5px}
.test-login-credentials code{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  padding:7px 9px;
  border-radius:10px;
  background:rgba(52,38,29,.06);
  color:#443128;
  font-size:.76rem;
  white-space:nowrap;
}
.test-login-card .button{margin-top:auto;padding-inline:10px;font-size:.82rem}
.test-login-note{margin:15px 0 0;color:var(--muted);font-size:.82rem;line-height:1.55}
@media(max-width:760px){.test-login-grid{grid-template-columns:1fr}.test-login-card{display:grid;grid-template-columns:1fr auto;align-items:center}.test-login-card .button{grid-column:1/-1}.test-login-credentials{align-items:flex-end}}
@media(max-width:520px){.test-login-card{display:flex}.test-login-credentials{align-items:stretch}.test-login-head{align-items:center}}

/* V12.6: kompaktnější typografie pro běžné ovládací a informační části */
h2 {
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1;
}
h3 {
  font-size: clamp(21px, 2.2vw, 32px);
  line-height: 1.08;
}
.panel-card h2,
.metric-card h2,
.wallet-card h2,
.settings-section-head h2,
.settings-category-heading h2 {
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.04;
}
.panel-card h3,
.metric-card h3,
.wallet-card h3,
.package-card h3,
.membership-card h3 {
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.08;
}

/* Profil modelky určený fotografům */
.photographer-hero {
  padding: clamp(22px, 3vw, 38px);
}
.photographer-identity h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: .94;
}
.photographer-identity > div:last-child > p:last-child {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.6;
}
.photographer-layout .panel-card,
.photographer-conditions {
  padding: clamp(22px, 3vw, 34px);
}
.photographer-layout h2,
.photographer-conditions h2 {
  margin-top: 4px;
  font-size: clamp(25px, 2.7vw, 36px);
  line-height: 1.04;
}
.photographer-layout .eyebrow,
.photographer-conditions .eyebrow {
  font-size: 10px;
  letter-spacing: .18em;
}
.rate-public-list {
  margin-top: 12px;
}
.rate-public-list article {
  padding: 14px 0;
}
.rate-public-list article strong {
  font-size: 15px;
  line-height: 1.35;
}
.rate-public-list article p {
  font-size: 12.5px;
  line-height: 1.5;
}
.rate-public-list article > span {
  font-size: 14px;
}
.travel-price {
  padding: 15px 0 17px;
}
.travel-price strong {
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1;
}
.travel-price span,
.photographer-side > p,
.photographer-conditions > p:last-child {
  font-size: 14px;
  line-height: 1.6;
}
.photographer-side .panel-note {
  margin-top: 14px;
  padding: 15px;
}
.photographer-side .panel-note > strong {
  font-size: 13px;
}
.photographer-side .panel-note p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  h2 { font-size: clamp(27px, 8vw, 38px); }
  h3 { font-size: clamp(20px, 6vw, 28px); }
  .photographer-identity h1 { font-size: clamp(38px, 13vw, 58px); }
  .photographer-layout h2,
  .photographer-conditions h2 { font-size: 27px; }
  .travel-price strong { font-size: 29px; }
}


/* V12.7: příspěvek může obsahovat více fotografií i video */
.post-multi-upload small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.post-file-selection {
  margin-top: -4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(52,38,29,.06);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.post-file-selection strong { color: var(--text); }
.post-gallery {
  position: relative;
  margin: 12px;
  overflow: hidden;
  border-radius: 34px;
  background: #171513;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.post-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.post-gallery-track::-webkit-scrollbar { display: none; }
.post-gallery-slide {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: clamp(280px, 48vw, 540px);
  max-height: 72vh;
  margin: 0;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #171513;
}
.post-gallery-slide.image .post-media {
  width: 100%;
  height: 100%;
  min-height: clamp(280px, 48vw, 540px);
  max-height: 72vh;
  object-fit: contain;
  background: #171513;
}
.post-gallery-slide.video .post-media {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #171513;
}
.post-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(15,13,12,.72);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.post-gallery-nav.is-prev { left: 14px; }
.post-gallery-nav.is-next { right: 14px; }
.post-gallery-count {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,13,12,.72);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(10px);
}
.post-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 13px;
  z-index: 3;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}
.post-gallery-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
}
.post-gallery-dots button.is-active { background: #fff; transform: scale(1.18); }
.post-gallery.is-single .post-gallery-track { overflow: hidden; }
.post-gallery.is-compact { margin: 0; width: 100%; height: 100%; border-radius: 0; }
.post-gallery.is-compact .post-gallery-slide,
.post-gallery.is-compact .post-gallery-slide.image .post-media { min-height: 260px; max-height: 420px; }
.post-editor-visual.has-gallery { padding: 0; display: block; }
.post-media-manager {
  padding: 16px;
  border: 1px solid rgba(83,62,49,.13);
  border-radius: 20px;
  background: rgba(255,255,255,.4);
}
.post-media-manager > strong { font-size: 14px; }
.post-media-manager > p { margin: 4px 0 12px; color: var(--muted); font-size: 12px; }
.post-media-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}
.post-media-manager-item {
  min-width: 0;
  padding: 7px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(64,42,29,.08);
}
.post-media-manager-preview {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #171513;
}
.post-media-manager-preview img,
.post-media-manager-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-media-manager-preview b {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(15,13,12,.76);
  color: #fff;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.post-media-remove {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: #8b3f37;
  font-size: 11px;
}
.post-media-remove input { width: auto; }
.library-thumb { position: relative; }
.library-media-count {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15,13,12,.76);
  color: #fff;
  font-size: 11px;
}
@media (max-width: 760px) {
  .post-gallery { margin: 10px; border-radius: 24px; }
  .post-gallery-nav { width: 36px; height: 36px; font-size: 26px; }
  .post-gallery-slide,
  .post-gallery-slide.image .post-media { min-height: 320px; }
}

/* V13.1: stav placené zprávy viditelný modelce */
.dm-paid-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.25;
}
.dm-paid-status.is-waiting {
  color: #fff4df;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .13);
}
.dm-paid-status.is-unlocked {
  color: #f8f0df;
  background: rgba(133, 183, 135, .18);
  border: 1px solid rgba(166, 211, 168, .26);
}
.dm-paid-status-icon {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .11);
  font-size: 14px;
  font-weight: 800;
}
.dm-paid-status span:last-child {
  display: grid;
  gap: 2px;
}
.dm-paid-status strong {
  font-size: 12px;
  font-weight: 750;
}
.dm-paid-status small {
  color: inherit;
  opacity: .72;
  font-size: 11px;
}

/* V13.2 – výdělky, administrátorský přístup a logy */
.admin-access-notice { margin: 18px 0 24px; }
.admin-dashboard-hero .hero-actions { margin-top: 22px; }
.admin-metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-creator-cards article { display: flex; flex-direction: column; gap: 7px; }
.admin-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-log-head { align-items: flex-start; gap: 20px; }
.admin-log-filter { margin: 20px 0; }
.admin-log-filter label { min-width: 170px; }
.audit-table details { min-width: 110px; }
.audit-table summary { cursor: pointer; font-weight: 800; }
.audit-table pre { width: min(540px, 68vw); max-height: 320px; overflow: auto; white-space: pre-wrap; font-size: 12px; line-height: 1.5; background: rgba(25, 20, 18, .05); border-radius: 14px; padding: 14px; }
.audit-error-row { background: rgba(151, 46, 46, .055); }
.panel-footnote { margin: 14px 0 0; font-size: 13px; opacity: .72; }
.creator-earnings-panel { margin-bottom: 24px; }
.creator-topups-note { min-width: 235px; text-align: right; display: grid; gap: 2px; }
.creator-topups-note span, .creator-topups-note small { font-size: 12px; opacity: .68; }
.creator-topups-note strong { font-size: 22px; }
.earnings-breakdown-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.earnings-breakdown-grid article { border: 1px solid rgba(37, 29, 26, .08); background: rgba(255,255,255,.55); border-radius: 18px; padding: 16px; display: grid; gap: 6px; }
.earnings-breakdown-grid span { font-size: 13px; opacity: .7; }
.earnings-breakdown-grid strong { font-size: 23px; }
.compact-sales-table { margin-top: 12px; }
.admin-readonly-chat { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; min-height: 72px; text-align: center; }
.admin-readonly-chat span { font-size: 13px; opacity: .7; }
@media (max-width: 1050px) {
  .admin-metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .admin-metric-grid, .earnings-breakdown-grid { grid-template-columns: 1fr; }
  .creator-topups-note { text-align: left; min-width: 0; }
  .admin-log-head { flex-direction: column; }
}

/* V13.3 – měsíční statistiky modelek a administrace */
.statistics-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.compact-stat-toolbar { padding: 22px 26px; }
.compact-stat-toolbar h2 { font-size: clamp(27px, 3vw, 42px); }
.compact-stat-toolbar p:not(.eyebrow) { margin-top: 5px; font-size: 13px; }
.stat-month-form { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.stat-month-form label { display: grid; gap: 6px; min-width: 190px; color: var(--muted); font-size: 12px; font-weight: 800; }
.stat-month-form select { min-height: 48px; border-radius: 15px; }
.statistics-metric-grid, .creator-stat-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.featured-net-card {
  background: linear-gradient(145deg, rgba(29,27,24,.97), rgba(72,62,49,.96));
  color: var(--cream);
}
.featured-net-card span, .featured-net-card strong, .featured-net-card small { color: inherit; }
.stat-change { display: inline-flex; align-items: center; gap: 5px; font-size: 11px !important; font-weight: 800; }
.stat-change.up, .stat-change.new { color: var(--green); }
.stat-change.down { color: var(--red); }
.stat-change.flat { color: var(--muted); }
.stat-summary-badge {
  min-width: 190px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  text-align: right;
  display: grid;
  gap: 2px;
}
.stat-summary-badge span { color: var(--muted); font-size: 12px; }
.stat-summary-badge strong { font-size: 22px; }
.statistics-visual-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 16px; margin-top: 22px; }
.stat-chart-card, .stat-table-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.5);
}
.stat-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.stat-card-head strong { font-size: 15px; }
.stat-card-head span { color: var(--muted); font-size: 12px; }
.stats-daily-chart {
  height: 220px;
  display: flex;
  align-items: stretch;
  gap: 3px;
  padding: 8px 2px 0;
  border-bottom: 1px solid var(--line);
}
.daily-bar { flex: 1 1 0; min-width: 3px; display: grid; grid-template-rows: 1fr 20px; align-items: end; gap: 4px; }
.daily-bar i {
  display: block;
  width: 100%;
  height: var(--bar-height, 0%);
  min-height: 0;
  border-radius: 7px 7px 2px 2px;
  background: rgba(184,146,85,.18);
  transition: height .2s ease;
}
.daily-bar.has-value i { min-height: 5px; background: linear-gradient(180deg, #c7a46e, #806540); box-shadow: 0 7px 18px rgba(113,82,42,.14); }
.daily-bar span { min-height: 20px; color: var(--muted); text-align: center; font-size: 9px; }
.stat-source-list { display: grid; gap: 17px; }
.stat-source-row { display: grid; gap: 7px; }
.stat-source-row > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.stat-source-row > div span { color: var(--muted); }
.stat-source-row > b { height: 9px; overflow: hidden; border-radius: 999px; background: rgba(38,31,25,.07); }
.stat-source-row > b i { display: block; width: var(--bar-width, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b89255, #5c4b37); }
.statistics-secondary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.statistics-secondary-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255,255,255,.48);
  display: grid;
  gap: 4px;
}
.statistics-secondary-grid span { color: var(--muted); font-size: 12px; }
.statistics-secondary-grid strong { font-size: 21px; }
.statistics-secondary-grid small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.statistics-tables-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.stat-table-card .table-wrap { margin: 0; }
.stat-table-card table { min-width: 440px; }
.creator-performance-panel { margin-top: 18px; }
.creator-performance-panel table { min-width: 980px; }
.monthly-statistics-panel { margin-bottom: 24px; }
.platform-statistics-panel { margin-bottom: 18px; }
@media (max-width: 980px) {
  .statistics-metric-grid, .creator-stat-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statistics-visual-grid, .statistics-tables-grid { grid-template-columns: 1fr; }
  .statistics-secondary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .statistics-toolbar { align-items: stretch; flex-direction: column; }
  .stat-month-form { align-items: stretch; flex-direction: column; }
  .stat-month-form label { min-width: 0; }
  .statistics-metric-grid, .creator-stat-metric-grid, .statistics-secondary-grid { grid-template-columns: 1fr; }
  .stat-summary-badge { min-width: 0; text-align: left; }
  .stats-daily-chart { height: 180px; gap: 2px; }
  .daily-bar span { font-size: 8px; }
}

/* V14: skutečný QR kód pro bankovní platby */
.payment-qr{width:min(100%,280px);aspect-ratio:1;margin:0 auto 18px;background:#fff;padding:10px;border-radius:18px;box-shadow:0 12px 32px rgba(19,13,17,.12)}
.payment-qr svg{display:block;width:100%;height:100%}
.microcopy{font-size:.78rem;color:var(--muted,#766d72);margin:.65rem 0 0}

/* V14.1: tabulky objednávek se nesmí ořezávat uvnitř karty */
.direct-orders-panel {
  overflow: visible !important;
  min-width: 0;
}
.direct-orders-panel .section-inline,
.direct-orders-panel .section-inline > div {
  min-width: 0;
}
.direct-orders-panel .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: visible;
  padding: 4px 2px 12px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.direct-orders-panel table {
  min-width: 1120px;
  table-layout: auto;
}
.direct-orders-panel td {
  min-width: 86px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.direct-orders-panel .order-description-cell {
  min-width: 220px;
  max-width: 330px;
  line-height: 1.45;
}
.direct-orders-panel .order-amount-cell {
  min-width: 115px;
  white-space: nowrap;
}
.direct-orders-panel .admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 190px;
}
.direct-orders-panel form,
.direct-orders-panel button {
  max-width: 100%;
}

/* V14.1: stabilní zeď a jasně skrytý nezakoupený obsah */
.wall-post-copy {
  padding: 0 26px 18px;
  min-width: 0;
}
.wall-post-copy h3,
.wall-post-copy p {
  overflow-wrap: anywhere;
}
.wall-post-copy .locked-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.wall-post .locked-card {
  margin: 12px;
  min-height: 230px;
  padding: clamp(24px, 5vw, 42px);
  border-radius: 34px;
  text-align: center;
}
.wall-post .locked-card small {
  display: block;
  max-width: 560px;
  margin: 8px auto 0;
  line-height: 1.55;
}
.wall-post .post-gallery {
  width: auto;
  max-width: calc(100% - 24px);
}

@media (max-width: 980px) {
  .direct-orders-panel .table-wrap {
    overflow: visible !important;
    padding: 0;
  }
  .direct-orders-panel table {
    min-width: 0;
    width: 100%;
  }
  .direct-orders-panel tr {
    width: 100%;
    overflow: visible;
  }
  .direct-orders-panel td {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .direct-orders-panel .order-description-cell,
  .direct-orders-panel .order-amount-cell,
  .direct-orders-panel .admin-card-actions {
    min-width: 0;
    max-width: none;
  }
  .direct-orders-panel .admin-card-actions form,
  .direct-orders-panel .admin-card-actions button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .wall-post-copy { padding: 0 18px 14px; }
  .wall-post .locked-card { margin: 8px; border-radius: 24px; }
}

/* V14.2: definitivní oprava přetékání textů a typografie na zdi modelek */
.content-wall,
.content-wall *,
.creator-grid,
.creator-grid *,
.profile-hero,
.profile-hero *,
.membership-shop,
.membership-shop * {
  box-sizing: border-box;
  min-width: 0;
}

.content-wall {
  width: min(100%, 900px);
  margin-inline: auto;
  overflow: visible;
}

.wall-post {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  contain: none;
}

.wall-post > * {
  max-width: 100%;
}

.wall-post-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 18px 22px 14px;
  overflow: visible;
}

.wall-post-head > div:not(.avatar) {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 0;
}

.wall-post-head strong,
.wall-post-head small,
.wall-post-head span {
  display: block;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: normal;
}

.wall-post-head strong {
  font-size: 15px;
  line-height: 1.28;
  letter-spacing: 0;
}

.wall-post-head small,
.wall-post-head span {
  font-size: 11.5px;
  line-height: 1.4;
}

.wall-post-copy {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 22px 17px;
  overflow: visible !important;
}

.wall-post-copy h3 {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 8px;
  font-family: 'Manrope', Inter, sans-serif;
  font-size: clamp(19px, 2vw, 25px) !important;
  font-weight: 850;
  line-height: 1.22 !important;
  letter-spacing: -.025em;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-line-clamp: unset !important;
}

.wall-post-copy p,
.wall-post-copy .locked-description {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: 14px !important;
  line-height: 1.62 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-line-clamp: unset !important;
}

.wall-post .locked-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: calc(100% - 24px);
  height: auto !important;
  min-height: 210px;
  max-height: none !important;
  margin: 12px;
  padding: clamp(22px, 4vw, 36px);
  overflow: visible !important;
}

.wall-post .locked-card > span {
  font-size: 32px;
  line-height: 1;
}

.wall-post .locked-card > strong {
  display: block;
  max-width: 100%;
  font-family: 'Manrope', Inter, sans-serif;
  font-size: clamp(17px, 2vw, 22px) !important;
  line-height: 1.25 !important;
  letter-spacing: -.02em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.wall-post .locked-card small {
  display: block;
  width: 100%;
  max-width: 600px;
  font-size: 13px;
  line-height: 1.58;
  white-space: normal;
  overflow-wrap: anywhere;
}

.wall-post .locked-card form,
.wall-post .locked-card .button,
.wall-post .locked-card button {
  width: 100%;
  max-width: 440px;
}

.wall-post .button,
.wall-post button {
  height: auto !important;
  min-height: 44px;
  padding: 11px 15px;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.wall-post .post-gallery,
.wall-post .post-media-frame,
.wall-post .media-placeholder {
  overflow: hidden !important;
}

.wall-post .content-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 14px;
  width: 100%;
  padding: 15px 22px 20px;
  font-size: 10.5px;
  line-height: 1.45;
  letter-spacing: .09em;
  white-space: normal;
  overflow: visible;
}

.wall-post .content-meta span {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Profil modelky nad zdí */
.profile-info {
  width: 100%;
  height: auto !important;
  overflow: visible !important;
}

.profile-info h1 {
  max-width: 100%;
  font-size: clamp(38px, 6.2vw, 72px) !important;
  line-height: .98 !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.profile-info p {
  max-width: 760px;
  font-size: 14.5px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.profile-actions .button,
.wallet-pill {
  height: auto !important;
  max-width: 100%;
  white-space: normal;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* Karty modelek v seznamu */
.creator-card {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.creator-body {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible;
}

.creator-body h3,
.creator-body h2 {
  max-width: 100%;
  font-size: clamp(21px, 2.2vw, 29px) !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere;
}

.creator-body p,
.creator-body span,
.creator-body small {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.creator-body p {
  font-size: 13.5px;
  line-height: 1.58;
}

.creator-tags {
  max-width: 100%;
}

.creator-tags > * {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Členství nad zdí */
.membership-shop,
.membership-card {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.membership-head h2 {
  font-size: clamp(26px, 3.4vw, 42px) !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere;
}

.membership-head p,
.membership-card p {
  font-size: 13.5px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.membership-card h3 {
  font-size: clamp(20px, 2vw, 27px) !important;
  line-height: 1.14 !important;
  overflow-wrap: anywhere;
}

.membership-card > strong {
  font-size: clamp(19px, 2vw, 24px) !important;
  line-height: 1.2 !important;
  white-space: normal;
}

.current-membership {
  max-width: 100%;
  height: auto !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Definitivní oprava objednávek */
.direct-orders-panel,
.direct-orders-panel .table-wrap,
.direct-orders-panel table,
.direct-orders-panel tbody,
.direct-orders-panel tr,
.direct-orders-panel td {
  max-height: none !important;
}

.direct-orders-panel h2 {
  font-size: clamp(25px, 3vw, 40px) !important;
  line-height: 1.1 !important;
  overflow-wrap: anywhere;
}

.direct-orders-panel .section-inline p {
  font-size: 13.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.direct-orders-panel td,
.direct-orders-panel td * {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.direct-orders-panel .mini-button,
.direct-orders-panel button {
  height: auto !important;
  min-height: 38px;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .content-wall { gap: 24px; }
  .wall-post { border-radius: 26px !important; }
  .wall-post-head { grid-template-columns: 42px minmax(0, 1fr); padding: 15px 16px 12px; }
  .small-avatar { width: 42px; height: 42px; }
  .wall-post-copy { padding: 0 16px 14px; }
  .wall-post-copy h3 { font-size: 20px !important; line-height: 1.22 !important; }
  .wall-post-copy p, .wall-post-copy .locked-description { font-size: 13.5px !important; }
  .wall-post .content-meta { padding: 13px 16px 17px; }
  .wall-post .locked-card { width: calc(100% - 16px); margin: 8px; padding: 22px 16px; border-radius: 22px; }
  .profile-info { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 0 20px 28px; }
  .profile-info h1 { font-size: clamp(36px, 12vw, 54px) !important; }
  .profile-info p { font-size: 13.5px; }
  .profile-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .profile-actions .button { width: 100%; }
  .wallet-pill { width: 100%; border-radius: 18px; }
  .membership-head { align-items: stretch; }
  .membership-head h2 { font-size: 28px !important; }
  .current-membership { width: 100%; }
  .creator-grid { grid-template-columns: minmax(0, 1fr); }
  .creator-body { padding-inline: 22px; }
}

@media (max-width: 420px) {
  .wall-post-copy h3 { font-size: 18px !important; }
  .wall-post-copy p, .wall-post-copy .locked-description { font-size: 13px !important; line-height: 1.58 !important; }
  .wall-post .locked-card > strong { font-size: 17px !important; }
  .wall-post .button, .wall-post button { font-size: 12px; }
  .content-meta { font-size: 10px !important; }
}

/* V14.3 – samostatné vyúčtování provize */
.settlement-flow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0 24px}.settlement-flow-grid .panel-card{min-width:0}.step-number{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(177,132,90,.16);font-weight:800;margin-bottom:12px}.settlement-flow-grid h3{font-size:clamp(1rem,1.35vw,1.2rem);margin:.1rem 0 .5rem}.settlement-flow-grid p{font-size:.92rem;line-height:1.55;margin:0}.billing-details-card{margin-top:20px}.settlement-card-list{display:grid;gap:18px}.settlement-payment-card{border:1px solid rgba(174,142,111,.28);border-radius:18px;padding:20px;min-width:0;background:rgba(255,255,255,.025)}.settlement-payment-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px}.settlement-payment-head h3{font-size:clamp(1.05rem,1.5vw,1.3rem);margin:.15rem 0 0}.settlement-payment-head small,.settlement-payment-grid span{font-size:.78rem;color:var(--muted)}.settlement-payment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.settlement-payment-grid>div{min-width:0;border-radius:13px;padding:12px;background:rgba(255,255,255,.035)}.settlement-payment-grid strong{display:block;font-size:clamp(.93rem,1.2vw,1.08rem);overflow-wrap:anywhere;margin-top:4px}.settlement-pay-area{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:20px;padding:16px;border-radius:16px;background:rgba(12,9,10,.3)}.settlement-pay-area .payment-qr{width:190px;height:190px;max-width:100%;background:#fff;border-radius:10px;padding:8px}.settlement-pay-area p{font-size:.9rem;overflow-wrap:anywhere}.settlement-report-form{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.settlement-report-form input{flex:1 1 260px;min-width:0}.settlement-actions{display:flex;flex-wrap:wrap;gap:7px;min-width:190px}.settlements-admin-panel td,.settlements-admin-panel th{vertical-align:top}.status-chip.reported{background:rgba(104,144,198,.16);border-color:rgba(104,144,198,.4)}.status-chip.waived{background:rgba(148,137,160,.16);border-color:rgba(148,137,160,.4)}
@media(max-width:900px){.settlement-flow-grid{grid-template-columns:1fr}.settlement-payment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.settlement-payment-card{padding:15px}.settlement-payment-head{display:block}.settlement-payment-head .status-chip{margin-top:10px}.settlement-payment-grid{grid-template-columns:1fr 1fr}.settlement-pay-area{grid-template-columns:1fr}.settlement-pay-area .payment-qr{margin:auto}.settlement-report-form{display:grid}.settlement-report-form input,.settlement-report-form button{width:100%}}

/* V14.4 – administrace nastavení platformy */
.platform-settings-form { display: grid; gap: 18px; }
.platform-settings-form .panel-card { overflow: visible; }
.form-grid { display: grid; gap: 15px; min-width: 0; }
.form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid label { display: grid; gap: 7px; min-width: 0; font-size: .9rem; font-weight: 700; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; min-width: 0; box-sizing: border-box; }
.form-grid .full-span { grid-column: 1 / -1; }
.form-grid .check-row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.form-grid .check-row input { width: auto; flex: 0 0 auto; }
.form-grid small { color: var(--muted, #746b64); font-weight: 500; line-height: 1.45; }
.settings-save-bar { position: sticky; bottom: 14px; z-index: 12; display: flex; justify-content: flex-end; padding: 14px; border-radius: 22px; background: rgba(255,250,243,.94); border: 1px solid rgba(70,52,42,.12); box-shadow: 0 16px 36px rgba(40,25,20,.12); backdrop-filter: blur(14px); }
@media (max-width: 820px) {
  .form-grid.two-columns, .form-grid.three-columns { grid-template-columns: 1fr; }
  .form-grid .full-span { grid-column: auto; }
  .settings-save-bar { bottom: 8px; }
  .settings-save-bar .button { width: 100%; }
}

/* V14.5: veřejné portfolio modelek pro fotografy */
.photographer-portfolio-section {
  margin: 24px 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(199, 164, 105, .22);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(250,246,239,.95));
  box-shadow: 0 22px 70px rgba(49, 36, 28, .08);
  overflow: visible;
}
.photographer-portfolio-head { align-items: flex-end; gap: 18px; }
.photographer-portfolio-head h2 { margin: 4px 0 8px; font-size: clamp(28px, 3.4vw, 44px); }
.photographer-portfolio-head p { margin: 0; max-width: 760px; line-height: 1.6; }
.portfolio-count { flex: 0 0 auto; font-size: 13px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.portfolio-filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 14px;
  border: 1px solid rgba(78, 60, 47, .17); border-radius: 999px; background: #fff;
  color: inherit; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.portfolio-filter span { min-width: 22px; padding: 2px 7px; border-radius: 999px; background: rgba(184, 137, 75, .12); font-size: 11px; }
.portfolio-filter.is-active { background: #21171c; color: #fff; border-color: #21171c; }
.portfolio-filter.is-active span { background: rgba(255,255,255,.16); }
.photographer-portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.photographer-portfolio-card { min-width: 0; border-radius: 20px; background: #fff; overflow: hidden; border: 1px solid rgba(85, 65, 49, .12); box-shadow: 0 12px 32px rgba(37, 27, 22, .07); }
.photographer-portfolio-card[hidden] { display: none !important; }
.photographer-portfolio-image { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #eee7df; }
.photographer-portfolio-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.photographer-portfolio-image:hover img { transform: scale(1.025); }
.portfolio-zoom { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(18, 13, 16, .78); color: #fff; font-size: 11px; font-weight: 700; opacity: 0; transform: translateY(4px); transition: .2s ease; }
.photographer-portfolio-image:hover .portfolio-zoom { opacity: 1; transform: none; }
.photographer-portfolio-caption { min-height: 52px; padding: 12px 14px 14px; overflow-wrap: anywhere; }
.photographer-portfolio-caption span { display: block; color: #9a6d3b; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.photographer-portfolio-caption p { margin: 5px 0 0; font-size: 13px; line-height: 1.45; }
.photographer-portfolio-empty { margin: 24px 0; }

.portfolio-settings-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; margin-bottom: 24px; }
.portfolio-category-create, .portfolio-upload-form { padding: 18px; border: 1px solid rgba(80, 61, 48, .12); border-radius: 20px; background: rgba(255,255,255,.72); }
.portfolio-category-create h3, .portfolio-upload-form h3, .portfolio-folder-manager h3, .portfolio-photo-manager h3 { margin: 3px 0 0; font-size: 21px; }
.portfolio-file-drop small { display: block; margin-top: 7px; font-size: 12px; line-height: 1.45; font-weight: 500; opacity: .72; }
.portfolio-folder-manager, .portfolio-photo-manager { margin-top: 26px; }
.portfolio-folder-list { display: grid; gap: 9px; }
.portfolio-folder-row { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto auto auto; align-items: end; gap: 10px; padding: 12px; border: 1px solid rgba(80, 61, 48, .12); border-radius: 16px; background: rgba(255,255,255,.72); }
.portfolio-folder-row label { min-width: 0; }
.portfolio-folder-count { align-self: center; padding: 7px 10px; border-radius: 999px; background: rgba(184,137,75,.1); font-size: 12px; font-weight: 700; white-space: nowrap; }
.button-small { min-height: 36px; padding: 8px 12px; font-size: 12px; }
.button-danger { border: 1px solid rgba(147, 54, 54, .25); background: rgba(147, 54, 54, .08); color: #8b2929; }
.button-danger:hover { background: rgba(147, 54, 54, .14); }
.button-danger:disabled { opacity: .38; cursor: not-allowed; }
.portfolio-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.portfolio-admin-card { min-width: 0; overflow: hidden; border: 1px solid rgba(80, 61, 48, .12); border-radius: 18px; background: rgba(255,255,255,.84); }
.portfolio-admin-card > img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #eee7df; }
.portfolio-admin-fields { display: grid; gap: 10px; padding: 13px; }
.portfolio-admin-fields label { min-width: 0; }
.portfolio-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 960px) {
  .photographer-portfolio-grid, .portfolio-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-settings-grid { grid-template-columns: 1fr; }
  .portfolio-folder-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .portfolio-folder-row .button { width: 100%; }
}
@media (max-width: 620px) {
  .photographer-portfolio-section { padding: 17px; border-radius: 22px; }
  .photographer-portfolio-head { align-items: flex-start; }
  .portfolio-count { white-space: normal; }
  .photographer-portfolio-grid, .portfolio-admin-grid { grid-template-columns: 1fr; }
  .portfolio-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
  .portfolio-filter { flex: 0 0 auto; }
  .portfolio-folder-row { grid-template-columns: 1fr 1fr; align-items: end; }
  .portfolio-folder-row > label:first-of-type { grid-column: 1 / -1; }
  .portfolio-folder-count { white-space: normal; }
}

/* V14.8 – definitivní mobilní rozložení úvodní stránky */
@media (max-width: 980px) {
  .hero.hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
    width: 100%;
    gap: 30px !important;
    padding: 28px 0 48px !important;
    align-items: start;
  }

  .hero.hero-grid > *,
  .hero-copy,
  .hero-copy > * {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .hero-copy {
    padding: 12px 0 0 !important;
    gap: 22px;
  }

  .hero-copy::before { display: none !important; }

  .hero-copy h1 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .luxury-phone {
    position: relative;
    width: min(100%, 390px) !important;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    transform: none !important;
  }

  .luxury-phone::before,
  .luxury-phone::after {
    max-width: 32vw;
  }

  .creator-grid,
  .feature-grid,
  .pricing-model,
  .wallet-grid,
  .content-grid,
  .metric-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .creator-card,
  .pricing-strip,
  .section-head,
  .section-head > *,
  .creator-body,
  .creator-body > * {
    min-width: 0;
    max-width: 100%;
  }

  .pricing-strip {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 560px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .page-shell,
  .app-topbar,
  .site-footer,
  .notice {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
  }

  .page-shell {
    padding-top: 18px !important;
    padding-bottom: 54px;
  }

  .app-topbar {
    height: 62px;
    margin-top: 10px;
    padding: 0 8px 0 10px;
    gap: 8px;
    border-radius: 22px !important;
  }

  .brand {
    min-width: 0;
    gap: 8px;
    font-size: 15px !important;
    letter-spacing: -.02em !important;
    white-space: nowrap;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    font-size: 22px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .main-nav {
    top: 80px;
    left: 12px;
    right: 12px;
    max-height: calc(100dvh - 94px);
    overflow-y: auto;
    border-radius: 22px !important;
  }

  .hero.hero-grid {
    gap: 24px !important;
    padding: 20px 0 42px !important;
  }

  .hero-copy {
    gap: 17px;
    padding-top: 6px !important;
  }

  .hero-copy .eyebrow {
    font-size: 9px;
    line-height: 1.65;
    letter-spacing: .18em;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 13.4vw, 56px) !important;
    line-height: .94 !important;
    letter-spacing: -.045em !important;
  }

  .hero-copy .lead {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 48px;
    padding: 13px 16px;
  }

  .trust-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .trust-row span {
    justify-content: center;
    min-width: 0;
    padding: 9px 8px;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }

  .trust-row span:last-child {
    grid-column: 1 / -1;
  }

  .luxury-phone {
    width: min(100%, 350px) !important;
    min-height: 478px !important;
    padding: 9px;
    border-radius: 38px;
  }

  .phone-top {
    margin: 8px auto 12px;
  }

  .phone-scene {
    min-height: 430px !important;
    padding: 13px;
    border-radius: 30px;
  }

  .phone-glass {
    padding: 18px;
    border-radius: 24px;
    gap: 9px;
  }

  .phone-glass h3 {
    font-size: 25px !important;
    line-height: 1.02 !important;
  }

  .phone-glass p {
    font-size: 12px;
  }

  .phone-pills span {
    padding: 8px 10px;
    font-size: 10px;
  }

  .phone-glass .button {
    min-height: 43px;
    padding: 11px 13px;
    font-size: 12px;
  }

  .section-head,
  .section-head.compact {
    margin: 34px auto 22px !important;
    gap: 9px;
    padding-inline: 4px;
  }

  .section-head h1,
  .section-head h2 {
    font-size: clamp(32px, 10.5vw, 42px) !important;
    line-height: 1 !important;
    letter-spacing: -.045em !important;
    overflow-wrap: normal;
  }

  .creator-grid {
    gap: 18px !important;
  }

  .creator-card {
    width: 100%;
    border-radius: 28px !important;
  }

  .creator-cover,
  .creator-card:nth-child(even) .creator-cover {
    min-height: 0 !important;
    height: auto;
    aspect-ratio: 4 / 3.45;
    margin: 8px;
    border-radius: 22px;
  }

  .creator-body {
    padding: 0 16px 18px !important;
  }

  .creator-body .avatar {
    width: 62px;
    height: 62px;
    margin-top: -38px;
  }

  .creator-body h3 {
    font-size: 24px !important;
  }

  .creator-body p {
    font-size: 13px;
    line-height: 1.5;
  }

  .creator-body .button {
    width: 100%;
    min-height: 45px;
    padding: 11px 14px;
    font-size: 12px;
  }

  .pricing-strip {
    margin: 30px 0 0;
    padding: 24px 18px !important;
    gap: 18px;
    border-radius: 28px !important;
  }

  .pricing-strip h2 {
    font-size: 34px !important;
    line-height: .98 !important;
  }

  .pricing-strip .button {
    width: 100%;
  }

  .site-footer {
    margin-bottom: 18px;
    padding: 24px 14px;
    font-size: 13px;
  }
}

@media (max-width: 370px) {
  .brand { font-size: 14px !important; }
  .hero-copy h1 { font-size: 40px !important; }
  .luxury-phone { min-height: 450px !important; }
  .phone-scene { min-height: 402px !important; }
}


/* V14.9 — placené odemčení soukromého chatu */
.chat-access-lock {
    width: min(100%, 620px);
    margin: auto;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid rgba(143, 111, 77, .22);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(248,242,234,.94));
    box-shadow: 0 24px 70px rgba(55, 39, 25, .10);
    text-align: center;
    overflow-wrap: anywhere;
}
.chat-access-lock-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 50%;
    background: rgba(169, 133, 91, .13);
    font-size: 24px;
}
.chat-access-lock h2 { margin: 0 0 12px; font-size: clamp(1.55rem, 4vw, 2.25rem); line-height: 1.08; }
.chat-access-lock p { max-width: 52ch; margin: 0 auto 18px; line-height: 1.65; }
.chat-access-lock form { margin: 18px 0 10px; }
.chat-access-lock .button { max-width: 100%; white-space: normal; }
.chat-access-price { display: block; margin: 8px 0; font-family: "Charis SIL", Georgia, serif; font-size: clamp(1.7rem, 5vw, 2.4rem); }
.dm-feed.is-access-locked { display: grid; place-items: center; padding: clamp(18px, 4vw, 42px); }
.chat-compose-locked { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; text-align: center; }
.chat-price-setting small { display: block; margin-top: 7px; font-size: .82rem; line-height: 1.45; opacity: .72; }
@media (max-width: 640px) {
    .chat-access-lock { padding: 24px 18px; border-radius: 20px; }
    .dm-feed.is-access-locked { padding: 14px; }
    .chat-access-lock .button { width: 100%; }
}

/* ============================================================
   V14.10 — vlastní barevný motiv profilu modelky
   ============================================================ */
.theme-color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.theme-color-field {
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.54);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 9px 12px;
}
.theme-color-field > span {
  min-width: 0;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.theme-color-field input[type="color"] {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 3px;
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
}
.theme-color-field small {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
}
.theme-live-preview {
  --creator-bg: #F6EFE3;
  --creator-bg-alt: #EBDDC8;
  --creator-card: #FFFAF2;
  --creator-accent: #A98754;
  --creator-accent-soft: #E8D7B8;
  --creator-text: #1B1510;
  --creator-muted: #75695E;
  --creator-button-text: #FFFDF8;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--creator-text) 13%, transparent);
  background: linear-gradient(145deg, var(--creator-bg), var(--creator-bg-alt));
  color: var(--creator-text);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--creator-text) 15%, transparent);
}
.theme-preview-cover {
  min-height: 118px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 78% 22%, color-mix(in srgb, var(--creator-accent-soft) 78%, transparent), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--creator-accent) 88%, var(--creator-bg)), var(--creator-bg-alt));
  color: var(--creator-button-text);
  font-weight: 900;
}
.theme-preview-content {
  position: relative;
  padding: 32px 24px 24px;
  display: grid;
  gap: 10px;
}
.theme-preview-content .eyebrow { color: var(--creator-accent); }
.theme-preview-content h3 { color: var(--creator-text); font-size: clamp(27px, 4vw, 42px); }
.theme-preview-content > p:not(.eyebrow) { color: var(--creator-muted); }
.theme-preview-avatar {
  position: absolute;
  top: -28px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--creator-accent);
  color: var(--creator-button-text);
  border: 4px solid var(--creator-card);
  font: 700 24px/1 "Charis SIL", Georgia, serif;
}
.theme-preview-card {
  margin-top: 8px;
  padding: 16px;
  border-radius: 18px;
  background: var(--creator-card);
  border: 1px solid color-mix(in srgb, var(--creator-text) 12%, transparent);
  display: grid;
  gap: 4px;
}
.theme-preview-card strong { color: var(--creator-text); }
.theme-preview-card span { color: var(--creator-muted); }
.theme-preview-content button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 12px 17px;
  background: var(--creator-accent);
  color: var(--creator-button-text);
  font-weight: 900;
}

body.creator-theme-active {
  --bg: var(--creator-bg);
  --ink: var(--creator-text);
  --muted: var(--creator-muted);
  --card: color-mix(in srgb, var(--creator-card) 88%, transparent);
  --card-strong: color-mix(in srgb, var(--creator-card) 96%, transparent);
  --line: color-mix(in srgb, var(--creator-text) 14%, transparent);
  --gold: var(--creator-accent);
  --gold-soft: var(--creator-accent-soft);
  --rose: var(--creator-accent);
  --plum: var(--creator-accent);
  --plum-2: color-mix(in srgb, var(--creator-accent) 75%, var(--creator-text));
  --cream: var(--creator-button-text);
  background:
    radial-gradient(circle at 10% 5%, color-mix(in srgb, var(--creator-accent-soft) 62%, transparent), transparent 29rem),
    radial-gradient(circle at 90% 30%, color-mix(in srgb, var(--creator-accent) 18%, transparent), transparent 34rem),
    linear-gradient(145deg, var(--creator-bg), var(--creator-bg-alt));
  color: var(--creator-text);
}
body.creator-theme-active .ambient-one {
  background: var(--creator-accent-soft);
  opacity: .32;
}
body.creator-theme-active .ambient-two {
  background: var(--creator-accent);
  opacity: .13;
}
body.creator-theme-active .app-topbar {
  background: color-mix(in srgb, var(--creator-card) 91%, transparent);
  border-color: color-mix(in srgb, var(--creator-text) 12%, transparent);
  box-shadow: 0 18px 54px color-mix(in srgb, var(--creator-text) 12%, transparent);
}
body.creator-theme-active .brand,
body.creator-theme-active .main-nav a,
body.creator-theme-active .nav-toggle { color: var(--creator-text); }
body.creator-theme-active .brand-mark,
body.creator-theme-active .nav-cta {
  background: var(--creator-accent);
  color: var(--creator-button-text);
}
body.creator-theme-active .main-nav a:hover {
  background: color-mix(in srgb, var(--creator-accent-soft) 42%, transparent);
  color: var(--creator-text);
}
body.creator-theme-active .profile-hero,
body.creator-theme-active .membership-shop,
body.creator-theme-active .wall-post,
body.creator-theme-active .photographer-hero,
body.creator-theme-active .photographer-layout .panel-card,
body.creator-theme-active .photographer-conditions,
body.creator-theme-active .photographer-portfolio-card,
body.creator-theme-active .photographer-portfolio-empty {
  background: color-mix(in srgb, var(--creator-card) 92%, transparent);
  border-color: color-mix(in srgb, var(--creator-text) 13%, transparent);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--creator-text) 14%, transparent);
}
body.creator-theme-active .profile-cover:not(.has-image) {
  background:
    radial-gradient(circle at 76% 24%, color-mix(in srgb, var(--creator-accent-soft) 75%, transparent), transparent 26%),
    linear-gradient(135deg, color-mix(in srgb, var(--creator-accent) 82%, var(--creator-bg)), var(--creator-bg-alt));
  color: var(--creator-button-text);
}
body.creator-theme-active .profile-info,
body.creator-theme-active .wall-post-copy,
body.creator-theme-active .wall-post-head,
body.creator-theme-active .content-meta,
body.creator-theme-active .photographer-portfolio-caption {
  color: var(--creator-text);
}
body.creator-theme-active h1,
body.creator-theme-active h2,
body.creator-theme-active h3,
body.creator-theme-active strong { color: var(--creator-text); }
body.creator-theme-active p,
body.creator-theme-active small,
body.creator-theme-active .content-meta,
body.creator-theme-active .wall-post-head span,
body.creator-theme-active .wall-post-head small { color: var(--creator-muted); }
body.creator-theme-active .eyebrow,
body.creator-theme-active .tier-level,
body.creator-theme-active .portfolio-count { color: var(--creator-accent); }
body.creator-theme-active .button-primary,
body.creator-theme-active .mini-button,
body.creator-theme-active .dm-send,
body.creator-theme-active .portfolio-filter.is-active {
  background: var(--creator-accent);
  color: var(--creator-button-text);
  border-color: var(--creator-accent);
}
body.creator-theme-active .button-ghost,
body.creator-theme-active .button-soft,
body.creator-theme-active .portfolio-filter {
  background: color-mix(in srgb, var(--creator-card) 80%, transparent);
  color: var(--creator-text);
  border-color: color-mix(in srgb, var(--creator-text) 14%, transparent);
}
body.creator-theme-active .membership-card,
body.creator-theme-active .locked-card,
body.creator-theme-active .current-membership,
body.creator-theme-active .wallet-pill,
body.creator-theme-active .panel-note,
body.creator-theme-active .rate-public-list article,
body.creator-theme-active .travel-price {
  background: color-mix(in srgb, var(--creator-card) 80%, var(--creator-accent-soft));
  color: var(--creator-text);
  border-color: color-mix(in srgb, var(--creator-text) 13%, transparent);
}
body.creator-theme-active .membership-card.is-current {
  outline-color: var(--creator-accent);
  box-shadow: 0 20px 48px color-mix(in srgb, var(--creator-accent) 20%, transparent);
}
body.creator-theme-active .avatar {
  background: linear-gradient(145deg, var(--creator-accent), color-mix(in srgb, var(--creator-accent) 55%, var(--creator-text)));
  color: var(--creator-button-text);
  border-color: var(--creator-card);
}
body.creator-theme-active .content-meta,
body.creator-theme-active .wall-post-head,
body.creator-theme-active .photographer-portfolio-caption,
body.creator-theme-active .site-footer {
  border-color: color-mix(in srgb, var(--creator-text) 13%, transparent);
}
body.creator-theme-active .site-footer,
body.creator-theme-active .site-footer span { color: var(--creator-muted); }
body.creator-theme-active .site-footer strong { color: var(--creator-text); }
body.creator-theme-active .notice {
  background: color-mix(in srgb, var(--creator-card) 90%, transparent);
  border-color: color-mix(in srgb, var(--creator-text) 13%, transparent);
  color: var(--creator-muted);
}

@media (max-width: 900px) {
  .theme-color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.creator-theme-active .main-nav {
    background: color-mix(in srgb, var(--creator-card) 97%, transparent);
    border-color: color-mix(in srgb, var(--creator-text) 13%, transparent);
  }
}
@media (max-width: 560px) {
  .theme-color-grid { grid-template-columns: 1fr; }
  .theme-live-preview { border-radius: 22px; }
  .theme-preview-content { padding: 30px 18px 18px; }
}

/* V14.12 – diagnostika Fio API */
.fio-diagnostics {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,.12);
}
.fio-diagnostics summary {
    cursor: pointer;
    font-weight: 700;
}
.fio-diagnostics-grid {
    display: grid;
    grid-template-columns: minmax(140px, .7fr) minmax(0, 1.3fr);
    gap: 7px 14px;
    margin-top: 12px;
    font-size: .9rem;
}
.fio-diagnostics-grid span,
.fio-diagnostics-grid strong {
    min-width: 0;
    overflow-wrap: anywhere;
}
@media (max-width: 620px) {
    .fio-diagnostics-grid { grid-template-columns: 1fr; gap: 2px; }
    .fio-diagnostics-grid strong { margin-bottom: 8px; }
}

/* V14.14 – náhled a více příloh ve zprávách */
.dm-compose {
  display: grid;
  align-items: stretch;
  gap: 10px;
}
.dm-compose-row {
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
.dm-attach.has-file,
.dm-tools:has([data-chat-files]:valid) > summary {
  color: #fff;
  border-color: #b89255;
  background: #b89255;
}
.dm-tools-popover small {
  color: #80766b;
  font-size: 11px;
  line-height: 1.45;
}
.dm-attachment-preview[hidden] { display: none !important; }
.dm-attachment-preview {
  min-width: 0;
  padding: 11px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(46,33,21,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
}
.dm-attachment-preview-head {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.dm-attachment-preview-head strong {
  color: #312b25;
  font-size: 13px;
}
.dm-attachment-preview-head small {
  min-width: 0;
  color: #81776c;
  font-size: 10px;
  line-height: 1.4;
  text-align: right;
  overflow-wrap: anywhere;
}
.dm-attachment-preview-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 9px;
}
.dm-attachment-preview-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(46,33,21,.10);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(46,33,21,.055);
}
.dm-attachment-preview-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #171513;
}
.dm-attachment-preview-media img,
.dm-attachment-preview-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dm-attachment-preview-meta {
  min-width: 0;
  padding: 8px 10px 10px;
  display: grid;
  gap: 2px;
}
.dm-attachment-preview-meta strong,
.dm-attachment-preview-meta small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dm-attachment-preview-meta strong {
  color: #3b342e;
  font-size: 11px;
}
.dm-attachment-preview-meta small {
  color: #8a8075;
  font-size: 9px;
}
.dm-attachment-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(23,21,19,.82);
  box-shadow: 0 5px 14px rgba(0,0,0,.24);
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}
.dm-attachment-remove:hover { background: #8f2d2d; }

.dm-media-gallery {
  min-width: 210px;
  max-width: 100%;
  overflow: hidden;
  display: grid;
  gap: 2px;
  background: #181512;
}
.dm-media-gallery.is-single { width: min(420px, 64vw); }
.dm-media-gallery.is-multiple {
  width: min(520px, 68vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dm-media-gallery.is-multiple .dm-media:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dm-media-gallery .dm-media { min-width: 0; aspect-ratio: 4 / 3; }
.dm-media-gallery.is-single .dm-media { aspect-ratio: auto; }
.dm-media-gallery .dm-media img,
.dm-media-gallery .dm-media video {
  width: 100%;
  height: 100%;
  min-height: 150px;
  max-height: 430px;
  object-fit: cover;
}
.dm-media-gallery.is-single .dm-media img,
.dm-media-gallery.is-single .dm-media video { height: auto; }
.dm-locked-content > small {
  color: #8c7f70;
  font-size: 11px;
  font-weight: 750;
}

@media (max-width: 560px) {
  .dm-compose { padding: 9px; }
  .dm-compose-row { gap: 7px; }
  .dm-attachment-preview-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .dm-attachment-preview-head small { text-align: left; }
  .dm-attachment-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-attachment-preview-meta { padding-inline: 8px; }
  .dm-media-gallery.is-single,
  .dm-media-gallery.is-multiple { width: min(100%, 78vw); }
}

@media (max-width: 370px) {
  .dm-attachment-preview-grid { grid-template-columns: 1fr; }
  .dm-send { padding-inline: 11px; }
}

/* V14.16 — přehledná správa ceny u odeslaných médií v chatu */
.dm-message-sale-card {
  margin-top: 9px;
  padding: 10px 11px;
  border: 1px solid rgba(77, 62, 46, .14);
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
  color: #352f29;
  min-width: min(320px, 100%);
  max-width: 100%;
  box-sizing: border-box;
}
.dm-message-sale-card.is-waiting { border-color: rgba(169, 119, 39, .28); background: rgba(255, 248, 232, .9); }
.dm-message-sale-card.is-unlocked { border-color: rgba(49, 130, 86, .25); background: rgba(237, 249, 241, .92); }
.dm-message-sale-card.is-free { border-color: rgba(88, 88, 88, .16); background: rgba(248, 247, 245, .92); }
.dm-message-sale-summary {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}
.dm-message-sale-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.dm-message-sale-copy strong,
.dm-message-sale-copy small,
.dm-price-editor-note,
.dm-price-locked-note {
  overflow-wrap: anywhere;
  word-break: normal;
}
.dm-message-sale-copy strong { font-size: 13px; line-height: 1.25; }
.dm-message-sale-copy small { color: #756b61; font-size: 11px; line-height: 1.35; }
.dm-price-editor { margin-top: 9px; border-top: 1px solid rgba(77, 62, 46, .12); padding-top: 8px; }
.dm-price-editor > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  color: #6d4d28;
  list-style-position: outside;
  margin-left: 15px;
}
.dm-price-editor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 9px;
}
.dm-price-editor-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 11px;
  font-weight: 750;
  color: #5e554c;
}
.dm-price-editor-form input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(70, 57, 43, .2);
  border-radius: 10px;
  background: #fff;
  padding: 9px 10px;
  color: #29241f;
  font: inherit;
  font-size: 13px;
}
.dm-price-editor-note,
.dm-price-locked-note {
  display: block;
  margin-top: 7px;
  color: #7a7067;
  font-size: 10.5px;
  line-height: 1.4;
}
.dm-price-locked-note { font-weight: 700; }
.dm-message:target .dm-bubble { outline: 2px solid rgba(169, 119, 39, .36); outline-offset: 3px; }

@media (max-width: 560px) {
  .dm-message-sale-card { min-width: 0; width: 100%; padding: 9px; }
  .dm-price-editor-form { grid-template-columns: 1fr; }
  .dm-price-editor-form .button { width: 100%; }
}
.dm-price-update-notice { margin-bottom: 12px; }

/* V14.17 — kompletní statistika a historie plateb modelky */
.payment-overview-panel,
.revenue-breakdown-panel,
.creator-payment-history-panel {
  overflow: visible !important;
}

.payment-state-grid article {
  min-height: 126px;
}

.payment-history-heading {
  align-items: flex-start;
}

.payment-history-heading > div,
.payment-history-heading h2,
.payment-history-heading p {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.payment-history-filters {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(170px, 1fr) minmax(230px, 1.5fr) auto auto;
  gap: 12px;
  align-items: end;
  margin: 22px 0 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.48);
}

.payment-history-filters label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.payment-history-filters select,
.payment-history-filters input {
  width: 100%;
  min-width: 0;
}

.payment-history-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 8px 2px 12px;
  color: var(--muted);
  font-size: 13px;
}

.payment-history-summary strong {
  color: var(--text);
}

.payment-history-table-wrap {
  overflow-x: auto !important;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.payment-history-table {
  min-width: 1180px;
  table-layout: auto;
}

.payment-history-table thead {
  display: table-header-group;
}

.payment-history-table thead tr {
  background: transparent;
  box-shadow: none;
}

.payment-history-table th {
  padding: 0 12px 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .11em;
  text-align: left;
  white-space: nowrap;
}

.payment-history-table td {
  max-width: 280px;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.42;
}

.payment-history-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.payment-history-table .payment-description-cell {
  min-width: 210px;
}

.legacy-payment-label {
  color: #8b6a3b !important;
}

.payment-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.revenue-breakdown-panel .statistics-visual-grid {
  margin-top: 24px;
}

.revenue-breakdown-panel .stats-daily-chart {
  min-width: 520px;
}

.revenue-breakdown-panel .stat-chart-card {
  overflow-x: auto;
}

.revenue-breakdown-panel .daily-bar span {
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .payment-history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .payment-history-filters .payment-search-label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .payment-history-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

  .payment-history-heading .button {
    width: 100%;
  }

  .payment-history-filters {
    grid-template-columns: 1fr;
    padding: 15px;
    border-radius: 20px;
  }

  .payment-history-filters .payment-search-label {
    grid-column: auto;
  }

  .payment-history-filters .button {
    width: 100%;
  }

  .payment-history-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .payment-history-table-wrap {
    overflow: visible !important;
  }

  .payment-history-table,
  .payment-history-table tbody,
  .payment-history-table tr,
  .payment-history-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .payment-history-table {
    min-width: 0;
    border-spacing: 0;
  }

  .payment-history-table thead {
    display: none;
  }

  .payment-history-table tr {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,250,242,.82);
    box-shadow: 0 12px 32px rgba(45,31,18,.06);
  }

  .payment-history-table td,
  .payment-history-table td:first-child,
  .payment-history-table td:last-child {
    display: grid;
    grid-template-columns: minmax(92px, .75fr) minmax(0, 1.25fr);
    gap: 12px;
    align-items: start;
    max-width: none;
    padding: 9px 2px;
    border-radius: 0;
    border-bottom: 1px solid rgba(68,52,38,.08);
  }

  .payment-history-table td:last-child {
    border-bottom: 0;
  }

  .payment-history-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .payment-history-table td > * {
    min-width: 0;
    max-width: 100%;
  }

  .payment-history-table td small {
    grid-column: 2;
    margin-top: 2px;
  }

  .payment-pagination {
    justify-content: space-between;
  }

  .revenue-breakdown-panel .statistics-visual-grid {
    grid-template-columns: 1fr;
  }
}


/* V14.18 – aktivní části profilu modelky */
.module-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.module-choice-card {
    position: relative;
    display: block;
    min-width: 0;
    padding: 0;
    cursor: pointer;
}
.module-choice-card > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.module-choice-card > span {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border: 1px solid rgba(112, 86, 57, .22);
    border-radius: 18px;
    background: rgba(255,255,255,.55);
    box-shadow: 0 10px 28px rgba(33, 22, 15, .06);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
    overflow-wrap: anywhere;
}
.module-choice-card > span::before {
    content: '';
    width: 22px;
    height: 22px;
    border: 2px solid rgba(112, 86, 57, .42);
    border-radius: 7px;
    background: #fff;
    box-shadow: inset 0 0 0 4px #fff;
}
.module-choice-card > input:checked + span,
.module-choice-card.is-active > span {
    border-color: var(--accent, #a98754);
    background: color-mix(in srgb, var(--accent-soft, #e8d7b8) 34%, #fff 66%);
    box-shadow: 0 14px 34px rgba(73, 48, 28, .12);
}
.module-choice-card > input:checked + span::before {
    background: var(--accent, #a98754);
}
.module-choice-card:hover > span { transform: translateY(-2px); }
.module-choice-card strong {
    font-family: 'Charis SIL', Georgia, serif;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.18;
}
.module-choice-card small,
.module-choice-card b {
    display: block;
    font-size: .9rem;
    line-height: 1.48;
    font-weight: 500;
    color: var(--muted, #75695e);
}
.module-choice-card b { color: var(--text, #1b1510); }
.compact-module-choice { margin: 6px 0 2px; }
.compact-module-choice .module-choice-card > span { padding: 15px; }
.form-help {
    margin: 0;
    color: var(--muted, #75695e);
    font-size: .9rem;
    line-height: 1.5;
}
.profile-modules-section .panel-note { margin-top: 4px; }
.profile-module-overview { margin-top: 18px; }

@media (max-width: 720px) {
    .module-choice-grid { grid-template-columns: 1fr; gap: 12px; }
    .module-choice-card > span { padding: 16px; }
}

/* V14.19 – pracovní navigace modelky a přesunuté podklady k focení */
.main-nav .nav-submenu {
  position: relative;
  margin: 0;
}
.main-nav .nav-submenu > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 999px;
  color: rgba(33,22,26,.78);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.main-nav .nav-submenu > summary::-webkit-details-marker { display: none; }
.main-nav .nav-submenu > summary::after {
  content: '⌄';
  font-size: 12px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .18s ease;
}
.main-nav .nav-submenu[open] > summary,
.main-nav .nav-submenu > summary:hover {
  background: rgba(255,255,255,.74);
  color: var(--ink);
}
.main-nav .nav-submenu[open] > summary::after { transform: rotate(180deg) translateY(1px); }
.nav-submenu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 270px;
  padding: 10px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 22px;
  background: rgba(255,249,241,.98);
  box-shadow: 0 22px 55px rgba(51,30,25,.17);
  backdrop-filter: blur(22px);
  z-index: 60;
}
.main-nav .nav-submenu-panel a {
  padding: 12px 13px;
  border-radius: 15px;
  display: grid;
  gap: 3px;
  white-space: normal;
}
.main-nav .nav-submenu-panel a:hover { background: rgba(184,146,85,.12); }
.main-nav .nav-submenu-panel strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}
.main-nav .nav-submenu-panel small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}
.shooting-materials-hero { margin-bottom: 24px; }
.shooting-materials-card { margin-bottom: 24px; }
.shooting-materials-guide { display: grid; gap: 20px; }
.compact-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-feature-grid article {
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(255,255,255,.78);
  display: grid;
  gap: 7px;
}
.compact-feature-grid article strong { color: var(--ink); }

@media (max-width: 980px) {
  .main-nav .nav-submenu { width: 100%; }
  .main-nav .nav-submenu > summary {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 15px;
  }
  .nav-submenu-panel {
    position: static;
    width: 100%;
    transform: none;
    margin-top: 5px;
    padding: 6px;
    border-radius: 17px;
    box-shadow: none;
    background: rgba(255,255,255,.55);
  }
  .main-nav .nav-submenu-panel a { padding: 11px 12px 11px 19px; }
  .compact-feature-grid { grid-template-columns: 1fr; }
}

/* V14.23 · Podporuji: malé čtvercové profily a knihovna jednorázových nákupů */
.support-dashboard-hero,
.purchased-content-hero { margin-bottom: 22px; }

.support-square-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 150px));
  gap: 14px;
  align-items: start;
  justify-content: start;
}
.support-square-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.88);
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 32px rgba(58,35,31,.13);
  color: #fff;
  isolation: isolate;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.support-square-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(58,35,31,.19);
}
.support-square-photo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent-soft, #ead6c8), var(--accent, #b89255));
}
.support-square-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.support-square-photo b {
  font-family: "Charis SIL", Georgia, serif;
  font-size: 46px;
  line-height: 1;
  color: rgba(255,255,255,.95);
}
.support-square-overlay {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  min-width: 0;
  padding: 30px 10px 10px;
  display: grid;
  gap: 2px;
  background: linear-gradient(180deg, transparent, rgba(25,16,15,.88));
}
.support-square-overlay strong,
.support-square-overlay small,
.support-square-overlay em {
  min-width: 0;
  overflow-wrap: anywhere;
}
.support-square-overlay strong {
  font-size: 15px;
  line-height: 1.1;
  color: #fff;
}
.support-square-overlay small {
  font-size: 10px;
  line-height: 1.25;
  color: rgba(255,255,255,.82);
}
.support-square-overlay em {
  font-size: 9px;
  line-height: 1.2;
  font-style: normal;
  color: #f7d9a2;
}

.purchased-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.purchased-content-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.88);
  background: rgba(255,255,255,.7);
  box-shadow: 0 16px 38px rgba(58,35,31,.11);
}
.purchased-content-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, var(--accent-soft, #ead6c8), var(--accent, #b89255));
}
.purchased-content-thumb img,
.purchased-content-thumb video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.purchased-content-initial {
  font-family: "Charis SIL", Georgia, serif;
  font-size: 64px;
  color: rgba(255,255,255,.95);
}
.purchased-video-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  border-radius: 50%;
  color: #fff;
  background: rgba(20,15,14,.68);
  backdrop-filter: blur(8px);
}
.purchased-content-copy {
  min-width: 0;
  padding: 17px;
  display: grid;
  gap: 9px;
}
.purchased-content-copy small,
.purchased-content-copy h2,
.purchased-content-copy p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.purchased-content-copy > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.purchased-content-copy h2 {
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.1;
}
.purchased-content-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.purchased-content-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.purchased-content-meta strong { color: var(--ink); }

@media (max-width: 640px) {
  .support-square-grid {
    grid-template-columns: repeat(2, minmax(0, 145px));
    gap: 12px;
  }
  .support-square-card { border-radius: 17px; }
  .support-square-overlay { padding: 28px 9px 9px; }
  .purchased-content-grid { grid-template-columns: 1fr; }
}


/* V14.24 – obnovení zvonečku fanouška a modelky */
.main-nav .nav-alert-submenu > summary {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}
.main-nav .nav-alert-submenu > summary::after { display: none; }
.nav-bell-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-bell-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid rgba(255,249,241,.98);
  font-size: 10px;
}
.nav-alert-panel { width: 320px; left: auto; right: 0; transform: none; }
.nav-submenu-heading {
  display: grid;
  gap: 2px;
  padding: 7px 10px 10px;
  border-bottom: 1px solid rgba(80,52,40,.09);
  margin-bottom: 3px;
}
.nav-submenu-heading strong { color: var(--ink); font-size: 14px; }
.nav-submenu-heading small { color: var(--muted); font-size: 11px; font-weight: 700; }
.main-nav .nav-submenu-panel .nav-alert-link {
  grid-template-columns: 36px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
}
.nav-alert-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(184,146,85,.13);
  color: var(--ink);
  font-weight: 900;
}
.nav-alert-link > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.nav-alert-link > b {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent, #b89255);
  color: var(--button-text, #160f13);
  font-size: 11px;
}
.activity-page-hero { margin-bottom: 24px; }
.activity-feed-card { margin-bottom: 28px; }
.activity-feed-list { display: grid; gap: 10px; margin-top: 18px; }
.activity-feed-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border-radius: 20px;
  border: 1px solid rgba(83,54,42,.09);
  background: rgba(255,255,255,.48);
  color: var(--ink);
}
.activity-feed-item:hover { background: rgba(255,255,255,.76); transform: translateY(-1px); }
.activity-feed-item.is-new { border-color: rgba(184,146,85,.42); box-shadow: inset 4px 0 0 var(--accent, #b89255); }
.activity-feed-symbol {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--accent-soft, rgba(184,146,85,.16));
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}
.activity-feed-copy { min-width: 0; display: grid; gap: 3px; }
.activity-feed-copy small { color: var(--accent, #8f6935); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.activity-feed-copy strong { overflow-wrap: anywhere; font-size: 15px; line-height: 1.3; }
.activity-feed-copy span { color: var(--muted); overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }
.activity-feed-item time { color: var(--muted); font-size: 11px; white-space: nowrap; }

@media (max-width: 980px) {
  .main-nav .nav-alert-submenu { width: 100%; }
  .main-nav .nav-alert-submenu > summary {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    align-self: flex-end;
  }
  .nav-alert-panel { width: 100%; }
}
@media (max-width: 620px) {
  .activity-feed-item { grid-template-columns: 42px minmax(0,1fr); align-items: start; padding: 13px; }
  .activity-feed-symbol { width: 42px; height: 42px; }
  .activity-feed-item time { grid-column: 2; white-space: normal; }
}

/* =========================================================
   V14.27 – ADMIN MENU A KOMPLETNI STATISTIKY
   ========================================================= */
.admin-dashboard-metrics,
.admin-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card.metric-warning {
  border-color: rgba(194, 97, 83, .36);
  box-shadow: inset 0 0 0 1px rgba(194, 97, 83, .08);
}

.metric-card.metric-warning strong {
  color: #a94f43;
}

.admin-stat-section {
  margin: 22px 0;
}

.admin-stat-heading {
  margin-bottom: 16px;
}

.admin-stat-visuals {
  margin-top: 18px;
}

.admin-status-grid,
.admin-health-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-status-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-health-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-status-grid article,
.admin-health-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.54);
  overflow-wrap: anywhere;
}

.admin-status-grid span,
.admin-health-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-status-grid strong,
.admin-health-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-family: "Charis SIL", Georgia, serif;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1;
}

.admin-status-grid small,
.admin-health-grid small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.4;
}

.admin-creator-ranking,
.admin-payment-history-panel,
.admin-stat-orders-state,
.admin-platform-health {
  margin-top: 20px;
}

.admin-creator-ranking table,
.admin-payment-history-panel table {
  min-width: 980px;
}

.admin-payment-history-panel td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-stat-period-form {
  position: sticky;
  top: 78px;
  z-index: 8;
}

.admin-payment-filters {
  grid-template-columns: minmax(145px, .75fr) minmax(160px, .85fr) minmax(230px, 1.6fr) auto auto;
}

#admin-creators,
#admin-orders,
#admin-settlements,
#admin-logs {
  scroll-margin-top: 100px;
}

@media (max-width: 1100px) {
  .admin-dashboard-metrics,
  .admin-metric-grid,
  .admin-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-payment-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-payment-filters .payment-search-label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .admin-dashboard-metrics,
  .admin-metric-grid,
  .admin-status-grid,
  .admin-health-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-stat-period-form {
    position: static;
  }

  .admin-stat-heading,
  .admin-payment-history-panel .payment-history-heading {
    align-items: stretch;
  }

  .admin-stat-heading .button,
  .admin-payment-history-panel .payment-history-heading .button {
    width: 100%;
  }

  .admin-payment-filters {
    grid-template-columns: 1fr;
  }

  .admin-payment-filters .payment-search-label {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .admin-dashboard-metrics,
  .admin-metric-grid,
  .admin-status-grid,
  .admin-health-grid {
    grid-template-columns: 1fr;
  }
}

/* V14.28 – generátor smluv pro focení */
.contract-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.contract-generator-form{max-width:1120px;margin:0 auto 60px}
.contract-form-section{padding:28px;border-radius:26px;overflow:visible}
.contract-form-section .settings-section-head{margin-bottom:20px}
.contract-form-section fieldset{min-width:0;border:1px solid rgba(79,57,41,.18);border-radius:18px;padding:18px;background:rgba(255,255,255,.48)}
.contract-form-section legend{padding:0 8px;font-family:"Charis SIL",Georgia,serif;font-size:1.15rem;font-weight:700}
.contract-party-summary{display:flex;flex-direction:column;gap:3px;padding:16px 18px;border-radius:18px;background:rgba(255,255,255,.58);border:1px solid rgba(79,57,41,.14);margin-bottom:18px}
.contract-party-summary strong{font-family:"Charis SIL",Georgia,serif;font-size:1.2rem}
.contract-party-summary small{color:var(--muted,#75695e)}
.form-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rights-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.sensitive-choice{background:rgba(177,83,83,.08);border:1px solid rgba(177,83,83,.14);border-radius:12px;padding:10px 12px}
.contract-final-check{border:1px solid rgba(169,135,84,.42);background:linear-gradient(135deg,rgba(255,250,242,.96),rgba(235,221,200,.68))}
.contract-generator-form .checkbox-row{align-items:flex-start}
.contract-generator-form .checkbox-row input{margin-top:.22em;flex:0 0 auto}
.contract-generator-form select,.contract-generator-form input,.contract-generator-form textarea{max-width:100%;min-width:0}
.contract-generator-form textarea{resize:vertical}
.contract-generator-form button[disabled]{opacity:.45;cursor:not-allowed}
.contract-warning strong{display:inline}
@media(max-width:900px){.contract-settings-grid,.rights-grid{grid-template-columns:1fr}.form-three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.contract-form-section{padding:20px 16px;border-radius:20px}.form-three,.contract-settings-grid,.rights-grid{grid-template-columns:1fr}.contract-generator-form .settings-section-head{align-items:flex-start}.contract-generator-hero h1{font-size:clamp(2rem,11vw,3rem)}.contract-generator-form .button{width:100%;text-align:center}}


/* V14.29 – přehledné checkboxy v generátoru smlouvy */
.contract-generator-form .checkbox-row {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start !important;
  column-gap: 12px;
  row-gap: 0;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(79,57,41,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.46);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  box-sizing: border-box;
}
.contract-generator-form .checkbox-row + .checkbox-row { margin-top: 8px; }
.contract-generator-form .checkbox-row input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  margin: 3px 0 0 !important;
  padding: 0 !important;
  border-radius: 4px;
  accent-color: #8a6f44;
  justify-self: start;
}
.contract-generator-form .checkbox-row > span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.contract-generator-form fieldset .checkbox-row {
  margin-bottom: 8px;
}
.contract-generator-form fieldset .checkbox-row:last-child {
  margin-bottom: 0;
}
.contract-generator-form .checkbox-row.sensitive-choice {
  background: rgba(177,83,83,.08);
  border-color: rgba(177,83,83,.2);
}
.contract-generator-form .checkbox-row:hover {
  border-color: rgba(138,111,68,.38);
  background: rgba(255,255,255,.7);
}
.contract-generator-form .checkbox-row:has(input:focus-visible) {
  outline: 3px solid rgba(138,111,68,.2);
  outline-offset: 2px;
}
@media (max-width: 620px) {
  .contract-generator-form .checkbox-row {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 10px;
    padding: 11px 12px;
    font-size: .94rem;
  }
}


/* V14.30 – ochrana fotografií a videí před běžným stahováním */
img[data-protected-media],
video[data-protected-media],
.protected-media-frame,
.post-media,
.photographer-portfolio-image,
.purchased-content-thumb img,
.purchased-content-thumb video,
.dm-message-media img,
.dm-message-media video {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.protected-media-frame { cursor: default; }
.protected-media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  pointer-events: none;
}

.content-protection-notice {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 99999;
  width: min(92vw, 520px);
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(24,17,20,.96);
  color: #fff;
  box-shadow: 0 16px 42px rgba(0,0,0,.28);
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.content-protection-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* V14.31 – velký náhled fotografií při zachování ochrany obsahu */
.post-gallery-slide img.post-media,
.photographer-portfolio-image img,
.dm-media-gallery img {
  cursor: zoom-in;
}

.has-media-lightbox {
  overflow: hidden;
}

.media-lightbox[hidden] {
  display: none !important;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 36px);
}

.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 7, 8, .94);
  backdrop-filter: blur(8px);
}

.media-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(96vw, 1500px);
  height: min(94vh, 1100px);
  min-height: 240px;
}

.media-lightbox-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.media-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(94vh - 70px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.media-lightbox-caption {
  max-width: min(850px, 86vw);
  margin-top: 12px;
  color: rgba(255,255,255,.82);
  text-align: center;
  font-size: .92rem;
  line-height: 1.4;
}

.media-lightbox-close,
.media-lightbox-nav {
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(18,14,16,.78);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  cursor: pointer;
}

.media-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.media-lightbox-nav {
  position: relative;
  z-index: 3;
  width: 52px;
  height: 72px;
  border-radius: 16px;
  font-size: 42px;
  line-height: 1;
}

.media-lightbox-nav.is-prev { margin-right: 14px; }
.media-lightbox-nav.is-next { margin-left: 14px; }
.media-lightbox-nav[hidden] { visibility: hidden; }
.media-lightbox-close:hover,
.media-lightbox-nav:hover { background: rgba(42,31,36,.95); }
.media-lightbox-close:focus-visible,
.media-lightbox-nav:focus-visible { outline: 3px solid rgba(255,255,255,.7); outline-offset: 3px; }

@media (max-width: 720px) {
  .media-lightbox {
    padding: 8px;
  }
  .media-lightbox-dialog {
    grid-template-columns: 1fr;
    width: 100%;
    height: 100%;
  }
  .media-lightbox-image {
    max-height: calc(100vh - 92px);
    max-height: calc(100dvh - 92px);
    border-radius: 6px;
  }
  .media-lightbox-close {
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    background: rgba(18,14,16,.9);
  }
  .media-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 62px;
    border-radius: 12px;
    background: rgba(18,14,16,.68);
  }
  .media-lightbox-nav.is-prev { left: 5px; margin: 0; }
  .media-lightbox-nav.is-next { right: 5px; margin: 0; }
  .media-lightbox-caption {
    margin: 8px 44px 0;
    font-size: .82rem;
  }
}

.nav-logout-form{display:inline;margin:0}.nav-logout-form button{appearance:none;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0}.nav-logout-form button:hover{text-decoration:underline}

/* FM 404 PAGE V14.32 */
.not-found-page {
  min-height: calc(100svh - 190px);
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(34px, 7vw, 92px) 0;
}
.not-found-card {
  width: min(760px, 100%);
  position: relative;
  z-index: 2;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(34px, 7vw, 72px);
  border-radius: clamp(34px, 6vw, 62px);
  border: 1px solid rgba(255,255,255,.82);
  background:
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,249,240,.67)),
    radial-gradient(circle at 50% 0%, rgba(184,146,85,.22), transparent 48%);
  box-shadow: 0 34px 100px rgba(42,31,24,.17);
  backdrop-filter: blur(28px);
}
.not-found-mark {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff8ef;
  background: linear-gradient(145deg, #171511, #2c2922 58%, var(--gold));
  font-family: 'Charis SIL', Georgia, serif;
  font-size: 43px;
  font-style: italic;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 18px 38px rgba(62,29,39,.22);
}
.not-found-code {
  margin: -4px 0 -10px;
  font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(88px, 20vw, 190px);
  line-height: .78;
  letter-spacing: -.1em;
  padding-right: .08em;
  color: transparent;
  background: linear-gradient(135deg, #171511 8%, #4e463b 52%, #b89255 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 16px 28px rgba(59,45,30,.12));
}
.not-found-card h1 {
  max-width: 660px;
  font-size: clamp(36px, 7vw, 72px);
}
.not-found-copy {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}
.not-found-actions {
  justify-content: center;
  margin-top: 8px;
}
.not-found-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}
.not-found-glow-one {
  width: 360px;
  height: 360px;
  left: -110px;
  top: 3%;
  background: radial-gradient(circle, rgba(184,146,85,.35), rgba(184,146,85,0) 68%);
}
.not-found-glow-two {
  width: 430px;
  height: 430px;
  right: -150px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(29,27,24,.17), rgba(29,27,24,0) 70%);
}
@media (max-width: 620px) {
  .not-found-page {
    min-height: calc(100svh - 150px);
    padding: 24px 0 50px;
  }
  .not-found-card {
    padding: 34px 20px 38px;
    border-radius: 34px;
  }
  .not-found-actions {
    width: 100%;
  }
  .not-found-actions .button {
    width: 100%;
  }
}


/* =========================================================
   V14.28 – ADMIN SEZNAM MODELEK A FANOUŠKŮ
   ========================================================= */
.admin-metric-link {
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.admin-metric-link:hover,
.admin-metric-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(169,135,84,.52);
  box-shadow: 0 22px 50px rgba(43,32,21,.14);
  outline: none;
}
.admin-metric-link em {
  margin-top: auto;
  color: var(--accent, #8f6935);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .02em;
}
.admin-account-directory { margin-top: 20px; }
.admin-account-directory-head { align-items: end; }
.admin-account-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
.admin-account-search input {
  width: min(340px, 68vw);
  min-height: 46px;
}
.admin-account-search .button { min-height: 46px; }
.admin-account-list { display: grid; gap: 12px; margin-top: 20px; }
.admin-account-row {
  display: grid;
  grid-template-columns: 64px minmax(0,1.4fr) minmax(180px,.8fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.58);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.admin-account-row:hover,
.admin-account-row:focus-visible {
  transform: translateY(-2px);
  background: rgba(255,255,255,.84);
  border-color: rgba(169,135,84,.48);
  box-shadow: 0 16px 34px rgba(43,32,21,.10);
  outline: none;
}
.admin-account-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-soft, #ead9bb), #fff8eb);
  color: var(--ink);
  font-family: "Charis SIL", Georgia, serif;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
}
.admin-account-avatar.has-image { background: #1b1814; }
.admin-account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-account-copy { min-width: 0; display: grid; gap: 4px; }
.admin-account-copy strong { font-size: 17px; overflow-wrap: anywhere; }
.admin-account-copy strong .status-chip { display: inline-flex; vertical-align: middle; margin-left: 5px; }
.admin-account-copy small { color: var(--muted); overflow-wrap: anywhere; }
.admin-account-copy em { color: var(--muted); font-size: 11px; font-style: normal; }
.admin-account-summary { display: grid; gap: 4px; min-width: 0; }
.admin-account-summary b { font-size: 14px; overflow-wrap: anywhere; }
.admin-account-summary small { color: var(--muted); overflow-wrap: anywhere; }
.admin-account-open { color: var(--accent, #8f6935); font-size: 12px; font-weight: 900; white-space: nowrap; }
.admin-account-open b { margin-left: 5px; font-size: 17px; }
.admin-account-detail-grid {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr);
  gap: 18px;
  margin-top: 20px;
}
.admin-account-profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.admin-account-profile-head > div { min-width: 0; }
.admin-account-profile-head h2 { margin: 2px 0 4px; overflow-wrap: anywhere; }
.admin-account-profile-head p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.admin-account-avatar-large { width: 92px; height: 92px; flex: 0 0 92px; font-size: 40px; }
.admin-account-data-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-account-data-list > div,
.admin-account-stat-grid > div {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.5);
}
.admin-account-data-list span,
.admin-account-stat-grid span,
.admin-profile-bio > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.admin-account-data-list strong { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.admin-account-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.admin-account-stat-grid strong { display: block; margin-top: 7px; font-family: "Charis SIL", Georgia, serif; font-size: 30px; line-height: 1; }
.admin-account-stat-grid small { display: block; margin-top: 5px; color: var(--muted); }
.admin-account-public-profile,
.admin-account-orders { margin-top: 18px; }
.admin-account-data-list-wide { grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 18px; }
.admin-profile-bio { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.48); }
.admin-profile-bio p { margin: 8px 0 0; line-height: 1.65; }
.admin-account-memberships { display: grid; gap: 10px; margin-top: 16px; }
.admin-account-memberships a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.52);
  color: inherit;
  text-decoration: none;
}
.admin-account-memberships a:hover { border-color: rgba(169,135,84,.48); background: rgba(255,255,255,.82); }
.admin-account-memberships span { display: grid; gap: 3px; }
.admin-account-memberships small { color: var(--muted); }
@media (max-width: 920px) {
  .admin-account-row { grid-template-columns: 56px minmax(0,1fr) auto; }
  .admin-account-avatar { width: 56px; height: 56px; }
  .admin-account-summary { grid-column: 2; }
  .admin-account-open { grid-column: 3; grid-row: 1 / span 2; }
  .admin-account-detail-grid { grid-template-columns: 1fr; }
  .admin-account-data-list-wide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .admin-account-directory-head { align-items: stretch; }
  .admin-account-search { width: 100%; justify-content: stretch; }
  .admin-account-search input { width: 100%; }
  .admin-account-search .button { flex: 1 1 auto; }
  .admin-account-row { grid-template-columns: 52px minmax(0,1fr); padding: 14px; }
  .admin-account-avatar { width: 52px; height: 52px; font-size: 23px; }
  .admin-account-summary { grid-column: 2; }
  .admin-account-open { grid-column: 1 / -1; grid-row: auto; padding-top: 10px; border-top: 1px solid var(--line); white-space: normal; }
  .admin-account-profile-head { align-items: flex-start; }
  .admin-account-avatar-large { width: 72px; height: 72px; flex-basis: 72px; font-size: 32px; }
  .admin-account-data-list,
  .admin-account-data-list-wide,
  .admin-account-stat-grid { grid-template-columns: 1fr; }
}
