:root {
  --bg: #F9FAFB;
  --off: #ffffff;
  --br: #e2e8f0;
  --tx: #0f172a;
  --txs: #334155;
  --gr: #64748b;
  --p: #1a5f5c; /* HomeZoo Deep Teal */
  --pl: #247a76;
  --pll: #f0fdfa;
  --s: #10b981;
  --su: #059669;
  --sul: #ecfdf5;
  --wa: #f59e0b;
  --wal: #fffbeb;
  --da: #e11d48;
  --dal: #fff1f2;
  --rs: 12px;
  --rf: 50px;
  --sh: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.dark-mode {
  --bg: #0f172a;
  --off: #1e293b;
  --br: #334155;
  --tx: #f7fafc;
  --txs: #e2e8f0;
  --gr: #94a3b8;
  --pll: #0d2e2d; 
  --sul: #064e3b;
  --wal: #78350f;
  --dal: #4c0519;
}

body { font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 16px; margin: 0; background: var(--bg); color: var(--tx); transition: all 0.3s ease; min-height: 100vh; }
/* Premium Typography & Spacing */
/* Premium Typography & Spacing */
.ph { padding: 0 0 32px 0; }
.pt { 
  font-size: 32px; 
  font-weight: 800; 
  letter-spacing: -0.04em; 
  color: var(--tx);
  line-height: 1.2;
}
.ps { 
  font-size: 15px; 
  color: var(--gr); 
  margin-top: 8px;
  font-weight: 500;
}

/* Premium Progress Bars */
.pbar {
  background: var(--br);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.pfill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.pfill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
}

/* Premium Card System */
.card {
  padding: 32px;
  margin-bottom: 20px;
  background: var(--off);
  border: 1px solid var(--br);
  border-radius: var(--rs);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  box-shadow: var(--sh);
  border-color: var(--p);
}

/* Premium Button System */
.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  padding: 10px 20px; 
  border-radius: 10px; 
  font-weight: 600; 
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
  border: 1.5px solid transparent; 
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}
.btn-p { 
  background: var(--p); 
  color: white; 
  border: none;
  box-shadow: 0 1px 2px rgba(26, 95, 92, 0.2);
}
.btn-p:hover { 
  background: var(--pl); 
  transform: translateY(-1px); 
  box-shadow: 0 4px 12px rgba(26, 95, 92, 0.3);
}
.btn-o { 
  background: var(--off); 
  border-color: var(--br); 
  color: var(--txs);
}
.btn-o:hover { 
  border-color: var(--p); 
  color: var(--p); 
  background: var(--pll);
}
.btn-s { 
  background: var(--s); 
  color: white; 
  border: none;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}
.btn-s:hover { 
  background: var(--su); 
  transform: translateY(-1px); 
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Button Size Variants */
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.listing-gallery {
  margin-bottom: 20px;
}
.main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--rs);
  cursor: pointer;
  transition: transform 0.2s;
}
.main-image:hover {
  transform: scale(1.02);
}
.thumbnail-strip {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}
.thumbnail {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.thumbnail:hover, .thumbnail.active {
  border-color: var(--p);
}

.gallery-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.gallery-close { position: absolute; top: 20px; right: 30px; font-size: 40px; color: white; background: none; border: none; cursor: pointer; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); color: white; border: none; font-size: 30px; padding: 10px 15px; cursor: pointer; border-radius: 8px; }
.gallery-nav.prev { left: 20px; }
.gallery-nav.next { right: 20px; }

.form-input { 
  width: 100%; padding: 14px; border: 1.5px solid var(--br); border-radius: 10px; 
  background: #fff; color: var(--tx); outline: none; transition: all 0.2s;
  font-size: 14px;
}
.form-input:focus { border-color: var(--p); box-shadow: 0 0 0 4px var(--pll); }

.hero-banner {
  background: linear-gradient(135deg, rgba(26, 95, 92, 0.85) 0%, rgba(13, 66, 64, 0.9) 100%), 
              url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: white; border-radius: 0 0 60px 60px; text-align: center;
  position: relative; overflow: hidden; padding-bottom: 120px;
}

