/* JakoStore — contact form, sell page & seller dashboard. Uses the theme tokens with safe fallbacks. */
.jdc-form, .jdc-dash, .jdc-sell, .jdc-byline, .jdc-seller-head {
	--jdc-surface: var(--md-sys-color-surface-container, #1b1b21);
	--jdc-surface-2: var(--md-sys-color-surface-container-high, #25252c);
	--jdc-line: var(--md-sys-color-outline-variant, rgba(127,127,140,.28));
	--jdc-ink: var(--md-sys-color-on-surface, #ececf1);
	--jdc-muted: var(--md-sys-color-on-surface-variant, #a4a4b0);
	--jdc-accent: var(--jd-accent, #c9f53b);
	--jdc-on-accent: var(--jd-on-accent, #111116);
	--jdc-radius: 20px;
}
.jdc-muted { color: var(--md-sys-color-on-surface-variant, #8b8b96); }

/* Notices */
.jdc-notice { margin: 0 0 18px; padding: 14px 18px; border-radius: 16px; font-weight: 600; line-height: 1.5; }
.jdc-notice--ok { background: color-mix(in srgb, #22c55e 16%, transparent); color: inherit; border: 1px solid color-mix(in srgb, #22c55e 40%, transparent); }
.jdc-notice--err { background: color-mix(in srgb, #ef4444 14%, transparent); color: inherit; border: 1px solid color-mix(in srgb, #ef4444 40%, transparent); }

/* Forms */
.jdc-form { display: grid; gap: 16px; }
.jdc-card { padding: clamp(18px, 3vw, 28px); border-radius: var(--jdc-radius); background: var(--jdc-surface); border: 1px solid var(--jdc-line); }
.jdc-card h3 { margin: 0; font-size: 1.25rem; }
.jdc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .jdc-form__row { grid-template-columns: 1fr; } }
.jdc-field { display: grid; gap: 7px; font-size: .875rem; font-weight: 650; color: var(--jdc-ink); }
.jdc-field > span { color: var(--jdc-muted); }
.jdc-field input, .jdc-field select, .jdc-field textarea {
	width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--jdc-line);
	background: var(--jdc-surface-2); color: var(--jdc-ink); font: inherit; font-weight: 500; font-size: 1rem; box-sizing: border-box;
	transition: border-color .2s, box-shadow .2s;
}
.jdc-field textarea { min-height: 120px; resize: vertical; }
.jdc-field input[type="file"] { padding: 12px; min-height: 0; }
.jdc-field input:focus, .jdc-field select:focus, .jdc-field textarea:focus { outline: none; border-color: var(--jdc-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--jdc-accent) 22%, transparent); }
.jdc-check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; line-height: 1.5; color: var(--jdc-muted); }
.jdc-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--jdc-accent); }
.jdc-check a { color: var(--jdc-ink); }
.jdc-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 4px 0 0; }
.jdc-form__foot small { color: var(--jdc-muted); }
.jdc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Segmented control */
.jdc-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--jdc-surface-2); width: max-content; max-width: 100%; }
.jdc-seg label { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 650; font-size: .95rem; color: var(--jdc-muted); transition: background .2s, color .2s; }
.jdc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.jdc-seg label:has(input:checked) { background: var(--jdc-accent); color: var(--jdc-on-accent); }
.jdc-seg label:has(input:focus-visible) { outline: 2px solid var(--jdc-accent); outline-offset: 2px; }
.jdc-seg--big label { padding: 12px 22px; font-size: 1rem; }
.jdc-seg svg { fill: currentColor; }

/* Payout fieldset */
.jdc-payout { display: grid; gap: 14px; margin: 0; padding: 18px; border-radius: 18px; border: 1px dashed var(--jdc-line); }
.jdc-payout legend { padding: 0 8px; font-weight: 700; }
.jdc-payout__fields { display: grid; gap: 14px; }
.jdc-payout p { margin: 0; font-size: .85rem; }

/* Drop zone */
.jdc-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 34px 20px; border-radius: 22px; border: 2px dashed var(--jdc-line); background: var(--jdc-surface-2); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.jdc-drop:hover, .jdc-drop.is-over { border-color: var(--jdc-accent); }
.jdc-drop svg { fill: var(--jdc-accent); }
.jdc-drop strong { font-size: 1.05rem; word-break: break-all; }
.jdc-drop small { color: var(--jdc-muted); }
.jdc-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.jdc-edit-thumb img { max-width: 260px; height: auto; border-radius: 16px; display: block; }

/* Progress */
.jdc-progress { position: relative; padding-top: 22px; }
.jdc-progress[hidden] { display: none; }
.jdc-progress::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 12px; border-radius: 999px; background: var(--jdc-surface-2); }
.jdc-progress span { position: absolute; top: 0; left: 0; width: 0; height: 12px; border-radius: 999px; background: var(--jdc-accent); transition: width .2s; }
.jdc-progress em { display: block; font-style: normal; font-size: .9rem; color: var(--jdc-muted); }

/* Dashboard */
.jdc-dash { display: grid; gap: 22px; }
.jdc-dash h3 { margin: 6px 0 0; }
.jdc-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--jdc-surface); border: 1px solid var(--jdc-line); width: max-content; max-width: 100%; }
.jdc-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; text-decoration: none; color: var(--jdc-muted); font-weight: 650; font-size: .92rem; }
.jdc-tabs a svg { fill: currentColor; }
.jdc-tabs a:hover { color: var(--jdc-ink); background: var(--jdc-surface-2); }
.jdc-tabs a.is-active { background: var(--jdc-accent); color: var(--jdc-on-accent); }
@media (max-width: 560px) { .jdc-tabs { border-radius: 20px; } .jdc-tabs a { flex: 1 1 45%; justify-content: center; } }

