/* guest.css — فقط برایِ «پنلِ مهمان» (guest/*.php). به هیچ صفحه‌یِ دیگری لود نمی‌شود. */
body.jg-guest { background: var(--jg-bg); min-height: 100vh; }
body.jg-guest.has-nav .gst-main { padding-bottom: 92px; }
.gst-main { max-width: 640px; margin: 0 auto; padding: 14px 14px 28px; }

/* هدر */
.gst-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: var(--jg-gradient); color: #fff; box-shadow: var(--jg-shadow); }
.gst-brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; }
.gst-brand img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.gst-user { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; }
.gst-name { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .95; }
.gst-badge { background: var(--jg-accent); color: #3a2800; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.gst-logout { color: #fff; text-decoration: none; font-size: 19px; line-height: 1; padding: 4px 6px; opacity: .9; }

/* نوارِ پایین */
.gst-nav { position: fixed; bottom: 0; right: 0; left: 0; z-index: 30; display: flex; justify-content: space-around;
  background: var(--jg-surface); border-top: 1px solid var(--jg-border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(18,64,140,.08); }
.gst-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--jg-text-muted);
  font-size: 11px; padding: 4px 2px; border-radius: 12px; transition: var(--jg-transition); }
.gst-nav a i { font-style: normal; font-size: 21px; line-height: 1.15; }
.gst-nav a.on { color: var(--jg-primary); background: rgba(18,64,140,.07); font-weight: 700; }