.pc { background: white; border: 1px solid var(--br); border-radius: var(--rs); flex: 1 1 300px; overflow: hidden; transition: transform 0.2s; }
.pc:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.pc-thumb { height: 180px; position: relative; }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pc-info { padding: 15px; }

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.3);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.favorite-btn:hover { background: rgba(0,0,0,0.5); transform: scale(1.1); }
.favorite-btn.active { background: var(--da); color: white; }
.favorite-btn.active i { fill: white; }

.social-btn { padding: 8px; flex: 1; }
.social-btn.facebook:hover { background-color: #1877F2; color: white; border-color: #1877F2; }
.social-btn.twitter:hover { background-color: #1DA1F2; color: white; border-color: #1DA1F2; }
.social-btn.whatsapp:hover { background-color: #25D366; color: white; border-color: #25D366; }
.social-btn i { width: 16px; height: 16px; }

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

/* Premium Grid System with Better Breathing Room */
.g2, .g3, .g4 { 
  display: grid; 
  gap: 20px; 
  margin-bottom: 24px;
}
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.unit-hero {
  padding: 40px;
  background: linear-gradient(135deg, #1a5f5c 0%, #247a76 100%);
  color: white;
  border-radius: var(--rs);
  box-shadow: 0 20px 25px -5px rgba(26, 95, 92, 0.2);
}

/* Premium Metric Cards - Unified Design */
.stat-c {
  padding: 28px;
  background: var(--off);
  border: 1px solid var(--br);
  border-radius: var(--rs);
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.stat-c::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--p);
  opacity: 0.15;
}
.stat-c:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: var(--p);
}
.stat-c:hover::before {
  opacity: 0.3;
}
.stat-val { 
  font-size: 36px; 
  font-weight: 800; 
  color: var(--tx); 
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 4px 0;
}
.stat-lbl { 
  font-size: 12px; 
  font-weight: 600; 
  color: var(--gr); 
  text-transform: uppercase; 
  letter-spacing: 0.08em;
}
.stat-sub { 
  font-size: 13px; 
  color: var(--gr); 
  opacity: 0.7;
  font-weight: 500;
}

/* Vibrant badges */
.badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.bg { background: #dcfce7; color: #166534; }
.bw { background: #fef3c7; color: #92400e; }
.bb { background: #e0e7ff; color: #3730a3; }
.bgr { background: #fee2e2; color: #991b1b; }
.ba { background: #f3e8ff; color: #6b21a8; }

/* Auth Specific Styles */
.auth-page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--bg);
}
.auth-header { display: none; }
.auth-card {
  max-width: 520px;
  width: 100%;
  background: var(--off);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--br);
  padding: 44px 40px;
}

@media (max-width: 480px) {
  .auth-page-wrap { padding: 24px 14px; }
  .auth-card { padding: 32px 22px; border-radius: 18px; }
  #google-signin-btn iframe,
  #google-signin-btn > div { width: 100% !important; }
}

/* Centered Stepper */
.auth-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 36px;
  width: 100%;
  max-width: 440px;
}
.auth-stepper .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.auth-stepper .step-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  background: var(--bg);
  color: var(--gr);
  border: 2px solid var(--br);
  transition: all 0.25s ease;
}
.auth-stepper .step-label {
  font-size: 12px; font-weight: 600;
  color: var(--gr);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.auth-stepper .step-line {
  flex: 1 1 auto;
  height: 2px;
  background: var(--br);
  margin: 0 6px;
  margin-bottom: 24px;
  min-width: 18px;
}
.auth-stepper .step.done .step-dot {
  background: var(--p); color: #fff; border-color: var(--p);
}
.auth-stepper .step.done .step-label { color: var(--txs); }
.auth-stepper .step.active .step-dot {
  background: var(--p); color: #fff; border-color: var(--p);
  box-shadow: 0 0 0 5px var(--pll);
}
.auth-stepper .step.active .step-label { color: var(--p); font-weight: 700; }
.auth-stepper .step.done .step-line { background: var(--p); }

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img {
  width: 72px; height: 72px;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  box-shadow: 0 8px 20px rgba(26, 95, 92, 0.18);
}
.auth-logo-circle {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--pll); color: var(--p);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; margin: 0 auto 10px;
}
.auth-logo-name { font-size: 24px; font-weight: 800; color: var(--tx); margin-bottom: 4px; }
.auth-logo-sub { font-size: 15px; color: var(--gr); }

.auth-tab-row { display: flex; margin-bottom: 24px; background: var(--bg); border-radius: 10px; padding: 4px; }
.auth-tab {
  flex: 1; padding: 12px 0; text-align: center;
  background: transparent; border: none; border-radius: 8px;
  font-weight: 600; font-size: 15px; color: var(--txs); cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.auth-tab.on { background: var(--p); color: white; box-shadow: 0 2px 8px rgba(26, 95, 92, 0.2); }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--txs); margin-bottom: 8px; }
.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--p); font-weight: 700; font-size: 13px;
  cursor: pointer;
}

