/* ============================================================
   SOCIAL SPARK - Admin Panel Stylesheet
   ============================================================ */

:root {
  --admin-navy: #0a1f44;
  --admin-navy-deep: #061229;
  --admin-orange: #ff7a1a;
  --admin-orange-deep: #e85d00;
  --admin-bg: #f6f8fc;
  --admin-card: #ffffff;
  --admin-border: #e5e9f2;
  --admin-text: #1a2540;
  --admin-muted: #6b7388;
  --sidebar-w: 260px;

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  background: var(--admin-bg);
  color: var(--admin-text);
  margin: 0;
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--admin-orange); text-decoration: none; }
a:hover { color: var(--admin-orange-deep); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 122, 26, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(80, 130, 255, 0.3) 0%, transparent 40%),
    linear-gradient(135deg, var(--admin-navy-deep) 0%, var(--admin-navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 3rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.login-logo .logo-mark {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--admin-orange), var(--admin-orange-deep));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  box-shadow: 0 10px 30px rgba(255, 122, 26, 0.4);
}

.login-logo .brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--admin-navy);
  line-height: 1;
}
.login-logo .brand small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--admin-orange);
  font-weight: 600;
  margin-top: 0.3rem;
  text-transform: uppercase;
}

.login-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--admin-navy);
}

.login-card .subtitle {
  color: var(--admin-muted);
  margin-bottom: 2rem;
  font-size: 0.92rem;
}

.login-form .form-group { margin-bottom: 1.2rem; }
.login-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--admin-navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-form .input-wrap {
  position: relative;
}
.login-form .input-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--admin-muted);
}
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.6rem;
  border: 1.5px solid var(--admin-border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  background: white;
}
.login-form input:focus {
  outline: none;
  border-color: var(--admin-orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
}

.login-form .row-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.login-form .row-extras label { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--admin-muted); }

.login-btn {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, var(--admin-orange), var(--admin-orange-deep));
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(255, 122, 26, 0.35);
  letter-spacing: 0.02em;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 122, 26, 0.5);
}

.login-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--admin-muted);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.admin-wrap { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--admin-navy-deep);
  color: white;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand .logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--admin-orange), var(--admin-orange-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(255, 122, 26, 0.4);
}

.sidebar-brand .brand-text {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}
.sidebar-brand .brand-text small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--admin-orange);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.sidebar-nav { padding: 1rem 0.8rem; flex: 1; overflow-y: auto; }

.sidebar-nav .nav-section {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
  padding: 1rem 0.8rem 0.5rem;
  font-weight: 600;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.2rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.sidebar-nav a i { width: 18px; font-size: 1rem; }

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.sidebar-nav a.active {
  background: linear-gradient(135deg, var(--admin-orange), var(--admin-orange-deep));
  color: white;
  box-shadow: 0 6px 20px rgba(255, 122, 26, 0.4);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sidebar-footer .avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--admin-orange), var(--admin-orange-deep));
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.sidebar-footer .info { flex: 1; min-width: 0; }
.sidebar-footer .info .name { color: white; font-weight: 600; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-footer .info .role { color: rgba(255, 255, 255, 0.5); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }

.sidebar-footer a.logout {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.sidebar-footer a.logout:hover { background: #ef4444; color: white; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.admin-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
}

.admin-topbar {
  background: white;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-topbar h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--admin-navy);
  margin: 0;
}

.admin-topbar .topbar-right { display: flex; align-items: center; gap: 1rem; }

.admin-topbar .visit-site {
  padding: 0.5rem 1rem;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.admin-topbar .visit-site:hover { border-color: var(--admin-orange); color: var(--admin-orange); }

.admin-content { padding: 2rem; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(10, 31, 68, 0.08); }

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.stat-card .stat-icon.blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.stat-card .stat-icon.orange { background: rgba(255, 122, 26, 0.12); color: var(--admin-orange); }
.stat-card .stat-icon.green { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.stat-card .stat-icon.purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.stat-card .stat-icon.pink { background: rgba(236, 72, 153, 0.12); color: #ec4899; }
.stat-card .stat-icon.yellow { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.stat-card .label {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.stat-card .value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--admin-navy);
  line-height: 1;
}

.stat-card .change {
  font-size: 0.8rem;
  color: #10b981;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ============================================================
   PANELS / TABLES
   ============================================================ */
.panel {
  background: white;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.panel-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.panel-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--admin-navy);
}

.panel-body { padding: 1.5rem; }

.btn-admin {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.btn-admin.primary { background: var(--admin-orange); color: white; }
.btn-admin.primary:hover { background: var(--admin-orange-deep); transform: translateY(-1px); }
.btn-admin.secondary { background: var(--admin-bg); color: var(--admin-text); border: 1px solid var(--admin-border); }
.btn-admin.secondary:hover { border-color: var(--admin-orange); color: var(--admin-orange); }
.btn-admin.danger { background: #ef4444; color: white; }
.btn-admin.danger:hover { background: #dc2626; }
.btn-admin.sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; }

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th {
  text-align: left;
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--admin-muted);
  font-weight: 700;
  background: var(--admin-bg);
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-text);
  font-size: 0.9rem;
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--admin-bg); }

.admin-table .thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--admin-bg);
}

.admin-table .actions { display: flex; gap: 0.4rem; }

.badge-pill {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-pill.cat-orange { background: rgba(255, 122, 26, 0.12); color: var(--admin-orange); }
.badge-pill.cat-blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.badge-pill.cat-green { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.badge-pill.cat-gray { background: var(--admin-bg); color: var(--admin-muted); }

/* ============================================================
   FORMS (admin)
   ============================================================ */
.admin-form .form-row { margin-bottom: 1.3rem; }
.admin-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--admin-navy);
}
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--admin-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: white;
  transition: all 0.2s ease;
}
.admin-form textarea { min-height: 200px; resize: vertical; }
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--admin-orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.12);
}

