/* ============================================================
   UTSERVIO CENTRAL HUB — Modern Cosmic Control Center Stylesheet
   ============================================================ */

:root {
  --bg1: #09090B;
  --bg2: #121214;
  --bg3: #1C1C1E;
  --bg4: #2A2A2E;
  --text1: #FFFFFF;
  --text2: #E5E5EA;
  --text3: #8E8E93;
  --text4: #48484A;
  --gold: #F5A623;
  --gold-light: #FFB84D;
  --gold-dark: #C4841A;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --danger: #FF453A;
  --success: #30D158;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --radius-squircle: 25px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="light"] {
  --bg1: #F2F2F7;
  --bg2: #FFFFFF;
  --bg3: #E5E5EA;
  --bg4: #D1D1D6;
  --text1: #1C1C1E;
  --text2: #3A3A3C;
  --text3: #8E8E93;
  --text4: #C7C7CC;
  --border: rgba(0, 0, 0, 0.06);
  --border-light: rgba(0, 0, 0, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.05);
}

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

html,
body {
  height: 100%;
  width: 100%;
  font-family: var(--font);
  background: var(--bg1);
  color: var(--text2);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  transition: background var(--transition), color var(--transition);
}

/* ============================================================
   CINEMATIC AURORA MESH BACKGROUND (Highly Active)
   ============================================================ */
body {
  background-color: #070709;
  background-image: 
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.2) 0px, transparent 60%),
    radial-gradient(at 100% 0%, rgba(245, 166, 35, 0.15) 0px, transparent 55%),
    radial-gradient(at 50% 100%, rgba(59, 130, 246, 0.18) 0px, transparent 60%);
  background-attachment: fixed;
}

[data-theme="light"] body {
  background-color: #F2F2F7;
  background-image: 
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(245, 166, 35, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(59, 130, 246, 0.03) 0px, transparent 50%);
}

.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Vibrant glowing cosmic nebulas */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  -webkit-filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  transition: background var(--transition), transform var(--transition);
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(139, 92, 246, 0.35); /* High opacity violet neon */
  top: -5%;
  right: -5%;
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: rgba(245, 166, 35, 0.22); /* High opacity amber glow */
  bottom: -5%;
  left: -5%;
  animation: floatOrb2 14s ease-in-out infinite alternate;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: rgba(59, 130, 246, 0.25); /* Sapphire glow */
  top: 25%;
  left: 10%;
  animation: floatOrb3 22s ease-in-out infinite alternate;
}

[data-theme="light"] .orb-1 { background: rgba(139, 92, 246, 0.04); }
[data-theme="light"] .orb-2 { background: rgba(245, 166, 35, 0.04); }
[data-theme="light"] .orb-3 { background: rgba(59, 130, 246, 0.03); }

/* Dynamic Floating Keyframes */
@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-160px, 100px) scale(1.15); }
}
@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(140px, -110px) scale(1.2); }
}
@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-90px, -70px) scale(0.85); }
}

/* ============================================================
   TOPBAR (Perfectly matched to Certificate Studio)
   ============================================================ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px; /* Matches Studio */
  padding: 0 24px; /* Matches Studio */
  background: rgba(17, 17, 17, 0.85); /* Matches Studio */
  backdrop-filter: blur(12px); /* Matches Studio */
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); /* Matches Studio */
  z-index: 100;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* Matches Studio */
  text-decoration: none;
}

.logo img {
  height: 28px; /* Matches Studio */
  object-fit: contain;
}

.logo-product {
  font-family: 'Outfit', sans-serif;
  font-size: 13px; /* Matches Studio */
  font-weight: 700; /* Matches Studio */
  color: var(--gold); /* Matches Studio */
  letter-spacing: 1px; /* Matches Studio */
  text-transform: uppercase;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px; /* Matches Studio */
}

/* Buttons (Clean matched sizes) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm); /* Matches Studio */
  font-size: 12px; /* Matches Studio */
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .btn-ghost {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text1);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

.btn-icon {
  width: 34px; /* Perfectly tight icon buttons */
  height: 34px;
  padding: 0;
  border-radius: 50%;
}

/* Profile Dropdowns (Matches Studio exactly) */
.user-menu-wrap {
  position: relative;
}