.error-msg { color: var(--da); font-size: 12px; margin-top: 6px; }

/* Premium Section Titles */
.st {
  font-size: 18px;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

/* Premium Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gr);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--br);
  background: var(--bg);
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--br);
  color: var(--txs);
}
tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: var(--bg);
}

/* Ticket Item Styles */
.tki {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--br);
  transition: all 0.2s;
}
.tki:hover {
  border-color: var(--p);
  background: var(--pll);
}
.tk-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.tk-body {
  flex: 1;
  min-width: 0;
}
.tk-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--tx);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tk-meta {
  font-size: 12px;
  color: var(--gr);
}
.tdn {
  font-weight: 600;
  color: var(--tx);
}

/* Theme Toggle Button - Compact Style */
.theme-btn {
  background: var(--off);
  border: 1px solid var(--br);
  color: var(--txs);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
  width: 36px;
  height: 36px;
}
.theme-btn:hover {
  background-color: var(--pll);
}

/* Modern Role Card Styles */
.role-card-modern {
  position: relative;
}
.role-card-modern .role-card-icon {
  background: var(--bg);
  transition: all 0.2s ease;
}
.role-card-modern .role-card-icon i {
  color: var(--gr);
  transition: all 0.2s ease;
}
.role-card-modern .role-card-title { color: var(--txs); transition: color 0.2s ease; }
.role-card-modern:hover {
  border-color: var(--p);
  box-shadow: 0 6px 18px rgba(26, 95, 92, 0.12);
  transform: translateY(-2px);
}
.role-card-modern.on {
  border-color: var(--p);
  background: var(--pll);
  box-shadow: 0 6px 18px rgba(26, 95, 92, 0.2);
}
.role-card-modern.on .role-card-icon {
  background: var(--p);
}
.role-card-modern.on .role-card-icon i {
  color: white;
}
.role-card-modern.on .role-card-title { color: var(--p); }

@keyframes spin { to { transform: rotate(360deg); } }
/* Custom Scrollbar Styles */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--br); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--p); }

/* Firefox Support */
* { scrollbar-width: thin; scrollbar-color: var(--p) transparent; }

/* App Layout */
#app {
  display: grid;
  grid-template-areas: "sidebar main";
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
  display: none; /* Hide by default until view is set to 'app' */
  transition: grid-template-columns 0.3s ease-in-out;
}

#sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  z-index: 15;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#sidebar {
  background: var(--p); /* HomeZoo Deep Teal */
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  width: var(--sidebar-width, 280px);
  z-index: 20;
  color: white;
}

#main-content {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  min-width: 0; /* Prevents flex items from overflowing */
}

#topbar {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: var(--off);
  border-bottom: 1px solid var(--br);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 10px;
}

.topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--p);
  margin-left: 8px;
}

.topbar-user {
  margin-left: auto;
  text-align: right;
}

.verif-badge {
  margin-left: 10px;
}

#main-area {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  max-width: 1400px;
}

