/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Deep Dark Cyber Theme)
   ========================================================================== */
:root {
  /* Colors */
  --bg-primary: #08090f;
  --bg-secondary: #10121d;
  --bg-card: rgba(20, 23, 39, 0.65);
  --bg-card-hover: rgba(29, 33, 56, 0.8);
  --border-light: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(138, 43, 226, 0.5);
  
  --accent-purple: #8a2be2;
  --accent-purple-glow: rgba(138, 43, 226, 0.35);
  --accent-teal: #00f2fe;
  --accent-teal-glow: rgba(0, 242, 254, 0.35);
  --accent-pink: #f50057;
  --accent-pink-glow: rgba(245, 0, 87, 0.35);
  
  --text-primary: #f1f3f9;
  --text-secondary: #909bb2;
  --text-muted: #5e687e;
  
  /* Layout */
  --sidebar-width: 280px;
  --mobile-nav-height: 72px;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset and Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Ambient Glowing Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  top: -100px;
  right: -50px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-teal);
  bottom: -150px;
  left: -100px;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: var(--accent-pink);
  top: 40%;
  left: 35%;
  opacity: 0.15;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* ==========================================================================
   APP LAYOUT STRUCTURE
   ========================================================================== */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation (Desktop) */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-light);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.brand-logo-img {
  display: block;
  width: 184px;
  max-width: 100%;
  height: auto;
}

.login-overlay .brand-logo-img {
  width: 220px;
}

.mobile-header .brand-logo-img {
  width: 148px;
}

.brand-logo {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px var(--accent-purple-glow));
}

.brand-logo-small {
  font-size: 1.4rem;
  color: var(--accent-purple);
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-name .dot {
  color: var(--accent-teal);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.nav-item i {
  font-size: 1.1rem;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(138, 43, 226, 0.15) 0%, rgba(0, 242, 254, 0.05) 100%);
  border-left: 3px solid var(--accent-purple);
  padding-left: 17px;
  box-shadow: inset 0 0 15px rgba(138, 43, 226, 0.05);
}

.sidebar-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-indicator.online {
  background-color: #00e676;
  box-shadow: 0 0 8px #00e676;
}

.api-status-badge {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
}

/* Mobile Layout Structures */
.mobile-header {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

/* Main Content Workspace */
.main-content {
  flex-grow: 1;
  margin-left: var(--sidebar-width);
  padding: 48px;
  max-width: 1400px;
  min-height: 100vh;
}

/* SPA Panels */
.tab-pane {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tab-pane.active {
  display: block;
}

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

/* ==========================================================================
   UI COMPONENTS & COMMON ELEMENTS
   ========================================================================== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
}

.page-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-bounce);
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #6200ea 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--accent-purple-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-teal);
  box-shadow: 0 4px 15px var(--accent-teal-glow);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-flex {
  flex: 1;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Form Controls */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.form-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
  font-size: 1.05rem;
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 48px !important;
}

input[type="url"],
input[type="text"],
select {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

input[type="url"]:focus,
input[type="text"]:focus,
select:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-purple-glow);
  background-color: rgba(255, 255, 255, 0.05);
}

select option {
  background: #10121d;
  color: #f1f3f9;
}

.location-results {
  display: none;
  margin-top: 8px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(12, 14, 24, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.location-result-btn {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--text-primary);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.location-result-btn:last-child {
  border-bottom: 0;
}

.location-result-btn:hover {
  background: rgba(0, 242, 254, 0.08);
}

.location-result-btn small {
  display: block;
  color: var(--text-secondary);
  margin-top: 2px;
}

.font-mono {
  font-family: 'Courier New', Courier, monospace !important;
}

/* ==========================================================================
   TAB 1: OVERVIEW/DASHBOARD STYLING
   ========================================================================== */
/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.metric-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.metric-info h3 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.metric-subtext {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.text-up { color: #00e676; }
.text-cyan { color: var(--accent-teal); }
.text-pink { color: var(--accent-pink); }
.text-purple { color: var(--accent-purple); }
.text-teal { color: var(--accent-teal); }

/* Card Ambient Highlights */
.glow-card-purple::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), transparent);
}
.glow-card-teal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), transparent);
}
.glow-card-pink::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent-pink), transparent);
}

/* Charts Grid */
.dashboard-charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.chart-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.chart-badge {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  color: var(--text-secondary);
}

.chart-container {
  height: 280px;
  position: relative;
}

.chart-container-donut {
  height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Recent links table */
.recent-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(10px);
}

.recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.recent-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.links-table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.links-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.links-table th {
  padding: 16px 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

.links-table td {
  padding: 18px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.links-table tbody tr:last-child td {
  border-bottom: none;
}

.link-alias-badge {
  background: rgba(138, 43, 226, 0.08);
  border: 1px solid rgba(138, 43, 226, 0.2);
  color: #c77dff;
  font-family: monospace;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

.truncate {
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.btn-icon.btn-delete:hover {
  background-color: rgba(245, 0, 87, 0.15);
  border-color: rgba(245, 0, 87, 0.3);
  color: var(--accent-pink);
}

.btn-icon.btn-view:hover {
  background-color: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--accent-teal);
}

/* ==========================================================================
   TAB 2: QR CODE CREATOR STYLING
   ========================================================================== */
.creator-split-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

/* Left Panel: Accordions */
.customizer-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 32px;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.accordion-item {
  border: 1px solid var(--border-light);
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.accordion-item.expanded {
  border-color: rgba(138, 43, 226, 0.3);
  background-color: rgba(138, 43, 226, 0.01);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.accordion-header {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.accordion-item.expanded .step-num {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-teal) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px var(--accent-purple-glow);
}

.header-title span:last-child {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.accordion-content {
  display: none;
  padding: 4px 24px 24px 24px;
  border-top: 1px solid var(--border-light);
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.accordion-item.expanded .accordion-content {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Radio Cards Custom controls */
.radio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.radio-card {
  border: 1px solid var(--border-light);
  background-color: rgba(255, 255, 255, 0.01);
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  text-align: center;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.radio-card span:last-child {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.radio-card:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
}

.radio-card.active {
  background-color: rgba(138, 43, 226, 0.05);
  border-color: var(--accent-purple);
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.08);
}

.radio-card.active .icon-wrap {
  background: var(--accent-purple);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--accent-purple-glow);
}

.radio-card.active span:last-child {
  color: var(--text-primary);
}

/* Color Pickers Custom controls */
.color-picker-wrapper {
  display: flex;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  align-items: center;
  width: 100%;
}

.color-picker-wrapper input[type="color"] {
  border: none;
  background: none;
  width: 54px;
  height: 48px;
  cursor: pointer;
  padding: 0 4px;
}

.color-hex-text {
  border: none !important;
  background: none !important;
  flex-grow: 1;
  padding: 12px 14px !important;
  font-family: monospace !important;
  font-size: 0.95rem;
}

.fill-toggle-wrapper {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 4px;
  border-radius: 12px;
}

.btn-toggle {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-smooth);
}

.btn-toggle.active {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.color-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.color-row i {
  color: var(--text-muted);
}

.label-with-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.range-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-teal);
  font-family: monospace;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-purple);
  margin-top: 4px;
}

/* Preset buttons control */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preset-btn {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: inherit;
  transition: var(--transition-smooth);
}

.preset-btn i {
  font-size: 1.25rem;
}

.preset-btn span {
  font-size: 0.78rem;
  font-weight: 600;
}

.preset-btn:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.preset-btn.active {
  background-color: rgba(0, 242, 254, 0.05);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  box-shadow: 0 4px 15px var(--accent-teal-glow);
}

/* File Upload Label Custom */
.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-light);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-secondary);
  text-align: center;
}

.file-upload-label:hover {
  border-color: var(--accent-purple);
  background-color: rgba(138, 43, 226, 0.01);
  color: var(--text-primary);
}

.file-upload-label i {
  font-size: 2rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.file-upload-label span {
  font-size: 0.85rem;
  font-weight: 600;
}

.file-upload-label input {
  display: none;
}

.divider-text {
  position: relative;
  text-align: center;
  margin: 18px 0;
}

.divider-text::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; width: 100%; height: 1px;
  background-color: var(--border-light);
  z-index: 1;
}

.divider-text::after {
  content: attr(data-text);
  position: relative;
  z-index: 2;
  background-color: var(--bg-card);
  padding: 0 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.customizer-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

/* Right Panel: Phone Frame Live Preview */
.preview-panel {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 48px;
}

.phone-frame {
  width: 320px;
  height: 640px;
  border-radius: 40px;
  border: 12px solid #1c1d24;
  background-color: #0b0c10;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
              inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.phone-notch {
  width: 140px;
  height: 24px;
  background-color: #1c1d24;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  padding: 40px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.phone-home-indicator {
  width: 110px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
}

.preview-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.preview-badge {
  display: inline-block;
  background-color: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-teal);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.qr-preview-container {
  width: 184px;
  height: 184px;
  background-color: #ffffff;
  border-radius: 16px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  overflow: visible;
  transition: var(--transition-smooth);
}

.qr-preview-container canvas,
.qr-preview-container img,
.qr-preview-container svg {
  width: 168px !important;
  height: 168px !important;
  max-width: 168px !important;
  max-height: 168px !important;
  object-fit: contain;
  display: block;
}

.preview-details {
  margin-bottom: 24px;
}

.preview-short-url {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.preview-target-url {
  font-size: 0.78rem;
  color: var(--text-secondary);
  max-width: 200px;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-download-options {
  display: flex;
  gap: 10px;
}

.preview-download-options .btn {
  flex: 1;
  padding: 10px;
  font-size: 0.85rem;
}

/* ==========================================================================
   TAB 3: MY LINKS DIRECTORY STYLING
   ========================================================================= */
.vault-filters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.search-box {
  position: relative;
  flex-grow: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
}

.search-box input {
  padding-left: 48px !important;
}

.links-directory-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.desktop-table-container {
  overflow-x: auto;
}

.full-table th {
  background-color: rgba(255, 255, 255, 0.01);
}

.qr-api-cell-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
}

.qr-api-cell-link:hover {
  text-decoration: underline;
}

.qr-asset-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.links-cards-grid {
  display: none; /* In desktop, table shows. In mobile, card grid shows */
}

/* ==========================================================================
   TAB 4: DEVELOPER PORTAL STYLING
   ========================================================================== */
.api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 28px;
}

.api-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.api-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.inline-form {
  display: flex;
  gap: 12px;
}

.inline-form input {
  flex-grow: 1;
}

.tokens-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.token-row {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.token-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.token-row-header h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.token-created-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.token-value-wrap {
  display: flex;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  align-items: center;
}

.token-masked {
  flex-grow: 1;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--accent-teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-action-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 10px 14px;
  border-left: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.token-action-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

.token-action-btn.btn-revoke-key:hover {
  color: var(--accent-pink);
  background-color: rgba(245, 0, 87, 0.05);
}

/* API Code playground controls */
.lang-selector {
  display: flex;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.btn-lang {
  flex: 1;
  border: none;
  background: none;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-lang.active {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.api-selected-summary {
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.025);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.api-selected-summary > div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  min-width: 0;
}

.api-selected-path,
.api-detail-path {
  font-family: 'Courier New', monospace;
  color: var(--accent-teal);
  word-break: break-all;
}

.api-selected-summary p,
.api-detail-desc,
.api-detail-grid p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.api-method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
}

.api-method-badge.get { background: rgba(0,176,255,0.18); color: #4dd0ff; border: 1px solid rgba(0,176,255,0.35); }
.api-method-badge.post { background: rgba(0,230,118,0.16); color: #00e676; border: 1px solid rgba(0,230,118,0.35); }
.api-method-badge.delete { background: rgba(245,0,87,0.16); color: #ff5f93; border: 1px solid rgba(245,0,87,0.35); }
.api-method-badge.public { background: rgba(255,189,46,0.14); color: #ffbd2e; border: 1px solid rgba(255,189,46,0.32); }

.api-reference-card {
  margin-top: 28px;
}

.api-reference-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.api-reference-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 420px;
}

.api-reference-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.api-reference-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(420px, 0.55fr);
  gap: 22px;
  align-items: start;
}

.api-endpoint-list {
  max-height: 720px;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.api-endpoint-group-title {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2px 0 8px;
}

.api-endpoint-item {
  width: 100%;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 12px;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.api-endpoint-item:hover,
.api-endpoint-item.active {
  border-color: rgba(0,242,254,0.35);
  background: rgba(0,242,254,0.055);
}

.api-endpoint-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.api-endpoint-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
}

.api-endpoint-item-path {
  display: block;
  font-family: 'Courier New', monospace;
  color: var(--text-muted);
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.api-endpoint-details {
  border: 1px solid var(--border-light);
  background: rgba(0,0,0,0.18);
  border-radius: 18px;
  padding: 22px;
}

.api-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.api-detail-title-row h3 {
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.api-detail-title-row p {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.api-detail-path {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.025);
  margin-bottom: 14px;
}

.api-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.api-detail-grid > div {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
}

.api-detail-grid h4,
.api-payload-header h4 {
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.api-payload-panel {
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  background: #05060b;
}

.api-payload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  background: #0b0c13;
}

.api-payload-display {
  margin: 0;
  padding: 16px;
  color: #b8ffef;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-x: auto;
}

.code-editor-frame {
  background-color: #05060b;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.editor-header {
  background-color: #0b0c13;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
}

.editor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.editor-dot.red { background-color: #ff5f56; }
.editor-dot.yellow { background-color: #ffbd2e; }
.editor-dot.green { background-color: #27c93f; }

.editor-title {
  flex-grow: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
  margin-right: 32px; /* balance dot width */
}

.copy-code-btn {
  background: none;
  border: none;
  color: var(--accent-teal);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.code-display {
  padding: 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: #00ffcc;
  line-height: 1.5;
  overflow-x: auto;
  margin: 0;
  white-space: pre-wrap;
}

/* ==========================================================================
   ANALYTICS MODAL STYLING
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(4, 5, 9, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  animation: modalScaleUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 28px 36px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: sticky;
  top: 0;
  background-color: var(--bg-secondary);
  z-index: 5;
}

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--accent-teal);
  max-width: 600px;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 0.8;
  transition: var(--transition-smooth);
}

.close-modal-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 36px;
}

.mini-metrics {
  margin-bottom: 32px;
}

.mini-metrics .metric-card {
  padding: 16px 24px;
}

.mini-metrics .metric-value {
  font-size: 1.5rem;
}

.modal-charts {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.analytics-lists-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.list-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
}

.list-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.breakdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.breakdown-name {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breakdown-count {
  font-family: monospace;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   RESPONSIVE LAYOUT MEDIA QUERIES (Mobile-First Mappings)
   ========================================================================== */

/* Tablet Viewport Adjustments (<= 1024px) */
@media screen and (max-width: 1024px) {
  .creator-split-layout {
    grid-template-columns: 1fr;
  }
  
  .preview-panel {
    position: relative;
    top: 0;
    margin-top: 24px;
  }

  .api-grid {
    grid-template-columns: 1fr;
  }

  .api-reference-layout {
    grid-template-columns: 1fr;
  }

  .api-endpoint-list {
    max-height: 420px;
  }
}

/* Mobile Viewport Adjustments (<= 768px) */
@media screen and (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }

  /* Hide Desktop Sidebar */
  .sidebar {
    display: none;
  }

  /* Show Mobile Top Header */
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 60px;
    z-index: 100;
  }

  .mobile-api-badge {
    display: flex;
    align-items: center;
    background-color: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: #00e676;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
  }

  /* Adjust Main Workspace padding for header and footer navs */
  .main-content {
    margin-left: 0;
    padding: 24px;
    padding-top: 84px;  /* Clearance for mobile header */
    padding-bottom: 100px; /* Clearance for bottom nav bar */
  }

  /* Show Mobile Bottom Navigation (Native App feel) */
  .mobile-bottom-nav {
    display: flex;
    background: rgba(16, 18, 29, 0.85);
    border-top: 1px solid var(--border-light);
    backdrop-filter: blur(25px);
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    height: var(--mobile-nav-height);
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    padding: 0 10px;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    gap: 4px;
    width: 60px;
    height: 100%;
    transition: var(--transition-smooth);
  }

  .mobile-nav-item i {
    font-size: 1.25rem;
  }

  .mobile-nav-item.active {
    color: var(--accent-purple);
  }

  /* Floating Action Button for mobile */
  .mobile-nav-fab {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-teal) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    border: none;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.45);
    transform: translateY(-20px);
    cursor: pointer;
    transition: var(--transition-bounce);
  }

  .mobile-nav-fab:hover {
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.6);
    transform: translateY(-22px) scale(1.05);
  }

  /* Card and table layout adjustments on mobile */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .page-header button {
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-charts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .recent-panel {
    padding: 20px;
  }

  /* Transform table on mobile directory to visual card cards grid */
  .desktop-table-container {
    display: none; /* Hide standard table */
  }

  .links-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .link-mobile-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .link-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .link-card-dest {
    font-size: 0.8rem;
    color: var(--text-secondary);
    word-break: break-all;
  }

  .link-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 10px;
  }

  .vault-filters {
    flex-direction: column;
  }
  
  .vault-filters button {
    width: 100%;
  }

  .api-card {
    padding: 22px;
  }

  .api-reference-header,
  .api-detail-title-row,
  .api-selected-summary > div {
    flex-direction: column;
    align-items: flex-start;
  }

  .api-reference-meta {
    justify-content: flex-start;
  }

  .api-detail-grid {
    grid-template-columns: 1fr;
  }

  .api-payload-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .modal-content {
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 20px 24px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-charts {
    grid-template-columns: 1fr;
  }
  
  .analytics-lists-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PHASE 7 & 8: ADVANCED TYPE SELECTOR GRID & DYNAMIC LANDING COMPONENT STYLES
   ========================================================================== */

/* Type Selector Grid */
.qr-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.qr-type-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  text-align: center;
}

.qr-type-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.qr-type-card.active {
  background: rgba(138, 43, 226, 0.06);
  border-color: var(--accent-purple);
  box-shadow: 0 4px 15px var(--accent-purple-glow);
}

.qr-type-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.qr-type-card.active .qr-type-icon-wrap {
  background: var(--accent-purple);
  color: #ffffff;
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

.qr-type-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.qr-type-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.2;
}

@media screen and (max-width: 600px) {
  .qr-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dynamic Field Panels */
.qr-type-fields {
  margin-top: 16px;
  animation: fadeIn 0.3s ease-in-out;
}

/* Builder Items (Links, Menus) */
.builder-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  text-align: left;
}

.builder-item-card .btn-delete-item {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--accent-pink);
  cursor: pointer;
  font-size: 0.85rem;
}

.builder-item-card .btn-delete-item:hover {
  color: #ff5252;
}

/* Base64 Thumbnails */
.thumbnail-preview {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   DYNAMIC MOBILE MOCKUP LANDING PAGES (PHONE SCREEN CUSTOM INTERFACES)
   ========================================================================== */
.mock-landing-page {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, #151829 0%, #08090f 100%);
  padding: 16px 12px;
  border-radius: 16px;
  gap: 16px;
  text-align: left;
}

.mock-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.mock-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mock-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mock-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 220px;
  line-height: 1.4;
}

/* Link Tree List */
.mock-links-tree {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.mock-tree-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: block;
}

.mock-tree-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--accent-teal);
  transform: translateY(-1px);
}

/* Coupon Card Layout */
.mock-coupon-card {
  border: 2px dashed rgba(245, 0, 87, 0.3);
  background: rgba(245, 0, 87, 0.02);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-coupon-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-pink);
}

.mock-coupon-discount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-pink);
  margin: 0;
  letter-spacing: -0.5px;
}

.mock-coupon-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.mock-coupon-code-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-teal);
  letter-spacing: 1px;
}

.mock-coupon-expiry {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* MP3 Record Spinning Layout */
.mock-mp3-player {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.vinyl-record-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #111;
  border: 3px solid #333;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spinVinyl 6s linear infinite;
}

.vinyl-center {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border: 2px solid #111;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mock-mp3-details h4 {
  font-size: 0.9rem;
  margin: 0 0 4px 0;
}

.mock-mp3-details p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Restaurant Menu Layout */
.mock-menu-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.mock-menu-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.mock-menu-info {
  flex-grow: 1;
}

.mock-menu-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.mock-menu-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.mock-menu-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-teal);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Business Layout info panels */
.mock-biz-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.mock-biz-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.01);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
}

.mock-biz-row i {
  color: var(--accent-purple);
  width: 16px;
  text-align: center;
}

/* App Badges download buttons */
.mock-apps-row {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.mock-app-btn {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.65rem;
  text-align: left;
  transition: var(--transition-smooth);
}

.mock-app-btn:hover {
  border-color: var(--accent-teal);
  background: rgba(0,0,0,0.6);
}

.mock-app-btn i {
  font-size: 1.25rem;
}

.mock-app-btn span strong {
  display: block;
  font-size: 0.75rem;
}

/* ==========================================================================
   ENTERPRISE SUITE: SIMULATED OAUTH SSO LOGIN PORTAL
   ========================================================================== */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 8, 14, 0.94);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity var(--transition-smooth);
}

