/* ═══════════════════════════════ login ═══════════════════════════════ */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(440px, 100%); border-radius: var(--r-xl); padding: 40px 36px; display: grid; gap: 22px; text-align: center; box-shadow: var(--shadow-lg); }
.login-card .brand { justify-content: center; }
.login-card .brand img { width: 56px; height: 56px; border-radius: 18px; }
.login-card h1 { font-size: 28px; }
.login-card p { color: var(--text-2); font-size: 14.5px; }
.login-domain { display: inline-flex; align-items: center; gap: 8px; justify-self: center; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.login-domain b { color: var(--text); font-weight: 600; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 52px; border-radius: var(--pill); background: #fff; color: #0b0e14; font-weight: 600; font-size: 15px; width: 100%; transition: transform var(--fast) var(--ease), background var(--fast); }
.gbtn:hover { background: #eef0f5; } .gbtn:active { transform: scale(.98); }
.gbtn img { width: 20px; height: 20px; }
.login-foot { font-size: 12.5px; color: var(--text-3); }
.login-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.login-side { padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; justify-items: center; font-size: 12.5px; color: var(--text-2); }
.login-side svg { width: 20px; height: 20px; color: var(--text); }

/* ═══════════════════════════════ dashboard home ═══════════════════════════════ */
.welcome { display: grid; gap: 6px; }
.welcome h1 span { color: var(--text-2); font-weight: 500; }

.side-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.side-card { position: relative; border-radius: var(--r-xl); padding: 30px; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; overflow: hidden; isolation: isolate; border: 1px solid var(--line); transition: transform var(--med) var(--ease), border-color var(--med); }
.side-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.side-card::before { content: ''; position: absolute; inset: 0; z-index: -1; }
.side-card.tools::before { background: radial-gradient(600px 300px at 90% 0%, rgba(123,108,246,.55), transparent 60%), linear-gradient(160deg, #1a1f33 0%, #0e1220 100%); }
.side-card.ott::before { background: radial-gradient(600px 320px at 90% 0%, rgba(255,123,92,.5), transparent 60%), radial-gradient(400px 300px at 10% 100%, rgba(30,122,140,.6), transparent 60%), linear-gradient(160deg, #1b1520 0%, #0e1220 100%); }
.side-card .side-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid var(--line-2); margin-bottom: auto; }
.side-card .side-ic svg { width: 24px; height: 24px; }
.side-card h2 { font-size: 28px; letter-spacing: -0.02em; }
.side-card p { color: var(--text-2); max-width: 420px; }
.side-card .cluster { margin-top: 6px; }
.side-card .arrow { position: absolute; top: 26px; right: 26px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid var(--line-2); transition: transform var(--med) var(--ease), background var(--fast); }
.side-card:hover .arrow { transform: translate(3px, -3px); background: #fff; color: var(--text-inverse); }
.side-card .arrow svg { width: 18px; height: 18px; }

.quick-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.quick { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); }
.quick-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--surface-2); }
.quick-ic svg { width: 19px; height: 19px; }
.quick b { display: block; font-weight: 600; font-size: 14.5px; }
.quick span { font-size: 12.5px; color: var(--text-3); }
.quick .chev { margin-left: auto; color: var(--text-3); width: 16px; height: 16px; }

/* ═══════════════════════════════ tools hub ═══════════════════════════════ */
.tool-card { display: grid; gap: 14px; padding: 26px; border-radius: var(--r-lg); min-height: 220px; }
.tool-card .tool-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; }
.tool-card .tool-ic svg { width: 22px; height: 22px; }
.tool-card.violet .tool-ic { background: var(--accent-soft); color: #c7bfff; }
.tool-card.coral .tool-ic { background: var(--accent-2-soft); color: #ffb39f; }
.tool-card.lime .tool-ic { background: var(--accent-3-soft); color: #d6ffa3; }
.tool-card h3 { font-size: 20px; }
.tool-card p { color: var(--text-2); font-size: 14px; }
.tool-card .cluster { margin-top: auto; }

/* ═══════════════════════════════ OTT ═══════════════════════════════ */
.ott-rows { display: grid; gap: 36px; }
.row-block .section-head h2 { display: flex; align-items: center; gap: 10px; }
.row-block .section-head h2 .cat-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); }
.row-block .section-head h2 .cat-ic svg { width: 15px; height: 15px; }

.watch-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); align-items: start; }
@media (max-width: 1000px) { .watch-grid { grid-template-columns: 1fr; } }
.watch-title { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; }
.watch-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text-2); font-size: 14px; }
.watch-desc { color: var(--text-2); white-space: pre-wrap; line-height: 1.6; font-size: 14.5px; max-height: 7.5em; overflow: hidden; position: relative; transition: max-height var(--med) var(--ease); }
.watch-desc.open { max-height: none; }
.watch-desc:not(.open)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(180deg, transparent, var(--bg)); }
.desc-toggle { color: var(--text); font-weight: 600; font-size: 13.5px; }