.jdc-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .jdc-stats { grid-template-columns: 1fr 1fr; } }
.jdc-stat { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: var(--jdc-radius); background: var(--jdc-surface); border: 1px solid var(--jdc-line); }
.jdc-stat small { color: var(--jdc-muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.jdc-stat strong { font-size: 1.6rem; line-height: 1.1; }
.jdc-stat span { font-size: .85rem; }
.jdc-stat--main { background: color-mix(in srgb, var(--jdc-accent) 14%, var(--jdc-surface)); border-color: color-mix(in srgb, var(--jdc-accent) 40%, transparent); }
.jdc-stat--main strong { font-size: 2.1rem; }
.jdc-stat form { margin: 4px 0 0; }
.jdc-big { display: block; font-size: 2rem; line-height: 1.2; }
.jdc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--jdc-surface-2); color: var(--jdc-ink); }
.jdc-pill--ok { background: color-mix(in srgb, #22c55e 20%, transparent); }
.jdc-pill--warn { background: color-mix(in srgb, #f59e0b 22%, transparent); }
.jdc-pill--err { background: color-mix(in srgb, #ef4444 20%, transparent); }
.jdc-table-wrap { overflow-x: auto; border-radius: var(--jdc-radius); border: 1px solid var(--jdc-line); }
.jdc-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .92rem; }
.jdc-table th, .jdc-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--jdc-line); vertical-align: top; }
.jdc-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--jdc-muted); }
.jdc-table tr:last-child td { border-bottom: 0; }
.jdc-empty { padding: 26px; border-radius: var(--jdc-radius); border: 1px dashed var(--jdc-line); text-align: center; }
.jdc-empty p { margin: 0 0 12px; }
.jdc-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.jdc-bar h3 { margin: 0; }
.jdc-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.jdc-item { display: grid; border-radius: var(--jdc-radius); overflow: hidden; background: var(--jdc-surface); border: 1px solid var(--jdc-line); }
.jdc-item__thumb { position: relative; aspect-ratio: 4 / 3; background: var(--jdc-surface-2); }
.jdc-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jdc-item__type { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(0,0,0,.55); }
.jdc-item__type svg { fill: #fff; }
.jdc-item__body { display: grid; gap: 8px; padding: 14px 16px 16px; }
.jdc-item__body h4 { margin: 0; font-size: 1rem; line-height: 1.3; }
.jdc-item__body h4 a { color: inherit; text-decoration: none; }
.jdc-item__body p { margin: 0; font-size: .85rem; color: var(--jdc-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.jdc-item__actions { display: flex; gap: 6px; align-items: center; }
.jdc-item__actions form { margin: 0; }
.jdc-payout-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.jdc-payout-box > div { display: grid; gap: 4px; }
.jdc-payout-box form { display: grid; gap: 6px; justify-items: end; margin: 0; }
.jdc-payout-box small { color: var(--jdc-muted); }
.jdc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .jdc-steps { grid-template-columns: 1fr; } }
.jdc-steps > div { padding: 18px; border-radius: var(--jdc-radius); background: var(--jdc-surface); border: 1px solid var(--jdc-line); }
.jdc-steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--jdc-accent); color: var(--jdc-on-accent); font-weight: 800; margin-bottom: 10px; }
.jdc-steps p { margin: 6px 0 0; color: var(--jdc-muted); font-size: .9rem; }

/* Sell page */
.jdc-sell { display: grid; gap: 14px; margin: 10px 0 24px; }
.jdc-sell__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Product page: creator + video preview */
.jdc-byline { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 16px; background: var(--jdc-surface-2); }
.jdc-byline img { border-radius: 50%; }
.jdc-byline small { display: block; color: var(--jdc-muted); font-size: .75rem; }
.jdc-byline a, .jdc-byline strong { font-weight: 750; color: var(--jdc-ink); text-decoration: none; }
.jdc-media-video { display: block; width: 100%; max-height: 70vh; background: #000; border-radius: inherit; }
.jdc-media-video + .woocommerce-product-gallery { display: none !important; }

/* Seller profile header */
.jdc-seller-head { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }
.jdc-seller-head img { border-radius: 50%; flex: none; }
.jdc-seller-head p { margin: 0 0 4px; }

/* Contact form */
.jdc-contact { max-width: 760px; }