.login-container {
  background: rgba(16, 20, 38, 0.65);
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 1px 1px rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  padding: 48px;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.login-container h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: -0.5px;
}

.btn-sso:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-google i {
  font-size: 1.1rem;
}

.btn-microsoft i {
  font-size: 1.1rem;
}

/* ==========================================================================
   ENTERPRISE SUITE: GEOLOCATION LEAFLET WIDGETS
   ========================================================================== */
.leaflet-container {
  background: #0b0c10 !important;
  font-family: inherit;
}

/* Customize Leaflet dark themed popups */
.leaflet-popup-content-wrapper {
  background: rgba(10, 12, 22, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(10px);
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 4px;
}

.leaflet-popup-tip {
  background: rgba(10, 12, 22, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.leaflet-popup-content {
  margin: 12px 14px !important;
  font-size: 0.8rem;
  line-height: 1.4;
}

.leaflet-popup-content h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin: 0 0 6px 0;
  font-size: 0.9rem;
  color: var(--accent-teal);
}

.leaflet-popup-content p {
  margin: 3px 0 !important;
  color: var(--text-secondary);
}

.leaflet-popup-content .popup-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 6px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 4px;
}

/* Leaflet Zoom Control Styling */
.leaflet-bar {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.leaflet-bar a {
  background-color: rgba(16, 20, 38, 0.9) !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: var(--transition-smooth);
}

.leaflet-bar a:hover {
  background-color: rgba(138, 43, 226, 0.2) !important;
  color: var(--accent-teal) !important;
}

/* Custom Marker Pulsing Keyframes */
.pulse-scan-marker-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-scan-marker {
  width: 10px;
  height: 10px;
  background: var(--accent-teal);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px var(--accent-teal);
}

.pulse-scan-marker::after {
  content: '';
  width: 100%;
  height: 100%;
  background: var(--accent-teal);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  animation: markerPulse 1.8s infinite ease-out;
  opacity: 0.8;
}

@keyframes markerPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==========================================================================
   ENTERPRISE SUITE: BRANDED CUSTOM DOMAINS PANELS
   ========================================================================== */
.domain-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition-smooth);
}