.image-preview {
  margin-top: 0.6rem;
  width: 200px;
  height: 130px;
  border-radius: 8px;
  background: var(--admin-bg);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--admin-border);
}

.admin-form .form-actions {
  display: flex;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--admin-border);
  margin-top: 1.5rem;
}

/* ============================================================
   GALLERY GRID (admin)
   ============================================================ */
.admin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.admin-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--admin-bg);
}
.admin-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.admin-gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.8rem;
  color: white;
}
.admin-gallery-item:hover .overlay { opacity: 1; }
.admin-gallery-item .overlay .title { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid;
}
.alert-success { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.alert-danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-topbar .menu-toggle { display: inline-flex !important; }
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--admin-muted);
}
.empty-state i { font-size: 3rem; opacity: 0.3; margin-bottom: 1rem; }
.empty-state h4 { color: var(--admin-text); margin-bottom: 0.4rem; }

/* ═══════════════════════════════════════════════════════════
   SUPPLEMENTAL ADMIN STYLES
   ═══════════════════════════════════════════════════════════ */

/* Login enhancements */
.login-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.login-shapes span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.login-shapes span:nth-child(1) {
  top: -100px; left: -120px;
  width: 380px; height: 380px;
  background: rgba(255, 122, 26, 0.45);
  animation: float1 14s ease-in-out infinite;
}
.login-shapes span:nth-child(2) {
  bottom: -120px; right: -120px;
  width: 420px; height: 420px;
  background: rgba(0, 132, 255, 0.35);
  animation: float2 18s ease-in-out infinite;
}
.login-shapes span:nth-child(3) {
  top: 40%; left: 55%;
  width: 280px; height: 280px;
  background: rgba(255, 255, 255, 0.08);
  animation: float1 22s ease-in-out infinite reverse;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.1); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -50px) scale(0.95); }
}

.login-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-logo-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7a1a, #e85d00);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 30px rgba(255,122,26,0.45);
}