.live-stage { display: grid; gap: 22px; }
.live-empty { padding: clamp(40px, 8vw, 90px) 24px; text-align: center; border-radius: var(--r-xl); display: grid; gap: 14px; justify-items: center; }
.live-empty .live-ring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); position: relative; }
.live-empty .live-ring::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--line); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.3); opacity: 0; } }
.live-empty .live-ring svg { width: 34px; height: 34px; color: var(--text-2); }

/* admin */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-sm { width: 96px; aspect-ratio: 16/9; border-radius: 8px; object-fit: cover; background: var(--bg-3); }
.row-title { font-weight: 600; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.inline-select { height: 36px; padding: 0 34px 0 12px; border-radius: 10px; font-size: 13px; background-position: right 10px center; min-width: 150px; }
.preview-box { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--bg-3); border: 1px solid var(--line); position: relative; }
.preview-box img { width: 100%; height: 100%; object-fit: cover; }
.preview-box .id-tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 8px; background: rgba(0,0,0,.65); font-size: 12px; }

/* ═══════════════════════════════ certificates ═══════════════════════════════ */
.batch-list { display: grid; gap: 10px; }
.batch-item { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--r-md); cursor: pointer; border: 1px solid var(--line); background: var(--surface); transition: background var(--fast), border-color var(--fast); }
.batch-item:hover, .batch-item.active { background: var(--surface-2); border-color: var(--line-2); }
.batch-item .between b { font-weight: 600; font-size: 14.5px; }
.batch-item .faint { font-size: 12.5px; }
.status-pending { color: var(--text-2); } .status-processing { color: var(--accent); } .status-sent { color: var(--success); } .status-failed { color: var(--danger); }

/* placeholder pages */
.placeholder { display: grid; gap: 22px; }
.placeholder .steps { display: grid; gap: 10px; counter-reset: s; }
.placeholder .step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.placeholder .step::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); font-size: 12.5px; font-weight: 600; }
.placeholder .step b { display: block; font-weight: 600; margin-bottom: 2px; }
.placeholder .step span { font-size: 13.5px; color: var(--text-2); }

/* 404 */
.notfound { min-height: 60dvh; display: grid; place-content: center; gap: 14px; text-align: center; justify-items: center; }
.notfound .big { font-family: var(--font-display); font-size: 96px; font-weight: 700; letter-spacing: -0.04em; color: var(--surface-3); line-height: 1; }

/* sign-in: password alternative under the Google button */
.login-or { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--muted, #8b93a3); font-size: 12px; }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.12); }
.login-pw { display: grid; gap: 10px; }
.login-pw .input { width: 100%; }
.login-pw .linkish { background: none; border: 0; padding: 0; color: #2E7CF6; font-size: 12.5px;
  cursor: pointer; justify-self: start; text-decoration: underline; }


/* OTT Admin → Collections */
.coll-edit { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: start; }
.coll-edit-art { aspect-ratio: 4 / 3; border-radius: var(--r-lg, 14px); overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #0B2CC4, #0054D1); }
.coll-edit-art img { width: 100%; height: 100%; object-fit: cover; }
.coll-edit-art .coll-word { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 34px; color: #FFDD00; text-align: center; padding: 0 10px; line-height: .9; }
.coll-edit-fields { display: grid; gap: 12px; min-width: 0; }
@media (max-width: 700px) { .coll-edit { grid-template-columns: 1fr; } .coll-edit-art { max-width: 220px; } }