.domain-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(138, 43, 226, 0.2);
}

.domain-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.domain-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(138, 43, 226, 0.08);
  border: 1px solid rgba(138, 43, 226, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  font-size: 1.1rem;
}

.domain-details h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.domain-details p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.domain-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.domain-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.domain-badge.verified {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-teal);
}

.btn-delete-domain {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-delete-domain:hover {
  background: rgba(234, 67, 53, 0.08);
  color: var(--accent-pink);
}

/* ==========================================================================
   DYNAMIC FORM COMPONENT & MOBILE PREVIEW VIEWPORTS STYLING
   ========================================================================== */

/* Sub-tab container & button styling */
.sub-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}
.sub-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}
.sub-tab-btn.active {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--border-light) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.emoji-select-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--accent-teal) !important;
  transform: scale(1.08);
}
.emoji-select-btn.active {
  background: rgba(0, 242, 254, 0.08) !important;
  border-color: var(--accent-teal) !important;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* Facilities Selection */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.facility-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.facility-card i {
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}
.facility-card span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-smooth);
}
.facility-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.15);
}
.facility-card.active {
  background: rgba(138, 43, 226, 0.05);
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px rgba(138, 43, 226, 0.15);
}
.facility-card.active i {
  color: var(--accent-purple);
}
.facility-card.active span {
  color: #ffffff;
}

