/* Сайттын ичи, 2-вариант (com, Aurora): сол меню, модель карточкалары, эки мамычалуу форма.
   style.css'тен кийин жүктөлөт; body.ui2 болгондо гана иштейт. */
body.ui2 { --side: 232px; --g1: #22d3ee; --g2: #a855f7; --grad2: linear-gradient(135deg, #22d3ee, #a855f7);
  background: radial-gradient(1000px 600px at 92% -10%, rgba(34, 211, 238, .16), transparent 60%),
              radial-gradient(900px 600px at 10% 110%, rgba(168, 85, 247, .14), transparent 60%), #05060b;
  background-attachment: fixed; }

/* ---------- каркас ---------- */
:root .ui2 .shell { min-height: 100vh; }
:root .ui2 .side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 20; display: flex; flex-direction: column; gap: 18px;
  padding: 20px 14px; background: rgba(8, 9, 15, .72); backdrop-filter: blur(16px); border-right: 1px solid rgba(255, 255, 255, .06); }
:root .ui2 .side .brand { font-size: 21px; padding: 2px 10px 6px; }
:root .ui2 .brand span { background: var(--grad2); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root .ui2 .side .tabs { flex-direction: column; gap: 4px; padding: 0; margin: 0; max-width: none; width: auto; background: none; border: 0; overflow: visible; }
:root .ui2 .side .tab { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; font-weight: 600;
  font-size: 15px; color: #9aa3b8; background: transparent; box-shadow: none; border: 1px solid transparent; text-align: left; transition: background .15s, color .15s; }
:root .ui2 .side .tab:hover { background: rgba(255, 255, 255, .05); color: #fff; }
:root .ui2 .side .tab.on { color: #fff; background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(168, 85, 247, .16));
  border-color: rgba(168, 85, 247, .35); box-shadow: 0 6px 22px rgba(99, 102, 241, .18); }
:root .ui2 .tab .ti { display: inline-flex; flex: none; }
:root .ui2 .tab.on .ti { color: var(--g1); }
:root .ui2 .tab .tl { flex: 1; }
:root .ui2 .tab .dot { background: var(--grad2); margin-left: auto; }

:root .ui2 .content { margin-left: var(--side); min-width: 0; }
:root .ui2 .top { position: sticky; top: 0; z-index: 10; background: rgba(5, 6, 11, .6); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06); }
:root .ui2 .top-in { max-width: none; margin: 0; padding: 12px 28px; }
:root .ui2 .top .brand { display: none; }
:root .ui2 .chips { margin-left: auto; }
:root .ui2 .chip { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); padding: 4px 11px; }
:root .ui2 .lang-sw { border-color: rgba(255, 255, 255, .14); }
:root .ui2 .lang-sw button.on { background: var(--grad2); }
:root .ui2 main { max-width: none; margin: 0; padding: 22px 28px 40px; }
:root .ui2 .as-banner { max-width: none; margin: 14px 28px 0; }

/* ---------- карточкалар ---------- */
:root .ui2 .card { background: rgba(14, 16, 24, .78); border: 1px solid rgba(255, 255, 255, .07); border-radius: 20px; padding: 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
:root .ui2 .card h2 { font-size: 24px; margin-bottom: 16px; letter-spacing: -.01em; }
:root .ui2 .card h3, :root .ui2 .field > span { color: #7dd3fc; text-transform: uppercase; letter-spacing: 1.4px; font-size: 11px; font-weight: 700; }
:root .ui2 .field { margin: 14px 0; }
:root .ui2 .field > span { margin-bottom: 8px; }
:root .ui2 input[type=text], :root .ui2 input[type=password], :root .ui2 input[type=number], :root .ui2 select, :root .ui2 textarea, :root .ui2 .pwrap {
  background: rgba(5, 6, 11, .7); border-color: rgba(255, 255, 255, .1); border-radius: 12px; }
:root .ui2 .pwrap:focus-within, :root .ui2 input:focus, :root .ui2 select:focus, :root .ui2 textarea:focus { border-color: rgba(34, 211, 238, .6);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }
:root .ui2 .gutter { background: rgba(255, 255, 255, .02); border-right-color: rgba(255, 255, 255, .07); }

/* сегмент баскычтар — таблетка */
:root .ui2 .seg { gap: 6px; }
:root .ui2 .seg button { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 99px; padding: 7px 14px;
  font-size: 14px; color: #cfd5e3; box-shadow: none; transition: border-color .15s, background .15s; }
:root .ui2 .seg button:hover { border-color: rgba(34, 211, 238, .5); }
:root .ui2 .seg button.on { background: var(--grad2); border-color: transparent; color: #fff; box-shadow: 0 4px 16px rgba(99, 102, 241, .3); }

/* негизги баскыч */
:root .ui2 .btn { background: var(--grad2); border-radius: 12px; box-shadow: 0 8px 26px rgba(99, 102, 241, .32); transition: transform .12s, box-shadow .12s, filter .12s; }
:root .ui2 .btn:hover { filter: brightness(1.08); box-shadow: 0 10px 30px rgba(99, 102, 241, .45); }
:root .ui2 .btn:active { transform: translateY(1px); }
:root .ui2 .btn.ghost { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); box-shadow: none; color: #e6ebf5; }
:root .ui2 .btn.ghost:hover { border-color: rgba(34, 211, 238, .5); filter: none; }
:root .ui2 .btn.danger { background: transparent; border: 1px solid rgba(248, 113, 113, .35); color: #f87171; box-shadow: none; }
:root .ui2 .gen-main > .btn { width: 100%; padding: 14px 18px; font-size: 16px; margin-top: 4px; }
:root .ui2 .drop { border-color: rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(255, 255, 255, .02); padding: 18px; }
:root .ui2 .drop:hover, :root .ui2 .drop.over { border-color: rgba(34, 211, 238, .6); background: rgba(34, 211, 238, .05); }
:root .ui2 .msg { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); border-radius: 12px; }

/* ---------- модель карточкалары ---------- */
.mcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: 12px; }
.mcard { position: relative; height: 122px; border-radius: 16px; overflow: hidden; cursor: pointer; padding: 0; text-align: left;
  border: 1px solid rgba(255, 255, 255, .1); background: #0b0d14; color: #fff; isolation: isolate;
  transition: transform .15s, border-color .15s, box-shadow .15s; }
.mcard:hover { transform: translateY(-2px); border-color: rgba(34, 211, 238, .5); }
.mcard.on { border: 2px solid transparent;
  background: linear-gradient(#0b0d14, #0b0d14) padding-box, var(--grad2, linear-gradient(135deg, #22d3ee, #a855f7)) border-box;
  box-shadow: 0 8px 30px rgba(99, 102, 241, .35); }
.mc-bg, .mc-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center;
  opacity: .55; transition: opacity .2s, transform .4s; z-index: -2; }
.mcard:hover .mc-bg, .mcard.on .mc-bg { opacity: .8; transform: scale(1.05); }
.mc-vid { opacity: .9; }
.mc-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 6, 11, 0) 25%, rgba(5, 6, 11, .92)); }
.mc-badge { position: absolute; top: 9px; right: 9px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px;
  background: rgba(5, 6, 11, .7); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.mcard.paid .mc-badge { color: #fbbf24; border-color: rgba(251, 191, 36, .4); }
.mcard:not(.paid) .mc-badge { color: #67e8f9; border-color: rgba(34, 211, 238, .4); }
.mc-txt { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; flex-direction: column; gap: 1px; }
.mc-txt b { font-size: 15px; line-height: 1.25; }
.mc-txt small { font-size: 12px; color: #aab3c5; }

/* ---------- эки мамычалуу форма ---------- */
.gen { display: grid; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 6px; }
.gen-opts { padding-right: 26px; border-right: 1px solid rgba(255, 255, 255, .07); min-width: 0; }
.gen-opts > .row { align-items: flex-start; }
.gen-main { min-width: 0; }
.gen-main .pwrap { height: 340px; }

/* ---------- кезек жана галерея ---------- */
:root .ui2 .job { background: rgba(255, 255, 255, .025); border-color: rgba(255, 255, 255, .08); border-radius: 16px; padding: 14px 16px; }
:root .ui2 .badge { background: rgba(255, 255, 255, .06); padding: 3px 10px; }
:root .ui2 .bar { background: rgba(255, 255, 255, .07); height: 7px; }
:root .ui2 .bar > i { background: var(--grad2); }
:root .ui2 .gallery { gap: 14px; }
:root .ui2 .media { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .08); border-radius: 16px; transition: border-color .15s, transform .15s; }
:root .ui2 .media:hover { border-color: rgba(34, 211, 238, .4); }
:root .ui2 .media img, :root .ui2 .media video { background: #000; }
:root .ui2 .jobs-scroll { max-height: none; overflow: visible; }

/* ---------- баланс, аккаунт, админ ---------- */
:root .ui2 .bal-big { font-size: 40px; background: var(--grad2); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
:root .ui2 .pay-opt, :root .ui2 .pay-box, :root .ui2 .pay-line, :root .ui2 .voice { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .1); }
:root .ui2 .pay-opt:hover, :root .ui2 .voice.on { border-color: rgba(34, 211, 238, .6); }
:root .ui2 th, :root .ui2 td { border-bottom-color: rgba(255, 255, 255, .07); }
:root .ui2 .toast { background: rgba(14, 16, 24, .95); border-color: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); }

/* ---------- планшет ---------- */
@media (max-width: 1100px) {
  .gen { grid-template-columns: 1fr; gap: 6px; }
  .gen-opts { padding-right: 0; border-right: 0; }
}

/* ---------- телефон: меню ылдыйда ---------- */
@media (max-width: 860px) {
  :root .ui2 .side { inset: auto 0 0 0; width: auto; height: auto; flex-direction: row; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(8, 9, 15, .9); }
  :root .ui2 .side .brand { display: none; }
  :root .ui2 .side .tabs { flex-direction: row; width: 100%; justify-content: space-around; gap: 2px; overflow-x: auto; }
  :root .ui2 .side .tab { position: relative; flex: 1 0 58px; flex-direction: column; gap: 3px; padding: 7px 4px 6px; font-size: 10.5px; text-align: center;
    border-radius: 12px; white-space: nowrap; }
  :root .ui2 .side .tab.on { box-shadow: none; }
  :root .ui2 .tab .tl { flex: none; }
  :root .ui2 .tab .dot { position: absolute; top: 2px; right: calc(50% - 22px); margin: 0; min-width: 16px; line-height: 16px; font-size: 10px; }
  :root .ui2 .content { margin-left: 0; padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  :root .ui2 .top .brand { display: block; font-size: 18px; }
  :root .ui2 .top-in { padding: 10px 14px; }
  :root .ui2 main { padding: 14px 12px 24px; }
  :root .ui2 .as-banner { margin: 10px 12px 0; }
  :root .ui2 .card { padding: 16px; border-radius: 18px; }
  :root .ui2 .card h2 { font-size: 20px; }
  /* моделдер бир катарда, манжа менен жылдырылат */
  .mcards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; gap: 10px; overflow-x: auto;
    scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .mcards::-webkit-scrollbar { display: none; }
  .mcard { height: 112px; scroll-snap-align: start; }
  .gen-main .pwrap { height: 240px; }
  :root .ui2 .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- 🔥 тренд шаблондор ---------- */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tcard { position: relative; aspect-ratio: 9 / 14; border-radius: 18px; overflow: hidden; cursor: pointer; padding: 0; text-align: left;
  border: 1px solid rgba(255, 255, 255, .1); background: #0b0d14; color: #fff; isolation: isolate; transition: transform .15s, border-color .15s, box-shadow .15s; }
.tcard:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .55); box-shadow: 0 12px 34px rgba(99, 102, 241, .3); }
.tc-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tpl-empty { display: flex; align-items: center; justify-content: center; font-size: 44px; background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(168, 85, 247, .22)); }
.tcard .mc-txt b { font-size: 16px; }
.tcard.paid .mc-badge { color: #fbbf24; border-color: rgba(251, 191, 36, .4); }
.tcard:not(.paid) .mc-badge { color: #67e8f9; border-color: rgba(34, 211, 238, .4); }
.tc-tools { position: absolute; top: 8px; left: 8px; right: 70px; display: flex; flex-wrap: wrap; gap: 4px; }
.tc-flag { font-size: 10.5px; padding: 2px 7px; border-radius: 99px; background: rgba(5, 6, 11, .75); border: 1px solid rgba(255, 255, 255, .18); }
.tc-flag.err { color: #f87171; }
.tc-btn { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px;
  background: rgba(5, 6, 11, .75); border: 1px solid rgba(255, 255, 255, .2); }
.tc-btn:hover { border-color: #22d3ee; }
:root .ui2 .tmodal { position: relative; width: min(980px, 94vw); max-height: 90vh; overflow: auto; margin: 0; background: #0e1018; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.ui2 .modal { background: rgba(2, 3, 8, .72); backdrop-filter: blur(6px); }
:root .ui2 .tmodal.tm-edit { width: min(760px, 94vw); }
.tm-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .05); color: #fff; cursor: pointer; z-index: 2; }
.tm-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; }
.tm-prev { border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 9 / 14; align-self: start; }
.tm-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-form h2 { padding-right: 40px; }
.tm-go { width: 100%; padding: 14px; font-size: 16px; margin-top: 12px; }
@media (max-width: 760px) {
  .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tm-grid { grid-template-columns: 1fr; }
  .tm-prev { max-height: 46vh; aspect-ratio: auto; }
  :root .ui2 .tmodal { padding: 16px; }
}
.tm-media.tpl-empty, .tc-media.tpl-empty { display: flex; }

/* trend.<домен>: кирбеген адамга тренддердин тизмеси */
.trend-pub { max-width: 1100px; margin: 0 auto; padding: 18px 16px 48px; }
.trend-pub .tp-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.trend-pub .tp-top .brand { flex: 1; }
.trend-pub .tp-act { display: flex; align-items: center; gap: 8px; }
.trend-pub .tp-h1 { font-size: clamp(24px, 4vw, 36px); margin: 6px 0 6px; }
.trend-pub .tp-sub { margin: 0 0 18px; }
.trend-pub .tp-foot { margin-top: 26px; }
a.tab { text-decoration: none; }