.avatar {
  width: 32px; /* Matches Studio */
  height: 32px; /* Matches Studio */
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0A0A;
  font-weight: 700;
  font-size: 13px; /* Matches Studio */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.4);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px; /* Matches Studio */
  background: var(--bg2); /* Matches Studio */
  border: 1px solid var(--border); /* Matches Studio */
  border-radius: var(--radius); /* Matches Studio */
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}

[data-theme="light"] .user-dropdown {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 12px 14px; /* Matches Studio */
}

.user-dropdown-name {
  font-size: 13px; /* Matches Studio */
  font-weight: 600; /* Matches Studio */
  color: var(--text1);
}

.user-dropdown-email {
  font-size: 11px; /* Matches Studio */
  color: var(--text3);
  margin-top: 2px;
  word-break: break-all;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0 10px; /* Matches Studio */
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px; /* Matches Studio */
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text2);
  text-decoration: none;
  transition: background var(--transition);
  cursor: pointer;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .user-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.user-dropdown-item.danger {
  color: var(--danger);
}

/* ============================================================
   MAIN LAYOUT & COHESIVE DASHBOARD CARD
   ============================================================ */
.hub-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* Search Bar (Clean alignment in workspace sidebar) */
.search-section {
  width: 100%;
  position: relative;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  font-size: 12px;
  background: rgba(10, 10, 11, 0.4);
  color: var(--text1);
  border: 1px solid var(--border);
  border-radius: 50px;
  outline: none;
  font-family: inherit;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .search-input {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.search-input:focus {
  border-color: var(--gold);
  background: rgba(10, 10, 11, 0.6);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

[data-theme="light"] .search-input:focus {
  background: #ffffff;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text3);
  pointer-events: none;
  transition: color var(--transition);
}

.search-input:focus + .search-icon {
  color: var(--gold);
}

/* ============================================================
   APP DRAWER (FLEXBOX CENTERING & BUTTER-SMOOTH HOVER)
   ============================================================ */
.workspace-apps-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
  overflow-y: auto;
  max-height: calc(100vh - 230px);
  padding-right: 6px;
}

.workspace-apps-container::-webkit-scrollbar {
  width: 4px;
}

.workspace-apps-container::-webkit-scrollbar-track {
  background: transparent;
}

.workspace-apps-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

[data-theme="light"] .workspace-apps-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
}

.workspace-apps-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.category-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-title {
  font-family: 'Outfit', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 6px;
  opacity: 0.75;
  text-align: left;
}

[data-theme="light"] .category-title {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 16px;
  justify-items: center;
  max-width: 520px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.app-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
  outline: none;
  width: 110px;
  will-change: transform; /* Triggers GPU hardware acceleration */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Premium 3D Glossy Squircles (92px - Fixed shaky animation) */
.app-squircle {
  width: 92px;
  height: 92px;
  border-radius: var(--radius-squircle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 
              inset 0 2px 4px rgba(255, 255, 255, 0.35), 
              inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  /* Butter-smooth Apple Ease-Out curve instead of shaky spring */
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  will-change: transform; /* Hardware Acceleration */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

[data-theme="light"] .app-squircle {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 
              inset 0 2px 4px rgba(255, 255, 255, 0.5), 
              inset 0 -2px 4px rgba(0, 0, 0, 0.08);
}

/* Highly vibrant, modern, high-contrast linear gradients */
.app-squircle.certify-studio {
  background: linear-gradient(135deg, #FFE07D 0%, #F5A623 50%, #C4841A 100%);
}

.app-squircle.mail-studio {
  background: linear-gradient(135deg, #EC4899 0%, #D946EF 50%, #8B5CF6 100%);
}

.app-squircle.validator {
  background: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
}

.app-squircle.chief-portal {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #1D4ED8 100%);
}

.app-squircle.admin-panel {
  background: linear-gradient(135deg, #707880 0%, #4B5563 50%, #1F2937 100%);
}

.app-squircle.website {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

.app-squircle.core-app {
  background: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
}

/* Perfectly sized and crisp vector icons inside squircles */
.app-squircle svg {
  width: 38px;
  height: 38px;
  color: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
  display: block;
}

/* Highly-optimized, hardware-accelerated smooth hover (NO JITTER) */
.app-icon-card:hover .app-squircle {
  transform: translateY(-6px) scale(1.06);
}

.app-icon-card:active .app-squircle {
  transform: translateY(-2px) scale(0.96);
}

.app-icon-card:hover .app-squircle.certify-studio {
  box-shadow: 0 16px 36px rgba(245, 166, 35, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.app-icon-card:hover .app-squircle.mail-studio {
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.app-icon-card:hover .app-squircle.validator {
  box-shadow: 0 16px 36px rgba(79, 172, 254, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.app-icon-card:hover .app-squircle.chief-portal {
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.app-icon-card:hover .app-squircle.admin-panel {
  box-shadow: 0 16px 36px rgba(75, 85, 99, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.app-icon-card:hover .app-squircle.website {
  box-shadow: 0 16px 36px rgba(255, 107, 107, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.app-icon-card:hover .app-squircle.core-app {
  box-shadow: 0 16px 36px rgba(79, 172, 254, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

/* App Labels */
.app-label {
  margin-top: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  transition: color var(--transition);
  text-align: center;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.app-icon-card:hover .app-label {
  color: var(--text1);
}

/* ULTRA-PREMIUM HIGH-VISIBILITY SOLID BADGES (Perfect smooth transition) */
.app-badge {
  position: absolute;
  top: -6px;
  right: 12px;
  background: var(--danger);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(255, 69, 58, 0.4);
  letter-spacing: 0.5px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  display: block;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.app-badge.beta {
  background: var(--gold);
  color: #0A0A0B;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

.app-icon-card:hover .app-badge {
  transform: scale(1.08) translateY(-2px);
}

/* Empty State */
.empty-state {
  width: 100%;
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-state-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.empty-state-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 2px;
}

.empty-state-desc {
  font-size: 12px;
  color: var(--text3);
}

/* ============================================================
   SCREEN-WIDE SPLIT VIEWPORT CONTAINER
   ============================================================ */
.hub-container {
  display: grid;
  grid-template-columns: 440px 1fr;
  height: calc(100vh - 56px);
  position: relative;
  z-index: 10;
  overflow: hidden;
}

@media (max-width: 900px) {
  .hub-container {
    grid-template-columns: 1fr;
    height: auto;
    overflow-y: auto;
  }
}

/* ============================================================
   LEFT PANEL: WORKSPACE LAUNCHER (Sidebar Sidebar)
   ============================================================ */
.workspace-panel {
  background: rgba(18, 18, 22, 0.45);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100%;
  overflow-y: auto;
  justify-content: flex-start;
  transition: background var(--transition), border-color var(--transition);
}

[data-theme="light"] .workspace-panel {
  background: rgba(255, 255, 255, 0.65);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 900px) {
  .workspace-panel {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: auto;
    padding: 32px 24px;
  }
  
  [data-theme="light"] .workspace-panel {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
}

.workspace-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workspace-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--text1);
  letter-spacing: -0.5px;
}

.workspace-title span {
  color: var(--gold);
}

.workspace-desc {
  font-size: 12.5px;
  color: var(--text3);
  line-height: 1.5;
  font-weight: 400;
}

/* ============================================================
   RIGHT PANEL: FULL VIEWPORT LIVE PREVIEW VIEW
   ============================================================ */
.full-preview-panel {
  padding: 48px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow-y: auto;
  position: relative;
}

@media (max-width: 900px) {
  .full-preview-panel {
    padding: 32px 24px;
    height: auto;
    min-height: 400px;
  }
}

/* Dual Column Catalog Card inside Preview Panel */
.preview-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  max-width: 860px;
  width: 100%;
  animation: previewFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

@keyframes previewFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .preview-card {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 440px;
  }
}

.preview-visual-column {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Matching Glowing Ambient Auras */
.preview-glow {
  position: absolute;
  width: 320px;
  height: 220px;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.28;
  z-index: 0;
  transition: background 0.4s ease;
  pointer-events: none;
}

.preview-details-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
  text-align: left;
}

.preview-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-name {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 850;
  color: var(--text1);
}

.preview-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.preview-badge.active {
  background: rgba(48, 209, 88, 0.15);
  color: var(--success);
}

.preview-badge.beta {
  background: rgba(245, 166, 35, 0.15);
  color: var(--gold);
}

.preview-badge.restricted {
  background: rgba(255, 69, 58, 0.15);
  color: var(--danger);
}

.preview-desc {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.6;
  font-weight: 400;
}

/* Premium Solid Pill Buttons inside Preview Pane */
.preview-btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0A0B !important;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.25);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.preview-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
}

.preview-btn:active {
  transform: scale(0.97);
}

.preview-btn.restricted {
  background: rgba(255, 69, 58, 0.15) !important;
  color: #FF453A !important;
  border: 1px solid rgba(255, 69, 58, 0.25);
  box-shadow: none;
  cursor: pointer;
}

.preview-btn.restricted:hover {
  background: rgba(255, 69, 58, 0.25) !important;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   HIGH-FIDELITY APP INTERFACE MOCKUP FRAME
   ============================================================ */
.mock-frame {
  width: 100%;
  max-width: 440px;
  height: 280px;
  background: rgba(10, 10, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

[data-theme="light"] .mock-frame {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.mock-browser-header {
  height: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

[data-theme="light"] .mock-browser-header {
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mock-browser-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.mock-browser-header .dot.red { background: #FF5F56; }
.mock-browser-header .dot.yellow { background: #FFBD2E; }
.mock-browser-header .dot.green { background: #27C93F; }

.mock-address {
  margin-left: 12px;
  font-size: 10px;
  color: var(--text3);
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 20px;
  border-radius: 20px;
  flex: 1;
  max-width: 220px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .mock-address {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.04);
}

.mock-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 1. Website Mockup Elements */
.mock-web-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

[data-theme="light"] .mock-web-nav {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mock-web-nav .logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.mock-web-nav .nav-links {
  display: flex;
  gap: 12px;
  font-size: 9px;
  color: var(--text3);
}

.mock-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  flex: 1;
  gap: 6px;
}

.mock-hero h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--text1);
}

.mock-hero p {
  font-size: 9.5px;
  color: var(--text3);
  max-width: 220px;
  line-height: 1.4;
}

.mock-stats {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.mock-stats .stat-item {
  display: flex;
  flex-direction: column;
}

.mock-stats .val {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.mock-stats .lbl {
  font-size: 8px;
  color: var(--text4);
  text-transform: uppercase;
}

/* 2. Certificate Studio Mockup Elements */
.mini-certificate {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 4px;
}

.cert-gold-border {
  border: 2px double var(--gold);
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(245, 166, 35, 0.02);
  position: relative;
}

.cert-title {
  font-size: 9px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.cert-sub {
  font-size: 7.5px;
  color: var(--text4);
  font-style: italic;
}

.cert-name {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text1);
  margin: 3px 0;
}

.cert-reason {
  font-size: 8px;
  color: var(--text3);
  text-align: center;
  max-width: 240px;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: flex-end;
  margin-top: 8px;
  font-size: 7px;
  color: var(--text4);
  border-top: 1px dashed var(--border);
  padding-top: 6px;
}

.cert-footer .seal {
  font-size: 14px;
  color: var(--gold);
}

/* 3. Mail Studio Mockup Elements */
.mini-email {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  height: 100%;
  justify-content: space-between;
}

.email-header {
  font-size: 8px;
  font-weight: 800;
  color: var(--text4);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.email-hero-img {
  height: 52px;
  background: linear-gradient(135deg, #EC4899, #8B5CF6);
  border-radius: 4px;
  margin: 6px 0;
}

.email-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--text1);
}

.email-text {
  font-size: 8.5px;
  color: var(--text3);
  margin: 2px 0;
}

.email-btn {
  align-self: center;
  background: var(--text1);
  color: var(--bg1);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 8px;
  font-weight: 700;
  margin-top: 2px;
}

/* 4. Validator Mockup Elements */
.mini-validator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(48, 209, 88, 0.1);
  border: 1px solid rgba(48, 209, 88, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--success);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.secure-badge svg {
  width: 10px;
  height: 10px;
  color: var(--success);
}

.mock-hash-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 10px;
  color: var(--text2);
  width: 180px;
  text-align: center;
}

.mock-val-btn {
  background: var(--success);
  color: #0A0A0B;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.val-success-msg {
  font-size: 9px;
  color: var(--success);
  font-weight: 600;
}

/* 5. Chief Portal Mockup Elements */
.mini-dashboard {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 8px;
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dash-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-card .lbl {
  font-size: 8px;
  color: var(--text4);
  text-transform: uppercase;
}

.dash-card .val {
  font-size: 12px;
  font-weight: 700;
  color: #3B82F6;
}

.dash-chart {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 8px 20px;
  height: 80px;
}

.dash-chart .bar {
  width: 18px;
  background: linear-gradient(to top, #3B82F6, #60A5FA);
  border-radius: 3px 3px 0 0;
  animation: barGrow 1s ease-out;
}

@keyframes barGrow {
  from { height: 0; }
}

/* 6. Admin Panel Mockup Elements */
.mini-admin-users {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  height: 100%;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 8.5px;
}

.user-row span {
  color: var(--text2);
}

.user-row .badge {
  font-size: 7px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
}

.user-row .badge.active { background: rgba(48, 209, 88, 0.15); color: var(--success); }
.user-row .badge.admin { background: rgba(245, 166, 35, 0.15); color: var(--gold); }
.user-row .badge.blocked { background: rgba(255, 69, 58, 0.15); color: var(--danger); }


/* ============================================================
   AUTHENTICATION SCREEN
   ============================================================ */
.auth-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.auth-screen.open {
  opacity: 1;
  visibility: visible;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: rgba(20, 20, 22, 0.65);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.auth-screen.open .auth-card {
  transform: translateY(0);
}

[data-theme="light"] .auth-card {
  background: rgba(255, 255, 255, 0.7);
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-logo-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245, 166, 35, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(245, 166, 35, 0.25);
}

.auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: var(--text1);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text3);
  text-align: center;
  margin-bottom: 24px;
}

.auth-error {
  background: rgba(255, 69, 58, 0.12);
  color: #ff453a;
  border: 1px solid rgba(255, 69, 58, 0.2);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text1);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
}

[data-theme="light"] .auth-field input {
  background: rgba(255, 255, 255, 0.85);
}

.auth-field input:focus {
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

[data-theme="light"] .auth-field input:focus {
  background: #ffffff;
}

.auth-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0A0A;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  margin-top: 8px;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.auth-submit:active {
  transform: scale(0.98);
}

.auth-toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text3);
}

.auth-toggle a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.restricted-modal {
  width: 100%;
  max-width: 400px;
  background: rgba(20, 20, 22, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transform: scale(0.95);
  transition: all var(--spring);
  text-align: center;
}

[data-theme="light"] .restricted-modal {
  background: rgba(255, 255, 255, 0.95);
}

.modal-backdrop.open .restricted-modal {
  transform: scale(1);
}

.modal-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 69, 58, 0.08);
  border: 1px solid rgba(255, 69, 58, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  margin: 0 auto 16px auto;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text1);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ============================================================
   TOAST SYSTEM
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  background: rgba(20, 20, 22, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text1);
  font-size: 12px;
  font-weight: 600;
  z-index: 2000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-gold {
  border-color: rgba(245, 166, 35, 0.3);
  color: var(--gold);
}

.toast-danger {
  border-color: rgba(255, 69, 58, 0.3);
  color: #ff453a;
}

/* ============================================================
   7. UTSERVIO CENTRAL APP WORKSPACE MOCKUP
   ============================================================ */
.mini-app-workspace {
  display: grid;
  grid-template-columns: 85px 1fr;
  height: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.app-sidebar {
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid var(--border);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[data-theme="light"] .app-sidebar {
  background: rgba(0, 0, 0, 0.02);
}

.app-sidebar .act {
  font-size: 7.5px;
  color: var(--text3);
  padding: 4px;
  border-radius: 4px;
  white-space: nowrap;
  text-align: left;
}

.app-sidebar .act.active {
  background: rgba(245, 166, 35, 0.1);
  color: var(--gold);
  font-weight: 700;
}

.app-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg2);
}

.project-header {
  font-size: 9px;
  font-weight: 800;
  color: var(--text1);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  text-align: left;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.proj-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.proj-card span {
  font-size: 8px;
  font-weight: 700;
  color: var(--text2);
}

.proj-card .count {
  font-size: 7px;
  color: var(--text4);
}
