/* ==========================================================================
   Miya Travel — interactive product preview (replica of the CRM dashboard)
   Everything is scoped under .mt-app so it never touches the site styles.
   The app is drawn at a fixed design size (1280 x 800) and scaled to fit.
   ========================================================================== */

.app-showcase .container { max-width: 1360px; }
.app-stage { position: relative; width: 100%; }
.app-stage .frame { border-radius: 18px; overflow: visible; }

.mt-app {
  --bg: #030612;
  --side: #060919;
  --top: #050817;
  --card: #070b1d;
  --card-2: #0a0f26;
  --border: rgba(255,255,255,.075);
  --border-2: rgba(255,255,255,.12);
  --text: #f2f4fb;
  --muted: #a3abc0;
  --faint: #6f7893;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-soft: rgba(139,92,246,.14);
  --green: #39c082;
  --blue: #4f7de8;
  --amber: #e9a23b;
  --pink: #e0508f;
  --red: #f0607a;
  --hover: rgba(255,255,255,.035);

  position: absolute; left: 0; top: 0;
  width: 1280px; height: 800px;
  transform-origin: 0 0;
  display: flex;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "DM Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 14px; line-height: 1.4;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: 0 40px 100px rgba(5,2,12,.65), 0 0 0 1px rgba(155,47,247,.12), 0 0 90px rgba(139,92,246,.16);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.mt-app.light {
  --bg: #f4f5fb; --side: #ffffff; --top: #ffffff; --card: #ffffff; --card-2: #f6f7fc;
  --border: rgba(20,25,60,.09); --border-2: rgba(20,25,60,.14);
  --text: #141a30; --muted: #566082; --faint: #8a93ad;
  --accent: #7c4df0; --accent-2: #6d3be0; --accent-soft: rgba(124,77,240,.1);
  --hover: rgba(20,25,60,.04);
}
.mt-app *, .mt-app *::before, .mt-app *::after { box-sizing: border-box; }
.mt-app p, .mt-app h1, .mt-app h2, .mt-app h3, .mt-app h4 { margin: 0; max-width: none; color: inherit; font-family: inherit; letter-spacing: normal; }
.mt-app button { font-family: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mt-app input { font-family: inherit; }
.mt-app svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mt-app ::-webkit-scrollbar { width: 8px; height: 8px; }
.mt-app ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 8px; }
.mt-app.light ::-webkit-scrollbar-thumb { background: rgba(20,25,60,.15); }