/* Operating Hours Form Grid */
.operating-hours-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}
.operating-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 50px;
  align-items: center;
  gap: 8px;
}
.operating-row span.day-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.operating-row select {
  padding: 4px 8px !important;
  font-size: 0.75rem !important;
}
.operating-row label.switch-mini {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

/* Dynamic Phone Frame Scroll Container */
.phone-scroll-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 12px 4px 40px 4px;
  scrollbar-width: none; /* Hide scrollbar for clean look */
}
.phone-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Welcome Splash Screen Styling inside Preview & Landing */
.welcome-splash-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--splash-bg, #0b0c10);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.welcome-splash-logo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-teal);
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
  animation: floatSplash 3s infinite ease-in-out;
}
@keyframes floatSplash {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.welcome-splash-title {
  font-family: var(--title-font, 'Outfit'), sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.welcome-splash-tagline {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Password Gate Screen Styling */
.password-gate-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 12, 22, 0.95);
  backdrop-filter: blur(15px);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.password-gate-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 280px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.password-gate-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(234, 67, 53, 0.08);
  border: 1px solid rgba(234, 67, 53, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-pink);
  font-size: 1.25rem;
  margin: 0 auto 16px auto;
}
.password-gate-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.password-gate-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.password-gate-input-wrapper {
  margin-bottom: 14px;
  position: relative;
}
.password-gate-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid var(--border-light) !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-size: 0.85rem !important;
  text-align: center;
}
.password-gate-btn {
  width: 100%;
  padding: 10px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

/* Premium Mobile Viewport Landing Previews */
.preview-landing-body {
  font-family: var(--body-font, 'Outfit'), sans-serif;
  background: var(--theme-bg, #0b0c10);
  color: var(--theme-text, #ffffff);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.preview-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.preview-profile-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent-primary, var(--accent-teal));
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.preview-profile-title {
  font-family: var(--title-font, 'Outfit'), sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}
.preview-profile-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.preview-section-title {
  font-family: var(--title-font, 'Outfit'), sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-primary, var(--accent-teal));
  margin: 16px 0 8px 0;
}
.preview-card-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.preview-card-item p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Contact / Web details lists */
.preview-list-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preview-list-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}
.preview-list-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.preview-list-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary, var(--accent-teal));
  font-size: 0.9rem;
}
.preview-list-info {
  display: flex;
  flex-direction: column;
}
.preview-list-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 700;
}
.preview-list-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