.login-form .form-group {
  margin-bottom: 1.1rem;
}
.login-form .form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a3060;
  margin-bottom: 0.4rem;
}
.login-form .form-group label i { color: #ff7a1a; margin-right: 0.35rem; }
.login-form .form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.25s;
  background: #f8fafc;
}
.login-form .form-group input:focus {
  outline: none;
  border-color: #ff7a1a;
  background: white;
  box-shadow: 0 0 0 3px rgba(255,122,26,0.12);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  margin: 0;
  color: #334155;
}
.checkbox-row input { accent-color: #ff7a1a; }
.forgot-link { color: #ff7a1a; text-decoration: none; font-weight: 600; }
.forgot-link:hover { color: #e85d00; }

.btn-login {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, #ff7a1a, #e85d00);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(255,122,26,0.35);
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,122,26,0.45);
}

/* Sidebar additions */
.sidebar-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff7a1a, #e85d00);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(255,122,26,0.4);
}
.sidebar-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.sidebar-brand-text strong { color: white; font-weight: 700; font-size: 1.05rem; }
.sidebar-brand-text span { color: rgba(255,255,255,0.55); font-size: 0.75rem; letter-spacing: 0.05em; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  margin-bottom: 0.75rem;
}
.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a1a, #e85d00);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-user > div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sidebar-user strong { color: white; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user span { color: rgba(255,255,255,0.55); font-size: 0.75rem; text-transform: capitalize; }

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.92rem;
  transition: all 0.2s;
}
.sidebar-logout:hover { background: rgba(255,90,90,0.15); color: #ff8888; }

/* Topbar additions */
.topbar-title {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #0a1f44;
  flex: 1;
  letter-spacing: -0.01em;
}
.topbar-actions { display: flex; gap: 0.6rem; align-items: center; }
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: #f1f5f9;
  color: #0a1f44;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s;
}
.topbar-link:hover { background: #ff7a1a; color: white; }

/* Alerts */
.alert-admin {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.alert-success-admin {
  background: #ecfdf5;
  color: #065f46;
  border-left: 4px solid #10b981;
}
.alert-danger-admin {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

/* Page head pattern */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-head h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #0a1f44;
  margin: 0;
  letter-spacing: -0.015em;
}
.page-head p { color: #64748b; margin: 0.25rem 0 0; font-size: 0.95rem; }

/* Stat info wrap */
.stat-info { display: flex; flex-direction: column; }
.stat-info .stat-label {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.stat-info .stat-value {
  font-family: 'Fraunces', serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: #0a1f44;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Panel additions */
.panel-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0a1f44;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Button variants */
.btn-admin-primary {
  background: linear-gradient(135deg, #ff7a1a, #e85d00);
  color: white;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(255,122,26,0.25);
}
.btn-admin-primary:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255,122,26,0.4);
}
.btn-admin-secondary {
  background: #f1f5f9;
  color: #0a1f44;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}
.btn-admin-secondary:hover { background: #e2e8f0; color: #0a1f44; }
.btn-admin-danger {
  background: #fee2e2;
  color: #991b1b;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-admin-danger:hover { background: #ef4444; color: white; }
.btn-admin-sm { padding: 0.35rem 0.75rem; font-size: 0.82rem; }

/* Form-group inside admin-form */
.admin-form .form-group { margin-bottom: 1.25rem; }
.admin-form .form-group label {
  display: block;
  font-weight: 600;
  color: #0a1f44;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
  background: white;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: #ff7a1a;
  box-shadow: 0 0 0 3px rgba(255,122,26,0.12);
}
.admin-form textarea { min-height: 200px; resize: vertical; }

.image-preview {
  margin-top: 0.75rem;
  max-width: 280px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.image-preview img { display: block; width: 100%; height: auto; }

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

/* Table cell helpers */
.admin-table .thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.admin-table .actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.admin-table .actions form { display: inline-block; margin: 0; }
.cell-muted { color: #64748b; font-size: 0.88rem; }
.badge-role {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-role.admin { background: #fef3c7; color: #92400e; }
.badge-role.editor { background: #dbeafe; color: #1e40af; }

/* Admin gallery grid items */
.admin-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f1f5f9;
}
.admin-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-gallery-item .gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.75));
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem;
}
.admin-gallery-item:hover .gal-overlay { opacity: 1; }
.admin-gallery-item .gal-title { color: white; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.45rem; }
.admin-gallery-item .gal-actions { display: flex; gap: 0.35rem; }

/* Stats summary card on top of list pages */
.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.summary-tile {
  flex: 1;
  min-width: 200px;
  background: linear-gradient(135deg, #ff7a1a, #e85d00);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(255,122,26,0.25);
}
.summary-tile span {
  display: block;
  font-size: 0.78rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.summary-tile strong {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}


/* Dashboard recent activity */
.text-orange { color: #ff7a1a !important; }
.recent-list { display: flex; flex-direction: column; gap: 0.5rem; }
.recent-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 10px;
  transition: background 0.2s;
}
.recent-row:hover { background: #f8fafc; }
.recent-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #0a1f44;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.recent-avatar.avatar-orange {
  background: linear-gradient(135deg, #ff7a1a, #e85d00);
  color: white;
}
.recent-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.recent-body strong { color: #0a1f44; font-size: 0.95rem; }
.recent-body .cell-muted {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.recent-time { color: #94a3b8; font-size: 0.82rem; flex-shrink: 0; }
.recent-amount {
  color: #ff7a1a;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  flex-shrink: 0;
}


/* Settings info display */
.settings-info { display: flex; flex-direction: column; gap: 0.85rem; }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
}
.info-row .info-label {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.info-row strong { color: #0a1f44; font-size: 0.95rem; }


/* Hide empty image preview */
.image-preview:empty { display: none; }