/* ---------- Sidebar ---------- */
.mt-side { width: 224px; flex: none; background: var(--side); border-right: 1px solid var(--border); display: flex; flex-direction: column; transition: width .25s ease; overflow: hidden; }
.mt-app.collapsed .mt-side { width: 64px; }
.mt-logo { height: 58px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 12px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(139,92,246,.1), transparent); }
.mt-brand { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 22px; letter-spacing: -.02em; white-space: nowrap; }
.mt-brand img { width: 28px; height: 29px; }
.mt-brand b { font-weight: 700; } .mt-brand span { background: linear-gradient(90deg,#b45cff,#7a4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mt-app.collapsed .mt-brand b, .mt-app.collapsed .mt-brand span { display: none; }
.mt-iconbtn { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.mt-iconbtn:hover { background: var(--hover); color: var(--text); }
.mt-app.collapsed .mt-logo { padding: 0 10px; } .mt-app.collapsed .mt-logo .mt-iconbtn { display: none; }
.mt-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 14px 10px; }
.mt-label { font-size: 10.5px; letter-spacing: .2em; color: var(--faint); font-weight: 600; padding: 4px 10px 10px; text-transform: uppercase; white-space: nowrap; }
.mt-app.collapsed .mt-label { opacity: 0; }
.mt-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 0 11px; height: 40px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--text); text-align: left; white-space: nowrap; border: 1px solid transparent; transition: background .15s; }
.mt-item:hover { background: var(--hover); }
.mt-item.active { background: rgba(139,92,246,.1); border-color: rgba(139,92,246,.45); color: var(--text); }
.mt-app.light .mt-item.active { background: rgba(124,77,240,.08); }
.mt-item .i { color: var(--accent-2); } .mt-item.c-blue .i { color: #4aa3ff; } .mt-item.c-pink .i { color: #d466ff; }
.mt-item.c-green .i { color: #3ccf91; } .mt-item.c-amber .i { color: #f5b73b; }
.mt-item .chev { margin-left: auto; width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.mt-group.closed .chev { transform: rotate(-90deg); }
.mt-sep { height: 1px; background: var(--border); margin: 12px 4px; }
.mt-group > .mt-item { background: rgba(255,255,255,.035); height: 44px; margin-bottom: 4px; }
.mt-app.light .mt-group > .mt-item { background: rgba(20,25,60,.04); }
.mt-sub { margin-left: 22px; padding-left: 8px; border-left: 1px solid var(--border); display: grid; margin-bottom: 8px; overflow: hidden; }
.mt-group.closed .mt-sub { display: none; }
.mt-sub .mt-item { font-size: 13.5px; height: 38px; font-weight: 450; color: #c3c9db; }
.mt-app.light .mt-sub .mt-item { color: var(--muted); }
.mt-sub .mt-item .i { width: 16px; height: 16px; }
.mt-sub .mt-item.active { color: var(--text); background: rgba(139,92,246,.12); border-color: transparent; }
.mt-app.collapsed .mt-item { justify-content: center; padding: 0; } .mt-app.collapsed .mt-item .t, .mt-app.collapsed .mt-item .chev { display: none; }
.mt-app.collapsed .mt-sub { margin-left: 0; padding-left: 0; border: 0; }
.mt-user { margin: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; display: flex; align-items: center; gap: 10px; background: var(--card); white-space: nowrap; overflow: hidden; }
.mt-av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--accent-2); background: #1c1f4a; border: 2px solid #2b2f69; }
.mt-app.light .mt-av { background: #ece7ff; border-color: #d6ccff; }
.mt-user .n { font-weight: 600; font-size: 14px; line-height: 1.15; } .mt-user .r { font-size: 12px; color: var(--muted); }
.mt-user .i { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.mt-app.collapsed .mt-user > div, .mt-app.collapsed .mt-user .i { display: none; } .mt-app.collapsed .mt-user { justify-content: center; padding: 8px 0; }

/* ---------- Main ---------- */
.mt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-top { height: 58px; flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 18px; background: var(--top); border-bottom: 1px solid var(--border); }
.mt-pill { height: 36px; border: 1px solid var(--border); background: var(--card); border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 13.5px; color: var(--muted); }
.mt-pill b { color: var(--text); font-weight: 600; } .mt-pill .i { width: 16px; height: 16px; color: var(--accent-2); }
.mt-org { height: 40px; } .mt-org .ob { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; }
.mt-org .nm { color: var(--text); font-weight: 500; font-size: 14.5px; }
.mt-ver { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(57,192,130,.12); border: 1px solid rgba(57,192,130,.35); color: var(--green); font-size: 12px; font-weight: 600; }
.mt-ver .i { width: 13px; height: 13px; }
.mt-theme { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); display: grid; place-items: center; color: var(--text); }
.mt-theme:hover { border-color: var(--border-2); }

.mt-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 24px 28px 8px; position: relative; background:
  radial-gradient(900px 340px at 62% -80px, rgba(139,92,246,.07), transparent 70%), var(--bg); }
.mt-page { animation: mtIn .35s ease both; max-width: 1180px; margin: 0 auto; }
@keyframes mtIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mt-foot { height: 46px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-top: 1px solid var(--border); background: var(--top); font-size: 13px; color: var(--muted); }
.mt-foot b { color: var(--text); font-size: 15px; font-weight: 600; } .mt-foot .d { padding-left: 12px; margin-left: 12px; border-left: 1px solid var(--border); }
.mt-foot .links span { margin-left: 18px; cursor: default; } .mt-foot .links span::after { content: "•"; margin-left: 18px; color: var(--faint); font-size: 8px; vertical-align: middle; }
.mt-foot .links span:last-child::after { content: none; }

/* ---------- Page header ---------- */
.mt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.mt-title { position: relative; padding-left: 18px; }
.mt-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, #a98bff, #6c47e8); }
.mt-title h1 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.mt-title h1 em { font-style: normal; color: var(--accent); }
.mt-title p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.mt-date { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); background: var(--card); border-radius: 14px; padding: 10px 12px; min-width: 300px; }
.mt-date .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-2); }
.mt-date small { display: block; font-size: 10.5px; letter-spacing: .16em; color: var(--muted); font-weight: 600; }
.mt-date strong { font-size: 15.5px; font-weight: 600; }
.mt-date .dd { margin-left: auto; width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.05); display: grid; place-items: center; }
.mt-app.light .mt-date .dd { background: rgba(20,25,60,.05); }
.mt-date .dd .i { width: 16px; height: 16px; }
.mt-card { background: linear-gradient(180deg, rgba(255,255,255,.015), transparent), var(--card); border: 1px solid var(--border); border-radius: 18px; position: relative; overflow: hidden; }
.mt-app.light .mt-card { box-shadow: 0 1px 2px rgba(20,25,60,.04); }