/* Video Preview Layout */
.preview-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.preview-video-container iframe,
.preview-video-container video {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: none;
  object-fit: cover;
}

/* Facilities list on preview */
.preview-facilities-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.preview-facility-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.preview-facility-pill i {
  font-size: 0.95rem;
  color: var(--accent-primary, var(--accent-teal));
}
.preview-facility-pill span {
  font-size: 0.6rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Operating Hours Preview */
.preview-hours-table {
  width: 100%;
  border-collapse: collapse;
}
.preview-hours-table td {
  padding: 6px 8px;
  font-size: 0.75rem;
}
.preview-hours-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.preview-hours-table tr:last-child {
  border-bottom: none;
}
.preview-hours-table td.day {
  font-weight: 600;
  color: var(--text-secondary);
}
.preview-hours-table td.hours {
  text-align: right;
  color: #fff;
  font-weight: 500;
}
.preview-hours-table td.closed {
  text-align: right;
  color: var(--accent-pink);
  font-weight: 700;
}

/* Links Preview with Thumbnails */
.preview-link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}
.preview-link-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  border-color: var(--accent-primary, var(--accent-teal));
}
.preview-link-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
.preview-link-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.preview-link-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}
.preview-link-url {
  font-size: 0.65rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  white-space: nowrap;
}

