/* SHABAB DIYAFA PRO 1.0.2 — WEBSITE admin page (inside the app). Uses the app's cards / fields / buttons; this file adds only the new pieces. */
.sitetabs { flex-wrap: wrap; }
.sitetabs .cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; }
.siteurl b { word-break: break-all; }
#sitebody { margin-top: 14px; }
#sitebody .card { margin-bottom: 14px; }
#sitebody .card h3 { display: flex; align-items: center; gap: 8px; }
#sitebody h3.mt { margin-top: 18px; }
.sitesave { position: sticky; bottom: 12px; z-index: 5; gap: 10px; padding: 10px; margin: 6px 0 18px; border-radius: 18px; background: var(--card); box-shadow: var(--sh2); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.check.big { font-size: 16px; font-weight: 700; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.preset { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; text-align: center; font-size: 12.5px; }
.preset:has(input:checked) { border-color: var(--gold); background: var(--soft); }
.preset input { position: absolute; opacity: 0; pointer-events: none; }
.preset .sw { display: flex; width: 56px; height: 34px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.preset .sw i { flex: 1; }
.sw-navy i:first-child { background: #0b1f4f; } .sw-navy i:last-child { background: #c9a24a; }
.sw-marina i:first-child { background: #0b2160; } .sw-marina i:last-child { background: #c3ccd8; }
.sw-emerald i:first-child { background: #0b3b2e; } .sw-emerald i:last-child { background: #d4af37; }
.sw-ocean i:first-child { background: #0b3a4a; } .sw-ocean i:last-child { background: #e2c48e; }
.sw-wine i:first-child { background: #4a0f22; } .sw-wine i:last-child { background: #d6b25e; }
.sw-night i:first-child { background: #14161c; } .sw-night i:last-child { background: #d9b45a; }
.srow { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 6px; background: var(--soft); }
.srow .check { margin: 0; }
.ibtn.sm { width: 34px; height: 34px; }
.facs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 6px 0 12px; }
.facs .fac { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.facs .fac:has(input:checked) { border-color: var(--gold); background: var(--soft); }
.facs .fac svg.i { width: 20px; height: 20px; flex: none; color: var(--gold); }
.phgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.phi { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.phi img, .phi video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phi .pdf { display: grid; place-items: center; height: 100%; font-weight: 800; gap: 6px; }
.phi .pa { position: absolute; inset: auto 0 0 0; display: flex; justify-content: center; gap: 4px; padding: 6px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55)); }
.phi .pa .ibtn { background: rgba(255, 255, 255, 0.92); color: #17223b; }
.phi .pa .ibtn.red { color: var(--bad); }
.phi .ill { position: absolute; top: 6px; inset-inline-start: 6px; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11px; }
.phadd { aspect-ratio: 4 / 3; border-radius: 14px; border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; color: var(--muted); font-weight: 700; }
.phadd:hover { border-color: var(--gold); color: var(--text); }
.capimg { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; margin-bottom: 10px; }
.lrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) auto; gap: 8px; align-items: start; padding: 10px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 8px; }
.lrow input, .lrow select, .lrow textarea { width: 100%; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); padding: 8px 10px; font: inherit; background: var(--solid); color: var(--text); }
.orow .row { gap: 10px; align-items: center; }
.pwrap { margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; }
.pwrap canvas { max-width: 100%; max-height: 62vh; width: auto; height: auto; border-radius: 10px; box-shadow: var(--sh2); }
.enqmsg { max-width: 420px; white-space: pre-wrap; }
@media (max-width: 760px) { .grid3, .presets { grid-template-columns: 1fr 1fr; } .sitesave { flex-wrap: wrap; } }
