/* KASKOW public tools (Publik: tanpa login, didukung iklan). Dipakai di atas /p/landing.css */
.tool-main { padding: 36px 0 72px; }
.tool-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.tool-head h1 { font-size: clamp(26px, 3.6vw, 40px); margin: 14px 0 10px; }
.tool-head p { color: var(--muted); font-size: 16px; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .tool-layout { grid-template-columns: 1fr; } .ad-side { display: none; } }

.tool-card { border: 1px solid var(--border); background: var(--card-solid); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.tool-card + .tool-card { margin-top: 18px; }
.tool-card h2 { font-size: 17px; margin-bottom: 4px; }
.tool-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tab { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--muted); }
.tab.active { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); border-color: transparent; }
.pane[hidden] { display: none; }

.drop { position: relative; border: 2px dashed var(--border); border-radius: 16px; padding: 34px 20px; text-align: center; background: var(--card); transition: border-color .15s, background .15s; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-tint); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop .ic { width: 44px; height: 44px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--brand-tint); color: var(--accent-text); }
.drop .ic svg { width: 22px; height: 22px; }
.drop b { display: block; font-size: 15px; }
.drop small { color: var(--muted); font-size: 12.5px; }

.files { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.files li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); font-size: 13px; }
.files li .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.files li .sz { color: var(--muted); font-size: 12px; }
.files li .thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--border); flex: none; }
.files li button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 2px 4px; font-size: 16px; line-height: 1; }
.files li button:hover { color: #ef4444; }
.files li .mv { font-size: 12px; }

.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.opt label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.inp { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 14px; }
.inp:focus { outline: 2px solid var(--brand-tint); border-color: var(--brand); }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type=range] { flex: 1; accent-color: var(--brand); }
.range-row output { font-size: 13px; font-weight: 700; min-width: 2.5rem; text-align: right; }

.act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.act .msg { font-size: 13px; color: var(--muted); }
.act .msg.err { color: #ef4444; }
.act .msg.limit { color: var(--text); background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 10px; padding: 8px 12px; line-height: 1.5; }
.act .msg.limit .cd { font-variant-numeric: tabular-nums; color: #ef4444; }
.act .msg.limit a { color: var(--accent-text); font-weight: 600; text-decoration: underline; }
.act .msg.ok { color: var(--accent-text); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result { margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--brand-tint); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.result .meta { flex: 1; min-width: 180px; font-size: 13.5px; }
.result .meta b { display: block; font-size: 14.5px; }
.result img { max-height: 80px; max-width: 120px; border-radius: 8px; border: 1px solid var(--border); }
.result[hidden] { display: none; }

.ad-slot { border: 1px dashed var(--border); border-radius: 14px; min-height: 90px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; background: var(--card); overflow: hidden; }
.ad-slot.ad-side { min-height: 600px; position: sticky; top: 84px; }
.ad-slot.ad-top { margin-bottom: 18px; }
.ad-slot.ad-bottom { margin-top: 24px; }
.ad-slot[hidden] { display: none; }
.ad-slot ins { display: block; width: 100%; }

.noads { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--indigo-tint); margin-bottom: 18px; font-size: 13.5px; }
.noads[hidden] { display: none; }
.noads b { color: var(--indigo); }

.badge-tier { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(34,197,94,.14); color: #16a34a; }
.info-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.info-list div { padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); font-size: 13px; }
.info-list small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.textout { width: 100%; min-height: 220px; margin-top: 12px; }
.other-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 40px; }
.other-tools a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--card-solid); font-weight: 700; }
.other-tools a:hover { border-color: var(--brand); }
.other-tools a small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.faq { margin-top: 48px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; background: var(--card); margin-top: 8px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin-top: 8px; color: var(--muted); font-size: 14px; }