/* Social Grid Preview */
.preview-social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.preview-social-btn {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.preview-social-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--accent-primary, var(--accent-teal));
  color: var(--accent-primary, var(--accent-teal));
  transform: translateY(-2px);
}

/* ==========================================================================
   PHASE 17: CLOUD STORAGE INTEGRATIONS & SIMULATED OAUTH CSS
   ========================================================================== */

/* Integrations Tab Dashboard Layout */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}

.integration-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.integration-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: var(--transition-smooth);
}

.integration-card.gdrive::before {
  background: linear-gradient(90deg, #34a853, #4285f4, #fbbc05);
}

.integration-card.onedrive::before {
  background: linear-gradient(90deg, #0078d4, #00a4ef);
}

.integration-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
}

.integration-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.integration-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.integration-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

.gdrive .integration-logo-wrap {
  color: #fbbc05;
  background: rgba(250, 188, 5, 0.08);
  border-color: rgba(250, 188, 5, 0.15);
}

.onedrive .integration-logo-wrap {
  color: #0078d4;
  background: rgba(0, 120, 212, 0.08);
  border-color: rgba(0, 120, 212, 0.15);
}

.integration-name h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.integration-name p {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.integration-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

.integration-badge.disconnected {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.integration-badge.connected {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  color: #00e676;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.15);
}

.integration-body {
  flex-grow: 1;
  margin-bottom: 24px;
}

.integration-body p.desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.integration-settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.integration-settings-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.integration-settings-group input {
  padding: 8px 10px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: #fff;
  outline: none;
  transition: var(--transition-smooth);
}

.integration-settings-group input:focus {
  border-color: var(--accent-purple);
  background: rgba(255, 255, 255, 0.04);
}

.integration-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-integration-toggle {
  flex: 1;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-integration-toggle.connect {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: var(--border-light);
  color: #ffffff;
}

.btn-integration-toggle.connect:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.gdrive .btn-integration-toggle.disconnect {
  background: rgba(234, 67, 53, 0.06);
  border-color: rgba(234, 67, 53, 0.2);
  color: #ea4335;
}

.gdrive .btn-integration-toggle.disconnect:hover {
  background: rgba(234, 67, 53, 0.12);
  border-color: rgba(234, 67, 53, 0.3);
}

.onedrive .btn-integration-toggle.disconnect {
  background: rgba(234, 67, 53, 0.06);
  border-color: rgba(234, 67, 53, 0.2);
  color: #ea4335;
}

.onedrive .btn-integration-toggle.disconnect:hover {
  background: rgba(234, 67, 53, 0.12);
  border-color: rgba(234, 67, 53, 0.3);
}

/* OAuth Overlay Dialog Styles */
.oauth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}

.oauth-window {
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Google OAuth Specifics */
.oauth-window.google-theme {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
}

.oauth-window.google-theme .oauth-header {
  padding: 32px 32px 20px 32px;
  text-align: center;
}

.oauth-window.google-theme .oauth-logo {
  font-size: 2rem;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.oauth-window.google-theme .oauth-title {
  font-size: 1.4rem;
  font-weight: 400;
  color: #202124;
}

.oauth-window.google-theme .oauth-subtitle {
  font-size: 0.95rem;
  color: #5f6368;
  margin-top: 8px;
}

.oauth-window.google-theme .oauth-content {
  padding: 0 32px 24px 32px;
  max-height: 380px;
  overflow-y: auto;
}

.google-account-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #dadce0;
  border-bottom: 1px solid #dadce0;
  margin-bottom: 24px;
}

.google-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-radius: 4px;
}

.google-account-item:hover {
  background: #f8f9fa;
}

.google-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #34a853;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.google-acc-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.google-acc-name {
  font-weight: 500;
  font-size: 0.88rem;
  color: #3c4043;
}

.google-acc-email {
  font-size: 0.75rem;
  color: #5f6368;
}

.google-permissions-alert {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  font-size: 0.8rem;
  color: #3c4043;
  line-height: 1.4;
  margin-bottom: 24px;
  border: 1px solid #e8eaed;
}

.google-permissions-alert ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.google-permissions-alert li {
  margin-top: 4px;
}

.google-footer-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-google {
  padding: 8px 24px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease;
}

.btn-google.cancel {
  background: transparent;
  color: #1a73e8;
}

.btn-google.cancel:hover {
  background: rgba(26, 115, 232, 0.04);
}

.btn-google.approve {
  background: #1a73e8;
  color: #ffffff;
}

.btn-google.approve:hover {
  background: #1557b0;
}

/* Microsoft OAuth Specifics */
.oauth-window.microsoft-theme {
  background: #2b2b2b;
  color: #f3f3f3;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0;
  max-width: 420px;
}

.oauth-window.microsoft-theme .oauth-header {
  padding: 32px 32px 16px 32px;
}

.oauth-window.microsoft-theme .oauth-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.ms-logo-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  width: 24px;
  height: 24px;
}

.ms-square {
  width: 11px;
  height: 11px;
}

.ms-square.red { background: #f25022; }
.ms-square.green { background: #7fba00; }
.ms-square.blue { background: #00a4ef; }
.ms-square.yellow { background: #ffb900; }

.ms-brand-name {
  font-weight: 600;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.5px;
}

.ms-title {
  font-size: 1.25rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 4px;
}

.oauth-window.microsoft-theme .oauth-content {
  padding: 0 32px 32px 32px;
}

.ms-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.ms-input {
  background: #fff;
  color: #000;
  border: 1px solid #858585;
  padding: 8px 12px;
  font-size: 0.9rem;
  outline: none;
}

.ms-input:focus {
  border-color: #0078d4;
}

.ms-permissions-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 14px;
  font-size: 0.78rem;
  color: #ccc;
  line-height: 1.4;
  margin-bottom: 24px;
}

.ms-permissions-box strong {
  color: #fff;
}

.ms-buttons-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-ms {
  padding: 8px 32px;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease;
}

.btn-ms.cancel {
  background: #cccccc;
  color: #333333;
}

.btn-ms.cancel:hover {
  background: #bbbbbb;
}

.btn-ms.approve {
  background: #0078d4;
  color: #ffffff;
}

.btn-ms.approve:hover {
  background: #005a9e;
}

/* Upload Progress Loader Modal */
.upload-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeIn 0.25s ease;
}

.upload-loader-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-spinner-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.upload-spinner-outer {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(138, 43, 226, 0.1);
  border-left-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.upload-spinner-inner {
  position: absolute;
  inset: 12px;
  box-sizing: border-box;
  border: 3px solid rgba(0, 242, 254, 0.1);
  border-right-color: var(--accent-teal);
  border-radius: 50%;
  animation: spinReverse 1.5s linear infinite;
}

.upload-loader-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.upload-loader-card p.subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.upload-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.upload-step-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: var(--transition-smooth);
}

.upload-step-row.active {
  color: #ffffff;
  font-weight: 600;
}

.upload-step-row.completed {
  color: var(--accent-teal);
}

.upload-step-row i {
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
}

.upload-step-row.completed i {
  color: var(--accent-teal);
}

.upload-step-row.pending i {
  color: var(--text-dim);
}

.upload-step-row.active i.fa-spinner {
  animation: spin 1s linear infinite;
  color: var(--accent-purple);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}