/* ---------- Dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { padding: 18px 20px; min-height: 152px; }
.kpi.tall { min-height: 160px; }
.kpi::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px 140px at 0% 0%, var(--glow, rgba(139,92,246,.12)), transparent 70%); pointer-events: none; }
.kpi .l { color: var(--muted); font-size: 14.5px; }
.kpi .v { font-size: 38px; font-weight: 700; letter-spacing: -.02em; margin: 14px 0 8px; line-height: 1.05; }
.kpi .v.sm { font-size: 31px; margin: 12px 0 8px; }
.kpi .badge { display: inline-block; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.07); padding: 3px 9px; border-radius: 7px; }
.mt-app.light .kpi .badge { background: rgba(20,25,60,.06); }
.kpi .sub { font-size: 13.5px; color: var(--muted); }
.kpi .ico { position: absolute; right: 18px; top: 18px; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 22px var(--sh, rgba(139,92,246,.35)); }
.kpi .ico .i { width: 20px; height: 20px; }
.kpi svg.spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 56px; }
.kpi .bar { position: absolute; left: 20px; right: 20px; bottom: 22px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); }
.kpi .bar i { display: block; height: 100%; width: 4.7%; min-width: 16px; border-radius: 8px; background: linear-gradient(90deg,#3b6ff0,#6e8cff); }
.kpi .lnk { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.kpi .lnk .i { width: 15px; height: 15px; }
.kpi.lk { padding-bottom: 14px; } .kpi.lk .v { margin: 12px 0 6px; font-size: 31px; }
.kpi.lk .badge { margin-bottom: 0; }
.kpi.lk .sub { margin-top: 2px; display: block; }
.kpi.lk .lnk { margin-top: 14px; }
.g-purple { background: linear-gradient(135deg,#7c4dff,#a15cf2); --sh: rgba(124,77,255,.4); }
.g-green { background: linear-gradient(135deg,#2cae74,#45c98c); --sh: rgba(57,192,130,.35); }
.g-blue { background: linear-gradient(135deg,#3b6ff0,#5d8bff); --sh: rgba(79,125,232,.4); }
.g-amber { background: linear-gradient(135deg,#e29a1e,#f0b43c); --sh: rgba(233,162,59,.35); }
.g-pink { background: linear-gradient(135deg,#d6468f,#f26aa8); --sh: rgba(224,80,143,.38); }
.t-green { color: var(--green); } .t-amber { color: var(--amber); } .t-blue { color: #5b8bff; } .t-pink { color: #e85d9c; } .t-purple { color: var(--accent-2); }

.dash3 { display: grid; grid-template-columns: 1.02fr 1fr .9fr; gap: 16px; padding-bottom: 14px; }
.panel { padding: 22px 24px; }
.panel .ph { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; position: relative; }
.panel .pi { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-2); flex: none; }
.panel h3 { font-size: 19px; font-weight: 600; } .panel .ps { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.panel .va { position: absolute; right: 0; top: 0; font-size: 14px; color: var(--accent-2); font-weight: 500; display: flex; gap: 6px; align-items: center; }
.panel .va .i { width: 14px; height: 14px; }
.pipe { display: grid; gap: 22px; }
.pipe .r { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 10px; }
.pipe .r span.k { text-align: right; color: var(--muted); font-size: 14.5px; }
.pipe .br { display: flex; align-items: center; gap: 8px; height: 54px; }
.pipe .br i { display: block; height: 100%; border-radius: 9px; min-width: 6px; transform-origin: left; animation: mtGrow .9s cubic-bezier(.22,1,.36,1) both; }
.pipe .br b { font-weight: 400; color: var(--muted); font-size: 14.5px; }
@keyframes mtGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.donut-w { display: grid; place-items: center; margin: -2px 0 16px; position: relative; }
.donut-w svg { width: 210px; height: 210px; transform: rotate(-90deg); }
.donut-w circle { fill: none; stroke-width: 22; transition: stroke-width .2s; }
.donut-w .c { position: absolute; text-align: center; }
.donut-w .c b { display: block; font-size: 34px; font-weight: 700; line-height: 1; } .donut-w .c span { font-size: 14px; color: var(--muted); }
.legend { display: grid; gap: 11px; }
.legend .r { display: flex; align-items: center; font-size: 16px; }
.legend .r i { width: 11px; height: 11px; border-radius: 50%; margin-right: 12px; }
.legend .r em { margin-left: auto; font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 15px; }
.legend .r em b { color: var(--text); font-weight: 500; }
.fu { display: grid; gap: 16px; }
.fu .c { border-radius: 16px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; min-height: 112px; border: 1px solid var(--border); }
.fu .c h4 { font-size: 18px; font-weight: 600; } .fu .c p { font-size: 14px; opacity: .8; }
.fu .c .n { font-size: 40px; font-weight: 700; }
.fu .over { background: linear-gradient(135deg, rgba(240,96,122,.14), rgba(240,96,122,.05)); border-color: rgba(240,96,122,.14); color: #ff7d96; }
.fu .today { background: linear-gradient(135deg, rgba(233,162,59,.1), rgba(233,162,59,.03)); border-color: rgba(233,162,59,.12); color: #f2b43f; }
.fu .up { background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(139,92,246,.05)); border-color: rgba(139,92,246,.18); color: #a98bff; }
.mt-app.light .fu .over { color: #d6334f; } .mt-app.light .fu .today { color: #b97a0a; } .mt-app.light .fu .up { color: #6d3be0; }

/* ---------- Tabs / buttons / inputs ---------- */
.mt-tabs { display: inline-flex; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); gap: 2px; }
.mt-tabs button { padding: 10px 26px; border-radius: 9px; font-size: 15.5px; font-weight: 500; color: var(--text); }
.mt-tabs button.on { background: rgba(255,255,255,.07); color: var(--accent-2); }
.mt-app.light .mt-tabs button.on { background: rgba(124,77,240,.1); }
.mt-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; background: linear-gradient(135deg,#7c4dff,#9b64f5); color: #fff; font-weight: 600; font-size: 15.5px; box-shadow: 0 8px 22px rgba(124,77,255,.3); }
.mt-btn:hover { filter: brightness(1.1); } .mt-btn .i { width: 18px; height: 18px; }
.mt-input { height: 46px; border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 0 20px; color: var(--text); font-size: 15.5px; outline: none; width: 100%; }
.mt-input::placeholder { color: var(--faint); } .mt-input:focus { border-color: rgba(139,92,246,.6); }
.mt-row { display: flex; gap: 12px; align-items: center; }
.mt-select { height: 46px; border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; width: 270px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 4px; gap: 2px; }
.seg button { width: 40px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.seg button.on { background: var(--accent-soft); color: var(--accent-2); }

/* ---------- Leads kanban ---------- */
.mt-leadbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.kan { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 14px; overflow-x: auto; padding-bottom: 10px; height: 470px; }
.col { border: 1px solid var(--border); border-radius: 14px; background: var(--card); display: flex; flex-direction: column; min-height: 0; }
.col .ch { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 18px; font-weight: 600; font-size: 16px; flex: none; }
.col .ch .i { width: 16px; height: 16px; color: var(--muted); }
.col .cb { padding: 0 8px 8px; overflow-y: auto; display: grid; gap: 8px; align-content: start; }
.lead { border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; background: var(--bg); cursor: pointer; transition: border-color .15s, transform .15s; }
.lead:hover { border-color: rgba(139,92,246,.5); transform: translateY(-1px); }
.mt-app.light .lead { background: #fafbff; }
.lead b { display: block; font-weight: 500; font-size: 15.5px; } .lead span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .14em; color: var(--muted); font-weight: 600; text-transform: uppercase; padding: 20px 24px; }
.tbl td { padding: 0 24px; height: 70px; font-size: 16px; border-top: 1px solid var(--border); }
.tbl.pl th { font-size: 15.5px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.tbl tbody tr { transition: background .15s; cursor: default; } .tbl tbody tr:hover { background: var(--hover); }
.tbl .nm { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.tbl tr:hover .nm b { color: var(--accent-2); } .tbl .nm b { font-weight: 500; }
.tbl .av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); font-size: 12px; font-weight: 600; display: grid; place-items: center; border: 1px solid var(--border); }
.tbl .ic { display: inline-flex; align-items: center; gap: 10px; color: var(--text); } .tbl .ic .i { width: 17px; height: 17px; color: var(--accent-2); }
.tbl .ic.m { color: var(--muted); }
.tbl .ic.m .i { color: var(--muted); }
.pill { display: inline-block; padding: 5px 14px; font-size: 13.5px; border-radius: 999px; background: var(--hover); border: 1px solid var(--border); color: var(--text); }
.kebab { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; display: grid; place-items: center; background: var(--bg); }
.kebab:hover { border-color: var(--border-2); }
.tcard { overflow: hidden; }
.mt-pager { display: flex; justify-content: center; margin: 22px 0 10px; }
.mt-pager div { display: inline-flex; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.mt-pager button { height: 44px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; border: 1px solid var(--border); font-size: 16px; color: var(--muted); background: var(--bg); }
.mt-pager span { padding: 0 14px; font-size: 14px; }
.edit { width: 50px; height: 50px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; background: var(--bg); }
.edit:hover { border-color: var(--border-2); } .edit .i { width: 18px; height: 18px; }
.pd { color: var(--muted); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }

/* ---------- Campaigns ---------- */
.camps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; padding-bottom: 14px; }
.camp { padding: 28px 32px; min-height: 340px; display: flex; flex-direction: column; }
.camp .tp { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.camp h3 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.tag { padding: 5px 14px; border-radius: 9px; background: rgba(255,255,255,.1); font-size: 13.5px; font-weight: 500; }
.mt-app.light .tag { background: rgba(20,25,60,.07); }
.camp .ds { color: var(--muted); font-size: 17.5px; margin: 16px 0 14px; line-height: 1.5; }
.camp .mrow { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 17px; margin-top: 12px; } .camp .mrow .i { width: 19px; height: 19px; color: var(--muted); }
.camp .mrow.pr { color: var(--text); font-size: 18px; } .camp .note { color: var(--muted); font-size: 14px; margin: 4px 0 0 31px; }
.camp .bt { margin-top: auto; padding-top: 22px; }
.camp .st { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.camp .st .rn { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.tog { width: 50px; height: 28px; border-radius: 999px; background: #3a3f55; position: relative; transition: background .2s; flex: none; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .2s; }
.tog.on { background: #7c4dff; } .tog.on::after { left: 25px; }
.act { background: #7c4dff; color: #fff; font-size: 14px; font-weight: 500; padding: 5px 14px; border-radius: 8px; }
.act.off { background: rgba(255,255,255,.1); color: var(--muted); } .mt-app.light .act.off { background: rgba(20,25,60,.08); }
.unsub { width: 100%; height: 52px; border: 1px solid var(--border); border-radius: 12px; color: #d94a6b; font-size: 17px; background: transparent; } .unsub:hover { background: rgba(240,96,122,.08); }
.sub-btn { color: var(--accent-2); } .sub-btn:hover { background: var(--accent-soft); }

/* ---------- Calendar ---------- */
.cal { padding: 0; overflow: hidden; margin-bottom: 14px; }
.cal .chd { padding: 24px 26px 18px; display: flex; justify-content: space-between; align-items: flex-start; background: linear-gradient(90deg, rgba(139,92,246,.07), transparent); }
.cal .chd h3 { font-size: 20px; font-weight: 600; } .cal .chd p { font-size: 14.5px; color: var(--muted); }
.cal .lg { display: flex; gap: 16px; font-size: 14.5px; color: var(--muted); align-items: center; } .cal .lg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; background: var(--accent); }
.cal .lg i.t { background: rgba(139,92,246,.25); }
.cgrid { display: grid; grid-template-columns: repeat(7, 1fr); margin: 0 18px 18px; border: 1px solid var(--border); border-radius: 4px; }
.cgrid .dn { text-align: center; font-size: 13px; letter-spacing: .15em; color: var(--muted); padding: 14px 0; text-transform: uppercase; background: rgba(255,255,255,.012); border-bottom: 1px solid var(--border); }
.cgrid .d { min-height: 104px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 14px; font-size: 17px; font-weight: 500; position: relative; cursor: pointer; background: rgba(255,255,255,.012); }
.cgrid .d:nth-child(7n+14) { border-right: 0; } .cgrid .d:hover { background: var(--hover); }
.cgrid .d.o { color: var(--muted); font-weight: 400; }
.cgrid .d.today { background: linear-gradient(180deg, rgba(139,92,246,.2), rgba(139,92,246,.05)); box-shadow: inset 0 0 0 1px rgba(139,92,246,.7); }
.cgrid .d.today .nb { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #7c4dff; color: #fff; margin: -6px 0 0 -6px; }
.cgrid .d.today .tt { position: absolute; right: 12px; top: 14px; font-size: 11px; letter-spacing: .08em; color: var(--accent-2); font-weight: 600; }
.cgrid .d.has::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: #8b5cf6; border-radius: 3px; }
.chip { margin-top: 8px; font-size: 14px; font-weight: 450; padding: 5px 9px; border-radius: 8px; background: rgba(139,92,246,.18); border: 1px solid rgba(139,92,246,.25); display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8b5cf6; flex: none; }
.cnav { display: flex; gap: 10px; align-items: center; }
.cnav .mo { display: flex; border: 1px solid var(--border); background: var(--card); border-radius: 12px; overflow: hidden; height: 46px; align-items: center; }
.cnav .mo button { width: 54px; height: 100%; display: grid; place-items: center; color: var(--muted); } .cnav .mo button:hover { background: var(--hover); }
.cnav .mo span { padding: 0 38px; font-weight: 600; font-size: 17px; min-width: 190px; text-align: center; }
.cnav .td { height: 46px; padding: 0 24px; border: 1px solid var(--border); background: var(--card); border-radius: 12px; color: var(--accent-2); font-weight: 600; font-size: 17px; }

/* ---------- Toast ---------- */
.mt-toast { position: absolute; left: 50%; bottom: 66px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--card-2); border: 1px solid rgba(139,92,246,.5); color: var(--text); padding: 12px 18px; border-radius: 14px; font-size: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.45); transition: .3s; z-index: 5; display: flex; align-items: center; gap: 12px; }
.mt-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.mt-toast a { color: #fff; background: #7c4dff; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; }

.app-hint { text-align: center; color: var(--text-faint); font-size: .86rem; margin-top: 18px; }
.app-hint b { color: var(--text-muted); font-weight: 500; }
