/* ================================================
   SSU SERBISYO FEEDBACK SYSTEM
   Main Stylesheet — SSU Blue & Yellow Branding
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

:root {
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --ssu-blue: #102A6B;
  --ssu-blue-mid: #1B4399;
  --ssu-blue-light: #2E5FC4;
  --ssu-blue-dark: #081E47;
  --ssu-blue-darker: #0A214F;
  --ssu-gold: #FFD700;
  --ssu-gold-dark: #E5C400;
  --ssu-yellow: #FFD700;
  --ssu-yellow-dark: #E5C400;
  --ssu-white: #ffffff;
  --ssu-gray: #f5f7fa;
  --ssu-text: #2c3e50;
  --ssu-text-muted: #6c757d;
  --ssu-border: #dee2e6;
  --shadow: 0 4px 20px rgba(16,42,107,0.12);
  --shadow-hover: 0 8px 30px rgba(16,42,107,0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--ssu-gray);
  color: var(--ssu-text);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--ssu-blue-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--ssu-yellow-dark); }

/* ====================================================
   ICON COLOR UTILITY CLASSES
   ==================================================== */
/* Content area (white/light bg) */
.icon-blue   { color: var(--ssu-blue) !important; }
.icon-yellow { color: #B8900A !important; }
.icon-black  { color: #1a1a1a !important; }
.icon-white  { color: #ffffff !important; }

/* Sidebar icons (dark bg) */
.si-blue   { color: #60A5FA !important; }
.si-yellow { color: #FFD700 !important; }
.si-white  { color: rgba(255,255,255,0.88) !important; }
.si-red    { color: #ff6b6b !important; }

/* Bootstrap icon sizing */
.bi { line-height: 1; }
.sidebar-link .bi {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  transition: color var(--transition);
}
.topbar-icon { font-size: 20px; vertical-align: -2px; }
.card-icon   { font-size: 20px; }

/* Sidebar icon badge */
.sidebar-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.sidebar-icon-wrap.bg-blue   { background: rgba(96,165,250,0.15); }
.sidebar-icon-wrap.bg-yellow { background: rgba(255,215,0,0.15); }
.sidebar-icon-wrap.bg-white  { background: rgba(255,255,255,0.10); }
.sidebar-icon-wrap.bg-red    { background: rgba(255,107,107,0.12); }

.sidebar-link:hover .sidebar-icon-wrap.bg-blue,
.sidebar-link.active .sidebar-icon-wrap.bg-blue   { background: rgba(96,165,250,0.28); }
.sidebar-link:hover .sidebar-icon-wrap.bg-yellow,
.sidebar-link.active .sidebar-icon-wrap.bg-yellow { background: rgba(255,215,0,0.28); }
.sidebar-link:hover .sidebar-icon-wrap.bg-white,
.sidebar-link.active .sidebar-icon-wrap.bg-white  { background: rgba(255,255,255,0.20); }

/* ---- HEADER ---- */
.site-header {
  background: linear-gradient(135deg, var(--ssu-blue) 0%, var(--ssu-blue-mid) 60%, var(--ssu-blue-light) 100%);
  color: var(--ssu-white);
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.header-logo {
  width: 52px;
  height: 52px;
  padding: 2px;
}

.header-title { color: var(--ssu-white); }
.header-title h1 { font-size: 18px; font-weight: 700; letter-spacing: 0.3px; line-height: 1.2; }
.header-title p { font-size: 11px; opacity: 0.85; margin-top: 2px; }

.header-nav { display: flex; align-items: center; gap: 8px; }

.lang-switcher {
  display: flex;
  gap: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.13) 0%, rgba(255,255,240,0.09) 100%);
  border-radius: 24px;
  padding: 4px 6px;
  box-shadow: 0 2px 8px rgba(30, 65, 140, 0.09);
  align-items: center;
}

.lang-btn {
  position: relative;
  padding: 6px 18px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: transparent;
  color: rgba(255,255,255,0.87);
  outline: none;
  box-shadow: 0 0 0 0px var(--ssu-yellow);
  transition: 
    background 0.22s cubic-bezier(.45,.09,.41,.93), 
    color 0.22s cubic-bezier(.45,.09,.41,.93), 
    box-shadow 0.17s cubic-bezier(.45,.09,.41,.93);
}
.lang-btn:not(.active):hover, .lang-btn:focus-visible {
  background: rgba(252, 215, 70, 0.21);
  color: var(--ssu-blue-light);
  box-shadow: 0 2px 8px 0 rgba(252, 215, 70, 0.15);
}
.lang-btn.active {
  background: var(--ssu-yellow);
  color: var(--ssu-blue);
  box-shadow: 0 0 0 1.5px var(--ssu-yellow);
  z-index: 1;
}
.lang-btn:active {
  background: linear-gradient(90deg, #ffe181 0%, #ffe783 100%);
  color: var(--ssu-blue-dark);
}

/* ---- HERO SECTION ---- */
.hero {
  position: relative;
  background: linear-gradient(to bottom right, var(--ssu-blue) 0%, var(--ssu-blue-dark) 100%);
  color: white;
  overflow: hidden;
  padding: 60px 24px 80px;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/bg_ssu.png');
  background-size: cover; background-position: center; opacity: 0.20;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-logo { width: 100px; height: 100px; border-radius: 50%; border: 4px solid var(--ssu-yellow); object-fit: contain; background: rgba(255,255,255,0.9); padding: 6px; margin-bottom: 20px; }
.hero h2 { font-size: 32px; font-weight: 800; letter-spacing: 1px; margin-bottom: 10px; }
.hero h2 span { color: var(--ssu-yellow); }
.hero p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; line-height: 1.7; }

.gold-divider { width: 60px; height: 4px; background: var(--ssu-yellow); border-radius: 2px; margin: 0 auto 24px; }

/* ---- MAIN CONTENT ---- */
.main-content { max-width: 900px; margin: -40px auto 40px; padding: 0 16px; position: relative; z-index: 2; }

/* ---- CARD ---- */
.card { background: var(--ssu-white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; margin-bottom: 24px; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-hover); }
.card-header { border-bottom: 2px solid var(--ssu-yellow); padding-bottom: 14px; margin-bottom: 24px; }
.card-title { font-size: 20px; font-weight: 700; color: var(--ssu-blue); display: flex; align-items: center; gap: 10px; }
.card-title .icon { font-size: 24px; }

/* ---- FORM ---- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 7px; color: var(--ssu-text); font-size: 14px; }
.form-label .req { color: #102A6B; margin-left: 3px; }

.form-control {
  width: 100%; padding: 11px 16px;
  border: 2px solid var(--ssu-border); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--ssu-text); transition: var(--transition);
  background: #fff; font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--ssu-blue-light); box-shadow: 0 0 0 3px rgba(46,95,196,0.15); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ---- RATING WIDGET ---- */
.rating-group { margin-bottom: 28px; }
.rating-label { font-weight: 600; margin-bottom: 14px; font-size: 14px; color: var(--ssu-text); }
.rating-options { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; }
.rating-option { flex: 1; min-width: 80px; }
.rating-option input[type="radio"] { display: none; }
.rating-option label {
  display: flex; flex-direction: column; align-items: center; padding: 14px 8px;
  border: 2px solid var(--ssu-border); border-radius: var(--radius);
  cursor: pointer; transition: var(--transition); text-align: center; gap: 6px;
}
.rating-option label .rating-text { font-size: 11px; font-weight: 600; color: var(--ssu-text-muted); line-height: 1.3; }
.rating-option input:checked + label, .rating-option label:hover { border-color: var(--ssu-blue-light); background: rgba(46,95,196,0.07); transform: translateY(-2px); }
.rating-option[data-rating="5"] input:checked + label { border-color: #FFD700; background: rgba(255,215,0,0.12); }
.rating-option[data-rating="4"] input:checked + label { border-color: #2E5FC4; background: rgba(46,95,196,0.08); }
.rating-option[data-rating="3"] input:checked + label { border-color: #1B4399; background: rgba(27,67,153,0.08); }
.rating-option[data-rating="2"] input:checked + label { border-color: #102A6B; background: rgba(16,42,107,0.08); }
.rating-option[data-rating="1"] input:checked + label { border-color: #2c3e50; background: rgba(44,62,80,0.08); }

/* ---- RESPONDENT TYPE PILLS ---- */
.type-options { display: flex; flex-wrap: wrap; gap: 8px; }
.type-option input[type="radio"] { display: none; }
.type-option label { padding: 7px 16px; border: 2px solid var(--ssu-border); border-radius: 20px; cursor: pointer; font-size: 13px; font-weight: 600; transition: var(--transition); color: var(--ssu-text-muted); }
.type-option input:checked + label { border-color: var(--ssu-blue); background: var(--ssu-blue); color: #fff; }
.type-option label:hover { border-color: var(--ssu-blue-light); color: var(--ssu-blue-light); }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius-sm); border: none; cursor: pointer; font-size: 15px; font-weight: 700; transition: var(--transition); text-decoration: none; font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, var(--ssu-blue) 0%, var(--ssu-blue-light) 100%); color: white; box-shadow: 0 4px 14px rgba(16,42,107,0.35); }
.btn-primary:hover { background: linear-gradient(135deg, var(--ssu-blue-mid) 0%, var(--ssu-blue) 100%); transform: translateY(-1px); color: white; box-shadow: 0 6px 20px rgba(16,42,107,0.4); }
.btn-gold { background: linear-gradient(135deg, var(--ssu-yellow) 0%, var(--ssu-yellow-dark) 100%); color: var(--ssu-blue); box-shadow: 0 4px 14px rgba(255,215,0,0.4); }
.btn-gold:hover { filter: brightness(1.05); transform: translateY(-1px); color: var(--ssu-blue); }
.btn-outline { background: transparent; border: 2px solid var(--ssu-blue-light); color: var(--ssu-blue-light); }
.btn-outline:hover { background: var(--ssu-blue-light); color: white; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-danger { background: #2c3e50; color: white; }
.btn-success { background: #102A6B; color: white; }
.btn-warning { background: #FFD700; color: #102A6B; }
.btn-secondary { background: #6c757d; color: white; }

/* ---- ALERT ---- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; }
.alert-success { background: #eef2fb; border-left: 4px solid #102A6B; color: #102A6B; }
.alert-error   { background: #f0f3fa; border-left: 4px solid #2c3e50; color: #2c3e50; }
.alert-info    { background: #eef2fb; border-left: 4px solid #1B4399; color: #1B4399; }
.alert-warning { background: #fffbe6; border-left: 4px solid #FFD700; color: #7a5800; }

/* ---- PRIVACY CHECKBOX ---- */
.privacy-check { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #eaf4fd; border-radius: var(--radius-sm); border: 1px solid #aed6f1; margin-bottom: 20px; }
.privacy-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; cursor: pointer; accent-color: var(--ssu-blue); }
.privacy-check label { font-size: 13px; color: #1a6ea0; cursor: pointer; line-height: 1.5; }
.privacy-check a { color: var(--ssu-blue); font-weight: 600; text-decoration: underline; }

/* ---- INFO SECTIONS ---- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.info-card { background: linear-gradient(135deg, var(--ssu-blue) 0%, var(--ssu-blue-mid) 100%); color: white; border-radius: var(--radius); padding: 20px; text-align: center; transition: var(--transition); }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.info-card .icon { font-size: 36px; margin-bottom: 10px; }
.info-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.info-card p { font-size: 13px; opacity: 0.85; }

/* ---- SUCCESS PAGE ---- */
.success-box { text-align: center; padding: 40px 32px; }
.success-icon { font-size: 72px; margin-bottom: 16px; animation: bounceIn 0.6s ease; }
.success-code { display: inline-block; background: linear-gradient(135deg, var(--ssu-blue) 0%, var(--ssu-blue-light) 100%); color: white; padding: 14px 32px; border-radius: var(--radius); font-size: 24px; font-weight: 800; letter-spacing: 2px; margin: 16px 0; box-shadow: var(--shadow); }

@keyframes bounceIn {
  0% { transform: scale(0.5); opacity: 0; }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---- TRACKER ---- */
.tracker-form { display: flex; gap: 10px; margin-bottom: 24px; }
.tracker-form .form-control { flex: 1; text-transform: uppercase; letter-spacing: 1px; }
.timeline { padding: 0; list-style: none; }
.timeline li { padding: 14px 14px 14px 50px; position: relative; border-left: 3px solid var(--ssu-border); margin-left: 20px; margin-bottom: 4px; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: attr(data-icon); position: absolute; left: -22px; top: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--ssu-white); border: 3px solid var(--ssu-border); display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; padding: 8px; }
.timeline li.active { border-left-color: var(--ssu-blue); }
.timeline li.active::before { border-color: var(--ssu-blue); background: var(--ssu-blue); }

/* ---- FOOTER ---- */
.site-footer {
  background: linear-gradient(180deg, var(--ssu-blue) 0%, var(--ssu-blue-darker) 100%);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 28px 20px 20px;
  margin-top: 40px;
}
.site-footer p { font-size: 13px; margin-bottom: 4px; }
.site-footer strong { color: var(--ssu-yellow); }

.footer-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 16px;
  width: 100%;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.footer-contact-item:hover {
  background: rgba(255,255,255,0.09);
  color: var(--ssu-gold);
}
.footer-contact-item--address {
  white-space: normal;
  text-align: center;
}

.footer-icon { font-size: 13px; flex-shrink: 0; }
.footer-icon--blue { color: #7ab0f8; }
.footer-icon--gold { color: var(--ssu-gold); }

.footer-divider {
  width: min(80%, 560px);
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 0 auto;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.50);
  line-height: 1.7;
  text-align: center;
  margin: 0;
}
.footer-legal-text { color: rgba(255,255,255,0.50); }
.footer-legal-sep { color: rgba(255,255,255,0.25); font-size: 14px; line-height: 1; }
.footer-legal-link {
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  border-bottom: 1px solid rgba(240,192,64,0.35);
  padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s;
}
.footer-legal-link:hover { color: var(--ssu-gold); border-color: var(--ssu-gold); }

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.32);
  margin: 0;
}

.footer-links { display: flex; justify-content: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 12px; }
.footer-links a:hover { color: var(--ssu-yellow); }

@media (max-width: 768px) {
  .site-footer { padding: 22px 16px 16px; }
  .footer-contacts { gap: 4px 12px; }
  .footer-contact-item { font-size: 12px; padding: 5px 8px; }
}
@media (max-width: 480px) {
  .footer-contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    text-align: left;
    justify-items: start;
  }
  .footer-contact-item--address {
    grid-column: 1 / -1;
    justify-self: center;
    white-space: normal;
    text-align: center;
  }
  .footer-contact-item { font-size: 11.5px; padding: 5px 6px; }
  .footer-legal { font-size: 10.5px; }
  .footer-legal-sep { display: none; }
  .footer-legal-text,
  .footer-legal-link { display: block; text-align: center; }
  .footer-divider { width: 90%; }
}
@media (max-width: 360px) {
  .footer-contacts { grid-template-columns: 1fr; justify-items: center; }
  .footer-contact-item--address { grid-column: auto; }
  .footer-contact-item { font-size: 11px; }
}

/* ---- ADMIN LAYOUT ---- */
.admin-wrapper { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--ssu-blue) 0%, var(--ssu-blue-dark) 100%);
  color: white;
  flex-shrink: 0;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  overflow-y: auto; z-index: 100; transition: transform 0.3s ease;
}

.sidebar-brand { padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 12px; }
.sidebar-brand img { width: 40px; height: 40px; }
.sidebar-brand div h4 { font-size: 14px; font-weight: 700; color: var(--ssu-yellow); }
.sidebar-brand div p { font-size: 11px; opacity: 0.7; }

.sidebar-nav { padding: 16px 0; flex: 1; }
.sidebar-section { padding: 8px 16px 4px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  color: rgba(255,255,255,0.75);
  font-size: 14px; transition: var(--transition); text-decoration: none;
  border-left: 3px solid transparent;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,255,255,0.08);
  color: white;
  border-left-color: var(--ssu-yellow);
}
.sidebar-link.active { color: var(--ssu-yellow); }
.sidebar-link.active .sidebar-icon-wrap.bg-yellow { background: rgba(255,215,0,0.30); }
.sidebar-link.active .sidebar-icon-wrap.bg-blue   { background: rgba(96,165,250,0.30); }

.sidebar-footer {
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}
.sidebar-footer-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.35);
  margin: 0 2px 8px;
}
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 12px;
}
.sidebar-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ssu-yellow) 0%, #e6a817 100%);
  color: #102A6B;
  font-weight: 800;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,215,0,0.25);
}
.sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  flex: 1;
}
.sidebar-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255,215,0,0.15);
  color: var(--ssu-yellow);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255,215,0,0.3);
  width: fit-content;
}
.sidebar-logout-btn {
  flex-shrink: 0;
  color: rgba(255,255,255,0.4);
  font-size: 17px;
  text-decoration: none;
  transition: color 0.2s;
  padding: 2px 0 2px 4px;
}
.sidebar-logout-btn:hover { color: #ff6b6b; }

.sidebar-who {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-who > i {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.sidebar-who div p {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  margin: 0;
  line-height: 1.3;
}
.sidebar-who div span {
  font-size: 9px;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.admin-topbar { background: white; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 50; }
.admin-topbar h2 { font-size: 18px; color: var(--ssu-blue); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.admin-user { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.admin-user .avatar { width: 36px; height: 36px; background: var(--ssu-blue); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }

.admin-body { padding: 28px; flex: 1; }

/* ---- STATS CARDS ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }

.stat-card { background: white; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; transition: var(--transition); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-icon.blue        { background: rgba(16,42,107,0.10); color: #102A6B; }
.stat-icon.green       { background: rgba(16,42,107,0.10); color: #102A6B; }
.stat-icon.gold        { background: rgba(255,215,0,0.18); color: #B8900A; }
.stat-icon.yellow      { background: rgba(255,215,0,0.18); color: #B8900A; }
.stat-icon.black-icon  { background: rgba(0,0,0,0.07);    color: #1a1a1a; }
.stat-icon.red         { background: rgba(231,76,60,0.10); color: #e74c3c; }

.stat-info h3 { font-size: 26px; font-weight: 800; color: var(--ssu-blue); line-height: 1; }
.stat-info p  { font-size: 12px; color: var(--ssu-text-muted); margin-top: 4px; }

/* Stat number color modifiers */
.num-blue   { color: #102A6B !important; }
.num-yellow { color: #B8900A !important; }
.num-black  { color: #1a1a1a !important; }

/* ---- DASHBOARD CHARTS (combined card) ---- */
.dashboard-charts-card { margin-bottom: 24px; padding: 24px 28px 28px; }
.dashboard-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.dashboard-chart-block + .dashboard-chart-block {
  border-left: 1px solid var(--ssu-border);
  padding-left: 32px;
}
.dashboard-chart-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ssu-blue);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--ssu-yellow);
}
.dashboard-chart-canvas-wrap {
  position: relative;
  min-height: 240px;
}
.dashboard-chart-canvas-wrap canvas {
  max-height: 280px;
}
.dashboard-chart-empty {
  padding: 48px 20px;
  font-size: 14px;
}

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: var(--ssu-blue); color: white; padding: 12px 14px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
td { padding: 11px 14px; border-bottom: 1px solid var(--ssu-border); vertical-align: middle; }
tr:hover td { background: var(--ssu-gray); }
tr:last-child td { border-bottom: none; }

/* ---- FILTERS ---- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; align-items: flex-end; }
.filter-bar .form-group { margin: 0; flex: 1; min-width: 160px; }
.filter-bar select, .filter-bar input { font-size: 14px; padding: 9px 12px; }

/* ---- MOBILE MENU TOGGLE ---- */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ssu-yellow); font-size: 22px; padding: 4px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .header-top { padding: 10px 14px; }
  .header-logo { width: 40px; height: 40px; }
  .header-title h1 { font-size: 14px; }
  .header-title p { display: none; }
  .hero { padding: 40px 16px 60px; }
  .hero h2 { font-size: 22px; }
  .hero-logo { width: 72px; height: 72px; }
  .main-content { margin-top: -30px; padding: 0 12px; }
  .card { padding: 20px 16px; }
  .rating-options { gap: 6px; }
  .rating-option label { padding: 10px 4px; }
  .rating-option label .rating-text { font-size: 10px; }
  .tracker-form { flex-direction: column; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .mobile-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-body { padding: 16px; }
  .dashboard-charts-grid {
    grid-template-columns: 1fr;
    gap: 24px 0;
  }
  .dashboard-chart-block + .dashboard-chart-block {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--ssu-border);
    padding-top: 24px;
  }
  .dashboard-charts-card { padding: 20px 16px; }
  .admin-topbar { padding: 12px 16px; }
  .filter-bar { flex-direction: column; }
  .filter-bar .form-group { width: 100%; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .info-grid { grid-template-columns: 1fr; }
  table { font-size: 13px; }
  th, td { padding: 9px 10px; }
}

@media (max-width: 480px) {
  .rating-options { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .rating-option { min-width: 70px; flex-shrink: 0; }
  .type-options { gap: 6px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 14px; }
  .stat-icon { width: 40px; height: 40px; font-size: 18px; }
  .stat-info h3 { font-size: 20px; }
}

/* ---- MODAL ---- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-box { background: white; border-radius: var(--radius); max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--ssu-border); display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, var(--ssu-blue) 0%, var(--ssu-blue-mid) 100%); color: white; border-radius: var(--radius) var(--radius) 0 0; }
.modal-header h3 { font-size: 16px; }
.modal-close { background: none; border: none; color: white; font-size: 20px; cursor: pointer; padding: 4px 8px; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--ssu-border); display: flex; gap: 10px; justify-content: flex-end; }

/* ---- MISC ---- */
.text-muted { color: var(--ssu-text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-bold { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.badge-blue { background: rgba(16,42,107,0.1); color: var(--ssu-blue); }
.divider { border: none; border-top: 1px solid var(--ssu-border); margin: 20px 0; }
.loading { text-align: center; padding: 40px; color: var(--ssu-text-muted); }

/* ---- RATING ICON STYLES (public form) ---- */
.rating-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transition: var(--transition);
  margin-bottom: 2px;
}
.rating-icon-wrap .bi {
  font-size: 30px;
  line-height: 1;
}

/* Default (unselected) — muted grey */
.rating-icon-1 .bi { color: #9ca3af; }
.rating-icon-2 .bi { color: #9ca3af; }
.rating-icon-3 .bi { color: #9ca3af; }
.rating-icon-4 .bi { color: #9ca3af; }
.rating-icon-5 .bi { color: #9ca3af; }

/* Hover / checked state per rating */
.rating-option[data-rating="1"] input:checked + label .rating-icon-1 .bi,
.rating-option[data-rating="1"] label:hover .rating-icon-1 .bi { color: #dc2626; }

.rating-option[data-rating="2"] input:checked + label .rating-icon-2 .bi,
.rating-option[data-rating="2"] label:hover .rating-icon-2 .bi { color: #f97316; }

.rating-option[data-rating="3"] input:checked + label .rating-icon-3 .bi,
.rating-option[data-rating="3"] label:hover .rating-icon-3 .bi { color: #6c757d; }

.rating-option[data-rating="4"] input:checked + label .rating-icon-4 .bi,
.rating-option[data-rating="4"] label:hover .rating-icon-4 .bi { color: #2E5FC4; }

.rating-option[data-rating="5"] input:checked + label .rating-icon-5 .bi,
.rating-option[data-rating="5"] label:hover .rating-icon-5 .bi { color: #FFD700; }

/* Scale icon on hover/select */
.rating-option label:hover .rating-icon-wrap,
.rating-option input:checked + label .rating-icon-wrap {
  transform: scale(1.18);
}

/* Keep label layout correct since we replaced .emoji span */
.rating-option label {
  gap: 4px;
}

@media print {
  .site-header, .site-footer, .btn, .admin-sidebar, .admin-topbar { display: none !important; }
  .admin-main { margin-left: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ============================================
   MULTI-STEP FORM STYLES (CC Form v2)
   ============================================ */

/* Step Progress */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 28px;
  flex-wrap: wrap;
  gap: 4px;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: default;
}
.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e2e6ee;
  color: #888;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.step-item.active .step-circle { background: var(--ssu-blue); color: #fff; box-shadow: 0 2px 8px rgba(27,67,153,0.4); }
.step-item.done .step-circle { background: var(--ssu-gold); color: var(--ssu-blue); }
.step-item span { font-size: 11px; color: #888; white-space: nowrap; }
.step-item.active span { color: var(--ssu-blue); font-weight: 700; }
.step-item.done span { color: #888; }
.step-connector { flex: 1; height: 3px; background: #e2e6ee; min-width: 20px; max-width: 50px; border-radius: 2px; transition: all 0.3s; }

/* Form Steps */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.step-header { margin-bottom: 20px; }
.step-header h3 { color: var(--ssu-blue); font-size: 16px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.step-desc { color: var(--ssu-text-muted); font-size: 13px; margin: 0; }

/* CC Questions */
.cc-question-block { background: var(--ssu-gray); border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; border-left: 4px solid var(--ssu-blue); }
.cc-q-label { font-size: 14px; font-weight: 600; color: var(--ssu-blue); margin: 0 0 12px; }
.cc-options { display: flex; flex-direction: column; gap: 8px; }
.cc-option { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 8px 12px; border-radius: 8px; transition: background 0.2s; font-size: 13px; }
.cc-option:hover { background: rgba(27,67,153,0.06); }
.cc-option input[type="radio"] { margin-top: 2px; accent-color: var(--ssu-blue); }

/* Survey Table */
.survey-legend {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
  background: var(--ssu-gray); border-radius: 8px; padding: 10px 14px;
}
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ssu-text-muted); }
.legend-icon { font-size: 18px; line-height: 1; }
.sh-icon { font-size: 20px; display: block; margin-bottom: 2px; }

.survey-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--ssu-border); }
.survey-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.survey-table thead th { background: var(--ssu-blue); color: #fff; padding: 10px 8px; text-align: center; font-size: 12px; white-space: nowrap; }
.survey-table thead th:first-child { text-align: left; padding-left: 14px; }
.dimension-header td { background: #f0f4fb; color: var(--ssu-blue); font-weight: 700; font-size: 13px; padding: 10px 14px; border-bottom: 1px solid var(--ssu-border); }
.dimension-header td i { margin-right: 6px; }
.survey-row td { border-bottom: 1px solid var(--ssu-border); vertical-align: middle; }
.survey-row:last-child td { border-bottom: none; }
.survey-row:hover { background: rgba(27,67,153,0.03); }
.q-text { padding: 10px 8px 10px 14px; font-size: 13px; line-height: 1.4; color: var(--ssu-text); }
.q-num { display: inline-flex; width: 22px; height: 22px; background: var(--ssu-blue); color: #fff; border-radius: 50%; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; margin-right: 8px; flex-shrink: 0; }
.scale-col { width: 64px; text-align: center; font-size: 11px; padding: 8px 4px; white-space: nowrap; }
.sh5{font-size:22px;} .sh4{font-size:22px;} .sh3{font-size:22px;} .sh2{font-size:22px;} .sh1{font-size:22px;}

/* Rating icon color scale */
.si-r5 { color: #2ecc71; }
.si-r4 { color: #27ae60; }
.si-r3 { color: #f39c12; }
.si-r2 { color: #e67e22; }
.si-r1 { color: #e74c3c; }

/* --- Survey radio cells --- */
.scale-cell { text-align: center; padding: 8px 2px; transition: background 0.2s; }
.scale-cell.selected { background: rgba(0,0,0,0.04); border-radius: 8px; }

.emoji-radio { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.emoji-radio input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.emoji-face {
  font-size: 22px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #f5f5f5;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.18s, background 0.18s, border-color 0.18s;
  user-select: none;
  opacity: 0.45;
}
.emoji-face i { font-size: 20px; }
.emoji-radio:hover .emoji-face {
  transform: scale(1.2);
  opacity: 0.75;
  background: #ececec;
  border-color: #9ca3af;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.emoji-radio input:checked + .emoji-face {
  transform: scale(1.28);
  opacity: 1;
  background: #fff;
  box-shadow: 0 4px 14px rgba(27,67,153,0.22);
}
.r5 input:checked + .emoji-face { border-color: #2ecc71; background: #f0fff6; }
.r4 input:checked + .emoji-face { border-color: #27ae60; background: #f0faf4; }
.r3 input:checked + .emoji-face { border-color: #f39c12; background: #fffbf0; }
.r2 input:checked + .emoji-face { border-color: #e67e22; background: #fff8f0; }
.r1 input:checked + .emoji-face { border-color: #e74c3c; background: #fff5f5; }

/* Captcha Box */
.captcha-box {
  background: var(--ssu-white);
  border-radius: 10px;
  margin: 16px 0;
  border: 2px solid var(--ssu-border);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: border-color 0.2s;
}
.captcha-box:focus-within { border-color: var(--ssu-blue-mid); }
.robot-check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
}
.robot-check input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--ssu-blue-mid);
  cursor: pointer;
  flex-shrink: 0;
}
.robot-check label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 12px;
}
.robot-check-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--ssu-blue);
}
.robot-check-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding-left: 16px;
  border-left: 1px solid var(--ssu-border);
  flex-shrink: 0;
}
.robot-check-brand i {
  font-size: 24px;
  color: var(--ssu-blue-mid);
}
.robot-check-brand span {
  font-size: 9px;
  font-weight: 700;
  color: var(--ssu-text-muted);
  letter-spacing: 0.4px;
  text-align: center;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Math CAPTCHA */
.math-captcha {
  display: none;
  border-top: 1.5px dashed var(--ssu-border);
  padding: 12px 18px 10px;
  background: #f6f9ff;
  transition: all 0.25s ease;
}
.math-captcha.visible {
  display: block;
}
.math-captcha-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.math-captcha-icon {
  font-size: 17px;
  color: var(--ssu-blue-mid);
  flex-shrink: 0;
}
.math-captcha-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ssu-blue);
  flex-shrink: 0;
}
.math-captcha-problem {
  font-size: 16px;
  font-weight: 700;
  color: var(--ssu-blue);
  font-family: 'Courier New', monospace;
  background: #fff;
  border: 1.5px solid var(--ssu-border);
  border-radius: 6px;
  padding: 4px 10px;
  letter-spacing: 1px;
}
.math-captcha-eq {
  font-size: 16px;
  font-weight: 700;
  color: var(--ssu-text-muted);
}
.math-captcha-input {
  width: 72px;
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid var(--ssu-border);
  border-radius: 7px;
  text-align: center;
  color: var(--ssu-blue);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
  appearance: textfield;
}
.math-captcha-input::-webkit-outer-spin-button,
.math-captcha-input::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.math-captcha-input:focus { border-color: var(--ssu-blue-mid); }
.math-captcha-refresh {
  background: none;
  border: 1.5px solid var(--ssu-border);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: var(--ssu-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}
.math-captcha-refresh:hover { border-color: var(--ssu-blue-mid); color: var(--ssu-blue-mid); }
.math-captcha-hint {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  min-height: 15px;
  font-weight: 600;
}

/* Submit Summary */
.submit-summary {
  background: #fff;
  border-radius: 14px;
  margin-top: 20px;
  border: 1.5px solid #d0dff7;
  box-shadow: 0 4px 20px rgba(16,42,107,0.09);
  overflow: hidden;
}
.submit-summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--ssu-blue) 0%, var(--ssu-blue-mid) 100%);
  padding: 14px 20px;
}
.submit-summary-header i {
  font-size: 18px;
  color: var(--ssu-gold);
}
.submit-summary-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.2px;
}
.submit-summary-header .summary-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.18);
  color: var(--ssu-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.submit-summary-body {
  padding: 16px 20px;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.summary-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--ssu-gray);
  border-radius: 8px;
  padding: 10px 13px;
  border-left: 3px solid var(--ssu-gold);
}
.summary-item span {
  font-size: 10px;
  font-weight: 700;
  color: var(--ssu-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.summary-item strong {
  font-size: 13px;
  color: var(--ssu-blue);
  font-weight: 600;
  line-height: 1.4;
}
.summary-item.full-width {
  grid-column: 1 / -1;
  border-left-color: var(--ssu-blue-light);
}

/* FRM Info Grid */
.frm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.frm-item h4 { color: var(--ssu-blue); font-size: 14px; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.frm-item p, .frm-item li { font-size: 13px; color: var(--ssu-text-muted); line-height: 1.6; }
@media (max-width: 640px) {
  .frm-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .submit-summary-header { padding: 12px 16px; }
  .submit-summary-body { padding: 12px 14px; }
  .step-connector { min-width: 10px; }
}

/* Admin: CC View */
.cc-view-list { display: flex; flex-direction: column; gap: 12px; }
.cc-view-item { background: var(--ssu-gray); border-radius: 8px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.cc-label { font-size: 11px; color: var(--ssu-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.cc-answer { font-size: 13px; color: var(--ssu-text); font-weight: 600; }

/* Admin: Survey result rows */
.survey-dim-header { background: #f0f4fb; color: var(--ssu-blue); font-weight: 700; font-size: 12px; padding: 8px 16px; border-top: 1px solid var(--ssu-border); text-transform: uppercase; letter-spacing: 0.5px; margin: 0; }
.survey-result-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--ssu-border); }
.survey-result-row:last-child { border-bottom: none; }
.srv-q { font-size: 13px; color: var(--ssu-text); line-height: 1.4; }
.srv-scale { display: flex; align-items: center; gap: 4px; }
.srv-dot { width: 26px; height: 26px; border-radius: 50%; background: #e2e6ee; color: #aaa; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.srv-dot.active { color: #fff; }
.srv-label { font-size: 11px; font-weight: 700; margin-left: 6px; white-space: nowrap; }

/* Detail grid for view_feedback */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-item { background: var(--ssu-gray); border-radius: 8px; padding: 10px 14px; }
.detail-item span { display: block; font-size: 11px; color: var(--ssu-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.detail-item strong { font-size: 13px; color: var(--ssu-text); }

@media (max-width: 600px) {
  .detail-grid { grid-template-columns: 1fr; }
  .survey-result-row { grid-template-columns: 1fr; }
}

/* ============================================
   MOBILE-FIRST RESPONSIVE OVERHAUL
   ============================================ */

/* Reusable 2-col responsive grid */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ---- Client Type Toggle (External/Internal) ---- */
.client-group-tabs {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--ssu-blue);
  margin-bottom: 14px;
  width: 100%;
}
.client-group-tab {
  flex: 1;
  padding: 11px 16px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: none;
  background: #f5f7fa;
  color: var(--ssu-text-muted);
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.client-group-tab:first-child { border-right: 2px solid var(--ssu-blue); }
.client-group-tab.active {
  background: var(--ssu-blue);
  color: #fff;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.12);
}
.client-group-tab i { font-size: 15px; }

/* Panel shown per tab */
.client-type-panel { display: none; }
.client-type-panel.active { display: block; }

/* Type option cards — bigger touch targets */
.type-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.type-card-option input[type="radio"] { display: none; }
.type-card-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 8px;
  border: 2px solid var(--ssu-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  min-height: 56px;
  transition: all 0.2s ease;
  color: var(--ssu-text-muted);
  background: #fff;
}
.type-card-option label i { font-size: 18px; margin-bottom: 2px; }
.type-card-option input:checked + label {
  border-color: var(--ssu-blue);
  background: rgba(16,42,107,0.07);
  color: var(--ssu-blue);
  box-shadow: 0 2px 8px rgba(16,42,107,0.15);
}
.type-card-option label:hover {
  border-color: var(--ssu-blue-light);
  background: rgba(46,95,196,0.04);
  color: var(--ssu-blue-light);
  transform: translateY(-1px);
}

/* ---- Responsive Breakpoints ---- */

/* Tablet / normal mobile (≤768px) */
@media (max-width: 768px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step-progress {
    gap: 2px;
    margin-bottom: 20px;
  }
  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .step-item span { font-size: 10px; }
  .step-connector { min-width: 10px; max-width: 30px; }

  /* Larger emoji tap targets */
  .emoji-face {
    width: 36px;
    height: 36px;
  }
  .emoji-face i { font-size: 18px; }

  /* Client type cards 2-col on mobile */
  .type-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .type-card-option label { font-size: 12px; min-height: 52px; }

  /* Step header font */
  .step-header h3 { font-size: 15px; }

  /* Hero adjustments */
  .hero { padding: 36px 14px 56px; }
  .hero h2 { font-size: 20px; }
  .hero p { font-size: 14px; }
  .hero-logo { width: 68px; height: 68px; }

  /* Card padding */
  .card { padding: 18px 14px; }

  /* Buttons full width in step nav */
  .step-nav-row {
    gap: 10px;
  }
  .step-nav-row .btn {
    flex: 1;
    padding: 13px 10px;
    font-size: 14px;
  }

  /* Survey table: show emoji without text header */
  .survey-table thead th small { display: none; }
  .sh-icon { font-size: 18px; }
  .scale-col { width: 44px; padding: 6px 2px; }
  .q-text { font-size: 12px; padding: 10px 6px 10px 10px; }
  .q-num { width: 20px; height: 20px; font-size: 10px; margin-right: 5px; }

  /* FRM grid */
  .frm-grid { grid-template-columns: 1fr; gap: 14px; }
  .summary-grid { grid-template-columns: 1fr; }

  /* Privacy check */
  .privacy-check { padding: 12px; }
  .privacy-check label { font-size: 12px; }
}

/* Small mobile — messenger view ~360–380px */
@media (max-width: 480px) {
  .main-content { padding: 0 8px; margin-top: -25px; }
  .card { padding: 16px 12px; border-radius: 10px; }

  .step-progress { gap: 1px; margin-bottom: 16px; }
  .step-circle { width: 28px; height: 28px; font-size: 11px; }
  .step-item span { font-size: 9px; }
  .step-connector { min-width: 6px; max-width: 20px; height: 2px; }

  .step-header h3 { font-size: 14px; }
  .step-desc { font-size: 12px; }
  .form-label { font-size: 13px; }
  .form-control { padding: 10px 12px; font-size: 14px; }

  /* Client type tabs full-width */
  .client-group-tab { padding: 10px 8px; font-size: 12px; }
  .type-options-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .type-card-option label { padding: 10px 6px; min-height: 48px; font-size: 11px; }
  .type-card-option label i { font-size: 16px; }

  /* Survey table: horizontal scroll optimized */
  .survey-table-wrap {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .survey-table { min-width: 420px; }
  .survey-table thead th:first-child { min-width: 140px; }
  .scale-col { width: 40px; }
  .emoji-face { width: 32px; height: 32px; }
  .emoji-face i { font-size: 16px; }

  /* Legend scrollable */
  .survey-legend {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px;
    gap: 10px;
  }
  .legend-item { flex-shrink: 0; }

  /* Buttons */
  .btn { font-size: 13px; padding: 12px 14px; }
  .step-nav-row .btn { padding: 12px 10px; font-size: 13px; }

  /* CC options larger tap area */
  .cc-option { padding: 10px; }
  .cc-option span { font-size: 12px; }

  /* Hero */
  .hero { padding: 28px 12px 48px; }
  .hero h2 { font-size: 18px; }
  .hero-logo { width: 60px; height: 60px; }
  .hero p { font-size: 13px; }
  .gold-divider { margin-bottom: 16px; }

  /* Submit summary */
  .submit-summary h4 { font-size: 12px; }
  .summary-grid div { flex-direction: column; gap: 3px; }

  /* Captcha box */
  .captcha-box { margin: 12px 0; }
  .robot-check { padding: 14px 14px; gap: 12px; }
  .robot-check-text { font-size: 13px; }
  .math-captcha { padding: 10px 14px 8px; }
  .math-captcha-input { width: 60px; }
  .math-captcha-problem { font-size: 14px; padding: 3px 8px; }
}

/* Extra tiny — under 360px (some older Androids, small messenger panels) */
@media (max-width: 360px) {
  .card { padding: 14px 10px; }
  .step-circle { width: 26px; height: 26px; font-size: 10px; }
  .step-item span { display: none; }
  .step-connector { min-width: 4px; max-width: 14px; }
  .type-options-grid { grid-template-columns: repeat(2, 1fr); }
  .type-card-option label { min-height: 44px; font-size: 11px; }
  .form-control { font-size: 13px; }
  .hero h2 { font-size: 16px; }
  .hero-logo { width: 52px; height: 52px; }
}

/* ---- STEP NAV ROW UTILITY ---- */
.step-nav-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- STEP ERROR MODAL ---- */
.step-error-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 25, 55, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.step-error-modal.show {
  display: flex;
  animation: fadeOverlay 0.2s ease;
}
.step-error-modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.step-error-modal-header {
  background: linear-gradient(135deg, #c0392b 0%, #96281b 100%);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.step-error-modal-header .bi {
  color: var(--ssu-gold);
  font-size: 20px;
  flex-shrink: 0;
}
.step-error-modal-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: #fff8f8;
}
.step-error-modal-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #c0392b;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.step-error-modal-msg {
  color: #7b1a1a;
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}
.step-error-list {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
}
.step-error-list li {
  color: #7b1a1a;
  font-size: 14px;
  line-height: 1.55;
}
.step-error-modal-footer {
  padding: 14px 20px 18px;
  background: #fff;
  text-align: center;
  border-top: 1px solid #fde8e8;
}
.step-error-modal-footer .btn {
  min-width: 140px;
  padding: 12px 28px;
}

/* ---- LOGOUT CONFIRMATION MODAL ---- */
.logout-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 55, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeOverlay 0.2s ease;
}
.logout-modal-overlay.show {
  display: flex;
}
@keyframes fadeOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.logout-modal-box {
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px 28px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(16,42,107,0.25);
  animation: slideUp 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes slideUp {
  from { transform: translateY(30px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}

.logout-modal-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff4cc 0%, #ffe680 100%);
  border: 3px solid var(--ssu-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.logout-modal-icon .bi {
  font-size: 30px;
  color: #c47d00;
}

.logout-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ssu-blue);
  margin: 0 0 8px;
}
.logout-modal-msg {
  font-size: 14px;
  color: var(--ssu-text-muted);
  margin: 0 0 26px;
}

.logout-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.logout-btn-yes,
.logout-btn-no {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.22s ease;
  text-decoration: none;
}

.logout-btn-yes {
  background: linear-gradient(135deg, var(--ssu-blue) 0%, var(--ssu-blue-light) 100%);
  color: #fff;
  border-color: var(--ssu-blue);
}
.logout-btn-yes:hover {
  background: linear-gradient(135deg, var(--ssu-blue-dark) 0%, var(--ssu-blue-mid) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16,42,107,0.3);
}

.logout-btn-no {
  background: #fff;
  color: var(--ssu-blue);
  border-color: var(--ssu-border);
}
.logout-btn-no:hover {
  background: var(--ssu-gray);
  border-color: var(--ssu-blue-light);
  color: var(--ssu-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16,42,107,0.1);
}

/* Close modal on overlay click */
.logout-modal-overlay.show:not(:has(.logout-modal-box:hover)) {
  cursor: pointer;
}

/* ---- DELETE CONFIRMATION MODAL ---- */
.del-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(80, 10, 10, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeOverlay 0.2s ease;
}
.del-modal-overlay.show {
  display: flex;
}

.del-modal-box {
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px 28px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(180, 30, 30, 0.22);
  animation: slideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-top: 4px solid #e74c3c;
}

.del-modal-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff0f0 0%, #ffd5d5 100%);
  border: 3px solid #e74c3c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.del-modal-icon .bi {
  font-size: 28px;
  color: #e74c3c;
}

.del-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #c0392b;
  margin: 0 0 8px;
}
.del-modal-msg {
  font-size: 14px;
  color: var(--ssu-text-muted);
  margin: 0 0 4px;
}
.del-modal-code {
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--ssu-blue);
  background: var(--ssu-gray);
  display: inline-block;
  padding: 3px 12px;
  border-radius: 6px;
  margin: 0 0 12px;
  letter-spacing: 0.5px;
}
.del-modal-warn {
  font-size: 13px;
  color: #c0392b;
  background: #fff5f5;
  border: 1px solid #fcc;
  border-radius: 8px;
  padding: 8px 14px;
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.del-modal-warn .bi {
  font-size: 14px;
  flex-shrink: 0;
}

.del-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.del-btn-yes,
.del-btn-no {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.22s ease;
}

.del-btn-yes {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  color: #fff;
  border-color: #c0392b;
}
.del-btn-yes:hover {
  background: linear-gradient(135deg, #a93226 0%, #c0392b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(192, 57, 43, 0.35);
}

.del-btn-no {
  background: #fff;
  color: var(--ssu-blue);
  border-color: var(--ssu-border);
}
.del-btn-no:hover {
  background: var(--ssu-gray);
  border-color: var(--ssu-blue-light);
  color: var(--ssu-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 58, 107, 0.1);
}

/* ── Submit button loading spinner ── */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  vertical-align: middle;
  flex-shrink: 0;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
   COMMENTS & SUGGESTIONS — Public Card (Step 5)
   ═══════════════════════════════════════════════════════════════ */
.comments-card {
  border-radius: 14px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--ssu-white), var(--ssu-white)) padding-box,
    linear-gradient(135deg, var(--ssu-blue) 0%, var(--ssu-gold) 100%) border-box;
  box-shadow: 0 4px 24px rgba(16,42,107,0.10);
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
}
.comments-card.has-text {
  box-shadow: 0 6px 32px rgba(16,42,107,0.18);
  transform: translateY(-1px);
}
.comments-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--ssu-blue) 0%, var(--ssu-blue-mid) 100%);
  padding: 16px 20px;
}
.comments-card-icon-wrap {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--ssu-gold);
  flex-shrink: 0;
}
.comments-card-title {
  font-size: 16px; font-weight: 800;
  color: #fff; letter-spacing: 0.3px;
}
.comments-card-sub {
  font-size: 12px; color: rgba(255,255,255,0.75);
  margin-top: 2px;
}
.comments-card-body {
  padding: 18px 20px 14px;
}
.comments-label {
  display: flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 13px;
  color: var(--ssu-blue);
  margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.comments-textarea {
  width: 100%; box-sizing: border-box;
  min-height: 110px; resize: vertical;
  border: 2px solid var(--ssu-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px; font-weight: 600;
  color: var(--ssu-text);
  background: var(--ssu-gray);
  font-family: inherit;
  line-height: 1.6;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.comments-textarea:focus {
  outline: none;
  border-color: var(--ssu-blue-light);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(46,95,196,0.12);
}
.comments-textarea.filled {
  border-color: var(--ssu-gold-dark);
  background: #fffef5;
  box-shadow: 0 0 0 3px rgba(229,196,0,0.18);
  font-weight: 700;
}
.comments-footer-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; gap: 10px; flex-wrap: wrap;
}
.comments-hint {
  font-size: 11px; color: var(--ssu-text-muted);
  display: flex; align-items: center; gap: 5px;
}
.comments-hint i { color: #27ae60; }
.comments-counter {
  font-size: 11px; font-weight: 700;
  color: var(--ssu-text-muted);
  font-variant-numeric: tabular-nums;
}
.comments-counter.near-limit { color: #e67e22; }
.comments-counter.at-limit    { color: #e74c3c; }

/* ═══════════════════════════════════════════════════════════════
   COMMENTS & SUGGESTIONS — Admin View Highlight Card
   ═══════════════════════════════════════════════════════════════ */
.admin-comments-card {
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #fffbea 0%, #fff9e0 100%);
  box-shadow: 0 0 0 2.5px var(--ssu-gold), 0 6px 24px rgba(229,196,0,0.18);
  margin-bottom: 16px;
  overflow: hidden;
  animation: commentsPulse 1.4s ease-out;
}
@keyframes commentsPulse {
  0%   { box-shadow: 0 0 0 2.5px var(--ssu-gold), 0 6px 32px rgba(229,196,0,0.50); }
  60%  { box-shadow: 0 0 0 6px rgba(255,215,0,0.25), 0 6px 24px rgba(229,196,0,0.22); }
  100% { box-shadow: 0 0 0 2.5px var(--ssu-gold), 0 6px 24px rgba(229,196,0,0.18); }
}
.admin-comments-card .admin-comments-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 12px;
  background: linear-gradient(90deg, var(--ssu-blue) 0%, var(--ssu-blue-mid) 100%);
  border-bottom: 3px solid var(--ssu-gold);
}
.admin-comments-card .admin-comments-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 800;
  color: #fff;
}
.admin-comments-card .admin-comments-title i { color: var(--ssu-gold); font-size: 18px; }
.admin-comments-badge {
  background: var(--ssu-gold);
  color: var(--ssu-blue);
  font-size: 10px; font-weight: 800;
  padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.8px;
  display: flex; align-items: center; gap: 4px;
}
.admin-comments-body {
  padding: 18px 20px 20px;
  position: relative;
}
.admin-comments-quote-icon {
  position: absolute; top: 14px; right: 18px;
  font-size: 48px; color: rgba(229,196,0,0.20);
  line-height: 1; pointer-events: none;
  font-family: Georgia, serif; font-weight: 900;
}
.admin-comments-text {
  font-size: 15px; font-weight: 700;
  color: #1a2740;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  border-left: 4px solid var(--ssu-gold);
  padding-left: 14px;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   COMMENTS — List badge indicator
   ═══════════════════════════════════════════════════════════════ */
.comment-dot {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fffbea;
  border: 1.5px solid var(--ssu-gold-dark);
  color: #7a5c00;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 12px;
  white-space: nowrap;
}
.comment-dot i { color: var(--ssu-gold-dark); font-size: 11px; }

/* ═══════════════════════════════════════════════════════════════
   PRIVACY SPLASH PAGE
   ═══════════════════════════════════════════════════════════════ */
body.privacy-splash-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  background: linear-gradient(135deg, var(--ssu-blue) 0%, var(--ssu-blue-dark) 55%, var(--ssu-blue-mid) 100%);
  position: relative;
  overflow-x: hidden;
}
body.privacy-splash-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../images/bg_ssu.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
}
body.privacy-splash-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255,215,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(46,95,196,0.25) 0%, transparent 55%);
  pointer-events: none;
}
@media (min-height: 720px) {
  body.privacy-splash-page { align-items: center; }
}

.splash-card {
  position: relative;
  z-index: 1;
  background: var(--ssu-white);
  border-radius: 22px;
  max-width: 640px;
  width: 100%;
  box-shadow:
    0 4px 0 rgba(255,215,0,0.85),
    0 28px 70px rgba(0,0,0,0.42),
    0 0 0 1px rgba(255,255,255,0.08);
  overflow: hidden;
  animation: splashSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes splashSlideUp {
  from { opacity: 0; transform: translateY(36px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.splash-header {
  position: relative;
  background: linear-gradient(135deg, var(--ssu-blue-mid) 0%, var(--ssu-blue) 55%, var(--ssu-blue-dark) 100%);
  padding: 32px 28px 26px;
  text-align: center;
  overflow: hidden;
}
.splash-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,215,0,0.14) 0%, transparent 45%),
    radial-gradient(circle at 80% 100%, rgba(255,255,255,0.06) 0%, transparent 40%);
  pointer-events: none;
}
.splash-header > * { position: relative; z-index: 1; }

.splash-header img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 4px solid var(--ssu-gold);
  padding: 5px;
  background: rgba(255,255,255,0.95);
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.splash-header h2 {
  color: var(--ssu-white);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin: 14px 0 6px;
}
.splash-header h2 span { color: var(--ssu-gold); }
.splash-header p {
  color: rgba(255,255,255,0.78);
  font-size: 12.5px;
  margin: 0 0 12px;
  line-height: 1.55;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.splash-divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--ssu-gold), transparent);
  border-radius: 2px;
  margin: 0 auto 14px;
}
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,215,0,0.14);
  border: 1px solid rgba(255,215,0,0.45);
  color: var(--ssu-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(255,215,0,0.12);
}
.privacy-badge i { font-size: 12px; }

.splash-header--compact {
  padding: 22px 24px 20px;
}
.splash-header--compact img {
  width: 52px;
  height: 52px;
  border-width: 3px;
  padding: 3px;
}
.splash-header--compact h2 {
  font-size: 20px;
  margin: 10px 0 4px;
}
.splash-header--compact p {
  font-size: 11.5px;
  margin-bottom: 10px;
}

.splash-body--summary { padding-top: 22px; }

.privacy-summary {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.privacy-summary li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ssu-text-muted);
  line-height: 1.6;
  padding: 10px 12px;
  background: var(--ssu-gray);
  border: 1px solid var(--ssu-border);
  border-radius: 10px;
}
.privacy-summary li i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 13px;
  color: var(--ssu-blue-mid);
}
.privacy-summary li strong {
  color: var(--ssu-blue);
  font-weight: 700;
}

.splash-policy-link {
  display: block;
  text-align: center;
  font-size: 11.5px;
  color: var(--ssu-text-muted);
  margin-bottom: 16px;
}
.splash-policy-link a {
  color: var(--ssu-blue-mid);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(46,95,196,0.3);
}
.splash-policy-link a:hover { color: var(--ssu-blue); border-bottom-color: var(--ssu-blue); }

.splash-body { padding: 26px 28px 22px; }

.privacy-intro {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg, #f0f5ff 0%, #f8faff 100%);
  border: 1px solid rgba(27,67,153,0.12);
  border-left: 4px solid var(--ssu-blue-mid);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--ssu-blue);
  line-height: 1.75;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(16,42,107,0.06);
}
.privacy-intro-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(27,67,153,0.12);
  color: var(--ssu-blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-top: 1px;
}
.privacy-intro strong { color: var(--ssu-blue-mid); }

.privacy-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--ssu-text-muted);
  margin-bottom: 12px;
}
.privacy-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--ssu-border), transparent);
}

.privacy-points {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.privacy-point {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 15px;
  border-radius: 12px;
  background: var(--ssu-white);
  border: 1px solid var(--ssu-border);
  box-shadow: 0 2px 8px rgba(16,42,107,0.04);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  animation: splashPointIn 0.45s ease both;
}
.privacy-point:nth-child(1) { animation-delay: 0.08s; }
.privacy-point:nth-child(2) { animation-delay: 0.14s; }
.privacy-point:nth-child(3) { animation-delay: 0.20s; }
.privacy-point:nth-child(4) { animation-delay: 0.26s; }
@keyframes splashPointIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.privacy-point:hover {
  border-color: rgba(27,67,153,0.28);
  box-shadow: 0 6px 18px rgba(16,42,107,0.1);
  transform: translateY(-1px);
}

.pp-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.pp-blue  { background: rgba(27,67,153,0.12);  color: var(--ssu-blue-mid); }
.pp-gold  { background: rgba(255,215,0,0.18);  color: #9a7b00; }
.pp-green { background: rgba(46,125,50,0.12);   color: #2e7d32; }
.pp-red   { background: rgba(198,40,40,0.10);  color: #c62828; }

.pp-text h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ssu-blue);
  margin: 0 0 4px;
}
.pp-text p {
  font-size: 12.5px;
  color: var(--ssu-text-muted);
  margin: 0;
  line-height: 1.65;
}

.law-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.law-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
  letter-spacing: 0.1px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.law-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16,42,107,0.1);
}
.law-badge i { font-size: 11px; opacity: 0.9; }
.law-badge--privacy { background: #eef3fc; border-color: #c5d4f0; color: #1B4399; }
.law-badge--privacy i { color: var(--ssu-blue-mid); }
.law-badge--eodb    { background: #fffbea; border-color: #f0e0a0; color: #7a5c00; }
.law-badge--eodb i    { color: #b8900a; }
.law-badge--arta    { background: #f0f7f4; border-color: #b8dcc8; color: #1b5e3a; }
.law-badge--arta i    { color: #2e7d32; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8f9fc;
  border: 1.5px solid #dce2ef;
  border-left: 4px solid var(--ssu-blue-mid);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.consent-row:has(input:checked) {
  background: linear-gradient(135deg, #f4faf5 0%, #f8f9fc 100%);
  border-color: rgba(46,125,50,0.35);
  border-left-color: #2e7d32;
  box-shadow: 0 4px 14px rgba(46,125,50,0.08);
}
.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--ssu-blue-mid);
  flex-shrink: 0;
}
.consent-row label {
  font-size: 12.5px;
  color: #3b4f72;
  line-height: 1.75;
  cursor: pointer;
}
.consent-row label strong { color: var(--ssu-blue-mid); font-weight: 600; }
.consent-row label .voluntary { color: #2e7d32; font-weight: 600; }
.consent-row label a {
  color: var(--ssu-blue-mid);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(46,95,196,0.35);
  transition: border-color var(--transition), color var(--transition);
}
.consent-row label a:hover { color: var(--ssu-blue); border-bottom-color: var(--ssu-blue); }

.btn-proceed {
  background: linear-gradient(135deg, var(--ssu-blue) 0%, var(--ssu-blue-light) 100%);
  color: var(--ssu-white);
  border: none;
  border-radius: 12px;
  padding: 15px 40px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  box-shadow: 0 6px 20px rgba(16,42,107,0.32);
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-proceed i { font-size: 17px; transition: transform 0.2s ease; }
.btn-proceed:not(:disabled):hover {
  opacity: 0.95;
  box-shadow: 0 8px 26px rgba(16,42,107,0.38);
}
.btn-proceed:not(:disabled):hover i { transform: translateX(3px); }
.btn-proceed:not(:disabled):active { transform: scale(0.985); }
.btn-proceed:not(:disabled) {
  background: linear-gradient(135deg, var(--ssu-blue) 0%, var(--ssu-blue-light) 55%, #3D6FD4 100%);
}
.btn-proceed:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  background: linear-gradient(135deg, #8a9bb5 0%, #a8b4c8 100%);
}

.splash-footer {
  text-align: center;
  padding: 16px 28px 22px;
  font-size: 11px;
  color: var(--ssu-text-muted);
  border-top: 1px solid var(--ssu-border);
  background: linear-gradient(180deg, #fafbfd 0%, #f4f6fa 100%);
  line-height: 1.7;
}
.splash-footer a {
  color: var(--ssu-blue-mid);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(46,95,196,0.25);
  transition: color var(--transition), border-color var(--transition);
}
.splash-footer a:hover { color: var(--ssu-blue); border-bottom-color: var(--ssu-blue); }

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE (index1.php)
   ═══════════════════════════════════════════════════════════════ */
body.landing-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(135deg, var(--ssu-blue) 0%, var(--ssu-blue-dark) 55%, var(--ssu-blue-mid) 100%);
  position: relative;
  overflow-x: hidden;
}
body.landing-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../images/bg_ssu.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
}
body.landing-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255,215,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(46,95,196,0.25) 0%, transparent 55%);
  pointer-events: none;
}
@media (min-height: 720px) {
  body.landing-page { align-items: center; }
}

.landing-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.landing-hero {
  color: #fff;
  animation: splashSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-logo {
  width: clamp(140px, 22vw, 180px);
  height: auto;
  margin: 0 auto 24px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.28));
}

.landing-hero h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
  line-height: 1.15;
}
.landing-hero h1 span { color: var(--ssu-gold); }

.landing-tagline {
  font-size: 14px;
  opacity: 0.88;
  margin: 0 0 4px;
  line-height: 1.55;
}

.landing-system-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ssu-gold);
  margin: 0 auto 10px;
  max-width: 640px;
}

.landing-intro {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.92;
  margin: 0 auto 28px;
  max-width: 640px;
  text-align: center;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  text-align: center;
}
.landing-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  transition: background var(--transition), border-color var(--transition);
}
.landing-feature:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,215,0,0.35);
}
.landing-feature i {
  font-size: 24px;
  color: var(--ssu-gold);
}
.landing-feature strong {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}
.landing-feature span {
  font-size: 11.5px;
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
}

.landing-law-badges {
  justify-content: center;
  margin-bottom: 24px;
}

.landing-form {
  max-width: 400px;
  margin: 0 auto 20px;
}

.landing-btn {
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}

.landing-footer {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin: 0;
}
.landing-footer a {
  color: var(--ssu-gold);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,215,0,0.35);
}
.landing-footer a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

@media (max-width: 600px) {
  body.landing-page { padding: 20px 14px; }
  .landing-logo {
    width: clamp(120px, 30vw, 150px);
    margin-bottom: 20px;
  }
  .landing-hero h1 { font-size: 28px; }
  .landing-tagline { font-size: 13px; }
  .landing-intro { font-size: 14px; margin-bottom: 22px; }
  .landing-features { grid-template-columns: 1fr; gap: 10px; }
  .landing-feature {
    flex-direction: row;
    text-align: left;
    padding: 14px 16px;
  }
  .landing-feature i { font-size: 22px; }
  .landing-feature strong,
  .landing-feature span { display: block; }
}

@media (max-width: 600px) {
  body.privacy-splash-page { padding: 14px 10px; }
  .splash-card { border-radius: 18px; }
  .splash-header { padding: 24px 18px 20px; }
  .splash-header--compact { padding: 18px 16px 16px; }
  .splash-header img { width: 64px; height: 64px; }
  .splash-header--compact img { width: 48px; height: 48px; }
  .splash-header h2 { font-size: 21px; margin: 12px 0 5px; }
  .splash-header p { font-size: 11.5px; }
  .splash-body { padding: 20px 16px 16px; }
  .privacy-intro { font-size: 13px; padding: 14px 15px; margin-bottom: 16px; }
  .privacy-summary { gap: 7px; margin-bottom: 16px; }
  .privacy-summary li { font-size: 12px; padding: 9px 11px; }
  .privacy-points { gap: 8px; margin-bottom: 18px; }
  .privacy-point { padding: 12px 13px; gap: 11px; }
  .pp-icon { width: 34px; height: 34px; font-size: 15px; border-radius: 9px; }
  .pp-text h4 { font-size: 12.5px; }
  .pp-text p { font-size: 11.5px; }
  .law-badges { gap: 6px; margin-bottom: 18px; }
  .law-badge { font-size: 10.5px; padding: 6px 11px; }
  .consent-row { padding: 13px 14px; margin-bottom: 16px; }
  .consent-row label { font-size: 12px; }
  .btn-proceed { font-size: 14px; border-radius: 10px; min-height: 52px; }
  .splash-footer { padding: 14px 16px 18px; font-size: 10.5px; }
}
@media (max-width: 380px) {
  body.privacy-splash-page { padding: 10px 8px; }
  .splash-card { border-radius: 14px; }
  .splash-header { padding: 20px 14px 16px; }
  .splash-header img { width: 56px; height: 56px; border-width: 3px; }
  .splash-header h2 { font-size: 19px; }
  .splash-header p { font-size: 11px; }
  .privacy-badge { font-size: 10px; padding: 5px 12px; }
  .splash-body { padding: 16px 12px 12px; }
  .privacy-intro { font-size: 12px; padding: 12px; gap: 10px; }
  .privacy-intro-icon { width: 30px; height: 30px; font-size: 14px; }
  .pp-icon { width: 32px; height: 32px; font-size: 14px; }
  .pp-text h4 { font-size: 12px; }
  .pp-text p { font-size: 11px; }
  .law-badge { font-size: 10px; padding: 5px 9px; }
  .consent-row input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; }
  .btn-proceed { font-size: 13.5px; min-height: 50px; }
  .splash-footer { font-size: 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   PRIVACY POLICY MODAL
   ═══════════════════════════════════════════════════════════════ */
.pm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 25, 60, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.pm-overlay.pm-open {
  display: flex;
  animation: pmFadeIn 0.25s ease;
}
@keyframes pmFadeIn { from { opacity: 0; } to { opacity: 1; } }

.pm-dialog {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 4px 0 rgba(255,215,0,0.85),
    0 32px 80px rgba(0,0,0,0.45);
  animation: pmSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
@keyframes pmSlideUp {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pm-header {
  position: relative;
  background: linear-gradient(135deg, var(--ssu-blue-mid) 0%, var(--ssu-blue) 55%, var(--ssu-blue-dark) 100%);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  overflow: hidden;
}
.pm-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 0%, rgba(255,215,0,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.pm-header-left {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pm-header-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,215,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ssu-gold);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.pm-title {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}
.pm-sub {
  color: rgba(255,255,255,0.68);
  font-size: 11px;
  margin-top: 3px;
  line-height: 1.4;
}
.pm-close {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), transform 0.15s ease;
}
.pm-close:hover { background: rgba(255,255,255,0.24); }
.pm-close:active { transform: scale(0.94); }

.pm-body {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  padding: 22px 24px 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ssu-text);
}
.pm-body::-webkit-scrollbar { width: 6px; }
.pm-body::-webkit-scrollbar-thumb { background: #c5cfe8; border-radius: 4px; }
.pm-body::-webkit-scrollbar-track { background: transparent; }

.pm-intro {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg, #f0f5ff 0%, #f8faff 100%);
  border: 1px solid rgba(27,67,153,0.12);
  border-left: 4px solid var(--ssu-blue-mid);
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.pm-intro-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(27,67,153,0.12);
  color: var(--ssu-blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-top: 1px;
}
.pm-intro p {
  margin: 0;
  font-size: 13px;
  color: var(--ssu-blue);
  line-height: 1.7;
}
.pm-intro strong { color: var(--ssu-blue-mid); }

.pm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.pm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
  letter-spacing: 0.1px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.pm-badge i { font-size: 11px; opacity: 0.9; }
.pm-badge--privacy { background: #eef3fc; border-color: #c5d4f0; color: #1B4399; }
.pm-badge--privacy i { color: var(--ssu-blue-mid); }
.pm-badge--eodb    { background: #fffbea; border-color: #f0e0a0; color: #7a5c00; }
.pm-badge--eodb i    { color: #b8900a; }
.pm-badge--arta    { background: #f0f7f4; border-color: #b8dcc8; color: #1b5e3a; }
.pm-badge--arta i    { color: #2e7d32; }

.pm-section {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #fafbfd;
  border: 1px solid var(--ssu-border);
  border-radius: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pm-section:hover {
  border-color: rgba(27,67,153,0.22);
  box-shadow: 0 4px 14px rgba(16,42,107,0.06);
}
.pm-section h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ssu-blue);
  margin: 0 0 10px;
}
.pm-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--ssu-blue-mid), var(--ssu-blue));
  color: #fff;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(16,42,107,0.2);
}
.pm-section p { margin: 0 0 8px; font-size: 13px; color: var(--ssu-text-muted); }
.pm-section p:last-child { margin-bottom: 0; }

.pm-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.pm-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ssu-text-muted);
  line-height: 1.6;
}
.pm-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ssu-gold);
}
.pm-list li em { color: #2e7d32; font-style: normal; font-weight: 600; font-size: 12px; }

.pm-rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pm-right {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--ssu-border);
  border-radius: 10px;
  font-size: 12px;
  color: var(--ssu-text-muted);
  line-height: 1.45;
}
.pm-right i {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(27,67,153,0.1);
  color: var(--ssu-blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.pm-right strong { color: var(--ssu-blue); font-weight: 700; }
.pm-rights-grid .pm-right:last-child {
  grid-column: 1 / -1;
}

.pm-section--contact { background: linear-gradient(135deg, #f8faff 0%, #fafbfd 100%); }

.pm-contact-box {
  background: #fff;
  border: 1px solid var(--ssu-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 9px;
  margin-top: 4px;
}
.pm-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ssu-text);
  line-height: 1.55;
}
.pm-contact-row i {
  color: var(--ssu-blue-mid);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pm-contact-row a {
  color: var(--ssu-blue-mid);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(46,95,196,0.25);
  transition: color var(--transition), border-color var(--transition);
}
.pm-contact-row a:hover { color: var(--ssu-blue); border-bottom-color: var(--ssu-blue); }

.pm-updated {
  font-size: 11px;
  color: var(--ssu-text-muted);
  margin: 4px 0 0;
  text-align: center;
}

.pm-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--ssu-border);
  background: linear-gradient(180deg, #fafbfd 0%, #f4f6fa 100%);
}
.pm-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ssu-blue-mid);
  text-decoration: none;
  transition: color var(--transition);
}
.pm-footer-link:hover { color: var(--ssu-blue); }
.pm-footer-link i { font-size: 13px; }

.pm-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ssu-blue) 0%, var(--ssu-blue-light) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16,42,107,0.28);
  transition: opacity 0.2s, transform 0.15s;
  font-family: inherit;
}
.pm-footer-btn:hover { opacity: 0.94; }
.pm-footer-btn:active { transform: scale(0.98); }
.pm-footer-btn i { font-size: 15px; }

@media (max-width: 600px) {
  .pm-overlay.pm-open { padding: 12px; }
  .pm-dialog { max-height: 92vh; border-radius: 16px; }
  .pm-header { padding: 14px 16px; }
  .pm-header-icon { width: 40px; height: 40px; font-size: 17px; border-radius: 10px; }
  .pm-title { font-size: 14px; }
  .pm-sub { font-size: 10.5px; }
  .pm-body { padding: 16px 16px 10px; }
  .pm-intro { padding: 12px 14px; gap: 10px; }
  .pm-intro-icon { width: 28px; height: 28px; font-size: 13px; }
  .pm-badges { gap: 6px; margin-bottom: 16px; }
  .pm-badge { font-size: 10.5px; padding: 6px 11px; }
  .pm-section { padding: 12px 14px; margin-bottom: 12px; }
  .pm-rights-grid { grid-template-columns: 1fr; }
  .pm-rights-grid .pm-right:last-child { grid-column: auto; }
  .pm-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 12px 16px;
  }
  .pm-footer-link { justify-content: center; }
  .pm-footer-btn { justify-content: center; width: 100%; }
}
@media (max-width: 380px) {
  .pm-badge { font-size: 10px; padding: 5px 9px; white-space: normal; }
}

/* ═══════════════════════════════════════════════════════════════
   FRM MODAL (matches Privacy Policy Modal)
   ═══════════════════════════════════════════════════════════════ */
.frm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 25, 60, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.frm-overlay.frm-open {
  display: flex;
  animation: pmFadeIn 0.25s ease;
}

.frm-dialog {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 4px 0 rgba(255,215,0,0.85),
    0 32px 80px rgba(0,0,0,0.45);
  animation: pmSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.frm-header {
  position: relative;
  background: linear-gradient(135deg, var(--ssu-blue-mid) 0%, var(--ssu-blue) 55%, var(--ssu-blue-dark) 100%);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  overflow: hidden;
}
.frm-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 0%, rgba(255,215,0,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.frm-header-left {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.frm-header-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,215,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ssu-gold);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.frm-title {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}
.frm-sub {
  color: rgba(255,255,255,0.68);
  font-size: 11px;
  margin-top: 3px;
  line-height: 1.4;
}
.frm-close {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), transform 0.15s ease;
}
.frm-close:hover { background: rgba(255,255,255,0.24); }
.frm-close:active { transform: scale(0.94); }

.frm-body {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  padding: 22px 24px 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ssu-text);
}
.frm-body::-webkit-scrollbar { width: 6px; }
.frm-body::-webkit-scrollbar-thumb { background: #c5cfe8; border-radius: 4px; }
.frm-body::-webkit-scrollbar-track { background: transparent; }

.frm-intro {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg, #f0f5ff 0%, #f8faff 100%);
  border: 1px solid rgba(27,67,153,0.12);
  border-left: 4px solid var(--ssu-blue-mid);
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.frm-intro-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(27,67,153,0.12);
  color: var(--ssu-blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-top: 1px;
}
.frm-intro p {
  margin: 0;
  font-size: 13px;
  color: var(--ssu-blue);
  line-height: 1.7;
}

.frm-section {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #fafbfd;
  border: 1px solid var(--ssu-border);
  border-radius: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.frm-section:hover {
  border-color: rgba(27,67,153,0.22);
  box-shadow: 0 4px 14px rgba(16,42,107,0.06);
}
.frm-section h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ssu-blue);
  margin: 0 0 10px;
}
.frm-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--ssu-blue-mid), var(--ssu-blue));
  color: #fff;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(16,42,107,0.2);
}
.frm-section p {
  margin: 0;
  font-size: 13px;
  color: var(--ssu-text-muted);
  line-height: 1.65;
}

.frm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.frm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
  letter-spacing: 0.1px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.frm-badge i { font-size: 11px; opacity: 0.9; }
.frm-badge--arta { background: #f0f7f4; border-color: #b8dcc8; color: #1b5e3a; }
.frm-badge--arta i { color: #2e7d32; }
.frm-badge--eodb { background: #fffbea; border-color: #f0e0a0; color: #7a5c00; }
.frm-badge--eodb i { color: #b8900a; }
.frm-badge--csc { background: #eef3fc; border-color: #c5d4f0; color: #1B4399; }
.frm-badge--csc i { color: var(--ssu-blue-mid); }

.frm-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-top: 1px solid var(--ssu-border);
  background: linear-gradient(180deg, #fafbfd 0%, #f4f6fa 100%);
}
.frm-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 28px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ssu-blue) 0%, var(--ssu-blue-light) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16,42,107,0.28);
  transition: opacity 0.2s, transform 0.15s;
  font-family: inherit;
}
.frm-footer-btn:hover { opacity: 0.94; }
.frm-footer-btn:active { transform: scale(0.98); }
.frm-footer-btn i { font-size: 15px; }

@media (max-width: 600px) {
  .frm-overlay.frm-open { padding: 12px; }
  .frm-dialog { max-height: 92vh; border-radius: 16px; }
  .frm-header { padding: 14px 16px; }
  .frm-header-icon { width: 40px; height: 40px; font-size: 17px; border-radius: 10px; }
  .frm-title { font-size: 14px; }
  .frm-sub { font-size: 10.5px; }
  .frm-body { padding: 16px 16px 10px; }
  .frm-intro { padding: 12px 14px; gap: 10px; }
  .frm-intro-icon { width: 28px; height: 28px; font-size: 13px; }
  .frm-section { padding: 12px 14px; margin-bottom: 12px; }
  .frm-badges { gap: 6px; }
  .frm-badge { font-size: 10.5px; padding: 6px 11px; }
  .frm-footer { padding: 12px 16px; }
  .frm-footer-btn { justify-content: center; width: 100%; }
}
@media (max-width: 380px) {
  .frm-badge { font-size: 10px; padding: 5px 9px; white-space: normal; }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN LOGIN PAGE
   ═══════════════════════════════════════════════════════════════ */
body.admin-login-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: #fff;
}

.login-shell {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 920px;
  min-height: 520px;
  animation: splashSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-brand {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  border-right: 1px solid #e8ecf2;
}

.login-brand-logo {
  width: min(280px, 80%);
  height: auto;
  object-fit: contain;
}

.login-panel {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
}

.login-panel-inner {
  width: 100%;
  max-width: 340px;
}

.login-title {
  color: var(--ssu-blue);
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.login-subtitle {
  color: var(--ssu-text-muted);
  font-size: 14px;
  margin: 0 0 28px;
  line-height: 1.5;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff8f8;
  border: 1px solid #f5c6c6;
  border-left: 4px solid #c0392b;
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #7b1a1a;
  line-height: 1.55;
}
.login-alert i {
  color: #c0392b;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.login-form .form-group { margin-bottom: 18px; }
.login-form .form-label {
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
}

.login-input-wrap {
  position: relative;
}
.login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--ssu-text-muted);
  pointer-events: none;
  z-index: 1;
}
.login-input.form-control {
  padding: 12px 14px 12px 42px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: #f0f4f8;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.login-input.form-control:focus {
  background: #fff;
  border-color: var(--ssu-blue-mid);
  box-shadow: 0 0 0 3px rgba(16,42,107,0.1);
}
.login-input--password {
  padding-right: 44px !important;
}
.login-pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  color: var(--ssu-text-muted);
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
}
.login-pw-toggle:hover { color: var(--ssu-blue-mid); }

.login-submit.btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  justify-content: center;
  background: var(--ssu-blue);
  border-color: var(--ssu-blue);
}
.login-submit.btn:hover {
  background: var(--ssu-blue-mid);
  border-color: var(--ssu-blue-mid);
}

.login-hint {
  margin: 20px 0 0;
  font-size: 12.5px;
  color: var(--ssu-text-muted);
  line-height: 1.55;
  text-align: center;
}
.login-hint strong {
  color: #c0396b;
  font-weight: 700;
}

.login-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ssu-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.login-back-link:hover { color: var(--ssu-blue-mid); }
.login-back-link i { font-size: 14px; }

@media (max-width: 768px) {
  body.admin-login-page { padding: 24px 16px; }
  .login-shell {
    flex-direction: column;
    min-height: auto;
    max-width: 420px;
  }
  .login-brand {
    border-right: none;
    border-bottom: 1px solid #e8ecf2;
    padding: 32px 24px 28px;
  }
  .login-brand-logo { width: min(180px, 70%); }
  .login-panel { padding: 32px 28px 36px; }
  .login-panel-inner { max-width: none; }
  .login-title { font-size: 24px; }
  .login-subtitle { margin-bottom: 22px; }
}

@media (max-width: 480px) {
  body.admin-login-page { padding: 16px 12px; }
  .login-panel { padding: 28px 20px 32px; }
  .login-submit.btn { font-size: 14px; padding: 13px 16px; }
}