/* Premium Sidebar Navigation */
.sb-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  margin: 24px 0 12px 16px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
  position: relative;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(4px);
}
.nav-item.on {
  background: white;
  color: var(--p);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.nav-item.on::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--p);
  border-radius: 0 3px 3px 0;
}
.nav-item.on .nav-icon {
  color: var(--p);
  opacity: 1;
}
.nav-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-icon {
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  flex-shrink: 0;
}
.nav-icon i {
  width: 20px;
  height: 20px;
}
.sb-user-info {
  margin-top: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.sb-user-info .badge {
  font-size: 9px !important;
  padding: 2px 6px;
  display: inline-block;
}

/* Sidebar Logo */
.sidebar-logo-container {
  padding: 12px 16px 24px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}
.sidebar-logo-container img {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.2s;
}
.sidebar-logo-container img:hover {
  transform: scale(1.05);
}
.sidebar-logo-container .nav-label {
  flex: 1;
}
.sidebar-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: white;
}

/* Premium Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gr);
}
.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--txs);
  margin-bottom: 8px;
}
.empty-state-desc {
  font-size: 14px;
  color: var(--gr);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Premium Badge Styles */
.badge { 
  padding: 5px 12px; 
  border-radius: 20px; 
  font-size: 11px; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bg { 
  background: #dcfce7; 
  color: #166534;
  border: 1px solid #bbf7d0;
}
.bw { background: #fef3c7; color: #92400e; }
.bb { background: #e0e7ff; color: #3730a3; }
.bgr { background: #fee2e2; color: #991b1b; }
.ba { background: #f3e8ff; color: #6b21a8; }

/* Premium Verified Badge */
.verif-badge {
  margin-left: 10px;
}
.verif-badge .badge {
  background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
  color: #065f46;
  border: 1px solid #a7f3d0;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.1);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Country Toggle in Topbar - Premium Dropdown Style */
.ctoggle {
  position: relative;
  display: inline-block;
  margin-left: 12px;
}
.ctoggle-dropdown {
  position: relative;
  display: inline-block;
}
.ctoggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--off);
  border: 1px solid var(--br);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--txs);
}
.ctoggle-btn:hover {
  border-color: var(--p);
  background: var(--pll);
}
.ctoggle-btn i {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.ctoggle-dropdown.open .ctoggle-btn i {
  transform: rotate(180deg);
}
.ctoggle-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--off);
  border: 1px solid var(--br);
  border-radius: 10px;
  box-shadow: var(--sh);
  min-width: 140px;
  z-index: 100;
  overflow: hidden;
}
.ctoggle-dropdown.open .ctoggle-menu {
  display: block;
}
.ctoggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--txs);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.ctoggle-item:hover {
  background: var(--pll);
  color: var(--p);
}
.ctoggle-item.on {
  background: var(--pll);
  color: var(--p);
  font-weight: 600;
}

/* Hamburger menu for mobile */
.hamburger-menu {
  display: none;
  background: var(--pll);
  border: none;
  color: var(--p);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.sidebar-close {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1;
  z-index: 21;
}

.sidebar-open-body {
  overflow: hidden; /* Prevent scrolling when sidebar is open on mobile */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #app {
    grid-template-columns: 0px 1fr !important;
  }
  #sidebar-overlay.show {
    display: block;
    opacity: 1;
  }
  #sidebar {
    position: fixed;
    left: var(--sidebar-left, -280px);
    width: 280px;
    height: 100vh;
    top: 0;
    bottom: 0;
    transition: left 0.3s ease-in-out;
    box-shadow: var(--sh);
  }
  .hamburger-menu {
    display: flex !important;
  }
  .sidebar-close {
    display: block !important;
  }
  .topbar-title {
    display: none; /* Hide title on small screens to save space */
  }
  .ctoggle {
    margin-left: 0;
  }
}

/* Deed Gate / Verification Required Styles */
.deed-gate {
  text-align: center;
  padding: 40px 20px;
  background: var(--off);
  border: 1px solid var(--br);
  border-radius: var(--rs);
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.deed-gate-icon {
  font-size: 64px;
  margin-bottom: 20px;
}
.deed-gate-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--tx);
}
.deed-gate-sub {
  font-size: 15px;
  color: var(--gr);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 20px;
}