/* کارت و عنوان */
.gst-card { background: var(--jg-surface); border-radius: var(--jg-radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--jg-shadow); }
.gst-card h2, .gst-h { font-size: 16px; margin: 0 0 10px; color: var(--jg-primary); }
.gst-muted { color: var(--jg-text-muted); font-size: 13px; line-height: 1.9; }
.gst-note { background: #fff8e1; border: 1px solid #f3dd9a; color: #6b4e00; border-radius: var(--jg-radius-sm); padding: 10px 12px; font-size: 13px; line-height: 1.9; margin-bottom: 14px; }
.gst-empty { text-align: center; padding: 30px 14px; color: var(--jg-text-muted); font-size: 14px; line-height: 2; }
.gst-card img, .gst-card video { max-width: 100%; border-radius: 12px; display: block; margin: 8px 0; }
.gst-card audio { width: 100%; margin: 8px 0; }
.gst-file { display: inline-block; margin: 6px 0; color: var(--jg-primary); }
.gst-btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center; font-family: inherit; font-size: 15px; font-weight: 700;
  padding: 13px 22px; border-radius: var(--jg-radius-sm); background: var(--jg-gradient); color: #fff; transition: var(--jg-transition); }
.gst-btn.alt { background: var(--jg-surface-2); color: var(--jg-primary); border: 1.5px solid var(--jg-border); }
.gst-btn[disabled] { opacity: .45; cursor: not-allowed; }
.gst-btn.block { display: block; width: 100%; }

/* خانه: شبکه‌یِ منو */
.gst-hello { background: var(--jg-gradient); color: #fff; border-radius: var(--jg-radius-lg); padding: 18px; margin-bottom: 14px; box-shadow: var(--jg-shadow-lg); }
.gst-hello h1 { margin: 0 0 6px; font-size: 18px; }
.gst-hello p { margin: 0; font-size: 13px; opacity: .9; line-height: 1.9; }
.gst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gst-tile { background: var(--jg-surface); border-radius: var(--jg-radius); padding: 14px 6px 12px; text-align: center; text-decoration: none; color: var(--jg-text);
  box-shadow: var(--jg-shadow); position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; transition: var(--jg-transition); }
.gst-tile:active { transform: scale(.96); }
.gst-tile i { font-style: normal; font-size: 28px; line-height: 1.2; }
.gst-tile.locked { background: var(--jg-surface-2); color: #5a6577; box-shadow: none; border: 1px dashed #c9d2e0; }
.gst-tile.locked::after { content: '🔒'; position: absolute; top: 5px; left: 7px; font-size: 11px; opacity: .8; }
.gst-tile.hl { background: linear-gradient(135deg, #fff7de, #ffe9a8); border: 1px solid #f3d27a; }

/* ردیف‌هایِ محتوا */
.gst-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--jg-border); }
.gst-row:last-child { border-bottom: 0; }
.gst-row .dot { font-size: 22px; line-height: 1.3; }
.gst-row .t { font-weight: 700; font-size: 14px; }
.gst-row .s { color: var(--jg-text-muted); font-size: 12.5px; margin-top: 2px; line-height: 1.8; }
.gst-body { white-space: pre-wrap; line-height: 2; font-size: 14px; }
.gst-pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #e8eefb; color: var(--jg-primary); margin-inline-start: 6px; }
.gst-lv { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; }
.gst-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.gst-table td, .gst-table th { padding: 9px 6px; border-bottom: 1px solid var(--jg-border); text-align: right; }
.gst-table th { color: var(--jg-text-muted); font-weight: 600; font-size: 12px; }
.gst-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.gst-chips a { padding: 6px 14px; border-radius: 999px; background: var(--jg-surface); border: 1.5px solid var(--jg-border); color: var(--jg-text); text-decoration: none; font-size: 13px; }
.gst-chips a.on { background: var(--jg-primary); border-color: var(--jg-primary); color: #fff; }
.gst-msg { padding: 10px 12px; background: var(--jg-surface-2); border-radius: 14px; margin-bottom: 10px; }
.gst-msg .who { font-size: 12px; font-weight: 700; color: var(--jg-primary); margin-bottom: 4px; }
.gst-msg .when { font-size: 11px; color: var(--jg-text-muted); margin-top: 6px; }

/* ورود */
.gst-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px 14px; }
.gst-login .jg-login-card h1 { font-size: 20px; }
.gst-sub-links { margin-top: 16px; font-size: 12.5px; color: var(--jg-text-muted); line-height: 2; }
.gst-sub-links a { color: var(--jg-primary); }

/* معرفی */
.gst-intro-video { width: 100%; border-radius: 16px; background: #000; max-height: 62vh; }
.gst-slides { position: relative; }
.gst-slide { display: none; text-align: center; padding: 26px 10px; animation: gst-fade .5s; }
.gst-slide.on { display: block; }
.gst-slide .ic { font-size: 58px; margin-bottom: 8px; }
.gst-slide h3 { color: var(--jg-primary); margin: 0 0 8px; }
.gst-slide p { color: var(--jg-text-muted); line-height: 2; font-size: 14px; margin: 0; }
.gst-dots { display: flex; justify-content: center; gap: 6px; margin: 8px 0 14px; }
.gst-dots b { width: 8px; height: 8px; border-radius: 50%; background: #cfd8e8; }
.gst-dots b.on { background: var(--jg-primary); }
@keyframes gst-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* راهنمایِ پنلِ والدین (فلشِ گرافیکی) */
.gst-arrow-card { text-align: center; padding: 20px 12px; }
.gst-arrow { font-size: 44px; display: inline-block; animation: gst-bounce 1.2s infinite; color: var(--jg-accent-dark); }
@keyframes gst-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
.gst-fake-switch { display: inline-flex; align-items: center; gap: 8px; background: var(--jg-gradient); color: #fff; border-radius: 999px; padding: 12px 22px; font-weight: 700; text-decoration: none; box-shadow: var(--jg-shadow-lg); outline: 3px solid rgba(242,168,12,.55); outline-offset: 4px; }
.gst-steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.gst-steps li { counter-increment: s; position: relative; padding: 8px 40px 8px 0; font-size: 14px; line-height: 1.9; }
.gst-steps li::before { content: counter(s, persian); position: absolute; right: 0; top: 7px; width: 28px; height: 28px; border-radius: 50%; background: var(--jg-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }

/* باکسِ نصبِ اپ */
.gst-install { display: none; position: fixed; right: 12px; left: 12px; bottom: 84px; z-index: 40; max-width: 480px; margin: 0 auto; background: var(--jg-surface); border-radius: 16px; padding: 12px 14px; box-shadow: var(--jg-shadow-lg); border: 1px solid var(--jg-border); gap: 10px; align-items: center; font-size: 13px; line-height: 1.8; }
.gst-install.open { display: flex; }
.gst-install .x { background: none; border: 0; font-size: 18px; color: var(--jg-text-muted); cursor: pointer; }

/* مدیریت (admin) */
.gst-admin-form label { display: block; margin: 10px 0 4px; font-size: 13px; color: var(--jg-text-muted); }
.gst-admin-form input[type=text], .gst-admin-form textarea, .gst-admin-form select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--jg-border); border-radius: 10px; font-family: inherit; font-size: 14px; background: var(--jg-surface-2); }
