/* ==========================================================================
   Arabic Poetry Font Playground - Production Style Sheet
   ========================================================================== */

/* 1. Bundled Font Declaration (Autoloads for all users) */
@font-face {
  font-family: 'ArabicPoetry';
  src: url('../fonts/ArabicPoetry.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ThmanyahSans';
  src: url('../fonts/thmanyahsans-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ThmanyahSerifDisplay';
  src: url('../fonts/thmanyahserifdisplay-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ThmanyahSerifText';
  src: url('../fonts/thmanyahseriftext-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-ui: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-poetry-fallback: 'Amiri', serif;
  --font-poetry: 'ArabicPoetry', var(--font-poetry-fallback);
  
  /* Web Preview Defaults */
  --font-web-headings: "ThmanyahSerifDisplay", sans-serif;
  --font-web-body: "ThmanyahSerifText", sans-serif;
  --font-web-buttons: "ThmanyahSans", sans-serif;
  
  /* UI Colors */
  --bg-app: #08080a;
  --bg-sidebar: rgba(15, 15, 18, 0.9);
  --border-ui: rgba(255, 255, 255, 0.06);
  --border-ui-hover: rgba(255, 255, 255, 0.15);
  --text-muted: #888890;
  --text-light: #f1f1f3;
  --accent: #c5a880;
  --accent-hover: #d8be99;
  --danger: #f87171;
  --success: #4ade80;
  --warning: #facc15;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Poetry Card Dynamic Styles (Default Values, Updated via JS) */
  --card-font-size: 42px;
  --card-line-height: 1.8;
  --card-letter-spacing: 0px;
  --card-text-align: center;
  
  --card-text-color: #c5a880;
  --card-bg-color: #141416;
  --card-ornament-color: #c5a880;
  --card-border-color: rgba(197, 168, 128, 0.3);
  
  --bg-blur: 0px;
  --overlay-opacity: 0.4;
  --bg-scale: 1;
  --bg-pos-x: 50%;
  --bg-pos-y: 50%;
}

/* Global premium text selection styling matching the app's theme */
::selection {
  background-color: rgba(197, 168, 128, 0.25); /* Gold accent with opacity */
  color: var(--text-light);
}
::-moz-selection {
  background-color: rgba(197, 168, 128, 0.25);
  color: var(--text-light);
}

/* Disable user selection globally when adjusting card/sliders to prevent cursor shifts */
body.is-adjusting,
body.is-adjusting * {
  user-select: none !important;
  -webkit-user-select: none !important;
}

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

body {
  font-family: var(--font-ui);
  background-color: var(--bg-app);
  color: var(--text-light);
  min-height: 100vh;
  overflow: hidden;
  direction: rtl;
  display: flex;
}

.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ==========================================================================
   Mobile Navigation Header (Visible on Mobile only)
   ========================================================================== */
.mobile-header {
  display: none;
  height: 60px;
  background-color: #0f0f12;
  border-bottom: 1px solid var(--border-ui);
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 15;
}

.btn-menu, .btn-menu-close {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 20px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-logo-text {
  font-family: 'ArabicPoetry', var(--font-poetry-fallback);
  font-size: 40px;
  font-weight: normal;
  color: var(--text-light);
}

/* ==========================================================================
   Sidebar Panel
   ========================================================================== */
.sidebar {
  width: 360px;
  background-color: var(--bg-sidebar);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-left: 1px solid var(--border-ui);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 10;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  overflow-y: auto;
  transition: transform var(--transition-normal);
  position: relative;
  direction: ltr; /* Moves scrollbar to the right edge (wall) in RTL */
}

.sidebar > * {
  direction: rtl; /* Restores content layout direction */
}

/* Sidebar Top Actions Container - Far Top Corner */
.sidebar-top-actions {
  position: fixed;
  top: 14px;
  display: flex;
  gap: 8px;
  z-index: 100;
}

/* logical placement based on direction */
html[dir="rtl"] .sidebar-top-actions {
  right: 16px;
  left: auto;
}

html[dir="ltr"] .sidebar-top-actions {
  left: 16px;
  right: auto;
}

.sidebar-top-actions .btn-secondary {
  height: 28px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(15, 15, 18, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-ui) !important;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
  padding: 0 10px !important;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-primary), system-ui, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-top-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.sidebar-top-actions .btn-secondary i {
  font-size: 12px;
}

.sidebar-header {
  padding: 52px 20px 16px;
  border-bottom: 1px solid var(--border-ui);
  text-align: center;
}

.logo-text {
  font-family: 'ArabicPoetry', var(--font-poetry-fallback);
  font-size: 52px;
  font-weight: normal;
  color: var(--text-light);
  display: inline-block;
}

.logo-subtext {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.control-section {
  padding: 20px;
  border-bottom: 1px solid var(--border-ui);
}

.section-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .icon {
  color: var(--accent);
  font-size: 14px;
}

.section-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Aspect Ratio Buttons Grid */
.ratio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.ratio-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-ui);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.ratio-btn i {
  font-size: 14px;
}

.ratio-btn span {
  font-size: 10px;
  font-weight: 600;
}

.ratio-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
}

.ratio-btn.active {
  background: rgba(197, 168, 128, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}

#btnWebZoomReset {
  justify-content: center !important;
}
#btnWebZoomReset span {
  font-size: 13px !important;
  font-weight: 700 !important;
}


/* Drag and Drop Zone */
.dropzone {
  border: 1.5px dashed var(--border-ui);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: rgba(197, 168, 128, 0.04);
}

.drop-icon {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 6px;
  transition: transform var(--transition-fast);
}

.dropzone:hover .drop-icon {
  transform: translateY(-2px);
  color: var(--accent);
}

.dropzone span {
  font-size: 11.5px;
  color: var(--text-light);
}

.font-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

/* Color Pickers Grid */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.color-picker-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.picker-label {
  font-size: 11px;
  color: var(--text-muted);
}

.picker-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-ui);
  border-radius: 6px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.picker-wrapper input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  flex-shrink: 0;
}

.picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.picker-wrapper input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.hex-label {
  font-size: 10px;
  color: var(--text-light);
  font-family: monospace;
}

/* Background Image Uploader Style */
.bg-upload-zone {
  border: 1.5px dashed var(--border-ui);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: all var(--transition-fast);
}

.bg-upload-zone:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
}

.icon-upload {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.bg-upload-zone span {
  font-size: 11.5px;
  display: block;
}

.btn-danger-sm {
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 8px;
  width: 100%;
}

.btn-danger-sm:hover {
  background: var(--danger);
  color: #121214;
}

/* Custom Text Input for Watermark */
.text-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-ui);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-light);
  font-family: var(--font-ui);
  font-size: 12px;
  outline: none;
  transition: all var(--transition-fast);
}

.text-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

/* Styled Dropdown Border Selection */
.styled-select {
  width: 100%;
  background: rgba(25, 25, 28, 0.9);
  border: 1px solid var(--border-ui);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-light);
  font-family: var(--font-ui);
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: border var(--transition-fast);
}

.styled-select:focus {
  border-color: var(--accent);
}

/* Controls CSS (Sync with former sliders) */
.control-group {
  margin-bottom: 14px;
}

.styled-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-ui);
  border-radius: 8px;
  color: var(--text-light);
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.styled-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.control-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.align-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.btn-align {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-ui);
  color: var(--text-muted);
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-align.active {
  background: rgba(197, 168, 128, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}

.format-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.btn-format {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-ui);
  color: var(--text-muted);
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-format.active {
  background: rgba(197, 168, 128, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}

.toggle-switch {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
}

.toggle-switch input {
  display: none;
}

.slider-toggle {
  width: 34px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  position: relative;
  flex-shrink: 0;
  transition: background-color var(--transition-fast);
}

.slider-toggle::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: white;
  top: 3px;
  right: 3px;
  transition: transform var(--transition-fast);
}

.toggle-switch input:checked + .slider-toggle {
  background-color: var(--accent);
}

.toggle-switch input:checked + .slider-toggle::before {
  transform: translateX(-16px);
}

.toggle-text {
  font-size: 12px;
  color: var(--text-muted);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.themes-library-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.theme-lib-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-ui);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
  transition: all var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

.theme-lib-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.theme-lib-card.active {
  background: rgba(197, 168, 128, 0.08);
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.15) !important;
}

.theme-preview {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  gap: 2px;
  flex-shrink: 0;
  box-shadow: inset 0 0 2px rgba(0,0,0,0.2);
}

.theme-name {
  font-size: 11px;
  color: var(--text-light);
  font-family: var(--font-ui);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.samples-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sample-btn {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-ui);
  color: var(--text-muted);
  text-align: right;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all var(--transition-fast);
}

.sample-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  border-color: var(--accent);
}

#samplesListEn {
  direction: ltr;
}

#samplesListEn .sample-btn {
  text-align: left;
}

.sidebar-footer {
  padding: 16px;
  margin-top: auto;
  border-top: 1px solid var(--border-ui);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #ad906a);
  color: #121214;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.4);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-app);
  position: relative;
  overflow: hidden;
}

.top-nav {
  height: 60px;
  border-bottom: 1px solid var(--border-ui);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-nav-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}


/* Indicators & Counters */
.font-indicator, .word-counter {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-ui);
  padding: 5px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  height: 28px;
}

.font-indicator strong, .word-counter strong {
  color: var(--accent);
  margin-inline-start: 4px;
}

.top-nav-middle {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

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

#btnMoreActions {
  display: none !important;
}

.top-nav-right .btn-primary {
  background: linear-gradient(135deg, var(--accent), #ad906a);
  color: #121214;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
}

.top-nav-right .btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-ui);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
}

.canvas-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  flex-grow: 1;
  flex-shrink: 1;
  min-height: 0;
  overflow-y: auto;
}

.canvas-area {
  width: 100%;
  min-height: calc(100vh - 60px); /* Fill the viewport height below top-nav */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 80px 24px 40px 24px; /* Breathing room for top floating panel and bottom spacing */
  box-sizing: border-box;
  background: radial-gradient(circle at center, rgba(197, 168, 128, 0.03) 0%, transparent 75%);
}

/* ==========================================================================
   Poetry Card Core Layout
   ========================================================================== */
.poetry-card {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  box-sizing: border-box;
  z-index: 2;
  border-radius: 20px;
  padding: 45px;
  
  /* Apply the pickers dynamic colors */
  color: var(--card-text-color);
  background-color: var(--card-bg-color);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Custom Text Selection styled dynamically based on theme variables */
.poetry-card ::selection {
  background-color: var(--card-ornament-color);
  color: var(--card-bg-color);
}
.poetry-card ::-moz-selection {
  background-color: var(--card-ornament-color);
  color: var(--card-bg-color);
}

/* Background image overlay */
.card-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: var(--bg-pos-x, 50%) var(--bg-pos-y, 50%);
  z-index: 0;
  filter: blur(var(--bg-blur, 0px));
  transform: scale(var(--bg-scale, 1));
  transition: filter var(--transition-fast), transform 0.05s ease-out;
  pointer-events: none;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0;
  z-index: 1;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.poetry-card.has-bg-image .card-overlay {
  opacity: var(--overlay-opacity, 0.4);
}

/* Z-indexing card elements above custom background image overlays */
.card-ornament, .card-body, .card-watermark {
  z-index: 2;
  position: relative;
}

.card-ornament {
  text-align: center;
  user-select: none;
  pointer-events: none;
  padding: 10px 0;
}

.ornament-shape {
  font-family: var(--font-poetry-fallback);
  font-size: 15px;
  letter-spacing: 4px;
  opacity: 0.85;
  color: var(--card-ornament-color);
  transition: color var(--transition-fast);
}

.card-body {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.writing-canvas {
  width: 100%;
  outline: none;
  font-family: var(--font-poetry);
  font-size: var(--card-font-size);
  font-weight: var(--card-font-weight, normal);
  line-height: var(--card-line-height);
  letter-spacing: var(--card-letter-spacing);
  text-align: var(--card-text-align);
  white-space: pre-wrap;
  word-wrap: break-word;
  padding: 10px;
  transition: color var(--transition-fast);
}

/* Arabic Diacritics (Harakat) Styling */
.haraka {
  color: var(--haraka-color, inherit) !important;
  display: inline !important;
}

body.hide-harakat .haraka {
  display: none !important;
}

/* Arabic-only UI controls styling */
html[lang="en"] .arabic-ui-only {
  display: none !important;
}
html[lang="ar"] .arabic-ui-only {
  display: block !important;
}

.card-watermark {
  font-size: 10.5px;
  opacity: 0.35;
  font-weight: 300;
  letter-spacing: 1px;
  padding: 10px 0 0;
  width: 100%;
  text-align: left;
  transition: color var(--transition-fast);
}

/* ==========================================================================
   Luxury Inset Border Frames
   ========================================================================== */
.poetry-card::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 12px;
  pointer-events: none;
  z-index: 3;
  transition: border var(--transition-fast), opacity var(--transition-fast);
  opacity: 0.7;
}

.poetry-card.has-border-none::after {
  border: none;
}

.poetry-card.has-border-classic::after {
  border: 1.5px dashed var(--card-border-color);
}

.poetry-card.has-border-double::after {
  border: 4px double var(--card-border-color);
  inset: 16px;
  border-radius: 14px;
}

.poetry-card.has-border-ornate::after {
  border: 1px solid var(--card-border-color);
  inset: 22px;
  border-radius: 8px;
}

/* Outer secondary thin line for Ornate style */
.poetry-card.has-border-ornate::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 0.5px solid var(--card-border-color);
  border-radius: 12px;
  pointer-events: none;
  opacity: 0.3;
  z-index: 3;
  transition: border var(--transition-fast), opacity var(--transition-fast);
}

/* Corner Ornaments positioning and styling */
.card-corners {
  display: none;
}

.poetry-card.has-border-ornate .card-corners {
  display: block;
}

.corner {
  position: absolute;
  color: var(--card-ornament-color);
  font-size: 14px;
  z-index: 4;
  user-select: none;
  pointer-events: none;
  opacity: 0.85;
  transition: color var(--transition-fast);
}

.corner.top-right { top: 15px; right: 15px; }
.corner.top-left { top: 15px; left: 15px; }
.corner.bottom-right { bottom: 15px; right: 15px; }
.corner.bottom-left { bottom: 15px; left: 15px; }

/* ==========================================================================
   Aspect Ratio Classes (Desktop)
   ========================================================================== */
.poetry-card.ratio-auto {
  max-width: 720px;
  min-height: 420px;
}

.poetry-card.ratio-1-1 {
  aspect-ratio: 1 / 1;
  max-width: 540px;
  min-height: auto;
}

.poetry-card.ratio-9-16 {
  aspect-ratio: 9 / 16;
  max-width: 350px;
  min-height: auto;
}

.poetry-card.ratio-16-9 {
  aspect-ratio: 16 / 9;
  max-width: 720px;
  min-height: auto;
}

/* Glow/Shadow on text */
.poetry-card.has-shadow .writing-canvas {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

/* Soften shadows on lighter themes dynamically */
.poetry-card.ancient-papyrus.has-shadow .writing-canvas,
.poetry-card.minimal-light.has-shadow .writing-canvas {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.poetry-card.has-shadow .ornament-shape, 
.poetry-card.has-shadow .corner,
.poetry-card.has-shadow .card-watermark {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.app-footer {
  width: 100%;
  margin-top: 60px;
  flex-shrink: 0;
  height: 40px;
  border-top: 1px solid var(--border-ui);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(15, 15, 18, 0.2);
}

/* Custom Resize Handle for Poetry Card */
.card-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  cursor: se-resize;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 4px;
  color: var(--card-ornament-color);
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
  user-select: none;
  -webkit-user-select: none;
}

.card-resize-handle:hover {
  opacity: 1;
  transform: scale(1.15);
}

.card-resize-handle::after {
  content: "◢";
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 768px) {
  .card-resize-handle {
    width: 36px;
    height: 36px;
    padding: 6px;
  }
  
  .font-indicator {
    display: none;
  }
  
  .word-counter {
    border-inline-start: none;
    padding-inline-start: 0;
  }
}

/* Responsive Utilities & Layout Helpers */
.mobile-only, .mobile-only-flex, .mobile-only-inline {
  display: none !important;
}

@media (max-width: 1024px) {
  .desktop-only, .desktop-only-flex, .desktop-only-inline {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .mobile-only-flex {
    display: flex !important;
  }
  .mobile-only-inline {
    display: inline-block !important;
  }
}

.sidebar-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.btn-sidebar-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.btn-sidebar-close:hover {
  color: var(--text-light);
}

@media (max-width: 1400px) {
  /* Collapse secondary header actions to icon-only buttons */
  .header-actions .btn-secondary span {
    display: none !important;
  }
  
  .header-actions .btn-secondary {
    padding: 0;
    width: 32px;
    height: 32px;
    justify-content: center;
  }
  
  .view-tabs .tab-btn span {
    display: none;
  }
  
  .view-tabs .tab-btn i {
    margin: 0;
  }
  
  .font-indicator span, .word-counter span {
    display: none;
  }
  
  .top-nav {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  /* Hide inline header actions completely and rely on mobile kebab menu */
  .header-actions {
    display: none;
  }
  
  #btnMoreActions {
    display: flex !important;
  }
  
  /* Responsive Header Actions Dropdown styling for the kebab menu early trigger */
  .header-actions {
    position: absolute;
    top: 52px;
    right: 16px;
    background: rgba(18, 18, 22, 0.96);
    border: 1px solid var(--border-ui);
    border-radius: 8px;
    flex-direction: column;
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 100;
    gap: 2px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  
  html[dir="rtl"] .header-actions {
    right: auto;
    left: 16px;
  }
  
  .header-actions.active {
    display: flex;
  }
  
  .header-actions .btn-secondary {
    width: 100%;
    justify-content: flex-start;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
    height: 36px;
  }
  
  .header-actions .btn-secondary span {
    display: inline !important;
  }
  
  .header-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
  }

  /* Decrease header gaps */
  .top-nav {
    padding: 0 12px;
  }
  
  .top-nav-left {
    gap: 6px;
  }
  
  .top-nav-right {
    gap: 6px;
  }
}

/* ==========================================================================
   Responsive Adaptations & Collapsible Mobile Sidebar Drawer
   ========================================================================== */
@media (max-width: 1024px) {
  body {
    padding-top: 0; /* Unify layout under single top navigation */
  }
  
  .app-container {
    height: 100vh;
    width: 100vw;
  }
  
  /* Sidebar behaves as a slide-out drawer */
  .sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    transform: translateX(100%);
    box-shadow: -10px 0 30px rgba(0,0,0,0.6);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .sidebar-top-actions {
    position: absolute;
  }
  
  /* Dark overlay background for mobile */
  .sidebar-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9;
  }
  
  .sidebar-overlay.active {
    display: block;
  }
  
  .main-content {
    width: 100vw;
  }
  
  .top-nav {
    padding: 0 16px;
    height: 56px;
  }
  .canvas-wrapper {
    padding: 0;
  }
  .canvas-area {
    min-height: calc(100vh - 56px);
    padding: 66px 16px 30px 16px;
    box-sizing: border-box;
  }
  body.view-mode-document .canvas-area {
    min-height: calc(100vh - 56px) !important;
    padding: 40px 16px !important;
  }
  
  .poetry-card {
    min-height: auto;
    padding: 30px;
  }
  
  .poetry-card::after {
    inset: 14px;
  }
  
  .poetry-card.has-border-double::after {
    inset: 11px;
  }
  
  .poetry-card.has-border-ornate::after {
    inset: 16px;
  }
  
  .poetry-card.has-border-ornate::before {
    inset: 9px;
  }
  
  .corner.top-right { top: 14px; /* Adjusted to detach from the edge */ right: 10px; }
  .corner.top-left { top: 14px; /* Adjusted to detach from the edge */ left: 10px; }
  .corner.bottom-right { bottom: 10px; right: 10px; }
  .corner.bottom-left { bottom: 10px; left: 10px; }
  
  .poetry-card.ratio-auto {
    max-width: 100%;
    min-height: 320px;
  }
  
  .poetry-card.ratio-1-1, .poetry-card.ratio-9-16, .poetry-card.ratio-16-9 {
    max-width: 100%;
    width: 100%;
  }
  
  .card-ornament {
    padding: 6px 0;
  }
}

/* ==========================================================================
   UI Level Control Switch, Textures, and Ornaments
   ========================================================================== */

/* Hiding class for simple mode active */
.sidebar.mode-simple .advanced-only {
  display: none !important;
}

/* Mode Switcher Container */
.ui-mode-toggle-wrapper {
  padding: 2px 16px 14px 16px;
  border-bottom: 1px solid var(--border-ui);
  margin-bottom: 14px;
}

.ui-mode-toggle-wrapper.mode-switcher-wrapper {
  padding: 2px 16px 4px 16px;
  border-bottom: none;
  margin-bottom: 0;
}

.ui-mode-toggle-wrapper.lang-switcher-wrapper {
  padding: 4px 16px 16px 16px;
  border-bottom: 1px solid var(--border-ui);
  margin-bottom: 16px;
}

.ui-mode-toggle-wrapper .select-label {
  margin-bottom: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  justify-content: flex-start;
  gap: 6px;
}

.ui-mode-toggle {
  display: flex;
  background: rgba(16, 16, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mode-toggle-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mode-toggle-btn i {
  font-size: 11px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mode-toggle-btn:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.03);
}

.mode-toggle-btn.active {
  background: rgba(197, 168, 128, 0.12);
  color: var(--accent);
  border: 1px solid rgba(197, 168, 128, 0.25);
  box-shadow: 0 2px 10px rgba(197, 168, 128, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-weight: 700;
}

.mode-toggle-btn.active i {
  transform: scale(1.1);
}

/* Card Font family dynamic binding */
#editableText {
  font-family: var(--font-poetry, 'ArabicPoetry'), var(--font-poetry-fallback);
}

/* Card Texture Layer */
.card-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2; /* Between background overlay (1) and card-body (normal stacked) */
  opacity: 0;
  transition: opacity var(--transition-normal);
  background-repeat: repeat;
}

/* Parchment Texture */
.poetry-card.texture-parchment .card-texture {
  background: 
    radial-gradient(circle at center, transparent 35%, rgba(139, 101, 53, 0.18) 100%),
    repeating-linear-gradient(0deg, rgba(160, 130, 90, 0.06) 0px, rgba(160, 130, 90, 0.06) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(160, 130, 90, 0.04) 0px, rgba(160, 130, 90, 0.04) 1px, transparent 1px, transparent 6px);
  opacity: var(--texture-opacity, 1); /* dynamic opacity controlled by user */
}

/* Islamic Star/Geometric Tile Pattern (uses inline vector SVG) */
.poetry-card.texture-islamic .card-texture {
  background-image: url("data:image/svg+xml;utf8,<svg width='50' height='50' viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'><path d='M25 0 L50 25 L25 50 L0 25 Z M25 12 L38 25 L25 38 L12 25 Z' fill='none' stroke='%23c5a880' stroke-width='0.8' stroke-opacity='0.22'/></svg>");
  background-size: 50px 50px;
  opacity: var(--texture-opacity, 1); /* dynamic opacity controlled by user */
}

/* Silk Linen Texture */
.poetry-card.texture-silk .card-texture {
  background: 
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 50%, transparent 50%),
    linear-gradient(rgba(0, 0, 0, 0.04) 50%, transparent 50%);
  background-size: 4px 4px;
  opacity: var(--texture-opacity, 1); /* dynamic opacity controlled by user */
}

/* Ornament Presets Grid */
.ornament-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.orn-preset-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-ui);
  border-radius: 6px;
  color: var(--text-muted);
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.orn-preset-btn:hover {
  background: rgba(197, 168, 128, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Verse Segment Dividers styling */
.verse-divider {
  display: block;
  margin: 16px auto;
  text-align: center;
  font-size: var(--verse-divider-size, 16px);
  color: var(--card-ornament-color);
  opacity: 0.8;
  user-select: none;
  transition: font-size 0.2s ease, color var(--transition-normal);
  line-height: 1;
}

/* Carousel Manager styling */
.carousel-manager {
  margin-top: 14px; /* Adjusted to detach from the edge */
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-ui);
  border-radius: 8px;
  padding: 12px;
}

.carousel-pages-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-page-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.carousel-btn-page {
  min-width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-ui);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.carousel-btn-page:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.carousel-btn-page.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.3);
}

.btn-icon-add {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px dashed var(--accent);
  background: rgba(197, 168, 128, 0.05);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-icon-add:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* Top Action Bar Carousel styling - Corner Panel */

/* Premium Unified Floating Card Control Panel */
.canvas-pages-panel {
  position: absolute;
  top: 76px; /* Positioned below the 60px top-nav with 16px gap */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-ui);
  padding: 8px 12px;
  border-radius: 20px; /* Elegant card-like curves */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 40;
  transition: all var(--transition-normal);
}

/* Logical directional overrides */
html[dir="rtl"] .canvas-pages-panel {
  right: 24px;
  left: auto;
}
html[dir="ltr"] .canvas-pages-panel {
  left: 24px;
  right: auto;
}

/* Top Row: Utilities Layout */
.canvas-panel-utilities {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

/* Glassmorphic icon buttons styling */
.canvas-pages-panel .btn-secondary.btn-icon-only {
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.canvas-pages-panel .btn-secondary.btn-icon-only:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  transform: translateY(-1px);
}
.canvas-pages-panel .btn-secondary.btn-icon-only:active {
  transform: translateY(0);
}

/* Elegant visual divider between top row and bottom row */
.canvas-panel-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 2px 0;
}

/* Bottom Row: Pages row layout */
.canvas-panel-pages-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.canvas-pages-panel .carousel-page-list {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Custom pages manager elements styling */
.canvas-pages-panel .carousel-btn-page {
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.canvas-pages-panel .carousel-btn-page:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}
.canvas-pages-panel .carousel-btn-page.active {
  background: var(--accent);
  color: #000;
  box-shadow: 0 2px 10px rgba(197, 168, 128, 0.4);
}

.canvas-pages-panel .btn-icon-add {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px dashed rgba(197, 168, 128, 0.4);
  background: rgba(197, 168, 128, 0.05);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 11px;
}
.canvas-pages-panel .btn-icon-add:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(197, 168, 128, 0.3);
}

.canvas-pages-panel .btn-icon-delete {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.08);
  color: rgb(239, 68, 68);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 11px;
}
.canvas-pages-panel .btn-icon-delete:hover:not(:disabled) {
  background: rgb(239, 68, 68);
  color: #fff;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}
.canvas-pages-panel .btn-icon-delete:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: transparent;
  color: rgba(255, 255, 255, 0.15);
}

/* Mobile Responsiveness for combined panel */
@media (max-width: 768px) {
  .canvas-pages-panel {
    top: 66px; /* Positioned below the 56px mobile top-nav with 10px gap */
    padding: 6px 10px;
    gap: 6px;
    border-radius: 16px;
  }
  html[dir="rtl"] .canvas-pages-panel { right: 10px; }
  html[dir="ltr"] .canvas-pages-panel { left: 10px; }

  .canvas-panel-divider {
    margin: 1px 0;
  }

  .canvas-pages-panel .btn-secondary.btn-icon-only,
  .canvas-pages-panel .carousel-btn-page,
  .canvas-pages-panel .btn-icon-add,
  .canvas-pages-panel .btn-icon-delete {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 10px;
  }
}

/* Card Page Indicator overlay styling */
.card-page-indicator {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-size: 11px;
  font-weight: 500;
  font-family: system-ui, -apple-system, sans-serif;
  letter-spacing: 1px;
  color: var(--card-text-color);
  opacity: 0.45;
  z-index: 10;
  transition: color var(--transition-normal);
  user-select: none;
  pointer-events: none;
}

/* ==========================================================================
   Site Language Switcher (Multilingual Toggle)
   ========================================================================== */

.site-lang-btn {
  position: absolute;
  top: 14px;
  left: 16px;
  right: auto;
  z-index: 100;
  background: rgba(16, 16, 20, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-lang-btn i {
  font-size: 11px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-lang-btn:hover {
  background: rgba(197, 168, 128, 0.08);
  border-color: rgba(197, 168, 128, 0.3);
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(197, 168, 128, 0.08);
}

.site-lang-btn:hover i {
  color: var(--accent);
}

/* LTR specific layout adjustments */
html[dir="ltr"] body {
  direction: ltr;
}

html[dir="ltr"] .site-lang-btn {
  left: auto;
  right: 16px;
}

html[dir="ltr"] .sidebar {
  border-left: none;
  border-right: 1px solid var(--border-ui);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
  direction: rtl; /* Moves scrollbar to the left edge (wall) in LTR */
}

html[dir="ltr"] .sidebar > * {
  direction: ltr; /* Restores content layout direction */
}

@media (max-width: 900px) {
  html[dir="ltr"] .sidebar {
    left: 0;
    right: auto;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0,0,0,0.6);
  }
  html[dir="ltr"] .sidebar.active {
    transform: translateX(0);
  }
}

/* ==========================================================================
   FAQ & SEO Guide Section Styles
   ========================================================================== */
.faq-section {
  width: 100%;
  max-width: 800px;
  margin-top: 60px;
  margin-bottom: 40px;
  padding: 30px;
  background: rgba(30, 30, 35, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-ui);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-align: right;
  direction: rtl;
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-section.faq-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

html[lang="en"] .faq-section {
  text-align: left;
  direction: ltr;
}

.faq-header {
  margin-bottom: 30px;
  text-align: center;
}

.faq-title {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
}

html[lang="en"] .faq-title {
  font-family: 'Montserrat', sans-serif;
}

.faq-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-fast) ease;
}

.faq-item:hover, .faq-item.active {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(197, 168, 128, 0.2);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-light);
  text-align: inherit;
  font-family: inherit;
  gap: 16px;
}

.faq-question {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-light);
}

.faq-icon {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform var(--transition-fast) ease;
}

html[lang="ar"] .faq-icon {
  margin-right: auto;
  margin-left: 0;
}

html[lang="en"] .faq-icon {
  margin-left: auto;
  margin-right: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--gold-primary);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}

.faq-item.active .faq-content {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 0 20px;
  transition: padding 0.3s ease-out;
}

.faq-item.active .faq-answer-inner {
  padding: 4px 20px 18px 20px;
}

.faq-answer-inner strong {
  color: var(--gold-secondary);
  font-weight: 600;
}

@media (max-width: 600px) {
  .faq-section {
    padding: 20px 16px;
    margin-top: 40px;
  }
  .faq-title {
    font-size: 18px;
  }
  .faq-question {
    font-size: 13px;
  }
  .faq-answer-inner {
    font-size: 12px;
  }
}

/* ==========================================================================
   View Tabs & Layout Toggling
   ========================================================================== */

/* Show/Hide controls based on view mode */
body.view-mode-document .design-only {
  display: none !important;
}
body.view-mode-document .document-only {
  display: block !important;
}
body.view-mode-design .document-only {
  display: none !important;
}
body.view-mode-design .design-only {
  display: block !important;
}

/* Specific buttons showing flex or grid layout rather than block */
body.view-mode-document button.document-only {
  display: flex !important;
}
body.view-mode-design button.design-only {
  display: flex !important;
}

/* Tabs switcher styling */
.view-tabs {
  display: flex;
  background: rgba(16, 16, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  background: rgba(197, 168, 128, 0.12);
  color: var(--accent);
  border: 1px solid rgba(197, 168, 128, 0.25);
  box-shadow: 0 2px 10px rgba(197, 168, 128, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-weight: 700;
}

/* Checkerboard Toggle active state */
.btn-secondary.active {
  background: var(--accent) !important;
  color: var(--bg-app) !important;
  border-color: var(--accent) !important;
}

/* Icon-only button helper */
.btn-icon-only {
  padding: 0 !important;
  width: 38px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
}

/* Checkerboard background */
.canvas-wrapper.has-grid .canvas-area {
  background-image: 
    linear-gradient(45deg, #141519 25%, transparent 25%),
    linear-gradient(-45deg, #141519 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #141519 75%),
    linear-gradient(-45deg, transparent 75%, #141519 75%) !important;
  background-size: 24px 24px !important;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0px !important;
  background-color: #08080a !important; /* Alternates with #141519 */
}

body.view-mode-document .canvas-area {
  min-height: calc(100vh - 60px) !important;
  background: none;
  padding: 40px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 40px !important;
}

body.view-mode-document .canvas-panel-divider,
body.view-mode-document .canvas-panel-pages-row {
  display: none !important;
}

/* Document Mode Paper Styling */
.view-mode-document .poetry-card {
  width: 100% !important;
  max-width: 800px !important;
  height: auto !important;
  min-height: 1000px !important;
  aspect-ratio: unset !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25) !important;
  border-radius: 4px !important;
  padding: 80px 60px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* Hidden elements in document mode */
.view-mode-document .poetry-card .card-corners,
.view-mode-document .poetry-card .top-ornament,
.view-mode-document .poetry-card .bottom-ornament,
.view-mode-document .poetry-card .card-bg-image,
.view-mode-document .poetry-card .card-overlay,
.view-mode-document .poetry-card .card-texture,
.view-mode-document .poetry-card .card-page-indicator {
  display: none !important;
}

/* Document Themes */
.view-mode-document .poetry-card.paper-white {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #e2e8f0 !important;
}

.view-mode-document .poetry-card.paper-cream {
  background: #fcf8f0 !important; /* Beautiful chamois cream page background */
  color: #2e261a !important;
  border: 1px solid #ebdcb9 !important;
}

.view-mode-document .poetry-card.paper-dark {
  background: #18181b !important;
  color: #f4f4f5 !important;
  border: 1px solid #27272a !important;
}

/* Document Sheet Styles (Lined & Grid) */
.view-mode-document .poetry-card.paper-style-lined .writing-canvas {
  background-size: 100% 36px !important;
  line-height: 36px !important;
}
.view-mode-document .poetry-card.paper-white.paper-style-lined .writing-canvas,
.view-mode-document .poetry-card.paper-cream.paper-style-lined .writing-canvas {
  background-image: linear-gradient(rgba(139, 115, 85, 0.25) 1px, transparent 1px) !important;
}
.view-mode-document .poetry-card.paper-dark.paper-style-lined .writing-canvas {
  background-image: linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px) !important;
}

.view-mode-document .poetry-card.paper-style-grid .writing-canvas {
  background-size: 30px 30px !important;
}
.view-mode-document .poetry-card.paper-white.paper-style-grid .writing-canvas,
.view-mode-document .poetry-card.paper-cream.paper-style-grid .writing-canvas {
  background-image: 
    linear-gradient(rgba(139, 115, 85, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 115, 85, 0.2) 1px, transparent 1px) !important;
}
.view-mode-document .poetry-card.paper-dark.paper-style-grid .writing-canvas {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px) !important;
}

/* Adjust document editor margins */
.view-mode-document .card-title,
.view-mode-document .card-author {
  display: none !important;
}

/* Contenteditable Placeholder Styles */
[contenteditable]:empty::before {
  content: attr(placeholder);
  color: var(--text-muted);
  opacity: 0.55;
  pointer-events: none;
  display: inline-block;
}

/* Document Mode Layout Overrides */
.view-mode-document .poetry-card::after,
.view-mode-document .poetry-card::before {
  display: none !important;
}

.view-mode-document .card-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  flex-grow: 1 !important;
  padding: 0 !important;
  width: 100% !important;
}

.view-mode-document .writing-canvas {
  flex-grow: 1 !important;
  min-height: 600px !important;
  height: auto !important;
  padding: 20px 0 !important;
  cursor: text !important;
  text-align: start;
  text-shadow: none !important;
  color: var(--doc-text-color, inherit) !important;
}



/* Page ratio grid buttons for document settings */
.page-style-grid, .page-theme-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* Print Styling */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .sidebar,
  .top-nav,
  .mobile-header,
  .faq-section,
  .app-footer,
  .sidebar-overlay {
    display: none !important;
  }
  .app-container {
    display: block !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
  }
  .main-content {
    display: block !important;
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
  }
  .canvas-wrapper,
  .canvas-area {
    background: none !important;
    padding: 0 !important;
    min-height: auto !important;
    display: block !important;
  }
  .view-mode-document .poetry-card {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    background: #ffffff !important;
    color: #000000 !important;
  }
}

/* Modal and Export Options Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 6, 8, 0.7);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(18, 18, 24, 0.9);
  border: 1px solid var(--border-ui);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-ui);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close-btn:hover {
  color: var(--color-danger);
}

.modal-body {
  padding: 24px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.export-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.export-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: right;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  color: inherit;
}
html[dir="ltr"] .export-option-card {
  text-align: left;
}

.export-option-card:hover {
  background: rgba(197, 168, 128, 0.08);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.option-icon {
  font-size: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 168, 128, 0.06);
  border-radius: 8px;
}

.option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.option-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
}

.option-detail {
  font-size: 11px;
  color: var(--text-muted);
}

/* Split Export/Save Buttons */
.split-btn-container {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.split-btn-container:hover {
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.15);
}

.split-btn-main {
  border-top-right-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.15) !important;
  height: 32px;
  white-space: nowrap;
}

.split-btn-arrow {
  border-top-left-radius: 6px !important;
  border-bottom-left-radius: 6px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  padding: 0 8px !important;
  min-width: 28px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LTR specific overrides for split buttons */
html[dir="ltr"] .split-btn-main {
  border-top-left-radius: 6px !important;
  border-bottom-left-radius: 6px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html[dir="ltr"] .split-btn-arrow {
  border-top-right-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* Dropdown Menu */
.split-dropdown-menu {
  display: none;
  position: absolute;
  top: 38px;
  left: 0;
  background: rgba(18, 18, 22, 0.96);
  border: 1px solid var(--border-ui);
  border-radius: 8px;
  padding: 6px;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 120;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html[dir="rtl"] .split-dropdown-menu {
  left: auto;
  right: 0;
}

.split-dropdown-menu.active {
  display: flex;
}

.split-dropdown-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: right;
  transition: all var(--transition-fast);
}

html[dir="ltr"] .split-dropdown-item {
  text-align: left;
}

.split-dropdown-item:hover {
  background: rgba(197, 168, 128, 0.08);
  color: var(--accent);
}

.split-dropdown-item i {
  font-size: 13px;
  color: var(--text-muted);
  width: 16px;
  text-align: center;
}

.split-dropdown-item:hover i {
  color: var(--accent);
}

/* Visibility bindings per view-mode */
body.view-mode-design .split-btn-container.design-only {
  display: inline-flex !important;
}
body.view-mode-design .split-btn-container.document-only {
  display: none !important;
}
body.view-mode-document .split-btn-container.design-only {
  display: none !important;
}
body.view-mode-document .split-btn-container.document-only {
  display: inline-flex !important;
}

/* ==========================================================================
   Image Export Overlay Rules (Bypasses all mobile media queries during export)
   ========================================================================== */
.poetry-card.is-exporting-card *,
.poetry-card.is-exporting-card *::before,
.poetry-card.is-exporting-card *::after {
  transition: none !important;
  animation: none !important;
}

.poetry-card.is-exporting-card {
  transition: none !important;
  animation: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ==========================================================================
   Website Preview Mode (معاينة الموقع)
   ========================================================================== */

/* View Mode Toggling for Web & Mobile Modes */
body.view-mode-web .design-only,
body.view-mode-mobile .design-only,
body.view-mode-web .document-only,
body.view-mode-mobile .document-only,
body.view-mode-web .ui-mode-toggle-wrapper,
body.view-mode-mobile .ui-mode-toggle-wrapper,
body.view-mode-web .control-section:not(.web-only):not(.font-loader-section),
body.view-mode-mobile .control-section:not(.mobile-only):not(.font-loader-section) {
  display: none !important;
}
body.view-mode-web .web-only {
  display: block !important;
}
body.view-mode-mobile .mobile-only {
  display: block !important;
}
body.view-mode-web button.web-only {
  display: flex !important;
}
body.view-mode-mobile button.mobile-only {
  display: flex !important;
}
body:not(.view-mode-web):not(.view-mode-mobile) .web-only {
  display: none !important;
}
body:not(.view-mode-web):not(.view-mode-mobile) .mobile-only {
  display: none !important;
}

body.view-mode-web .canvas-area,
body.view-mode-mobile .canvas-area {
  display: none !important;
}
body.view-mode-web .canvas-pages-panel,
body.view-mode-mobile .canvas-pages-panel {
  display: none !important;
}

/* Browser Window Mock Frame */
.web-preview-wrapper {
  display: flex;
  flex-direction: column;
  width: 95%;
  max-width: 1350px;
  margin: 40px auto;
  height: 88vh;
  min-height: 920px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  flex-shrink: 0;
  transform: translateZ(0);
  animation: fadeIn 0.4s ease-out;
}

.mock-browser-header {
  display: flex;
  flex-direction: column;
  background: rgba(15, 15, 18, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  direction: ltr; /* Browser chrome is always LTR */
  padding: 0;
}

.mock-browser-top-row {
  display: flex;
  align-items: center;
  padding: 8px 16px 0 16px;
  gap: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.browser-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.browser-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

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

/* Browser Tabs */
.browser-tabs {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 36px;
}

.browser-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  position: relative;
}

.browser-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
}

.browser-tab.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  font-weight: 600;
}

.browser-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.browser-address-bar {
  margin: 8px auto !important;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  max-width: 400px;
  width: 100%;
  direction: ltr !important;
}

/* Chrome Web Theme Selector (on the far right of the address bar) */
.web-theme-selector-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding: 0 16px 8px 16px;
  box-sizing: border-box;
}

.web-theme-selector-chrome {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 3px;
  gap: 4px;
}

.chrome-theme-btn {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
}

.chrome-theme-btn i {
  font-size: 12px;
}

.chrome-theme-btn:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
}

.chrome-theme-btn.active {
  background: var(--accent);
  color: #000000;
  box-shadow: 0 2px 6px rgba(197, 168, 128, 0.4);
}

/* Light Theme Overrides for Chrome Theme buttons */
.web-preview-wrapper.web-theme-light .web-theme-selector-chrome {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}
.web-preview-wrapper.web-theme-light .chrome-theme-btn {
  color: #64748b;
}
.web-preview-wrapper.web-theme-light .chrome-theme-btn:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.03);
}
.web-preview-wrapper.web-theme-light .chrome-theme-btn.active {
  background: var(--accent);
  color: #000000;
}

/* Amber Theme Overrides for Chrome Theme buttons */
.web-preview-wrapper.web-theme-amber .web-theme-selector-chrome {
  background: rgba(139, 115, 85, 0.08);
  border-color: rgba(139, 115, 85, 0.15);
}
.web-preview-wrapper.web-theme-amber .chrome-theme-btn {
  color: #8c7355;
}
.web-preview-wrapper.web-theme-amber .chrome-theme-btn:hover {
  color: #3b2a1a;
  background: rgba(139, 115, 85, 0.05);
}
.web-preview-wrapper.web-theme-amber .chrome-theme-btn.active {
  background: var(--accent);
  color: #000000;
}

/* Light Theme Theme Overrides for Tabs */
.web-preview-wrapper.web-theme-light .mock-browser-top-row {
  background: rgba(0, 0, 0, 0.03);
}
.web-preview-wrapper.web-theme-light .browser-tab {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.04);
  color: #64748b;
}
.web-preview-wrapper.web-theme-light .browser-tab:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1e293b;
}
.web-preview-wrapper.web-theme-light .browser-tab.active {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--accent);
}

/* Royal Amber Theme Overrides for Tabs */
.web-preview-wrapper.web-theme-amber .mock-browser-top-row {
  background: rgba(139, 115, 85, 0.05);
}
.web-preview-wrapper.web-theme-amber .browser-tab {
  background: rgba(139, 115, 85, 0.02);
  border-color: rgba(139, 115, 85, 0.06);
  color: #8c7355;
}
.web-preview-wrapper.web-theme-amber .browser-tab:hover {
  background: rgba(139, 115, 85, 0.06);
  color: #3b2a1a;
}
.web-preview-wrapper.web-theme-amber .browser-tab.active {
  background: #faf6eb;
  border-color: rgba(139, 115, 85, 0.2);
  color: var(--accent);
}

.browser-lock {
  color: #27c93f;
  font-size: 9px;
}

.web-preview-content {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
}

.web-template-content {
  display: none;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
}

.web-template-content [contenteditable="true"]:focus {
  outline: none;
}

.web-tpl-saas #webContentSaas {
  display: flex;
}

.web-tpl-store #webContentStore {
  display: flex;
}

.web-tpl-dashboard #webContentDashboard {
  display: flex;
  flex-direction: row;
}

.web-tpl-notion #webContentNotion {
  display: flex;
}

.web-tpl-chat #webContentChat {
  display: flex;
}


/* --------------------------------------------------------------------------
   Themes Styling (Dark, Light, Amber)
   -------------------------------------------------------------------------- */

/* Premium Dark Theme (default) */
.web-preview-wrapper.web-theme-dark {
  background-color: #0d0e12;
  border-color: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
}

.web-preview-wrapper.web-theme-dark .web-header {
  background: rgba(13, 14, 18, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.web-preview-wrapper.web-theme-dark .web-logo {
  color: #ffffff;
}

.web-preview-wrapper.web-theme-dark .web-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.web-preview-wrapper.web-theme-dark .web-nav a:hover {
  color: #fff;
}

.web-preview-wrapper.web-theme-dark .web-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  background-color: transparent;
}

.web-preview-wrapper.web-theme-dark .web-btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.web-preview-wrapper.web-theme-dark .web-btn-primary {
  background: var(--accent);
  color: #000 !important;
  font-weight: 600;
}

.web-preview-wrapper.web-theme-dark .web-btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.web-preview-wrapper.web-theme-dark .web-btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.web-preview-wrapper.web-theme-dark .web-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.web-preview-wrapper.web-theme-dark .web-hero-badge {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.web-preview-wrapper.web-theme-dark .web-hero-title {
  color: #ffffff;
}

.web-preview-wrapper.web-theme-dark .web-hero-desc {
  color: rgba(255, 255, 255, 0.6);
}

.web-preview-wrapper.web-theme-dark .web-feature-card {
  background: #14161d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #e4e4e7;
}

.web-preview-wrapper.web-theme-dark .web-feature-icon {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.web-preview-wrapper.web-theme-dark .web-feature-title {
  color: #fff;
}

.web-preview-wrapper.web-theme-dark .web-feature-desc {
  color: rgba(255, 255, 255, 0.5);
}

.web-preview-wrapper.web-theme-dark .web-testimonial {
  background: #101217;
  border-inline-start: 4px solid var(--accent);
}

.web-preview-wrapper.web-theme-dark .web-testimonial-text {
  color: #f4f4f5;
}

.web-preview-wrapper.web-theme-dark .web-author-name {
  color: #fff;
}

.web-preview-wrapper.web-theme-dark .web-author-title {
  color: rgba(255, 255, 255, 0.5);
}

.web-preview-wrapper.web-theme-dark .web-footer {
  background: #090a0d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Clean Light Theme */
.web-preview-wrapper.web-theme-light {
  background-color: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

.web-preview-wrapper.web-theme-light .mock-browser-header {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.web-preview-wrapper.web-theme-light .browser-address-bar {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #64748b;
}

.web-preview-wrapper.web-theme-light .web-header {
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(10px);
}

.web-preview-wrapper.web-theme-light .web-logo {
  color: #0f172a;
}

.web-preview-wrapper.web-theme-light .web-nav a {
  color: #475569;
}

.web-preview-wrapper.web-theme-light .web-nav a:hover {
  color: #0f172a;
}

.web-preview-wrapper.web-theme-light .web-btn-outline {
  border: 1px solid #cbd5e1;
  color: #334155;
  background-color: transparent;
}

.web-preview-wrapper.web-theme-light .web-btn-outline:hover {
  background: #f1f5f9;
}

.web-preview-wrapper.web-theme-light .web-btn-primary {
  background: #0f172a;
  color: #fff !important;
  font-weight: 600;
}

.web-preview-wrapper.web-theme-light .web-btn-primary:hover {
  background: #334155;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.web-preview-wrapper.web-theme-light .web-btn-secondary {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.web-preview-wrapper.web-theme-light .web-btn-secondary:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}

.web-preview-wrapper.web-theme-light .web-hero-badge {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.web-preview-wrapper.web-theme-light .web-hero-title {
  color: #0f172a;
}

.web-preview-wrapper.web-theme-light .web-hero-desc {
  color: #475569;
}

.web-preview-wrapper.web-theme-light .web-feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.web-preview-wrapper.web-theme-light .web-feature-icon {
  background: #f1f5f9;
  color: #0f172a;
}

.web-preview-wrapper.web-theme-light .web-feature-title {
  color: #0f172a;
}

.web-preview-wrapper.web-theme-light .web-feature-desc {
  color: #64748b;
}

.web-preview-wrapper.web-theme-light .web-testimonial {
  background: #f1f5f9;
  border-inline-start: 4px solid #0f172a;
}

.web-preview-wrapper.web-theme-light .web-testimonial-text {
  color: #1e293b;
}

.web-preview-wrapper.web-theme-light .web-author-name {
  color: #0f172a;
}

.web-preview-wrapper.web-theme-light .web-author-title {
  color: #64748b;
}

.web-preview-wrapper.web-theme-light .web-footer {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
}

/* Royal Amber Theme */
.web-preview-wrapper.web-theme-amber {
  background-color: #faf6eb;
  border-color: rgba(139, 115, 85, 0.15);
  color: #3b2a1a;
}

.web-preview-wrapper.web-theme-amber .mock-browser-header {
  background: #f3ecd9;
  border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.web-preview-wrapper.web-theme-amber .browser-address-bar {
  background: #fffdfb;
  border: 1px solid rgba(139, 115, 85, 0.2);
  color: #8c7355;
}

.web-preview-wrapper.web-theme-amber .web-header {
  background: rgba(250, 246, 235, 0.85);
  border-bottom: 1px solid rgba(139, 115, 85, 0.15);
  backdrop-filter: blur(10px);
}

.web-preview-wrapper.web-theme-amber .web-logo {
  color: #5c3b1a;
}

.web-preview-wrapper.web-theme-amber .web-nav a {
  color: #6e543c;
}

.web-preview-wrapper.web-theme-amber .web-nav a:hover {
  color: #3b2a1a;
}

.web-preview-wrapper.web-theme-amber .web-btn-outline {
  border: 1px solid rgba(139, 115, 85, 0.3);
  color: #5c4530;
  background-color: transparent;
}

.web-preview-wrapper.web-theme-amber .web-btn-outline:hover {
  background: #f3ecd9;
}

.web-preview-wrapper.web-theme-amber .web-btn-primary {
  background: #8c2d19;
  color: #fff !important;
  font-weight: 600;
}

.web-preview-wrapper.web-theme-amber .web-btn-primary:hover {
  background: #5c1b0c;
  box-shadow: 0 4px 12px rgba(140, 45, 25, 0.15);
}

.web-preview-wrapper.web-theme-amber .web-btn-secondary {
  background-color: #f3ecd9;
  color: #5c4530;
  border: 1px solid rgba(139, 115, 85, 0.3);
}

.web-preview-wrapper.web-theme-amber .web-btn-secondary:hover {
  background-color: #ebdcb9;
  border-color: rgba(139, 115, 85, 0.5);
}

.web-preview-wrapper.web-theme-amber .web-hero-badge {
  background: #f3ecd9;
  color: #8c2d19;
  border: 1px solid rgba(140, 45, 25, 0.2);
}

.web-preview-wrapper.web-theme-amber .web-hero-title {
  color: #3a1c0d;
}

.web-preview-wrapper.web-theme-amber .web-hero-desc {
  color: #6e543c;
}

.web-preview-wrapper.web-theme-amber .web-feature-card {
  background: #fffdfa;
  border: 1px solid rgba(139, 115, 85, 0.15);
  color: #3b2a1a;
  box-shadow: 0 4px 20px rgba(139, 115, 85, 0.03);
}

.web-preview-wrapper.web-theme-amber .web-feature-icon {
  background: #f3ecd9;
  color: #8c2d19;
}

.web-preview-wrapper.web-theme-amber .web-feature-title {
  color: #3a1c0d;
}

.web-preview-wrapper.web-theme-amber .web-feature-desc {
  color: #6e543c;
}

.web-preview-wrapper.web-theme-amber .web-testimonial {
  background: #f3ecd9;
  border-inline-start: 4px solid #8c2d19;
}

.web-preview-wrapper.web-theme-amber .web-testimonial-text {
  color: #3b2a1a;
}

.web-preview-wrapper.web-theme-amber .web-author-name {
  color: #3a1c0d;
}

.web-preview-wrapper.web-theme-amber .web-author-title {
  color: #8c7355;
}

.web-preview-wrapper.web-theme-amber .web-footer {
  background: #f3ecd9;
  border-top: 1px solid rgba(139, 115, 85, 0.15);
}

/* --------------------------------------------------------------------------
   Layout Spacing & Structure Styles
   -------------------------------------------------------------------------- */
.web-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.web-logo {
  font-size: 22px;
  font-weight: 700;
  outline: none;
}

.web-nav {
  display: flex;
  gap: 24px;
}

.web-nav a {
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 600;
  outline: none;
  transition: color 0.2s;
}

.web-header-actions {
  display: flex;
  gap: 12px;
}

.web-btn {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  outline: none;
}

.web-btn-lg {
  padding: 12px 28px;
  font-size: 16.5px;
}

/* Hero Section */
.web-hero {
  padding: 80px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.web-hero-badge-container {
  display: inline-block;
}

.web-hero-badge {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
}

.web-hero-title {
  font-size: 42px;
  line-height: 1.35;
  font-weight: 800;
  margin: 10px 0;
  outline: none;
}

.web-hero-desc {
  font-size: 18px;
  line-height: 1.65;
  max-width: 650px;
  margin-bottom: 15px;
  outline: none;
}

.web-hero-buttons {
  display: flex;
  gap: 16px;
}

/* Features Section */
.web-features {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.web-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.web-section-title {
  font-size: 32px;
  font-weight: 700;
  outline: none;
}

.web-section-desc {
  font-size: 16.5px;
  opacity: 0.8;
  outline: none;
}

.web-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.web-feature-card {
  padding: 32px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s;
}

.web-feature-card:hover {
  transform: translateY(-4px);
}

.web-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.web-feature-title {
  font-size: 20px;
  font-weight: 650;
  outline: none;
}

.web-feature-desc {
  font-size: 15.5px;
  line-height: 1.55;
  outline: none;
}

/* Testimonial Section */
.web-testimonial {
  margin: 40px;
  padding: 40px;
  border-radius: 12px;
}

.web-testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.web-testimonial-content .quote-icon {
  font-size: 28px;
  opacity: 0.2;
}

.web-testimonial-text {
  font-size: 22px;
  line-height: 1.6;
  font-style: italic;
  font-weight: 550;
  outline: none;
}

.web-testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.web-author-name {
  font-weight: 700;
  font-size: 17px;
  outline: none;
}

.web-author-title {
  font-size: 14.5px;
  outline: none;
}

/* Footer Section */
.web-footer {
  padding: 40px 40px 24px;
}

.web-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.web-footer-brand {
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.web-brand-desc {
  font-size: 14.5px;
  opacity: 0.7;
  line-height: 1.5;
  outline: none;
}

.web-footer-links {
  display: flex;
  gap: 60px;
}

.web-links-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.web-links-column h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  outline: none;
}

.web-links-column a {
  text-decoration: none;
  font-size: 14.5px;
  opacity: 0.75;
  transition: opacity 0.2s;
  outline: none;
}

.web-links-column a:hover {
  opacity: 1;
}

.web-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  text-align: center;
}

.web-copyright {
  font-size: 13.5px;
  opacity: 0.6;
  outline: none;
}

/* --------------------------------------------------------------------------
   Electronics E-commerce Storefront Template Overrides (PREMIUM STATE-OF-THE-ART REDESIGN)
   -------------------------------------------------------------------------- */

/* Custom typography integration */
.web-tpl-store .web-preview-content {
  font-family: 'Cairo', 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #0b0c10;
  color: #c5c6c7;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Glassmorphism store cards & details */
.web-tpl-store .store-glass {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Premium Navigation Bar */
.web-tpl-store .store-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(11, 12, 16, 0.8) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.web-tpl-store .store-logo {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #66fcf1, #45a29e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  outline: none;
  cursor: pointer;
}

.web-tpl-store .store-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.web-tpl-store .store-nav a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 4px 0;
  outline: none;
}

.web-tpl-store .store-nav a:hover,
.web-tpl-store .store-nav a.active {
  color: #66fcf1 !important;
}

.web-tpl-store .store-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #66fcf1;
  transition: width 0.3s ease;
}

.web-tpl-store .store-nav a:hover::after,
.web-tpl-store .store-nav a.active::after {
  width: 100%;
}

.web-tpl-store .store-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.web-tpl-store .store-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.web-tpl-store .store-search-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 8px 16px;
  padding-left: 36px;
  color: #fff;
  font-size: 13.5px;
  width: 180px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

/* Adjust search layout for RTL */
html[dir="rtl"] .web-tpl-store .store-search-input {
  padding-left: 16px;
  padding-right: 36px;
}

.web-tpl-store .store-search-input:focus {
  width: 240px;
  background: rgba(255, 255, 255, 0.08);
  border-color: #66fcf1;
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.15);
}

.web-tpl-store .search-icon {
  position: absolute;
  left: 14px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  font-size: 13px;
}

html[dir="rtl"] .web-tpl-store .search-icon {
  left: auto;
  right: 14px;
}

.web-tpl-store .store-wishlist-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.web-tpl-store .store-wishlist-btn:hover {
  color: #ff4a5a;
  background: rgba(255, 74, 90, 0.08);
  transform: scale(1.05);
}

.web-tpl-store .store-cart-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  position: relative;
  overflow: visible;
}

.web-tpl-store .store-cart-toggle-btn i {
  font-size: 16px;
}

.web-tpl-store .cart-badge {
  background: #ff4a5a;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -6px;
  border: 2px solid #0b0c10;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Store Split Hero Section */
.web-tpl-store .store-hero {
  padding: 60px 40px;
  background: radial-gradient(circle at 80% 20%, rgba(102, 252, 241, 0.04) 0%, transparent 60%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.web-tpl-store .store-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.web-tpl-store .store-hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.web-tpl-store .store-hero-badge-container {
  display: flex;
}

.web-tpl-store .store-hero-badge {
  background: rgba(102, 252, 241, 0.08);
  border: 1px solid rgba(102, 252, 241, 0.2);
  color: #66fcf1;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  outline: none;
}

.web-tpl-store .store-hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  outline: none;
}

.web-tpl-store .store-hero-desc {
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  outline: none;
}

.web-tpl-store .store-hero-price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0;
}

.web-tpl-store .store-hero-price-tag .price-label {
  font-size: 13.5px;
  color: rgba(255,255,255,0.4);
}

.web-tpl-store .store-hero-price-tag .price-value {
  font-size: 32px;
  font-weight: 800;
  color: #66fcf1;
  outline: none;
}

.web-tpl-store .store-hero-buttons {
  display: flex;
  gap: 16px;
}

.web-tpl-store .store-btn-shop-now {
  padding: 12px 28px !important;
  border-radius: 24px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(102, 252, 241, 0.25);
  transition: all 0.3s ease;
}

.web-tpl-store .store-btn-shop-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 252, 241, 0.4);
}

.web-tpl-store .store-btn-watch {
  padding: 12px 28px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  background: transparent !important;
  color: #fff !important;
}

.web-tpl-store .store-btn-watch:hover {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.25) !important;
}

.web-tpl-store .store-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.web-tpl-store .store-hero-backdrop {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 252, 241, 0.12) 0%, transparent 70%);
  filter: blur(15px);
}

/* CSS Headphones Graphic Hero */
.web-tpl-store .store-hero-graphic-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.web-tpl-store .headphones-graphic {
  position: relative;
  width: 220px;
  height: 240px;
  animation: floatAnim 6s ease-in-out infinite;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.web-tpl-store .css-headphone-arch {
  position: absolute;
  top: 14px; /* Adjusted to detach from the edge */
  left: 30px;
  width: 160px;
  height: 120px;
  border: 12px solid #1f2833;
  border-bottom: none;
  border-radius: 90px 90px 0 0;
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.1), 0 4px 10px rgba(0,0,0,0.3);
}

.web-tpl-store .css-headphone-band {
  position: absolute;
  top: 8px;
  left: 45px;
  width: 130px;
  height: 16px;
  background: linear-gradient(90deg, #66fcf1, #45a29e);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.web-tpl-store .css-headphone-cups {
  position: absolute;
  top: 100px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.web-tpl-store .css-cup {
  position: relative;
  width: 50px;
  height: 90px;
}

.web-tpl-store .css-cup-yoke {
  position: absolute;
  top: -15px;
  left: 15px;
  width: 20px;
  height: 30px;
  background: #1f2833;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
}

.web-tpl-store .css-cup-housing {
  position: absolute;
  top: 14px; /* Adjusted to detach from the edge */
  width: 46px;
  height: 70px;
  background: linear-gradient(135deg, #1f2833, #0b0c10);
  border-radius: 18px;
  border: 2px solid #45a29e;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.05), 0 5px 15px rgba(0,0,0,0.4);
}

.web-tpl-store .css-cup-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(102, 252, 241, 0.4);
  background: radial-gradient(circle, #66fcf1 10%, transparent 60%);
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
}

.web-tpl-store .css-cup-cushion {
  position: absolute;
  top: 5px;
  width: 16px;
  height: 80px;
  background: #151a21;
  border-radius: 8px 18px 18px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.web-tpl-store .cup-left { left: 0; }
.web-tpl-store .cup-left .css-cup-cushion { right: -8px; }

.web-tpl-store .cup-right { right: 0; }
.web-tpl-store .cup-right .css-cup-cushion {
  left: -8px;
  border-radius: 18px 8px 8px 18px;
}

/* Pulsing Dots Hero */
.web-tpl-store .pulse-dot {
  position: absolute;
  cursor: pointer;
  z-index: 10;
}

.web-tpl-store .pulse-dot.dot-1 { top: 30px; left: 100px; }
.web-tpl-store .pulse-dot.dot-2 { top: 130px; left: 20px; }
.web-tpl-store .pulse-dot.dot-3 { top: 160px; right: 20px; }

.web-tpl-store .pulse-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #66fcf1;
  animation: pulseRing 1.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

.web-tpl-store .pulse-core {
  display: block;
  width: 12px;
  height: 12px;
  background-color: #66fcf1;
  border-radius: 50%;
  box-shadow: 0 0 8px #66fcf1;
}

@keyframes pulseRing {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Tooltips */
.web-tpl-store .pulse-dot::before {
  content: attr(data-tooltip-ar);
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 200px;
  padding: 8px 12px;
  background: rgba(11, 12, 16, 0.95);
  border: 1px solid #45a29e;
  border-radius: 8px;
  color: #fff;
  font-size: 12.5px;
  text-align: center;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  z-index: 20;
}

html[lang="en"] .web-tpl-store .pulse-dot::before {
  content: attr(data-tooltip-en);
}

.web-tpl-store .pulse-dot:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Interactive Category Filter Tabs Row */
.web-tpl-store .store-filters-section {
  padding: 50px 40px 10px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.web-tpl-store .store-section-header {
  text-align: center;
  margin-bottom: 30px;
}

.web-tpl-store .store-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.web-tpl-store .store-filter-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.web-tpl-store .store-filter-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.web-tpl-store .store-filter-tab.active {
  background: #66fcf1;
  color: #0b0c10;
  border-color: #66fcf1;
  box-shadow: 0 4px 15px rgba(102, 252, 241, 0.3);
}

/* Premium Product Grid */
.web-tpl-store .store-products-section {
  padding: 30px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.web-tpl-store .store-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.web-tpl-store .store-product-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.web-tpl-store .store-product-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(102, 252, 241, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Product Badges */
.web-tpl-store .store-product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  z-index: 5;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

html[dir="rtl"] .web-tpl-store .store-product-badge {
  right: auto;
  left: 16px;
}

.web-tpl-store .badge-bestseller {
  background: #ffc107;
  color: #0b0c10;
}

.web-tpl-store .badge-new {
  background: #66fcf1;
  color: #0b0c10;
}

.web-tpl-store .badge-hot {
  background: #ff4a5a;
  color: #fff;
}

.web-tpl-store .badge-discount {
  background: #28a745;
  color: #fff;
}

/* Card Graphics containers */
.web-tpl-store .store-card-graphic-wrapper {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(102, 252, 241, 0.04) 0%, transparent 75%);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.02);
}

/* Card Graphics: Headphones */
.web-tpl-store .product-graphic-headphones {
  position: relative;
  width: 110px;
  height: 120px;
  transition: transform 0.5s ease;
}

.web-tpl-store .store-product-card:hover .product-graphic-headphones {
  transform: scale(1.08) rotate(-5deg);
}

.web-tpl-store .mini-band {
  position: absolute;
  top: 14px; /* Adjusted to detach from the edge */
  left: 20px;
  width: 70px;
  height: 50px;
  border: 6px solid #1f2833;
  border-bottom: none;
  border-radius: 40px 40px 0 0;
}

.web-tpl-store .mini-cup-left,
.web-tpl-store .mini-cup-right {
  position: absolute;
  top: 50px;
  width: 24px;
  height: 44px;
  background: linear-gradient(135deg, #45a29e, #1f2833);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.web-tpl-store .mini-cup-left { left: 10px; }
.web-tpl-store .mini-cup-right { right: 10px; }

/* Card Graphics: Keyboard */
.web-tpl-store .product-graphic-keyboard {
  position: relative;
  width: 140px;
  height: 80px;
  transition: transform 0.5s ease;
}

.web-tpl-store .store-product-card:hover .product-graphic-keyboard {
  transform: scale(1.08) translateY(-3px) rotate(2deg);
}

.web-tpl-store .kb-chassis {
  position: absolute;
  top: 15px;
  left: 5px;
  width: 130px;
  height: 50px;
  background: #1f2833;
  border-radius: 6px;
  border: 2px solid #45a29e;
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.web-tpl-store .kb-key-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.web-tpl-store .kb-key {
  width: 10px;
  height: 10px;
  background: #0b0c10;
  border-radius: 2px;
}

.web-tpl-store .kb-key.key-accent { background: #66fcf1; }
.web-tpl-store .kb-key.key-accent2 { background: #c5c6c7; width: 20px; }

/* Card Graphics: Watch */
.web-tpl-store .product-graphic-watch {
  position: relative;
  width: 100px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.web-tpl-store .store-product-card:hover .product-graphic-watch {
  transform: scale(1.08) rotate(5deg);
}

.web-tpl-store .watch-strap {
  width: 22px;
  height: 38px;
  background: #1f2833;
}

.web-tpl-store .strap-top { border-radius: 4px 4px 0 0; }
.web-tpl-store .strap-bottom { border-radius: 0 0 4px 4px; }

.web-tpl-store .watch-case {
  position: relative;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #45a29e, #1f2833);
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.web-tpl-store .watch-screen {
  width: 42px;
  height: 42px;
  background: #0b0c10;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.web-tpl-store .watch-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.web-tpl-store .watch-time {
  font-size: 10px;
  color: #66fcf1;
  font-weight: 700;
  font-family: monospace;
}

.web-tpl-store .watch-ring {
  width: 14px;
  height: 14px;
  border: 2px solid #45a29e;
  border-radius: 50%;
  margin-top: 2px;
  border-top-color: transparent;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.web-tpl-store .watch-crown {
  position: absolute;
  right: -3px;
  top: 22px;
  width: 4px;
  height: 8px;
  background: #c5c6c7;
  border-radius: 2px;
}

/* Card Graphics: Curved Monitor */
.web-tpl-store .product-graphic-monitor {
  position: relative;
  width: 150px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: transform 0.5s ease;
}

.web-tpl-store .store-product-card:hover .product-graphic-monitor {
  transform: scale(1.08) translateY(-2px);
}

.web-tpl-store .monitor-screen-curve {
  position: relative;
  width: 140px;
  height: 74px;
  background: #1f2833;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.web-tpl-store .monitor-display-glowing {
  width: 132px;
  height: 66px;
  background: linear-gradient(180deg, #1f2833, #0b0c10);
  border-radius: 4px;
  position: relative;
}

.web-tpl-store .monitor-display-glowing::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 10%;
  width: 80%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(102, 252, 241, 0.15) 0%, transparent 80%);
}

.web-tpl-store .monitor-stand {
  width: 16px;
  height: 24px;
  background: #45a29e;
  border-left: 2px solid rgba(0,0,0,0.2);
  border-right: 2px solid rgba(0,0,0,0.2);
}

.web-tpl-store .monitor-base {
  width: 48px;
  height: 6px;
  background: #1f2833;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Card details styling */
.web-tpl-store .store-product-category {
  font-size: 11px;
  text-transform: uppercase;
  color: #45a29e;
  font-weight: 700;
  margin-bottom: 6px;
  outline: none;
}

.web-tpl-store .store-product-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
  min-height: 44px;
  outline: none;
}

.web-tpl-store .store-product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.web-tpl-store .stars-stars {
  color: #ffc107;
  font-size: 12px;
}

.web-tpl-store .rating-text {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.web-tpl-store .store-product-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.web-tpl-store .store-product-specs li {
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  position: relative;
  padding-right: 14px;
  text-align: right;
  outline: none;
}

html[dir="ltr"] .web-tpl-store .store-product-specs li {
  padding-right: 0;
  padding-left: 14px;
  text-align: left;
}

.web-tpl-store .store-product-specs li::before {
  content: '•';
  position: absolute;
  right: 0;
  color: #66fcf1;
  font-weight: bold;
}

html[dir="ltr"] .web-tpl-store .store-product-specs li::before {
  right: auto;
  left: 0;
}

.web-tpl-store .store-product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 10px;
}

.web-tpl-store .store-price-container {
  display: flex;
  flex-direction: column;
}

.web-tpl-store .store-original-price {
  font-size: 12px;
  text-decoration: line-through;
  color: rgba(255,255,255,0.4);
}

.web-tpl-store .store-sale-price {
  font-size: 18px;
  font-weight: 800;
  color: #66fcf1;
  outline: none;
}

.web-tpl-store .store-add-cart-btn {
  padding: 8px 14px !important;
  border-radius: 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(102, 252, 241, 0.3) !important;
  color: #66fcf1 !important;
  background: transparent !important;
  transition: all 0.3s ease;
}

.web-tpl-store .store-add-cart-btn:hover {
  background: #66fcf1 !important;
  color: #0b0c10 !important;
  border-color: #66fcf1 !important;
}

/* Bento Info Highlights Grid */
.web-tpl-store .store-highlights-section {
  padding: 30px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.web-tpl-store .store-bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto;
  gap: 20px;
}

.web-tpl-store .store-bento-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.web-tpl-store .bento-wide {
  grid-column: span 1;
}

.web-tpl-store .bento-icon {
  font-size: 32px;
  color: #66fcf1;
}

.web-tpl-store .store-bento-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  outline: none;
}

.web-tpl-store .store-bento-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  outline: none;
}

/* Customer Testimonial Section */
.web-tpl-store .store-testimonial-section {
  padding: 60px 40px;
  background: rgba(255,255,255,0.01);
  border-top: 1px solid rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.web-tpl-store .store-testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.web-tpl-store .testimonial-decor-quotes {
  font-size: 40px;
  color: rgba(102, 252, 241, 0.15);
  margin-bottom: 15px;
}

.web-tpl-store .store-testimonial-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 30px;
  font-style: italic;
  outline: none;
}

.web-tpl-store .store-testimonial-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.web-tpl-store .testimonial-avatar {
  font-size: 36px;
  color: #66fcf1;
}

.web-tpl-store .testimonial-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.web-tpl-store .store-author-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  outline: none;
}

.web-tpl-store .store-author-title {
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  outline: none;
}

/* Newsletter Section */
.web-tpl-store .store-newsletter-section {
  padding: 60px 40px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.web-tpl-store .store-newsletter-card {
  background: linear-gradient(135deg, rgba(102, 252, 241, 0.05) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(102, 252, 241, 0.1);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.web-tpl-store .store-newsletter-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  outline: none;
}

.web-tpl-store .store-newsletter-card p {
  font-size: 14.5px;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  line-height: 1.6;
  outline: none;
}

.web-tpl-store .store-news-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 500px;
  margin-top: 14px; /* Adjusted to detach from the edge */
}

.web-tpl-store .store-news-input {
  flex-grow: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 20px;
  border-radius: 25px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.web-tpl-store .store-news-input:focus {
  border-color: #66fcf1;
  background: rgba(255,255,255,0.08);
}

.web-tpl-store .store-news-btn {
  padding: 12px 26px !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
}

.web-tpl-store .store-news-success-msg {
  font-size: 13.5px;
  color: #66fcf1;
  font-weight: 600;
  margin-top: 8px;
}

/* Store Footer Styling */
.web-tpl-store .store-footer {
  background: #0b0c10;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 60px 40px 30px;
  margin-top: 40px;
}

.web-tpl-store .store-footer-top {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 40px;
  gap: 60px;
}

.web-tpl-store .store-footer-brand {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.web-tpl-store .store-footer-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  outline: none;
}

.web-tpl-store .store-footer-links {
  display: flex;
  gap: 80px;
}

.web-tpl-store .store-links-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.web-tpl-store .store-links-column h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  outline: none;
}

.web-tpl-store .store-links-column a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.5) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  outline: none;
}

.web-tpl-store .store-links-column a:hover {
  color: #66fcf1 !important;
}

.web-tpl-store .store-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 24px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.web-tpl-store .store-copyright {
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  outline: none;
}

/* Slide-out Shopping Cart Drawer Panel */
.web-tpl-store .store-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  background: #0d0e12;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -10px 0 40px rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adapt drawer animation for RTL */
html[dir="rtl"] .web-tpl-store .store-cart-drawer {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(-100%);
  box-shadow: 10px 0 40px rgba(0,0,0,0.6);
}

.web-tpl-store .store-cart-drawer.active {
  transform: translateX(0);
}

.web-tpl-store .cart-drawer-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.web-tpl-store .cart-drawer-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.web-tpl-store .cart-drawer-header h3 i {
  color: #66fcf1;
}

.web-tpl-store .cart-drawer-close-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.web-tpl-store .cart-drawer-close-btn:hover {
  color: #ff4a5a;
  background: rgba(255, 74, 90, 0.08);
}

.web-tpl-store .cart-drawer-body {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
}

.web-tpl-store .cart-items-container {
  height: 100%;
}

.web-tpl-store .cart-empty-state {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.4);
  gap: 16px;
}

.web-tpl-store .cart-empty-state .empty-icon {
  font-size: 48px;
  color: rgba(255,255,255,0.15);
}

.web-tpl-store .cart-empty-state p {
  font-size: 14px;
  line-height: 1.5;
  max-width: 250px;
}

/* Cart Items Listing */
.web-tpl-store .cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.web-tpl-store .cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 12px;
  position: relative;
}

.web-tpl-store .cart-item-img-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.05);
}

.web-tpl-store .cart-item-img-wrapper .product-graphic-headphones { width: 44px; height: 48px; }
.web-tpl-store .cart-item-img-wrapper .mini-band { border-width: 3px; top: 4px; left: 8px; width: 28px; height: 20px; }
.web-tpl-store .cart-item-img-wrapper .mini-cup-left, .web-tpl-store .cart-item-img-wrapper .mini-cup-right { width: 10px; height: 18px; top: 20px; }
.web-tpl-store .cart-item-img-wrapper .mini-cup-left { left: 4px; }
.web-tpl-store .cart-item-img-wrapper .mini-cup-right { right: 4px; }

.web-tpl-store .cart-item-img-wrapper .product-graphic-keyboard { width: 50px; height: 30px; }
.web-tpl-store .cart-item-img-wrapper .kb-chassis { width: 46px; height: 20px; top: 5px; left: 2px; border-width: 1px; padding: 1px; }
.web-tpl-store .cart-item-img-wrapper .kb-key { width: 3px; height: 3px; }
.web-tpl-store .cart-item-img-wrapper .kb-key.key-accent2 { width: 6px; }

.web-tpl-store .cart-item-img-wrapper .product-graphic-watch { width: 34px; height: 50px; }
.web-tpl-store .cart-item-img-wrapper .watch-strap { width: 8px; height: 12px; }
.web-tpl-store .cart-item-img-wrapper .watch-case { width: 20px; height: 20px; border-radius: 5px; border-width: 1px; }
.web-tpl-store .cart-item-img-wrapper .watch-screen { width: 16px; height: 16px; border-radius: 3px; }
.web-tpl-store .cart-item-img-wrapper .watch-time { font-size: 4px; }
.web-tpl-store .cart-item-img-wrapper .watch-ring { width: 6px; height: 6px; border-width: 1px; margin-top: 1px; }
.web-tpl-store .cart-item-img-wrapper .watch-crown { width: 2px; height: 3px; right: -2px; top: 8px; }

.web-tpl-store .cart-item-img-wrapper .product-graphic-monitor { width: 50px; height: 40px; }
.web-tpl-store .cart-item-img-wrapper .monitor-screen-curve { width: 46px; height: 24px; border-width: 1px; border-radius: 3px; }
.web-tpl-store .cart-item-img-wrapper .monitor-display-glowing { width: 42px; height: 20px; }
.web-tpl-store .cart-item-img-wrapper .monitor-stand { width: 6px; height: 8px; border-width: 1px; }
.web-tpl-store .cart-item-img-wrapper .monitor-base { width: 16px; height: 2px; }

.web-tpl-store .cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.web-tpl-store .cart-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.web-tpl-store .cart-item-price {
  font-size: 13px;
  color: #66fcf1;
  font-weight: 600;
}

.web-tpl-store .cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.web-tpl-store .cart-qty-selector {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}

.web-tpl-store .qty-btn {
  background: transparent;
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.3s;
}

.web-tpl-store .qty-btn:hover {
  background: rgba(255,255,255,0.08);
}

.web-tpl-store .qty-val {
  font-size: 12.5px;
  font-weight: 700;
  width: 24px;
  text-align: center;
  color: #fff;
}

.web-tpl-store .cart-item-remove-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 6px;
  transition: color 0.3s;
}

.web-tpl-store .cart-item-remove-btn:hover {
  color: #ff4a5a;
}

.web-tpl-store .cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.web-tpl-store .cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
}

.web-tpl-store .summary-value {
  font-weight: 600;
  color: #fff;
}

.web-tpl-store .cart-summary-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.web-tpl-store .total-row {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
}

.web-tpl-store .total-row .total-amount {
  font-size: 20px;
  color: #66fcf1;
  font-weight: 800;
}

.web-tpl-store .cart-checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.web-tpl-store .cart-checkout-btn {
  width: 100% !important;
  padding: 12px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
}

.web-tpl-store .cart-continue-btn {
  width: 100% !important;
  padding: 10px !important;
  border-radius: 20px !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

.web-tpl-store .cart-continue-btn:hover {
  background: rgba(255,255,255,0.04) !important;
}

/* Backdrop Overlay Screen */
.web-tpl-store .store-cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.web-tpl-store .store-cart-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Store Theme Overrides (Light Theme / Amber Theme Compatibility)
   -------------------------------------------------------------------------- */

/* Premium LIGHT Theme Specifics */
.web-preview-wrapper.web-theme-light.web-tpl-store .web-preview-content {
  background-color: #f5f6fa;
  color: #2e3440;
}

/* Light Theme Graphics and Hero button overrides */
.web-preview-wrapper.web-theme-light .store-btn-shop-now {
  background: #106b6b !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(16, 107, 107, 0.2);
}

.web-preview-wrapper.web-theme-light .store-btn-shop-now:hover {
  background: #0d5252 !important;
  box-shadow: 0 8px 25px rgba(16, 107, 107, 0.35);
}

.web-preview-wrapper.web-theme-light .mini-band {
  border-color: #cbd5e1;
}

.web-preview-wrapper.web-theme-light .mini-cup-left,
.web-preview-wrapper.web-theme-light .mini-cup-right {
  background: linear-gradient(135deg, #e5e9f0, #cbd5e1);
  border-color: #106b6b;
}

.web-preview-wrapper.web-theme-light .monitor-stand {
  background: #cbd5e1;
}

.web-preview-wrapper.web-theme-light .monitor-base {
  background: #cbd5e1;
}

.web-preview-wrapper.web-theme-light .store-glass {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.web-preview-wrapper.web-theme-light .store-header {
  background: rgba(245, 246, 250, 0.8) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.web-preview-wrapper.web-theme-light .store-logo {
  background: linear-gradient(135deg, #106b6b, #1b4d4d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.web-preview-wrapper.web-theme-light .store-nav a {
  color: rgba(46, 52, 64, 0.7) !important;
}

.web-preview-wrapper.web-theme-light .store-nav a:hover,
.web-preview-wrapper.web-theme-light .store-nav a.active {
  color: #106b6b !important;
}

.web-preview-wrapper.web-theme-light .store-nav a::after {
  background: #106b6b;
}

.web-preview-wrapper.web-theme-light .store-search-input {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .store-search-input:focus {
  background: #fff;
  border-color: #106b6b;
  box-shadow: 0 0 10px rgba(16, 107, 107, 0.15);
}

.web-preview-wrapper.web-theme-light .search-icon {
  color: rgba(46, 52, 64, 0.4);
}

.web-preview-wrapper.web-theme-light .store-wishlist-btn {
  color: rgba(46, 52, 64, 0.7);
}

.web-preview-wrapper.web-theme-light .store-cart-toggle-btn {
  background: #106b6b !important;
  color: #fff !important;
}

.web-preview-wrapper.web-theme-light .cart-badge {
  border-color: #f5f6fa;
}

.web-preview-wrapper.web-theme-light .store-hero {
  background: radial-gradient(circle at 80% 20%, rgba(16, 107, 107, 0.04) 0%, transparent 60%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.web-preview-wrapper.web-theme-light .store-hero-badge {
  background: rgba(16, 107, 107, 0.06);
  border-color: rgba(16, 107, 107, 0.15);
  color: #106b6b;
}

.web-preview-wrapper.web-theme-light .store-hero-title {
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .store-hero-desc {
  color: rgba(46, 52, 64, 0.7);
}

.web-preview-wrapper.web-theme-light .store-hero-price-tag .price-label {
  color: rgba(46, 52, 64, 0.5);
}

.web-preview-wrapper.web-theme-light .store-hero-price-tag .price-value {
  color: #106b6b;
}

.web-preview-wrapper.web-theme-light .store-btn-shop-now {
  box-shadow: 0 4px 15px rgba(16, 107, 107, 0.2);
}

.web-preview-wrapper.web-theme-light .store-btn-shop-now:hover {
  box-shadow: 0 8px 25px rgba(16, 107, 107, 0.35);
}

.web-preview-wrapper.web-theme-light .store-btn-watch {
  border-color: rgba(46, 52, 64, 0.2) !important;
  color: #2e3440 !important;
}

.web-preview-wrapper.web-theme-light .store-btn-watch:hover {
  background: rgba(0,0,0,0.02) !important;
  border-color: rgba(46, 52, 64, 0.4) !important;
}

.web-preview-wrapper.web-theme-light .store-hero-backdrop {
  background: radial-gradient(circle, rgba(16, 107, 107, 0.08) 0%, transparent 70%);
}

/* Light theme CSS Headphone Graphic */
.web-preview-wrapper.web-theme-light .css-headphone-arch {
  border-color: #d8dee9;
}

.web-preview-wrapper.web-theme-light .css-headphone-band {
  background: linear-gradient(90deg, #106b6b, #439a9a);
}

.web-preview-wrapper.web-theme-light .css-cup-housing {
  background: linear-gradient(135deg, #e5e9f0, #d8dee9);
  border-color: #106b6b;
}

.web-preview-wrapper.web-theme-light .css-cup-ring {
  border-color: rgba(16, 107, 107, 0.4);
  background: radial-gradient(circle, #106b6b 10%, transparent 60%);
  box-shadow: 0 0 10px rgba(16, 107, 107, 0.2);
}

.web-preview-wrapper.web-theme-light .css-cup-cushion {
  background: #eceff4;
}

.web-preview-wrapper.web-theme-light .pulse-ring {
  border-color: #106b6b;
}

.web-preview-wrapper.web-theme-light .pulse-core {
  background-color: #106b6b;
  box-shadow: 0 0 8px #106b6b;
}

.web-preview-wrapper.web-theme-light .pulse-dot::before {
  background: #ffffff;
  border-color: #106b6b;
  color: #2e3440;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.web-preview-wrapper.web-theme-light .store-filter-tab {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
  color: rgba(46, 52, 64, 0.7);
}

.web-preview-wrapper.web-theme-light .store-filter-tab:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .store-filter-tab.active {
  background: #106b6b;
  color: #fff;
  border-color: #106b6b;
  box-shadow: 0 4px 15px rgba(16, 107, 107, 0.25);
}

.web-preview-wrapper.web-theme-light .store-product-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.web-preview-wrapper.web-theme-light .store-product-card:hover {
  border-color: rgba(16, 107, 107, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.web-preview-wrapper.web-theme-light .badge-new {
  background: #106b6b;
  color: #fff;
}

.web-preview-wrapper.web-theme-light .store-card-graphic-wrapper {
  background: radial-gradient(circle, rgba(16, 107, 107, 0.04) 0%, transparent 75%);
}

/* Light graphics colors */
.web-preview-wrapper.web-theme-light .kb-chassis {
  background: #e5e9f0;
  border-color: #106b6b;
}

.web-preview-wrapper.web-theme-light .kb-key {
  background: #ffffff;
}

.web-preview-wrapper.web-theme-light .kb-key.key-accent { background: #106b6b; }
.web-preview-wrapper.web-theme-light .kb-key.key-accent2 { background: #d8dee9; }

.web-preview-wrapper.web-theme-light .watch-strap {
  background: #d8dee9;
}

.web-preview-wrapper.web-theme-light .watch-case {
  background: linear-gradient(135deg, #106b6b, #d8dee9);
}

.web-preview-wrapper.web-theme-light .watch-screen {
  background: #ffffff;
}

.web-preview-wrapper.web-theme-light .watch-time {
  color: #106b6b;
}

.web-preview-wrapper.web-theme-light .watch-ring {
  border-color: #106b6b;
}

.web-preview-wrapper.web-theme-light .monitor-screen-curve {
  background: #d8dee9;
}

.web-preview-wrapper.web-theme-light .monitor-display-glowing {
  background: linear-gradient(180deg, #e5e9f0, #ffffff);
}

.web-preview-wrapper.web-theme-light .monitor-display-glowing::before {
  background: radial-gradient(ellipse, rgba(16, 107, 107, 0.15) 0%, transparent 80%);
}

.web-preview-wrapper.web-theme-light .store-product-category {
  color: #106b6b;
}

.web-preview-wrapper.web-theme-light .store-product-title {
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .rating-text {
  color: rgba(46, 52, 64, 0.5);
}

.web-preview-wrapper.web-theme-light .store-product-specs li {
  color: rgba(46, 52, 64, 0.6);
}

.web-preview-wrapper.web-theme-light .store-product-specs li::before {
  color: #106b6b;
}

.web-preview-wrapper.web-theme-light .store-original-price {
  color: rgba(46, 52, 64, 0.4);
}

.web-preview-wrapper.web-theme-light .store-sale-price {
  color: #106b6b;
}

.web-preview-wrapper.web-theme-light .store-add-cart-btn {
  border-color: rgba(16, 107, 107, 0.3) !important;
  color: #106b6b !important;
}

.web-preview-wrapper.web-theme-light .store-add-cart-btn:hover {
  background: #106b6b !important;
  color: #fff !important;
  border-color: #106b6b !important;
}

.web-preview-wrapper.web-theme-light .store-bento-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.05);
}

.web-preview-wrapper.web-theme-light .bento-icon {
  color: #106b6b;
}

.web-preview-wrapper.web-theme-light .store-bento-card h3 {
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .store-bento-card p {
  color: rgba(46, 52, 64, 0.6);
}

.web-preview-wrapper.web-theme-light .store-testimonial-section {
  background: #ffffff;
  border-top-color: rgba(0,0,0,0.03);
  border-bottom-color: rgba(0,0,0,0.03);
}

.web-preview-wrapper.web-theme-light .testimonial-decor-quotes {
  color: rgba(16, 107, 107, 0.1);
}

.web-preview-wrapper.web-theme-light .store-testimonial-text {
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .testimonial-avatar {
  color: #106b6b;
}

.web-preview-wrapper.web-theme-light .store-author-name {
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .store-author-title {
  color: rgba(46, 52, 64, 0.5);
}

.web-preview-wrapper.web-theme-light .store-newsletter-card {
  background: linear-gradient(135deg, rgba(16, 107, 107, 0.04) 0%, rgba(255,255,255,0.8) 100%);
  border-color: rgba(16, 107, 107, 0.12);
  box-shadow: 0 8px 30px rgba(0,0,0,0.02);
}

.web-preview-wrapper.web-theme-light .store-newsletter-card h3 {
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .store-newsletter-card p {
  color: rgba(46, 52, 64, 0.6);
}

.web-preview-wrapper.web-theme-light .store-news-input {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .store-news-input:focus {
  border-color: #106b6b;
}

.web-preview-wrapper.web-theme-light .store-news-btn {
  background: #106b6b !important;
  color: #fff !important;
}

.web-preview-wrapper.web-theme-light .store-news-success-msg {
  color: #106b6b;
}

.web-preview-wrapper.web-theme-light .store-footer {
  background: #ffffff;
  border-top-color: rgba(0,0,0,0.05);
}

.web-preview-wrapper.web-theme-light .store-footer-desc {
  color: rgba(46, 52, 64, 0.6);
}

.web-preview-wrapper.web-theme-light .store-links-column h4 {
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .store-links-column a {
  color: rgba(46, 52, 64, 0.6) !important;
}

.web-preview-wrapper.web-theme-light .store-links-column a:hover {
  color: #106b6b !important;
}

.web-preview-wrapper.web-theme-light .store-footer-bottom {
  border-top-color: rgba(0,0,0,0.05);
}

.web-preview-wrapper.web-theme-light .store-copyright {
  color: rgba(46, 52, 64, 0.5);
}

.web-preview-wrapper.web-theme-light .store-cart-drawer {
  background: #ffffff;
  border-left-color: rgba(0, 0, 0, 0.08);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}

html[dir="rtl"] .web-preview-wrapper.web-theme-light .store-cart-drawer {
  border-right-color: rgba(0, 0, 0, 0.08);
  box-shadow: 10px 0 40px rgba(0,0,0,0.1);
}

.web-preview-wrapper.web-theme-light .cart-drawer-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.web-preview-wrapper.web-theme-light .cart-drawer-header h3 {
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .cart-drawer-header h3 i {
  color: #106b6b;
}

.web-preview-wrapper.web-theme-light .cart-drawer-close-btn {
  color: rgba(46, 52, 64, 0.6);
}

.web-preview-wrapper.web-theme-light .cart-drawer-close-btn:hover {
  color: #ff4a5a;
  background: rgba(255, 74, 90, 0.06);
}

.web-preview-wrapper.web-theme-light .cart-empty-state {
  color: rgba(46, 52, 64, 0.5);
}

.web-preview-wrapper.web-theme-light .cart-empty-state .empty-icon {
  color: rgba(46, 52, 64, 0.12);
}

.web-preview-wrapper.web-theme-light .cart-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.web-preview-wrapper.web-theme-light .cart-item-img-wrapper {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.04);
}

.web-preview-wrapper.web-theme-light .cart-item-title {
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .cart-item-price {
  color: #106b6b;
}

.web-preview-wrapper.web-theme-light .cart-qty-selector {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.web-preview-wrapper.web-theme-light .qty-btn {
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .qty-btn:hover {
  background: rgba(0,0,0,0.04);
}

.web-preview-wrapper.web-theme-light .qty-val {
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .cart-item-remove-btn {
  color: rgba(46, 52, 64, 0.4);
}

.web-preview-wrapper.web-theme-light .cart-drawer-footer {
  border-top-color: rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.01);
}

.web-preview-wrapper.web-theme-light .cart-summary-row {
  color: rgba(46, 52, 64, 0.6);
}

.web-preview-wrapper.web-theme-light .summary-value {
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .cart-summary-divider {
  background: rgba(0,0,0,0.06);
}

.web-preview-wrapper.web-theme-light .total-row {
  color: #2e3440;
}

.web-preview-wrapper.web-theme-light .total-row .total-amount {
  color: #106b6b;
}

.web-preview-wrapper.web-theme-light .cart-checkout-btn {
  background: #106b6b !important;
  color: #fff !important;
}

.web-preview-wrapper.web-theme-light .cart-continue-btn {
  border-color: rgba(46, 52, 64, 0.2) !important;
  color: #2e3440 !important;
}

.web-preview-wrapper.web-theme-light .cart-continue-btn:hover {
  background: rgba(0,0,0,0.02) !important;
}

.web-preview-wrapper.web-theme-light .store-cart-backdrop {
  background: rgba(0,0,0,0.3);
}


/* Premium AMBER Theme Specifics */
.web-preview-wrapper.web-theme-amber.web-tpl-store .web-preview-content {
  background-color: #1e1610;
  color: #e0d0c0;
}

/* Amber Theme Graphics and button overrides */
.web-preview-wrapper.web-theme-amber .store-btn-shop-now {
  background: #d4af37 !important;
  color: #1e1610 !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.web-preview-wrapper.web-theme-amber .store-btn-shop-now:hover {
  background: #b8860b !important;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.web-preview-wrapper.web-theme-amber .mini-band {
  border-color: #3a2e26;
}

.web-preview-wrapper.web-theme-amber .mini-cup-left,
.web-preview-wrapper.web-theme-amber .mini-cup-right {
  background: linear-gradient(135deg, #2a201a, #1e1610);
  border-color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .monitor-stand {
  background: #3a2e26;
}

.web-preview-wrapper.web-theme-amber .monitor-base {
  background: #3a2e26;
}

.web-preview-wrapper.web-theme-amber .store-glass {
  background: rgba(212, 175, 55, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.08);
}

.web-preview-wrapper.web-theme-amber .store-header {
  background: rgba(30, 22, 16, 0.8) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.web-preview-wrapper.web-theme-amber .store-logo {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.web-preview-wrapper.web-theme-amber .store-nav a {
  color: rgba(224, 208, 192, 0.7) !important;
}

.web-preview-wrapper.web-theme-amber .store-nav a:hover,
.web-preview-wrapper.web-theme-amber .store-nav a.active {
  color: #d4af37 !important;
}

.web-preview-wrapper.web-theme-amber .store-nav a::after {
  background: #d4af37;
}

.web-preview-wrapper.web-theme-amber .store-search-input {
  background: rgba(212, 175, 55, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.1);
  color: #e0d0c0;
}

.web-preview-wrapper.web-theme-amber .store-search-input:focus {
  background: rgba(212, 175, 55, 0.08);
  border-color: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.web-preview-wrapper.web-theme-amber .search-icon {
  color: rgba(224, 208, 192, 0.4);
}

.web-preview-wrapper.web-theme-amber .store-wishlist-btn {
  color: rgba(224, 208, 192, 0.7);
}

.web-preview-wrapper.web-theme-amber .store-cart-toggle-btn {
  background: #d4af37 !important;
  color: #1e1610 !important;
}

.web-preview-wrapper.web-theme-amber .cart-badge {
  border-color: #1e1610;
}

.web-preview-wrapper.web-theme-amber .store-hero {
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.06);
}

.web-preview-wrapper.web-theme-amber .store-hero-badge {
  background: rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.15);
  color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .store-hero-title {
  color: #ffffff;
}

.web-preview-wrapper.web-theme-amber .store-hero-desc {
  color: rgba(224, 208, 192, 0.7);
}

.web-preview-wrapper.web-theme-amber .store-hero-price-tag .price-label {
  color: rgba(224, 208, 192, 0.5);
}

.web-preview-wrapper.web-theme-amber .store-hero-price-tag .price-value {
  color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .store-btn-shop-now {
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.web-preview-wrapper.web-theme-amber .store-btn-shop-now:hover {
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.web-preview-wrapper.web-theme-amber .store-btn-watch {
  border-color: rgba(224, 208, 192, 0.2) !important;
  color: #e0d0c0 !important;
}

.web-preview-wrapper.web-theme-amber .store-btn-watch:hover {
  background: rgba(212, 175, 55, 0.04) !important;
  border-color: rgba(224, 208, 192, 0.4) !important;
}

.web-preview-wrapper.web-theme-amber .store-hero-backdrop {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}

/* Amber theme CSS Headphone Graphic */
.web-preview-wrapper.web-theme-amber .css-headphone-arch {
  border-color: #3a2e26;
}

.web-preview-wrapper.web-theme-amber .css-headphone-band {
  background: linear-gradient(90deg, #d4af37, #b8860b);
}

.web-preview-wrapper.web-theme-amber .css-cup-housing {
  background: linear-gradient(135deg, #3a2e26, #1e1610);
  border-color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .css-cup-ring {
  border-color: rgba(212, 175, 55, 0.4);
  background: radial-gradient(circle, #d4af37 10%, transparent 60%);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.web-preview-wrapper.web-theme-amber .css-cup-cushion {
  background: #2a201a;
}

.web-preview-wrapper.web-theme-amber .pulse-ring {
  border-color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .pulse-core {
  background-color: #d4af37;
  box-shadow: 0 0 8px #d4af37;
}

.web-preview-wrapper.web-theme-amber .pulse-dot::before {
  background: #1e1610;
  border-color: #d4af37;
  color: #e0d0c0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.web-preview-wrapper.web-theme-amber .store-filter-tab {
  background: rgba(212, 175, 55, 0.02);
  border-color: rgba(212, 175, 55, 0.08);
  color: rgba(224, 208, 192, 0.7);
}

.web-preview-wrapper.web-theme-amber .store-filter-tab:hover {
  background: rgba(212, 175, 55, 0.06);
  color: #fff;
}

.web-preview-wrapper.web-theme-amber .store-filter-tab.active {
  background: #d4af37;
  color: #1e1610;
  border-color: #d4af37;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.web-preview-wrapper.web-theme-amber .store-product-card {
  background: rgba(212, 175, 55, 0.01);
  border-color: rgba(212, 175, 55, 0.06);
}

.web-preview-wrapper.web-theme-amber .store-product-card:hover {
  background: rgba(212, 175, 55, 0.03);
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.web-preview-wrapper.web-theme-amber .badge-new {
  background: #d4af37;
  color: #1e1610;
}

.web-preview-wrapper.web-theme-amber .store-card-graphic-wrapper {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 75%);
}

/* Amber graphics colors */
.web-preview-wrapper.web-theme-amber .kb-chassis {
  background: #3a2e26;
  border-color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .kb-key {
  background: #1e1610;
}

.web-preview-wrapper.web-theme-amber .kb-key.key-accent { background: #d4af37; }
.web-preview-wrapper.web-theme-amber .kb-key.key-accent2 { background: #5a4a3e; }

.web-preview-wrapper.web-theme-amber .watch-strap {
  background: #3a2e26;
}

.web-preview-wrapper.web-theme-amber .watch-case {
  background: linear-gradient(135deg, #d4af37, #3a2e26);
}

.web-preview-wrapper.web-theme-amber .watch-screen {
  background: #1e1610;
}

.web-preview-wrapper.web-theme-amber .watch-time {
  color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .watch-ring {
  border-color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .monitor-screen-curve {
  background: #3a2e26;
}

.web-preview-wrapper.web-theme-amber .monitor-display-glowing {
  background: linear-gradient(180deg, #2a201a, #1e1610);
}

.web-preview-wrapper.web-theme-amber .monitor-display-glowing::before {
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.15) 0%, transparent 80%);
}

.web-preview-wrapper.web-theme-amber .store-product-category {
  color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .store-product-title {
  color: #ffffff;
}

.web-preview-wrapper.web-theme-amber .rating-text {
  color: rgba(224, 208, 192, 0.4);
}

.web-preview-wrapper.web-theme-amber .store-product-specs li {
  color: rgba(224, 208, 192, 0.5);
}

.web-preview-wrapper.web-theme-amber .store-product-specs li::before {
  color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .store-original-price {
  color: rgba(224, 208, 192, 0.4);
}

.web-preview-wrapper.web-theme-amber .store-sale-price {
  color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .store-add-cart-btn {
  border-color: rgba(212, 175, 55, 0.3) !important;
  color: #d4af37 !important;
}

.web-preview-wrapper.web-theme-amber .store-add-cart-btn:hover {
  background: #d4af37 !important;
  color: #1e1610 !important;
  border-color: #d4af37 !important;
}

.web-preview-wrapper.web-theme-amber .store-bento-card {
  background: rgba(212, 175, 55, 0.01);
  border-color: rgba(212, 175, 55, 0.06);
}

.web-preview-wrapper.web-theme-amber .bento-icon {
  color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .store-bento-card h3 {
  color: #ffffff;
}

.web-preview-wrapper.web-theme-amber .store-bento-card p {
  color: rgba(224, 208, 192, 0.5);
}

.web-preview-wrapper.web-theme-amber .store-testimonial-section {
  background: rgba(212, 175, 55, 0.01);
  border-top-color: rgba(212, 175, 55, 0.06);
  border-bottom-color: rgba(212, 175, 55, 0.06);
}

.web-preview-wrapper.web-theme-amber .testimonial-decor-quotes {
  color: rgba(212, 175, 55, 0.1);
}

.web-preview-wrapper.web-theme-amber .store-testimonial-text {
  color: #ffffff;
}

.web-preview-wrapper.web-theme-amber .testimonial-avatar {
  color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .store-author-name {
  color: #ffffff;
}

.web-preview-wrapper.web-theme-amber .store-author-title {
  color: rgba(224, 208, 192, 0.5);
}

.web-preview-wrapper.web-theme-amber .store-newsletter-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.04) 0%, rgba(30, 22, 16, 0.8) 100%);
  border-color: rgba(212, 175, 55, 0.12);
}

.web-preview-wrapper.web-theme-amber .store-newsletter-card h3 {
  color: #ffffff;
}

.web-preview-wrapper.web-theme-amber .store-newsletter-card p {
  color: rgba(224, 208, 192, 0.5);
}

.web-preview-wrapper.web-theme-amber .store-news-input {
  background: #1e1610;
  border-color: rgba(212, 175, 55, 0.15);
  color: #e0d0c0;
}

.web-preview-wrapper.web-theme-amber .store-news-input:focus {
  border-color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .store-news-btn {
  background: #d4af37 !important;
  color: #1e1610 !important;
}

.web-preview-wrapper.web-theme-amber .store-news-success-msg {
  color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .store-footer {
  background: #1e1610;
  border-top-color: rgba(212, 175, 55, 0.1);
}

.web-preview-wrapper.web-theme-amber .store-footer-desc {
  color: rgba(224, 208, 192, 0.5);
}

.web-preview-wrapper.web-theme-amber .store-links-column h4 {
  color: #ffffff;
}

.web-preview-wrapper.web-theme-amber .store-links-column a {
  color: rgba(224, 208, 192, 0.5) !important;
}

.web-preview-wrapper.web-theme-amber .store-links-column a:hover {
  color: #d4af37 !important;
}

.web-preview-wrapper.web-theme-amber .store-footer-bottom {
  border-top-color: rgba(212, 175, 55, 0.08);
}

.web-preview-wrapper.web-theme-amber .store-copyright {
  color: rgba(224, 208, 192, 0.5);
}

.web-preview-wrapper.web-theme-amber .store-cart-drawer {
  background: #1e1610;
  border-left-color: rgba(212, 175, 55, 0.1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.4);
}

html[dir="rtl"] .web-preview-wrapper.web-theme-amber .store-cart-drawer {
  border-right-color: rgba(212, 175, 55, 0.1);
  box-shadow: 10px 0 40px rgba(0,0,0,0.4);
}

.web-preview-wrapper.web-theme-amber .cart-drawer-header {
  border-bottom-color: rgba(212, 175, 55, 0.1);
}

.web-preview-wrapper.web-theme-amber .cart-drawer-header h3 {
  color: #ffffff;
}

.web-preview-wrapper.web-theme-amber .cart-drawer-header h3 i {
  color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .cart-drawer-close-btn {
  color: rgba(224, 208, 192, 0.6);
}

.web-preview-wrapper.web-theme-amber .cart-drawer-close-btn:hover {
  color: #ff4a5a;
  background: rgba(255, 74, 90, 0.06);
}

.web-preview-wrapper.web-theme-amber .cart-empty-state {
  color: rgba(224, 208, 192, 0.4);
}

.web-preview-wrapper.web-theme-amber .cart-empty-state .empty-icon {
  color: rgba(212, 175, 55, 0.08);
}

.web-preview-wrapper.web-theme-amber .cart-item {
  background: rgba(212, 175, 55, 0.01);
  border-color: rgba(212, 175, 55, 0.05);
}

.web-preview-wrapper.web-theme-amber .cart-item-img-wrapper {
  background: rgba(212, 175, 55, 0.02);
  border-color: rgba(212, 175, 55, 0.05);
}

.web-preview-wrapper.web-theme-amber .cart-item-title {
  color: #ffffff;
}

.web-preview-wrapper.web-theme-amber .cart-item-price {
  color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .cart-qty-selector {
  background: rgba(0,0,0,0.2);
  border-color: rgba(212, 175, 55, 0.08);
}

.web-preview-wrapper.web-theme-amber .qty-btn {
  color: #ffffff;
}

.web-preview-wrapper.web-theme-amber .qty-btn:hover {
  background: rgba(212, 175, 55, 0.05);
}

.web-preview-wrapper.web-theme-amber .qty-val {
  color: #ffffff;
}

.web-preview-wrapper.web-theme-amber .cart-item-remove-btn {
  color: rgba(224, 208, 192, 0.4);
}

.web-preview-wrapper.web-theme-amber .cart-drawer-footer {
  border-top-color: rgba(212, 175, 55, 0.1);
  background: rgba(0,0,0,0.1);
}

.web-preview-wrapper.web-theme-amber .cart-summary-row {
  color: rgba(224, 208, 192, 0.6);
}

.web-preview-wrapper.web-theme-amber .summary-value {
  color: #ffffff;
}

.web-preview-wrapper.web-theme-amber .cart-summary-divider {
  background: rgba(212, 175, 55, 0.08);
}

.web-preview-wrapper.web-theme-amber .total-row {
  color: #ffffff;
}

.web-preview-wrapper.web-theme-amber .total-row .total-amount {
  color: #d4af37;
}

.web-preview-wrapper.web-theme-amber .cart-checkout-btn {
  background: #d4af37 !important;
  color: #1e1610 !important;
}

.web-preview-wrapper.web-theme-amber .cart-continue-btn {
  border-color: rgba(224, 208, 192, 0.2) !important;
  color: #e0d0c0 !important;
}

.web-preview-wrapper.web-theme-amber .cart-continue-btn:hover {
  background: rgba(212, 175, 55, 0.04) !important;
}

.web-preview-wrapper.web-theme-amber .store-cart-backdrop {
  background: rgba(0,0,0,0.4);
}


/* Responsive Layout adaptions */
@media (max-width: 1024px) {
  .web-tpl-store .store-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .web-tpl-store .store-bento-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .web-tpl-store .store-header {
    padding: 16px 20px;
  }
  .web-tpl-store .store-nav {
    display: none !important; /* Hide links on mobile view to stay clean */
  }
  .web-tpl-store .store-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .web-tpl-store .store-hero-badge-container {
    justify-content: center;
  }
  .web-tpl-store .store-hero-price-tag {
    justify-content: center;
  }
  .web-tpl-store .store-hero-buttons {
    justify-content: center;
  }
  .web-tpl-store .store-footer-top {
    flex-direction: column;
    gap: 40px;
  }
  .web-tpl-store .store-footer-links {
    gap: 40px;
    flex-wrap: wrap;
  }
  .web-tpl-store .store-cart-drawer {
    width: 100vw;
  }
}

@media (max-width: 480px) {
  .web-tpl-store .store-products-grid {
    grid-template-columns: 1fr;
  }
  .web-tpl-store .store-hero-title {
    font-size: 34px;
  }
  .web-tpl-store .store-news-form {
    flex-direction: column;
    border-radius: 0;
  }
  .web-tpl-store .store-news-input {
    width: 100%;
  }
  .web-tpl-store .store-news-btn {
    width: 100%;
  }
}
/* --------------------------------------------------------------------------
   Custom Font Target Distribution Rules
   -------------------------------------------------------------------------- */

/* Default Web Font Distribution Rules (Headings, Body, Buttons) */
.web-preview-wrapper .web-preview-content,
.web-preview-wrapper .web-preview-content *:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab) {
  font-family: var(--font-web-body, inherit);
}

.web-preview-wrapper .web-logo,
.web-preview-wrapper .store-logo,
.web-preview-wrapper .web-hero-title,
.web-preview-wrapper .store-hero-title,
.web-preview-wrapper .web-section-title,
.web-preview-wrapper .web-feature-title,
.web-preview-wrapper .store-product-title,
.web-preview-wrapper .store-bento-card h3,
.web-preview-wrapper .store-newsletter-card h3,
.web-preview-wrapper .cart-drawer-header h3,
.web-preview-wrapper .web-testimonial-text,
.web-preview-wrapper .store-testimonial-text,
.web-preview-wrapper .cv-section-title,
.web-preview-wrapper .cv-item-role,
.web-preview-wrapper .user-name,
.web-preview-wrapper .floating-title,
.web-preview-wrapper .score-title,
.web-preview-wrapper .web-stat-number,
.web-preview-wrapper .web-brands-title,
.web-preview-wrapper .web-links-column h4,
.web-preview-wrapper .store-links-column h4,
.web-preview-wrapper .web-author-name,
.web-preview-wrapper .store-author-name,
.web-preview-wrapper .db-logo-text,
.web-preview-wrapper .db-user-name,
.web-preview-wrapper .db-kpi-num,
.web-preview-wrapper .db-gauge-val-num,
.web-preview-wrapper .db-heatmap-total,
.web-preview-wrapper .db-member-val,
.web-preview-wrapper .db-card-title,
.web-preview-wrapper .db-table-header-title,
.web-preview-wrapper .db-cell-title,
.web-preview-wrapper .db-progress-val,
.web-preview-wrapper .db-kpi-title,
.web-preview-wrapper .price-value,
.web-preview-wrapper .store-sale-price,
.web-preview-wrapper .store-newsletter-card h3 {
  font-family: var(--font-web-headings, inherit) !important;
}

.web-preview-wrapper .web-nav a,
.web-preview-wrapper .store-nav a,
.web-preview-wrapper .browser-tab,
.web-preview-wrapper .store-filter-tab,
.web-preview-wrapper .web-btn,
.web-preview-wrapper .db-menu-item,
.web-preview-wrapper .db-header-nav a,
.web-preview-wrapper .db-team-dropdown,
.web-preview-wrapper .db-lang-btn,
.web-preview-wrapper .db-icon-btn,
.web-preview-wrapper .db-gauge-btn,
.web-preview-wrapper .db-kpi-badge,
.web-preview-wrapper .db-msg-badge,
.web-preview-wrapper .status-pill,
.web-preview-wrapper .db-table th {
  font-family: var(--font-web-buttons, inherit) !important;
}


/* Font size normalization when using standard fonts (Cairo, Georgia, Courier New) */
.web-preview-wrapper.web-target-headings .web-hero-desc,
.web-preview-wrapper.web-target-headings .store-hero-desc,
.web-preview-wrapper.web-target-buttons .web-hero-desc,
.web-preview-wrapper.web-target-buttons .store-hero-desc {
  font-size: 19px !important;
}

.web-preview-wrapper.web-target-headings .web-section-desc,
.web-preview-wrapper.web-target-buttons .web-section-desc {
  font-size: 18px !important;
}

.web-preview-wrapper.web-target-headings .web-feature-desc,
.web-preview-wrapper.web-target-buttons .web-feature-desc {
  font-size: 16.5px !important;
}

.web-preview-wrapper.web-target-headings .web-btn,
.web-preview-wrapper.web-target-headings .web-nav a,
.web-preview-wrapper.web-target-headings .store-nav a,
.web-preview-wrapper.web-target-headings .store-filter-tab {
  font-size: 16.5px !important;
}

.web-preview-wrapper.web-target-headings .web-stat-label,
.web-preview-wrapper.web-target-buttons .web-stat-label {
  font-size: 14.5px !important;
}

.web-preview-wrapper.web-target-headings .web-brand-desc,
.web-preview-wrapper.web-target-buttons .web-brand-desc {
  font-size: 15.5px !important;
}

.web-preview-wrapper.web-target-headings .web-copyright,
.web-preview-wrapper.web-target-headings .store-copyright,
.web-preview-wrapper.web-target-buttons .web-copyright,
.web-preview-wrapper.web-target-buttons .store-copyright {
  font-size: 14.5px !important;
}

.web-preview-wrapper.web-target-headings .web-links-column a,
.web-preview-wrapper.web-target-headings .store-links-column a,
.web-preview-wrapper.web-target-buttons .web-links-column a,
.web-preview-wrapper.web-target-buttons .store-links-column a {
  font-size: 15.5px !important;
}

.web-preview-wrapper.web-target-headings .web-hero-badge,
.web-preview-wrapper.web-target-headings .store-hero-badge,
.web-preview-wrapper.web-target-buttons .web-hero-badge,
.web-preview-wrapper.web-target-buttons .store-hero-badge {
  font-size: 15px !important;
}

/* Responsiveness for Web Preview Grid */
@media (max-width: 768px) {
  .web-features-grid {
    grid-template-columns: 1fr !important;
  }
  .web-nav {
    display: none; /* Hide simple nav links on mobile to save space */
  }
  .web-footer-top {
    flex-direction: column;
  }
  .web-footer-links {
    gap: 30px;
  }
}

/* ==========================================================================
   Premium Selection Color Harmonization Overrides
   ========================================================================== */

/* Document Mode Selection Overrides */
.view-mode-document .poetry-card.paper-white ::selection {
  background-color: rgba(197, 168, 128, 0.3) !important;
  color: #111111 !important;
}
.view-mode-document .poetry-card.paper-white ::-moz-selection {
  background-color: rgba(197, 168, 128, 0.3) !important;
  color: #111111 !important;
}

.view-mode-document .poetry-card.paper-cream ::selection {
  background-color: rgba(197, 168, 128, 0.35) !important;
  color: #2e261a !important;
}
.view-mode-document .poetry-card.paper-cream ::-moz-selection {
  background-color: rgba(197, 168, 128, 0.35) !important;
  color: #2e261a !important;
}

.view-mode-document .poetry-card.paper-dark ::selection {
  background-color: rgba(197, 168, 128, 0.25) !important;
  color: #f4f4f5 !important;
}
.view-mode-document .poetry-card.paper-dark ::-moz-selection {
  background-color: rgba(197, 168, 128, 0.25) !important;
  color: #f4f4f5 !important;
}

/* Website Mockup Mode Selection Overrides */
.web-preview-wrapper.web-theme-dark ::selection {
  background-color: rgba(197, 168, 128, 0.35) !important;
  color: #ffffff !important;
}
.web-preview-wrapper.web-theme-dark ::-moz-selection {
  background-color: rgba(197, 168, 128, 0.35) !important;
  color: #ffffff !important;
}

.web-preview-wrapper.web-theme-light ::selection {
  background-color: rgba(197, 168, 128, 0.25) !important;
  color: #111111 !important;
}
.web-preview-wrapper.web-theme-light ::-moz-selection {
  background-color: rgba(197, 168, 128, 0.25) !important;
  color: #111111 !important;
}

.web-preview-wrapper.web-theme-amber ::selection {
  background-color: rgba(245, 158, 11, 0.3) !important;
  color: #1e1b4b !important;
}
.web-preview-wrapper.web-theme-amber ::-moz-selection {
  background-color: rgba(245, 158, 11, 0.3) !important;
  color: #1e1b4b !important;
}

/* ==========================================================================
   SaaS Layout Template Overrides (Premium Split Hero CV Builder Layout)
   ========================================================================== */

/* Hide SaaS exclusive elements in other templates */
.web-tpl-store .web-hero-visual,
.web-tpl-store .web-hero-stats,
.web-tpl-store .web-brands-row {
  display: none !important;
}

/* SaaS template wrapper details */
.web-tpl-saas .web-hero {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  align-items: center !important;
  text-align: start !important;
  gap: 50px !important;
  max-width: 1250px !important;
  padding: 60px 40px !important;
  margin: 0 auto !important;
}

.web-tpl-saas .web-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.web-tpl-saas .web-hero-title {
  font-size: 48px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin: 10px 0 !important;
  text-align: start !important;
  color: inherit !important;
}

.web-tpl-saas .web-hero-desc {
  font-size: 17.5px !important;
  line-height: 1.65 !important;
  margin-bottom: 12px !important;
  text-align: start !important;
  max-width: 580px !important;
  opacity: 0.85;
}

.web-tpl-saas .web-hero-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 15px;
}

/* Scoped SaaS Buttons Style */
.web-tpl-saas .web-btn {
  border-radius: 50px !important;
  padding: 12px 26px !important;
  font-weight: 600 !important;
  font-size: 15.5px !important;
  transition: all 0.3s ease !important;
}

/* Underline Golden Highlight Curve */
.web-tpl-saas .highlight-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.web-tpl-saas .highlight-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0,5 Q50,10 100,5' stroke='%23d9a75d' stroke-width='4' fill='transparent' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Amber theme highlight curve */
.web-preview-wrapper.web-theme-amber.web-tpl-saas .highlight-underline::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0,5 Q50,10 100,5' stroke='%23b45309' stroke-width='4' fill='transparent' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Dark theme highlight curve */
.web-preview-wrapper.web-theme-dark.web-tpl-saas .highlight-underline::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0,5 Q50,10 100,5' stroke='%23e0a96d' stroke-width='4' fill='transparent' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Premium Light Cream Theme for SaaS */
.web-preview-wrapper.web-theme-light.web-tpl-saas {
  background-color: #FAF7F2 !important;
  color: #1a1715 !important;
}

.web-preview-wrapper.web-theme-light.web-tpl-saas .mock-browser-header {
  background: rgba(26, 23, 21, 0.03) !important;
  border-bottom: 1px solid rgba(26, 23, 21, 0.06) !important;
}

.web-preview-wrapper.web-theme-light.web-tpl-saas .browser-address-bar {
  background: rgba(26, 23, 21, 0.04) !important;
  border: 1px solid rgba(26, 23, 21, 0.05) !important;
  color: rgba(26, 23, 21, 0.6) !important;
}

.web-preview-wrapper.web-theme-light.web-tpl-saas .web-header {
  border-bottom: 1px solid rgba(26, 23, 21, 0.05) !important;
}

.web-preview-wrapper.web-theme-light.web-tpl-saas .web-btn-primary {
  background-color: #1a1715 !important;
  color: #FAF7F2 !important;
  border: 1px solid #1a1715 !important;
}

.web-preview-wrapper.web-theme-light.web-tpl-saas .web-btn-primary:hover {
  background-color: #3d3632 !important;
  border-color: #3d3632 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 23, 21, 0.15);
}

.web-preview-wrapper.web-theme-light.web-tpl-saas .web-btn-secondary {
  background-color: transparent !important;
  color: #1a1715 !important;
  border: 1px solid rgba(26, 23, 21, 0.15) !important;
}

.web-preview-wrapper.web-theme-light.web-tpl-saas .web-btn-secondary:hover {
  background-color: rgba(26, 23, 21, 0.03) !important;
  border-color: #1a1715 !important;
  transform: translateY(-2px);
}

.web-preview-wrapper.web-theme-light.web-tpl-saas .web-nav a {
  color: rgba(26, 23, 21, 0.8) !important;
}

.web-preview-wrapper.web-theme-light.web-tpl-saas .web-nav a:hover {
  color: #1a1715 !important;
}

/* Premium Dark Theme for SaaS */
.web-preview-wrapper.web-theme-dark.web-tpl-saas .web-btn-primary {
  background-color: #ffffff !important;
  color: #0c0a09 !important;
  border: 1px solid #ffffff !important;
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .web-btn-primary:hover {
  background-color: #e5e5e5 !important;
  border-color: #e5e5e5 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .web-btn-secondary {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .web-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
}

/* Premium Amber Theme for SaaS */
.web-preview-wrapper.web-theme-amber.web-tpl-saas .web-btn-primary {
  background-color: #1a1715 !important;
  color: #FAF7F2 !important;
  border: 1px solid #1a1715 !important;
}

.web-preview-wrapper.web-theme-amber.web-tpl-saas .web-btn-primary:hover {
  background-color: #3d3632 !important;
  border-color: #3d3632 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 23, 21, 0.15);
}

.web-preview-wrapper.web-theme-amber.web-tpl-saas .web-btn-secondary {
  background-color: transparent !important;
  color: #1a1715 !important;
  border: 1px solid rgba(26, 23, 21, 0.15) !important;
}

.web-preview-wrapper.web-theme-amber.web-tpl-saas .web-btn-secondary:hover {
  background-color: rgba(26, 23, 21, 0.03) !important;
  border-color: #1a1715 !important;
  transform: translateY(-2px);
}

/* Stats Row Styling */
.web-tpl-saas .web-hero-stats {
  display: flex !important;
  gap: 24px;
  margin-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 24px;
  width: 100%;
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .web-hero-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.web-preview-wrapper.web-theme-amber.web-tpl-saas .web-hero-stats {
  border-top: 1px solid rgba(139, 115, 85, 0.15);
}

.web-tpl-saas .web-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.web-tpl-saas .web-stat-number {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #d9a75d;
  outline: none;
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .web-stat-number {
  color: #e0a96d;
}

.web-preview-wrapper.web-theme-amber.web-tpl-saas .web-stat-number {
  color: #b45309;
}

.web-tpl-saas .web-stat-label {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  opacity: 0.7;
  outline: none;
  font-weight: 500;
}

/* Left Column / Visual Area */
.web-tpl-saas .web-hero-visual {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Premium Card Structures */
.web-tpl-saas .visual-card {
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.web-tpl-saas .visual-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* 1. Main CV Mockup Card */
.web-tpl-saas .visual-card-main {
  width: 90%;
  max-width: 360px;
  height: 400px;
  padding: 24px;
  position: absolute;
  z-index: 2;
}

.web-preview-wrapper.web-theme-light.web-tpl-saas .visual-card-main {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(26, 23, 21, 0.08);
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .visual-card-main {
  background: rgba(20, 20, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.web-preview-wrapper.web-theme-amber.web-tpl-saas .visual-card-main {
  background: rgba(251, 247, 237, 0.85);
  border: 1px solid rgba(139, 115, 85, 0.15);
}

.web-tpl-saas .main-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.web-tpl-saas .user-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #d9a75d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .user-avatar-circle {
  background: #e0a96d;
  color: #1a1715;
}

.web-preview-wrapper.web-theme-amber.web-tpl-saas .user-avatar-circle {
  background: #b45309;
}

.web-tpl-saas .user-info-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.web-tpl-saas .user-name {
  font-size: 17px !important;
  font-weight: 700 !important;
  outline: none;
}

.web-tpl-saas .user-title {
  font-size: 12px !important;
  opacity: 0.6;
  outline: none;
}

.web-tpl-saas .user-contact-row {
  display: flex;
  gap: 8px;
  font-size: 10px !important;
  opacity: 0.6;
  margin-top: 4px;
  flex-wrap: wrap;
}

.web-tpl-saas .contact-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.web-tpl-saas .contact-item i {
  font-size: 10px;
  color: #d9a75d;
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .contact-item i {
  color: #e0a96d;
}

.web-preview-wrapper.web-theme-amber.web-tpl-saas .contact-item i {
  color: #b45309;
}

.web-tpl-saas .cv-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px 0;
}

.web-tpl-saas .cv-section-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  opacity: 0.85;
  outline: none;
  letter-spacing: 0.5px;
}

.web-tpl-saas .cv-section-line {
  flex-grow: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .cv-section-line {
  background: rgba(255, 255, 255, 0.1);
}

.web-preview-wrapper.web-theme-amber.web-tpl-saas .cv-section-line {
  background: rgba(139, 115, 85, 0.15);
}

.web-tpl-saas .cv-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.web-tpl-saas .cv-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px !important;
  font-weight: 600;
}

.web-tpl-saas .cv-item-role {
  color: #d9a75d;
  outline: none;
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .cv-item-role {
  color: #e0a96d;
}

.web-preview-wrapper.web-theme-amber.web-tpl-saas .cv-item-role {
  color: #b45309;
}

.web-tpl-saas .cv-item-date {
  opacity: 0.5;
}

.web-tpl-saas .cv-item-desc {
  font-size: 11px !important;
  line-height: 1.55 !important;
  opacity: 0.7;
  outline: none;
}

.web-tpl-saas .cv-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.web-tpl-saas .skill-tag {
  font-size: 11px !important;
  padding: 4px 8px !important;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.04);
  font-weight: 600;
  outline: none;
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .skill-tag {
  background: rgba(255, 255, 255, 0.06);
}

.web-tpl-saas .skill-highlight {
  background: rgba(217, 167, 93, 0.15) !important;
  color: #8c622b !important;
  border: 1px solid rgba(217, 167, 93, 0.2);
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .skill-highlight {
  background: rgba(224, 169, 109, 0.18) !important;
  color: #ffd699 !important;
  border: 1px solid rgba(224, 169, 109, 0.25);
}

.web-preview-wrapper.web-theme-amber.web-tpl-saas .skill-highlight {
  background: rgba(180, 83, 9, 0.12) !important;
  color: #b45309 !important;
  border: 1px solid rgba(180, 83, 9, 0.2);
}

/* 2. Floating Top Card Style */
.web-tpl-saas .visual-card-floating-top {
  position: absolute;
  top: 15px;
  right: -25px;
  width: 230px;
  padding: 16px;
  z-index: 3;
}

[dir="rtl"] .web-tpl-saas .visual-card-floating-top {
  right: auto;
  left: -25px;
}

.web-preview-wrapper.web-theme-light.web-tpl-saas .visual-card-floating-top {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 23, 21, 0.06);
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .visual-card-floating-top {
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.web-preview-wrapper.web-theme-amber.web-tpl-saas .visual-card-floating-top {
  background: rgba(253, 250, 242, 0.9);
  border: 1px solid rgba(139, 115, 85, 0.12);
}

.web-tpl-saas .floating-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.web-tpl-saas .active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.web-tpl-saas .floating-title {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  outline: none;
}

.web-tpl-saas .floating-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.web-tpl-saas .meta-tag {
  font-size: 10px !important;
  font-weight: 600;
  padding: 2px 6px !important;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.04);
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .meta-tag {
  background: rgba(255, 255, 255, 0.05);
}

.web-tpl-saas .tag-score {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
  outline: none;
}

.web-tpl-saas .progress-bar-mini {
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 8px;
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .progress-bar-mini {
  background: rgba(255, 255, 255, 0.1);
}

.web-tpl-saas .progress-fill {
  height: 100%;
  border-radius: 2px;
  background: #10b981;
}

.web-tpl-saas .floating-time {
  font-size: 10px !important;
  opacity: 0.5;
  outline: none;
}

/* 3. Floating Bottom Card Style */
.web-tpl-saas .visual-card-floating-bottom {
  position: absolute;
  bottom: 25px;
  left: -25px;
  width: 220px;
  padding: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

[dir="rtl"] .web-tpl-saas .visual-card-floating-bottom {
  left: auto;
  right: -25px;
}

.web-preview-wrapper.web-theme-light.web-tpl-saas .visual-card-floating-bottom {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 23, 21, 0.06);
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .visual-card-floating-bottom {
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.web-preview-wrapper.web-theme-amber.web-tpl-saas .visual-card-floating-bottom {
  background: rgba(253, 250, 242, 0.9);
  border: 1px solid rgba(139, 115, 85, 0.12);
}

.web-tpl-saas .score-circle-container {
  flex-shrink: 0;
}

.web-tpl-saas .score-circle-svg-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.web-tpl-saas .score-circle-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.web-tpl-saas .circle-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.05);
  stroke-width: 3.8;
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .circle-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.web-tpl-saas .circle-stroke {
  fill: none;
  stroke: #10b981;
  stroke-width: 3.8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s ease;
}

.web-tpl-saas .score-num {
  position: absolute;
  font-size: 13px !important;
  font-weight: 800 !important;
  outline: none;
}

.web-tpl-saas .score-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.web-tpl-saas .score-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  outline: none;
}

.web-tpl-saas .score-desc {
  font-size: 10px !important;
  opacity: 0.6;
  outline: none;
}

/* 4. Brands Partners Row Style */
.web-tpl-saas .web-brands-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
}

.web-preview-wrapper.web-theme-dark.web-tpl-saas .web-brands-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.web-preview-wrapper.web-theme-amber.web-tpl-saas .web-brands-row {
  border-top: 1px solid rgba(139, 115, 85, 0.12);
  border-bottom: 1px solid rgba(139, 115, 85, 0.12);
}

.web-tpl-saas .web-brands-title {
  font-size: 13px !important;
  font-weight: 600;
  opacity: 0.5;
  letter-spacing: 0.5px;
  outline: none;
  text-align: center;
}

.web-tpl-saas .web-brands-ticker {
  direction: ltr !important;
  display: flex !important;
  flex-direction: row !important;
  overflow: hidden;
  width: 100%;
  position: relative;
  margin-top: 14px; /* Adjusted to detach from the edge */
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.web-tpl-saas .web-brands-track {
  direction: ltr !important;
  display: flex !important;
  flex-direction: row !important;
  width: max-content;
  gap: 80px;
  align-items: center;
  animation: ticker-scroll 25s linear infinite;
}

.web-tpl-saas .web-brand-item {
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px;
  text-transform: capitalize;
  opacity: 0.65;
  outline: none;
  cursor: default;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.web-tpl-saas .web-brand-item:hover {
  opacity: 1;
  transform: scale(1.08);
}

@keyframes ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-33.3333%, 0, 0);
  }
}

/* Responsiveness overrides for SaaS Template */
@media (max-width: 900px) {
  .web-tpl-saas .web-hero {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 30px !important;
  }
  .web-tpl-saas .web-hero-content {
    align-items: center !important;
  }
  .web-tpl-saas .web-hero-title,
  .web-tpl-saas .web-hero-desc {
    text-align: center !important;
  }
  .web-tpl-saas .web-hero-visual {
    height: 430px !important;
  }
  .web-tpl-saas .visual-card-floating-top {
    right: 0 !important;
  }
  [dir="rtl"] .web-tpl-saas .visual-card-floating-top {
    left: 0 !important;
  }
  .web-tpl-saas .visual-card-floating-bottom {
    left: 0 !important;
  }
  [dir="rtl"] .web-tpl-saas .visual-card-floating-bottom {
    right: 0 !important;
  }
  .web-tpl-saas .web-hero-stats {
    justify-content: center !important;
  }
}

/* ==========================================================================
   Custom Context Menu for Preview Text Scaling
   ========================================================================== */
.preview-context-menu {
  position: fixed;
  z-index: 10000;
  min-width: 190px;
  background: rgba(20, 20, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: previewCtxFadeIn 0.15s cubic-bezier(0.165, 0.84, 0.44, 1);
  direction: rtl;
}

[dir="ltr"] .preview-context-menu {
  direction: ltr;
}

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

.ctx-menu-item {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
  width: 100%;
  transition: all 0.2s ease;
  font-family: var(--font-ui), sans-serif;
}

[dir="ltr"] .ctx-menu-item {
  text-align: left;
}

.ctx-menu-item i {
  font-size: 14px;
  color: var(--accent);
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctx-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ctx-menu-item-danger {
  color: #ef4444 !important;
}

.ctx-menu-item-danger i {
  color: #ef4444 !important;
}

.ctx-menu-item-danger:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}

.ctx-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 4px 6px;
}

.ctx-menu-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 6px 14px 4px 14px;
  letter-spacing: 0.5px;
  font-family: var(--font-ui), sans-serif;
}

[dir="rtl"] .ctx-menu-header {
  text-align: right;
}

[dir="ltr"] .ctx-menu-header {
  text-align: left;
}

.ctx-menu-info {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui), sans-serif;
  opacity: 0.95;
}

.ctx-menu-info i {
  font-size: 13px;
  color: var(--accent);
}

[dir="rtl"] .ctx-menu-info {
  text-align: right;
}

[dir="ltr"] .ctx-menu-info {
  text-align: left;
}

.ctx-size-controller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px;
  margin: 4px 6px;
  gap: 4px;
}

.ctx-size-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.ctx-size-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-hover);
}

.ctx-size-input-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
}

#ctxFontSizeInput {
  width: 48px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  outline: none;
  font-family: var(--font-ui), sans-serif;
  -moz-appearance: textfield;
}

#ctxFontSizeInput::-webkit-outer-spin-button,
#ctxFontSizeInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ctx-unit-badge {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  user-select: none;
}

/* Bold and Color options in custom context menu */
.ctx-menu-item.active {
  background: rgba(255, 255, 255, 0.08);
}
.ctx-menu-item.active i {
  color: #d4af37 !important; /* Gold highlight when active */
}

.ctx-color-section {
  padding: 2px 6px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ctx-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0 8px;
  flex-wrap: wrap;
}

.ctx-color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ctx-color-dot:hover {
  transform: scale(1.18);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}

.ctx-color-dot.active::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  color: #000000;
}

.ctx-color-dot[data-color="#111111"].active::after {
  color: #ffffff;
}

.ctx-color-picker-wrapper {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ctx-color-picker-wrapper:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.18);
}

.ctx-color-picker-wrapper input[type="color"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.ctx-color-reset {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.3) !important;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctx-color-reset i {
  font-size: 10px;
}

.ctx-color-reset:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.5) !important;
}

.ctx-color-reset.active {
  border-color: var(--danger) !important;
  color: var(--danger);
}

/* Hide font style option in Design (Card) and Document modes */
body.view-mode-design #grpFontStyle,
body.view-mode-document #grpFontStyle {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Arabic Dashboard Template Styles
   -------------------------------------------------------------------------- */

#webContentDashboard {
  direction: rtl;
  min-height: 520px;
  background: var(--db-bg);
  color: var(--db-text-main);
  font-family: inherit;
}

/* Themes Overrides for Dashboard */
.web-preview-wrapper.web-theme-dark #webContentDashboard {
  --db-bg: #0d0e12;
  --db-sidebar-bg: #12141c;
  --db-card-bg: #171923;
  --db-border: rgba(255, 255, 255, 0.08);
  --db-text-main: #f4f4f5;
  --db-text-muted: #a1a1aa;
  --db-accent: #c5a880;
  --db-sidebar-hover: rgba(197, 168, 128, 0.12);
}

.web-preview-wrapper.web-theme-light #webContentDashboard {
  --db-bg: #f5f4eb;
  --db-sidebar-bg: #ffffff;
  --db-card-bg: #ffffff;
  --db-border: #e6e3d5;
  --db-text-main: #2b271d;
  --db-text-muted: #7d7561;
  --db-accent: #b09151;
  --db-sidebar-hover: rgba(176, 145, 81, 0.08);
}

.web-preview-wrapper.web-theme-amber #webContentDashboard {
  --db-bg: #14110f;
  --db-sidebar-bg: #1c1815;
  --db-card-bg: #231f1a;
  --db-border: rgba(197, 168, 128, 0.15);
  --db-text-main: #fdfbf7;
  --db-text-muted: #c5bcaf;
  --db-accent: #c5a880;
  --db-sidebar-hover: rgba(197, 168, 128, 0.15);
}

/* Sidebar Layout */
.db-sidebar {
  width: 240px;
  background: var(--db-sidebar-bg);
  border-left: 1px solid var(--db-border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.db-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-sidebar-footer {
  margin-top: auto;
  border-top: 1px dashed var(--db-border);
  padding-top: 16px;
}

.db-sidebar-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--db-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 8px;
  margin-bottom: 4px;
}

.db-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.db-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--db-text-main);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.db-menu-item:hover {
  background: var(--db-sidebar-hover);
  color: var(--db-accent);
}

.db-menu-item.active {
  background: var(--db-sidebar-hover);
  color: var(--db-accent);
  font-weight: 600;
  border-right: 3.5px solid var(--db-accent);
  border-radius: 8px 0 0 8px; /* Straight right edge, rounded left edge */
  padding-right: 8.5px; /* Offset the 3.5px border to maintain perfect text alignment! */
}

.db-menu-icon {
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: inherit;
}

.db-msg-badge {
  margin-right: auto;
  background: var(--db-accent);
  color: var(--db-sidebar-bg);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 8px;
  text-align: center;
}

/* Main Content Area styling */
.db-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: var(--db-bg);
  overflow: hidden;
}

/* Header Area */
.db-header {
  height: 112px;
  background: var(--db-sidebar-bg);
  border-bottom: 1px solid var(--db-border);
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 64px 48px;
  grid-template-areas:
    "logo center profile"
    "nav nav nav";
  gap: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.db-header-right {
  grid-area: logo;
  display: flex;
  align-items: center;
}

.db-logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.db-logo-icon {
  display: flex;
  align-items: center;
  color: var(--db-accent);
}

.db-logo-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--db-text-main);
  white-space: nowrap;
}

.db-header-nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--db-border);
  width: calc(100% + 48px);
  margin: 0 -24px;
  padding: 0 24px;
  box-sizing: border-box;
  height: 100%;
}

.db-header-nav a {
  font-size: 12px;
  color: var(--db-text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 6px 14px;
  border-radius: 16px;
}

.db-header-nav a:hover,
.db-header-nav a.active {
  background: var(--db-sidebar-hover);
  color: var(--db-accent);
}

.db-header-nav a.active {
  font-weight: 600;
}

.db-team-dropdown {
  grid-area: center;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--db-bg);
  border: 1px solid var(--db-border);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: var(--db-text-main);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  justify-self: center;
  align-self: center;
}

.db-team-icon {
  color: var(--db-accent);
}

.db-dropdown-arrow {
  font-size: 10px;
  color: var(--db-text-muted);
}

.db-header-left {
  grid-area: profile;
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-lang-btn {
  background: transparent;
  border: 1px solid var(--db-border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--db-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.db-lang-btn:hover {
  border-color: var(--db-accent);
  color: var(--db-accent);
}

.db-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--db-text-muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s;
}

.db-icon-btn:hover {
  background: var(--db-sidebar-hover);
  color: var(--db-text-main);
}

.db-noti-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
}

.db-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid var(--db-border);
  padding-right: 12px;
}

.db-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--db-sidebar-hover);
  color: var(--db-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.db-user-details {
  display: flex;
  flex-direction: column;
}

.db-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--db-text-main);
}

.db-user-role {
  font-size: 10px;
  color: var(--db-text-muted);
}

/* Content Area Body Grid */
.db-content-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  flex-grow: 1;
  box-sizing: border-box;
}

/* KPI Row styling */
.db-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.db-card {
  background: var(--db-card-bg);
  border: 1px solid var(--db-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

.db-kpi-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.db-kpi-title-wrapper,
.db-card-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.db-kpi-icon,
.db-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--db-sidebar-hover);
  color: var(--db-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.db-kpi-card:hover .db-kpi-icon,
.db-card:hover .db-card-icon {
  transform: scale(1.08);
  background: var(--db-accent);
  color: var(--db-sidebar-bg);
}

.db-kpi-title {
  font-size: 12px;
  color: var(--db-text-muted);
  font-weight: 500;
}

.db-card-actions {
  color: var(--db-text-muted);
  cursor: pointer;
  font-size: 14px;
}

.db-kpi-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.db-kpi-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--db-text-main);
}

.db-kpi-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
}

.badge-green {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.badge-red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.badge-mini {
  padding: 2px 6px;
  border-radius: 8px;
  display: inline-block;
}

/* Charts Grid styling */
.db-charts-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
}

.db-charts-col-stacked {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.db-chart-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.db-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.db-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--db-text-main);
}

/* Progress bar container */
.db-progress-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.db-progress-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.db-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--db-text-muted);
}

.db-progress-val {
  font-weight: 600;
  color: var(--db-text-main);
}

.db-progress-bg {
  height: 6px;
  background: var(--db-bg);
  border-radius: 3px;
  overflow: hidden;
}

.db-progress-fill {
  height: 100%;
  background: var(--db-accent);
  border-radius: 3px;
}

/* Member split */
.db-members-split {
  display: flex;
  gap: 10px;
}

.db-member-stat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--db-bg);
  border: 1px solid var(--db-border);
  padding: 10px;
  border-radius: 8px;
}

.db-member-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.icon-male {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.icon-female {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.db-member-info {
  display: flex;
  flex-direction: column;
}

.db-member-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--db-text-main);
  line-height: 1.2;
}

.db-member-lbl {
  font-size: 9px;
  color: var(--db-text-muted);
}

/* Heatmap Card Styling */
.db-heatmap-card {
  display: flex;
  flex-direction: column;
}

.db-card-header-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.db-heatmap-subrow {
  display: flex;
  align-items: center;
  gap: 6px;
}

.db-heatmap-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--db-text-main);
}

.db-heatmap-time-range {
  font-size: 10px;
  color: var(--db-text-muted);
  border: 1px solid var(--db-border);
  padding: 2px 6px;
  border-radius: 10px;
}

.db-heatmap-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  margin-bottom: auto;
}

.db-heatmap-grid {
  display: grid;
  grid-template-columns: auto repeat(7, 1fr);
  gap: 5px;
  align-items: center;
}

.db-heatmap-time-label {
  font-size: 10px;
  color: var(--db-text-muted);
  width: 32px;
  text-align: left;
  padding-left: 6px;
}

.db-heatmap-cell {
  height: 22px;
  border-radius: 4px;
  background: rgba(197, 168, 128, 0.06);
  border: 1px solid var(--db-border);
  transition: all 0.2s;
}

.db-heatmap-cell.cell-empty {
  opacity: 0.8;
}

.db-heatmap-cell.cell-low {
  background: var(--db-accent);
  opacity: 0.4;
  border-color: transparent;
}

.db-heatmap-cell.cell-mid {
  background: var(--db-accent);
  opacity: 0.85;
  border-color: transparent;
}

.db-heatmap-days-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-right: 38px;
  text-align: center;
}

.db-heatmap-day {
  font-size: 9px;
  color: var(--db-text-muted);
}

/* Semicircular Performance Gauge Styling */
.db-gauge-card {
  display: flex;
  flex-direction: column;
}

.db-gauge-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  gap: 8px;
}

.db-gauge-visual-container {
  position: relative;
  width: 120px;
  height: 60px;
}

.db-gauge-svg {
  width: 100%;
  height: 100%;
}

.db-gauge-bg-arc {
  stroke: var(--db-bg);
}

.db-gauge-value-arc {
  stroke: var(--db-accent);
}

.db-gauge-text-center {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.db-gauge-val-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--db-text-main);
  line-height: 1;
}

.db-gauge-val-lbl {
  font-size: 9px;
  color: var(--db-text-muted);
  margin-top: 2px;
}

.db-gauge-legends {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.db-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--db-text-muted);
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dot-orange {
  background: #f97316;
}

.dot-green {
  background: #22c55e;
}

.legend-val {
  font-weight: 600;
  color: var(--db-text-main);
}

.db-gauge-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--db-accent);
  color: var(--db-accent);
  padding: 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.db-gauge-btn:hover {
  background: var(--db-sidebar-hover);
}

/* Tasks Table Card styling */
.db-table-card {
  display: flex;
  flex-direction: column;
}

.db-table-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-table-icon {
  color: var(--db-accent);
  font-size: 14px;
}

.db-table-wrapper {
  overflow-x: auto;
  margin-top: 4px;
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.db-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--db-border);
  color: var(--db-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.db-table td {
  padding: 12px;
  border-bottom: 1px solid var(--db-border);
  font-size: 12px;
  color: var(--db-text-main);
  vertical-align: middle;
}

.db-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.db-cell-title {
  font-weight: 500;
  min-width: 260px;
  line-height: 1.4;
}

.db-table-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-table-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

.db-table-avatar.text-orange {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.db-table-avatar.text-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.db-table-avatar.text-red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.db-table-avatar.text-green {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.table-time-icon {
  font-size: 10px;
  color: var(--db-text-muted);
  margin-right: 4px;
}

.status-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  display: inline-block;
}

.status-pill.status-completed {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-pill.status-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.text-secondary {
  color: var(--db-text-muted);
}







/* ==========================================================================
   5. NOTION TEMPLATE STYLES
   ========================================================================== */
.web-tpl-notion #webContentNotion {
  display: flex;
}

.notion-shell {
  display: flex;
  height: 100%;
  width: 100%;
  background: #ffffff;
  color: #37352f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}

html[dir="rtl"] .notion-shell {
  font-family: var(--font-poetry);
}

/* Sidebar */
.notion-sidebar {
  width: 240px;
  background: #f7f7f5;
  border-right: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  padding-top: 12px;
}
html[dir="rtl"] .notion-sidebar {
  border-right: none;
  border-left: 1px solid rgba(0,0,0,0.05);
}

.notion-sidebar-header {
  padding: 0 14px 12px;
}

.notion-sidebar-brand {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.notion-sidebar-workspace {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: rgba(55, 53, 47, 0.6);
  margin-bottom: 12px;
}
.notion-sidebar-workspace-name {
  font-weight: 500;
  color: #37352f;
  font-size: 13px;
}

.notion-search-input {
  width: 100%;
  background: rgba(0,0,0,0.04);
  border: none;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
  outline: none;
}

.notion-sidebar-section {
  margin-top: 16px;
  padding: 0 14px;
}

.notion-sidebar-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(55, 53, 47, 0.5);
  display: block;
  margin-bottom: 6px;
}

.notion-sidebar-link {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  color: #37352f;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  margin-left: -6px;
  margin-right: -6px;
}
.notion-sidebar-link:hover {
  background: rgba(0,0,0,0.04);
}

.notion-sidebar-icon {
  width: 20px;
  margin-right: 8px;
  display: flex;
  justify-content: center;
  opacity: 0.8;
}
html[dir="rtl"] .notion-sidebar-icon {
  margin-right: 0;
  margin-left: 8px;
}

/* Main */
.notion-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow-y: auto;
}

.notion-topbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  z-index: 10;
}

.notion-breadcrumbs {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: rgba(55, 53, 47, 0.6);
}

.notion-breadcrumb-sep {
  margin: 0 4px;
}
.notion-breadcrumb-current {
  color: #37352f;
}

.notion-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(55, 53, 47, 0.6);
}
.notion-action-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
}

.notion-doc-header {
  padding: 40px 96px 0;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.notion-page-title {
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.notion-meta-pills {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: rgba(55, 53, 47, 0.5);
  margin-bottom: 24px;
}

.notion-doc-body {
  padding: 0 96px 40px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  font-size: 16px;
  line-height: 1.6;
}

.notion-page-summary {
  font-size: 17px;
  margin-bottom: 24px;
}

.notion-callout {
  display: flex;
  padding: 16px;
  background: rgba(235, 236, 237, 0.5);
  border-radius: 4px;
  margin-bottom: 24px;
}
.notion-callout-icon {
  font-size: 20px;
  margin-right: 12px;
}
html[dir="rtl"] .notion-callout-icon {
  margin-right: 0;
  margin-left: 12px;
}
.notion-callout-title {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.notion-callout-body {
  margin: 0;
  font-size: 14px;
}

.notion-checklist {
  margin-bottom: 32px;
}
.notion-checklist-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.notion-checklist-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.notion-checklist-check {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(55, 53, 47, 0.4);
  border-radius: 2px;
  margin-right: 10px;
}
html[dir="rtl"] .notion-checklist-check {
  margin-right: 0;
  margin-left: 10px;
}
.notion-checklist-row.completed .notion-checklist-check {
  background: #2383e2;
  border-color: #2383e2;
}
.notion-checklist-row.completed .notion-checklist-text {
  text-decoration: line-through;
  color: rgba(55, 53, 47, 0.5);
}

.notion-table {
  margin-bottom: 32px;
}
.notion-table-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.notion-table table {
  width: 100%;
  border-collapse: collapse;
}
.notion-table th, .notion-table td {
  border: 1px solid rgba(55, 53, 47, 0.1);
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
}
html[dir="rtl"] .notion-table th, html[dir="rtl"] .notion-table td {
  text-align: right;
}
.notion-table th {
  background: rgba(55, 53, 47, 0.02);
  color: rgba(55, 53, 47, 0.6);
  font-weight: 500;
}
.notion-progress-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(227, 226, 224, 0.5);
  font-size: 12px;
}

.notion-rail {
  width: 240px;
  padding: 40px 16px;
  border-left: 1px solid rgba(0,0,0,0.05);
}
html[dir="rtl"] .notion-rail {
  border-left: none;
  border-right: 1px solid rgba(0,0,0,0.05);
}
.notion-rail-heading {
  font-size: 12px;
  font-weight: 600;
  color: rgba(55, 53, 47, 0.5);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.notion-rail-link {
  display: block;
  color: rgba(55, 53, 47, 0.7);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
}
.notion-rail-link:hover {
  color: #37352f;
}

/* ==========================================================================
   6. CHAT TEMPLATE STYLES
   ========================================================================== */
.web-tpl-chat #webContentChat {
  display: flex;
}

.chat-shell {
  display: flex;
  height: 100%;
  width: 100%;
  background: #313338;
  color: #dbdee1;
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[dir="rtl"] .chat-shell {
  font-family: var(--font-poetry);
}

.chat-servers-sidebar {
  width: 72px;
  background: #1e1f22;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
  flex-shrink: 0;
}

.chat-server-icon {
  width: 48px;
  height: 48px;
  background: #313338;
  border-radius: 50%;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 16px;
}
.chat-server-icon:hover {
  border-radius: 16px;
  background: #5865F2;
  color: #fff;
}
.chat-server-icon.active {
  border-radius: 16px;
  background: #5865F2;
  color: #fff;
  position: relative;
}
.chat-server-icon.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 40px;
  background: #fff;
  border-radius: 0 4px 4px 0;
}
html[dir="rtl"] .chat-server-icon.active::before {
  left: auto;
  right: -12px;
  border-radius: 4px 0 0 4px;
}

.chat-server-separator {
  width: 32px;
  height: 2px;
  background: #3f4147;
  margin: 4px 0 12px;
}
.chat-server-icon.add-server {
  background: #313338;
  color: #23a559;
}
.chat-server-icon.add-server:hover {
  background: #23a559;
  color: #fff;
}

.chat-sidebar {
  width: 240px;
  background: #2b2d31;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.chat-sidebar-header {
  height: 48px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1f2023;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.chat-sidebar-search {
  padding: 12px 10px;
}
.chat-search-input {
  width: 100%;
  background: #1e1f22;
  border: none;
  border-radius: 4px;
  padding: 6px 8px;
  color: #dbdee1;
  font-size: 13px;
  outline: none;
}

.chat-sidebar-nav {
  flex-grow: 1;
  overflow-y: auto;
  padding: 8px 10px;
}

.chat-channel-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #949ba4;
  text-transform: uppercase;
  padding: 8px 6px;
}

.chat-channel-link {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  color: #949ba4;
  text-decoration: none;
  font-size: 15px;
  border-radius: 4px;
  margin-bottom: 2px;
}
.chat-channel-link:hover {
  background: #35373c;
  color: #dbdee1;
}
.chat-channel-link.active {
  background: #404249;
  color: #fff;
}
.chat-channel-hash {
  font-size: 20px;
  margin-right: 8px;
  color: #80848e;
}
html[dir="rtl"] .chat-channel-hash {
  margin-right: 0;
  margin-left: 8px;
}

.chat-user-status-bar {
  height: 52px;
  background: #232428;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-user-info {
  display: flex;
  align-items: center;
}
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.chat-avatar.user-self { background: #5865F2; }
.chat-avatar.avatar-khalid { background: #ed4245; }
.chat-avatar.avatar-sara { background: #fee75c; color: #000; }
.chat-avatar.avatar-noura { background: #eb459e; }
.chat-avatar.avatar-bot { background: #5865F2; }

.chat-user-details {
  margin-left: 8px;
  display: flex;
  flex-direction: column;
}
html[dir="rtl"] .chat-user-details {
  margin-left: 0;
  margin-right: 8px;
}
.chat-username {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.chat-usertag {
  font-size: 12px;
  color: #949ba4;
}

.chat-user-actions {
  display: flex;
}
.chat-action-icon-btn {
  background: none;
  border: none;
  color: #b5bac1;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.chat-action-icon-btn:hover {
  background: #35373c;
  color: #dbdee1;
}

.chat-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #313338;
}

.chat-topbar {
  height: 48px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2b2d31;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.chat-channel-name-header {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
}

.chat-topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.chat-topbar-icon {
  background: none;
  border: none;
  color: #b5bac1;
  font-size: 18px;
  cursor: pointer;
}
.chat-topbar-icon:hover {
  color: #dbdee1;
}
.chat-topbar-search {
  display: flex;
  align-items: center;
  background: #1e1f22;
  border-radius: 4px;
  padding: 4px 8px;
}
.chat-topbar-search input {
  background: none;
  border: none;
  color: #dbdee1;
  width: 120px;
  outline: none;
}
.chat-topbar-search i {
  color: #949ba4;
}

.chat-feed-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.chat-message-feed {
  padding: 16px;
  overflow-y: auto;
}

.chat-message {
  display: flex;
  margin-top: 16px;
}
.chat-message .chat-avatar {
  width: 40px;
  height: 40px;
  margin-right: 16px;
}
html[dir="rtl"] .chat-message .chat-avatar {
  margin-right: 0;
  margin-left: 16px;
}
.chat-message-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 4px;
}
.chat-message-author {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-right: 8px;
}
html[dir="rtl"] .chat-message-author {
  margin-right: 0;
  margin-left: 8px;
}
.chat-message-time {
  font-size: 12px;
  color: #949ba4;
}
.chat-message-body {
  font-size: 15px;
  line-height: 1.4;
  color: #dbdee1;
}

.chat-input-area {
  padding: 0 16px 24px;
}
.chat-input-wrapper {
  background: #383a40;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
}
.chat-input-attach {
  background: none;
  border: none;
  color: #b5bac1;
  font-size: 20px;
  cursor: pointer;
  margin-right: 16px;
}
html[dir="rtl"] .chat-input-attach {
  margin-right: 0;
  margin-left: 16px;
}
.chat-input-field {
  flex-grow: 1;
  background: none;
  border: none;
  color: #dbdee1;
  font-size: 16px;
  outline: none;
}
.chat-input-buttons {
  display: flex;
  gap: 12px;
}
.chat-input-btn {
  background: none;
  border: none;
  color: #b5bac1;
  font-size: 20px;
  cursor: pointer;
}
.chat-input-btn:hover {
  color: #dbdee1;
}

.chat-members-sidebar {
  width: 240px;
  background: #2b2d31;
  display: flex;
  flex-direction: column;
  padding: 24px 8px 24px 16px;
  flex-shrink: 0;
}
html[dir="rtl"] .chat-members-sidebar {
  padding: 24px 16px 24px 8px;
}
.chat-member-group {
  margin-bottom: 24px;
}
.chat-group-title {
  font-size: 12px;
  font-weight: 600;
  color: #949ba4;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.chat-member-item {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.chat-member-item:hover {
  background: #35373c;
}
.chat-member-item .chat-avatar {
  margin-right: 12px;
}
html[dir="rtl"] .chat-member-item .chat-avatar {
  margin-right: 0;
  margin-left: 12px;
}
.chat-member-item.offline {
  opacity: 0.5;
}
.chat-member-name {
  font-size: 15px;
  color: #949ba4;
  flex-grow: 1;
}
.chat-member-item:hover .chat-member-name {
  color: #dbdee1;
}
.chat-member-badge {
  font-size: 10px;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 8px;
}
html[dir="rtl"] .chat-member-badge {
  margin-left: 0;
  margin-right: 8px;
}
.chat-member-badge.bot {
  background: #5865F2;
  color: #fff;
}
.chat-member-badge.admin {
  background: #ed4245;
  color: #fff;
}



/* ==========================================================================
   THEME OVERRIDES FOR NOTION AND CHAT
   ========================================================================== */

/* ---------------- NOTION THEMES ---------------- */

/* Dark Theme */
.web-preview-wrapper.web-theme-dark .notion-shell {
  background: #191919;
  color: rgba(255, 255, 255, 0.81);
}
.web-preview-wrapper.web-theme-dark .notion-sidebar {
  background: #202020;
  border-color: rgba(255, 255, 255, 0.05);
}
html[dir="rtl"] .web-preview-wrapper.web-theme-dark .notion-sidebar {
  border-color: rgba(255, 255, 255, 0.05);
}
.web-preview-wrapper.web-theme-dark .notion-sidebar-workspace-name,
.web-preview-wrapper.web-theme-dark .notion-sidebar-link,
.web-preview-wrapper.web-theme-dark .notion-breadcrumb-current,
.web-preview-wrapper.web-theme-dark .notion-page-title,
.web-preview-wrapper.web-theme-dark .notion-rail-link:hover {
  color: rgba(255, 255, 255, 0.9);
}
.web-preview-wrapper.web-theme-dark .notion-sidebar-label,
.web-preview-wrapper.web-theme-dark .notion-breadcrumbs,
.web-preview-wrapper.web-theme-dark .notion-topbar-actions,
.web-preview-wrapper.web-theme-dark .notion-meta-pills,
.web-preview-wrapper.web-theme-dark .notion-rail-heading,
.web-preview-wrapper.web-theme-dark .notion-rail-link {
  color: rgba(255, 255, 255, 0.5);
}
.web-preview-wrapper.web-theme-dark .notion-search-input {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}
.web-preview-wrapper.web-theme-dark .notion-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
}
.web-preview-wrapper.web-theme-dark .notion-main {
  background: #191919;
}
.web-preview-wrapper.web-theme-dark .notion-topbar {
  background: rgba(25, 25, 25, 0.95);
}
.web-preview-wrapper.web-theme-dark .notion-callout {
  background: rgba(255, 255, 255, 0.05);
}
.web-preview-wrapper.web-theme-dark .notion-checklist-check {
  border-color: rgba(255, 255, 255, 0.4);
}
.web-preview-wrapper.web-theme-dark .notion-checklist-row.completed .notion-checklist-text {
  color: rgba(255, 255, 255, 0.3);
}
.web-preview-wrapper.web-theme-dark .notion-table th,
.web-preview-wrapper.web-theme-dark .notion-table td {
  border-color: rgba(255, 255, 255, 0.1);
}
.web-preview-wrapper.web-theme-dark .notion-table th {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.5);
}
.web-preview-wrapper.web-theme-dark .notion-progress-pill {
  background: rgba(255, 255, 255, 0.1);
}
.web-preview-wrapper.web-theme-dark .notion-rail {
  border-color: rgba(255, 255, 255, 0.05);
}


/* Amber Theme */
.web-preview-wrapper.web-theme-amber .notion-shell {
  background: #faf6eb;
  color: #5c4033;
}
.web-preview-wrapper.web-theme-amber .notion-sidebar {
  background: #f2e8d5;
  border-color: rgba(139, 115, 85, 0.2);
}
html[dir="rtl"] .web-preview-wrapper.web-theme-amber .notion-sidebar {
  border-color: rgba(139, 115, 85, 0.2);
}
.web-preview-wrapper.web-theme-amber .notion-sidebar-workspace-name,
.web-preview-wrapper.web-theme-amber .notion-sidebar-link,
.web-preview-wrapper.web-theme-amber .notion-breadcrumb-current,
.web-preview-wrapper.web-theme-amber .notion-page-title,
.web-preview-wrapper.web-theme-amber .notion-rail-link:hover {
  color: #3b2a1a;
}
.web-preview-wrapper.web-theme-amber .notion-sidebar-label,
.web-preview-wrapper.web-theme-amber .notion-breadcrumbs,
.web-preview-wrapper.web-theme-amber .notion-topbar-actions,
.web-preview-wrapper.web-theme-amber .notion-meta-pills,
.web-preview-wrapper.web-theme-amber .notion-rail-heading,
.web-preview-wrapper.web-theme-amber .notion-rail-link {
  color: rgba(92, 64, 51, 0.6);
}
.web-preview-wrapper.web-theme-amber .notion-search-input {
  background: rgba(139, 115, 85, 0.1);
  color: #3b2a1a;
}
.web-preview-wrapper.web-theme-amber .notion-sidebar-link:hover {
  background: rgba(139, 115, 85, 0.1);
}
.web-preview-wrapper.web-theme-amber .notion-main {
  background: #faf6eb;
}
.web-preview-wrapper.web-theme-amber .notion-topbar {
  background: rgba(250, 246, 235, 0.95);
}
.web-preview-wrapper.web-theme-amber .notion-callout {
  background: rgba(139, 115, 85, 0.1);
}
.web-preview-wrapper.web-theme-amber .notion-checklist-check {
  border-color: rgba(139, 115, 85, 0.4);
}
.web-preview-wrapper.web-theme-amber .notion-checklist-row.completed .notion-checklist-text {
  color: rgba(92, 64, 51, 0.5);
}
.web-preview-wrapper.web-theme-amber .notion-checklist-row.completed .notion-checklist-check {
  background: #8b7355;
  border-color: #8b7355;
}
.web-preview-wrapper.web-theme-amber .notion-table th,
.web-preview-wrapper.web-theme-amber .notion-table td {
  border-color: rgba(139, 115, 85, 0.2);
}
.web-preview-wrapper.web-theme-amber .notion-table th {
  background: rgba(139, 115, 85, 0.05);
  color: rgba(92, 64, 51, 0.6);
}
.web-preview-wrapper.web-theme-amber .notion-progress-pill {
  background: rgba(139, 115, 85, 0.15);
}
.web-preview-wrapper.web-theme-amber .notion-rail {
  border-color: rgba(139, 115, 85, 0.2);
}



/* ---------------- CHAT THEMES ---------------- */

/* Light Theme */
.web-preview-wrapper.web-theme-light .chat-shell {
  background: #ffffff;
  color: #313338;
}
.web-preview-wrapper.web-theme-light .chat-servers-sidebar {
  background: #e3e5e8;
}
.web-preview-wrapper.web-theme-light .chat-server-icon {
  background: #ffffff;
  color: #313338;
}
.web-preview-wrapper.web-theme-light .chat-server-icon:hover,
.web-preview-wrapper.web-theme-light .chat-server-icon.active {
  background: #5865F2;
  color: #ffffff;
}
.web-preview-wrapper.web-theme-light .chat-server-separator {
  background: #ccced3;
}
.web-preview-wrapper.web-theme-light .chat-server-icon.add-server {
  background: #ffffff;
  color: #23a559;
}
.web-preview-wrapper.web-theme-light .chat-server-icon.add-server:hover {
  background: #23a559;
  color: #ffffff;
}
.web-preview-wrapper.web-theme-light .chat-sidebar {
  background: #f2f3f5;
}
.web-preview-wrapper.web-theme-light .chat-sidebar-header {
  border-bottom-color: #e3e5e8;
  color: #060607;
}
.web-preview-wrapper.web-theme-light .chat-search-input {
  background: #e3e5e8;
  color: #313338;
}
.web-preview-wrapper.web-theme-light .chat-channel-category {
  color: #5c5e66;
}
.web-preview-wrapper.web-theme-light .chat-channel-link {
  color: #5c5e66;
}
.web-preview-wrapper.web-theme-light .chat-channel-link:hover {
  background: #e3e5e8;
  color: #060607;
}
.web-preview-wrapper.web-theme-light .chat-channel-link.active {
  background: #e3e5e8;
  color: #060607;
}
.web-preview-wrapper.web-theme-light .chat-user-status-bar {
  background: #ebedef;
}
.web-preview-wrapper.web-theme-light .chat-username {
  color: #060607;
}
.web-preview-wrapper.web-theme-light .chat-usertag {
  color: #5c5e66;
}
.web-preview-wrapper.web-theme-light .chat-action-icon-btn {
  color: #4e5058;
}
.web-preview-wrapper.web-theme-light .chat-action-icon-btn:hover {
  background: #e3e5e8;
  color: #060607;
}
.web-preview-wrapper.web-theme-light .chat-main {
  background: #ffffff;
}
.web-preview-wrapper.web-theme-light .chat-topbar {
  border-bottom-color: #e3e5e8;
}
.web-preview-wrapper.web-theme-light .chat-channel-name-header {
  color: #060607;
}
.web-preview-wrapper.web-theme-light .chat-topbar-icon {
  color: #4e5058;
}
.web-preview-wrapper.web-theme-light .chat-topbar-icon:hover {
  color: #060607;
}
.web-preview-wrapper.web-theme-light .chat-topbar-search {
  background: #e3e5e8;
}
.web-preview-wrapper.web-theme-light .chat-topbar-search input {
  color: #313338;
}
.web-preview-wrapper.web-theme-light .chat-topbar-search i {
  color: #5c5e66;
}
.web-preview-wrapper.web-theme-light .chat-message-author {
  color: #060607;
}
.web-preview-wrapper.web-theme-light .chat-message-time {
  color: #5c5e66;
}
.web-preview-wrapper.web-theme-light .chat-message-body {
  color: #313338;
}
.web-preview-wrapper.web-theme-light .chat-input-wrapper {
  background: #ebedef;
}
.web-preview-wrapper.web-theme-light .chat-input-field {
  color: #313338;
}
.web-preview-wrapper.web-theme-light .chat-input-attach,
.web-preview-wrapper.web-theme-light .chat-input-btn {
  color: #4e5058;
}
.web-preview-wrapper.web-theme-light .chat-input-attach:hover,
.web-preview-wrapper.web-theme-light .chat-input-btn:hover {
  color: #060607;
}
.web-preview-wrapper.web-theme-light .chat-members-sidebar {
  background: #f2f3f5;
}
.web-preview-wrapper.web-theme-light .chat-group-title {
  color: #5c5e66;
}
.web-preview-wrapper.web-theme-light .chat-member-item:hover {
  background: #e3e5e8;
}
.web-preview-wrapper.web-theme-light .chat-member-name {
  color: #5c5e66;
}
.web-preview-wrapper.web-theme-light .chat-member-item:hover .chat-member-name {
  color: #060607;
}

/* Amber Theme */
.web-preview-wrapper.web-theme-amber .chat-shell {
  background: #fdfaf6;
  color: #4a3826;
}
.web-preview-wrapper.web-theme-amber .chat-servers-sidebar {
  background: #f5ebd9;
}
.web-preview-wrapper.web-theme-amber .chat-server-icon {
  background: #fdfaf6;
  color: #4a3826;
}
.web-preview-wrapper.web-theme-amber .chat-server-icon:hover,
.web-preview-wrapper.web-theme-amber .chat-server-icon.active {
  background: #d4a373;
  color: #ffffff;
}
.web-preview-wrapper.web-theme-amber .chat-server-separator {
  background: #e3d5c5;
}
.web-preview-wrapper.web-theme-amber .chat-server-icon.add-server {
  background: #fdfaf6;
  color: #6b8e23;
}
.web-preview-wrapper.web-theme-amber .chat-server-icon.add-server:hover {
  background: #6b8e23;
  color: #ffffff;
}
.web-preview-wrapper.web-theme-amber .chat-sidebar {
  background: #fbf5ee;
}
.web-preview-wrapper.web-theme-amber .chat-sidebar-header {
  border-bottom-color: #f5ebd9;
  color: #3b2a1a;
}
.web-preview-wrapper.web-theme-amber .chat-search-input {
  background: #f5ebd9;
  color: #4a3826;
}
.web-preview-wrapper.web-theme-amber .chat-channel-category {
  color: #8b7355;
}
.web-preview-wrapper.web-theme-amber .chat-channel-link {
  color: #8b7355;
}
.web-preview-wrapper.web-theme-amber .chat-channel-link:hover {
  background: #f5ebd9;
  color: #3b2a1a;
}
.web-preview-wrapper.web-theme-amber .chat-channel-link.active {
  background: #f5ebd9;
  color: #3b2a1a;
}
.web-preview-wrapper.web-theme-amber .chat-user-status-bar {
  background: #f5ebd9;
}
.web-preview-wrapper.web-theme-amber .chat-username {
  color: #3b2a1a;
}
.web-preview-wrapper.web-theme-amber .chat-usertag {
  color: #8b7355;
}
.web-preview-wrapper.web-theme-amber .chat-action-icon-btn {
  color: #8b7355;
}
.web-preview-wrapper.web-theme-amber .chat-action-icon-btn:hover {
  background: #e3d5c5;
  color: #3b2a1a;
}
.web-preview-wrapper.web-theme-amber .chat-main {
  background: #fdfaf6;
}
.web-preview-wrapper.web-theme-amber .chat-topbar {
  border-bottom-color: #f5ebd9;
}
.web-preview-wrapper.web-theme-amber .chat-channel-name-header {
  color: #3b2a1a;
}
.web-preview-wrapper.web-theme-amber .chat-topbar-icon {
  color: #8b7355;
}
.web-preview-wrapper.web-theme-amber .chat-topbar-icon:hover {
  color: #3b2a1a;
}
.web-preview-wrapper.web-theme-amber .chat-topbar-search {
  background: #f5ebd9;
}
.web-preview-wrapper.web-theme-amber .chat-topbar-search input {
  color: #4a3826;
}
.web-preview-wrapper.web-theme-amber .chat-topbar-search i {
  color: #8b7355;
}
.web-preview-wrapper.web-theme-amber .chat-message-author {
  color: #3b2a1a;
}
.web-preview-wrapper.web-theme-amber .chat-message-time {
  color: #8b7355;
}
.web-preview-wrapper.web-theme-amber .chat-message-body {
  color: #4a3826;
}
.web-preview-wrapper.web-theme-amber .chat-input-wrapper {
  background: #f5ebd9;
}
.web-preview-wrapper.web-theme-amber .chat-input-field {
  color: #4a3826;
}
.web-preview-wrapper.web-theme-amber .chat-input-attach,
.web-preview-wrapper.web-theme-amber .chat-input-btn {
  color: #8b7355;
}
.web-preview-wrapper.web-theme-amber .chat-input-attach:hover,
.web-preview-wrapper.web-theme-amber .chat-input-btn:hover {
  color: #3b2a1a;
}
.web-preview-wrapper.web-theme-amber .chat-members-sidebar {
  background: #fbf5ee;
}
.web-preview-wrapper.web-theme-amber .chat-group-title {
  color: #8b7355;
}
.web-preview-wrapper.web-theme-amber .chat-member-item:hover {
  background: #f5ebd9;
}
.web-preview-wrapper.web-theme-amber .chat-member-name {
  color: #8b7355;
}
.web-preview-wrapper.web-theme-amber .chat-member-item:hover .chat-member-name {
  color: #3b2a1a;
}


/* ==========================================================================
   TYPOGRAPHY PATCH FOR NOTION AND CHAT (V2)
   ========================================================================== */

/* Remove the blanket RTL font overrides */
html[dir="rtl"] .notion-shell {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}

html[dir="rtl"] .chat-shell {
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------------- Notion Typography Bindings ---------------- */

/* Headings */
.notion-page-title,
.notion-callout-title,
.notion-checklist-title,
.notion-table-title {
  font-family: var(--font-web-headings, var(--font-poetry)) !important;
}

/* Body */
.notion-page-summary,
.notion-doc-body,
.notion-callout-body,
.notion-table td,
.notion-table th,
.notion-checklist-text {
  font-family: var(--font-web-body, var(--font-poetry)) !important;
}

/* Buttons and Links */
.notion-sidebar-brand,
.notion-sidebar-link,
.notion-rail-link,
.notion-breadcrumb-current,
.notion-sidebar-workspace-name {
  font-family: var(--font-web-buttons, var(--font-poetry)) !important;
}

/* ---------------- Chat Typography Bindings ---------------- */

/* Headings */
.chat-channel-name-header,
.chat-group-title,
.chat-message-author,
.chat-username {
  font-family: var(--font-web-headings, var(--font-poetry)) !important;
}

/* Body */
.chat-message-body,
.chat-channel-category {
  font-family: var(--font-web-body, var(--font-poetry)) !important;
}

/* Buttons and Links */
.chat-channel-link,
.chat-action-icon-btn,
.chat-topbar-icon,
.chat-input-btn,
.chat-member-badge,
.chat-usertag,
.chat-member-name,
.chat-input-field {
  font-family: var(--font-web-buttons, var(--font-poetry)) !important;
}



/* ==========================================================================
   7. MOBILE APP TEMPLATE STYLES (iPhone Mirroring)
   ========================================================================== */
.web-tpl-mobile #webContentMobile {
  display: flex;
}


/* ==========================================================================
   7. IPHONE MIRRORING (macOS Sequoia Style)
   ========================================================================== */


.mobile-template-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #6b6b6b;
  padding: 40px;
  box-sizing: border-box;
}

/* ==========================================================================
   MOBILE PREVIEW - COMPLETE REWRITE FROM SCRATCH
   ========================================================================== */

/* The wrapper - hidden by default, JS shows it */
.mobile-preview-wrapper {
  display: none;
  justify-content: center;
  align-items: center;
  /* Spotlight background exactly like the image */
  background: radial-gradient(circle at center, #35353c 0%, #1f1f23 40%, #0d0d0f 100%);
  width: 100%;
  min-height: calc(100vh - 56px);
  padding: 50px 20px;
  box-sizing: border-box;
}

/* Template content blocks */
.mobile-tpl-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === iPhone Hardware Frame (macOS Mirroring Style) === */
.iphone-frame {
  width: 380px; 
  height: 822px; 
  background: #000;
  border-radius: 50px; 
  position: relative;
  display: flex;
  flex-direction: column;
  /* Clean, authentic outer aluminium rim */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 30px 80px -15px rgba(0, 0, 0, 0.7), 
    0 0 0 1px rgba(0, 0, 0, 0.5);
}

/* Subtle top rim highlight */
.iphone-frame::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
  z-index: 999;
}

/* Dynamic Island / Notch */
.iphone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px; 
  height: 32px; 
  background: #000;
  border-radius: 16px; 
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); 
}
.notch-sensor, .notch-camera {
  width: 11px;
  height: 11px;
  background: #111;
  border-radius: 50%;
}
.notch-camera {
  box-shadow: inset 1px 1px 2px rgba(60,60,120,0.3);
}

/* Hide Hardware Side Buttons for macOS Mirroring */
.iphone-volume-up, .iphone-volume-down, .iphone-power {
  display: none;
}

/* Screen */
.iphone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #f2f2f7;
  /* (Outer Radius 50px) - (Margin Bezel 10px) = 40px Inner Radius */
  border-radius: 40px;
  margin: 10px;
}
.mobile-theme-dark .iphone-screen { background: #000; }
.mobile-theme-amber .iphone-screen { background: #1a1200; }

/* Status Bar */
.iphone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 4px;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  z-index: 90;
}
.mobile-theme-dark .iphone-statusbar { color: #fff; }
.music-app .iphone-statusbar { color: #fff; }
.statusbar-icons { display: flex; gap: 6px; font-size: 13px; }
.statusbar-time { /* just for editability */ }

/* Scrollable Area */
.iphone-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 30px;
  scrollbar-width: none;
}
.iphone-scroll::-webkit-scrollbar { display: none; }

/* Home Bar */
.iphone-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: #000;
  border-radius: 100px;
  z-index: 100;
  opacity: 0.6;
}
.mobile-theme-dark .iphone-home-bar { background: #fff; }
.music-app .iphone-home-bar { background: #fff; }

/* App Header */
.iphone-app-header {
  padding: 0;
}
.ios-large-title {
  font-size: 34px;
  font-weight: 700;
  padding: 8px 20px;
  margin: 0;
  color: #000;
  letter-spacing: -0.4px;
}
.mobile-theme-dark .ios-large-title { color: #fff; }

/* === iOS Settings Components === */
.ios-card {
  margin: 0 16px 16px;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}
.mobile-theme-dark .ios-card { background: #1c1c1e; }

.ios-profile-card { display: flex; align-items: center; gap: 14px; }
.ios-profile-avatar img { width: 60px; height: 60px; border-radius: 50%; }
.ios-profile-info { flex: 1; }
.ios-profile-name { font-size: 20px; font-weight: 600; margin: 0; color: #000; }
.mobile-theme-dark .ios-profile-name { color: #fff; }
.ios-profile-sub { font-size: 13px; color: #8e8e93; margin: 2px 0 0; }

.ios-list-group {
  margin: 0 16px 16px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.mobile-theme-dark .ios-list-group { background: #1c1c1e; }

.ios-list-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  position: relative;
}
.ios-list-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 54px; right: 0;
  height: 0.5px;
  background: rgba(0,0,0,0.08);
}
.mobile-theme-dark .ios-list-item:not(:last-child)::after { background: rgba(255,255,255,0.08); }

.ios-icon-box {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; justify-content: center; align-items: center;
  color: #fff; font-size: 15px;
  margin-inline-end: 12px;
  flex-shrink: 0;
}
.bg-orange { background: linear-gradient(135deg, #FF9500, #FF5E3A); }
.bg-green  { background: linear-gradient(135deg, #4CD964, #34C759); }
.bg-blue   { background: linear-gradient(135deg, #5AC8FA, #007AFF); }
.bg-pink   { background: linear-gradient(135deg, #FF2D55, #FF3B30); }
.bg-red    { background: linear-gradient(135deg, #FF3B30, #FF2D55); }
.bg-purple { background: linear-gradient(135deg, #C644FC, #5856D6); }
.bg-indigo { background: linear-gradient(135deg, #5856D6, #007AFF); }
.bg-gray   { background: linear-gradient(135deg, #8E8E93, #636366); }

.ios-item-text { flex: 1; font-size: 17px; color: #000; }
.mobile-theme-dark .ios-item-text { color: #fff; }
.ios-item-detail { font-size: 15px; color: #8e8e93; margin-inline-end: 8px; }
.ios-chevron { font-size: 13px; color: #c7c7cc; }
.ios-badge { background: #ff3b30; color: #fff; font-size: 13px; padding: 1px 7px; border-radius: 10px; margin-inline-end: 8px; }
.ios-toggle { width: 44px; height: 26px; background: #e9e9eb; border-radius: 13px; position: relative; }
.ios-toggle-knob { width: 22px; height: 22px; background: #fff; border-radius: 50%; position: absolute; top: 2px; left: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

/* === Chat App === */
.chat-app { background: #fff; }
.mobile-theme-dark .chat-app { background: #000; }

.chat-app .chat-topbar {
  display: flex; align-items: center; padding: 8px 14px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: absolute; top: 38px; left: 0; right: 0; z-index: 10;
}
.mobile-theme-dark .chat-app .chat-topbar { background: rgba(20,20,20,0.92); border-bottom-color: rgba(255,255,255,0.05); }
.chat-app .chat-back { display: flex; align-items: center; gap: 4px; font-size: 16px; color: #007AFF; }
.chat-app .chat-contact-info { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; }
.chat-app .chat-avatar { width: 30px; height: 30px; border-radius: 50%; }
.chat-app .chat-contact-name { font-size: 15px; font-weight: 600; color: #000; }
.mobile-theme-dark .chat-app .chat-contact-name { color: #fff; }
.chat-app .chat-contact-status { font-size: 11px; color: #8e8e93; }
.chat-app .chat-actions { display: flex; gap: 14px; font-size: 17px; color: #007AFF; }

.chat-app .chat-messages { padding: 68px 14px 80px !important; display: flex; flex-direction: column; gap: 10px; }
.chat-app .msg-bubble { max-width: 78%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.4; }
.chat-app .msg-received { align-self: flex-start; background: #e9e9eb; color: #000; border-bottom-right-radius: 4px; }
.mobile-theme-dark .chat-app .msg-received { background: #262628; color: #fff; }
.chat-app .msg-sent { align-self: flex-end; background: linear-gradient(135deg, #007AFF, #00C6FF); color: #fff; border-bottom-left-radius: 4px; box-shadow: 0 4px 12px rgba(0,122,255,0.25); }
.chat-app .msg-time { font-size: 11px; color: rgba(0,0,0,0.35); margin-top: 3px; text-align: right; }
.mobile-theme-dark .chat-app .msg-time { color: rgba(255,255,255,0.35); }
.chat-app .msg-sent .msg-time { color: rgba(255,255,255,0.7); }

.chat-app .chat-input-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; padding: 10px 14px 26px; gap: 10px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.05); z-index: 10;
}
.mobile-theme-dark .chat-app .chat-input-bar { background: rgba(20,20,20,0.92); border-top-color: rgba(255,255,255,0.05); }
.chat-app .chat-textfield { flex: 1; background: rgba(0,0,0,0.05); padding: 7px 14px; border-radius: 18px; font-size: 15px; color: #8e8e93; }
.mobile-theme-dark .chat-app .chat-textfield { background: rgba(255,255,255,0.1); color: #aaa; }
.chat-app .chat-input-bar i { font-size: 20px; color: #8e8e93; }

/* === Social App === */
.social-app { background: #fff; color: #000; }
.mobile-theme-dark .social-app { background: #000; color: #fff; }
.social-topbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 18px; }
.social-logo { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.social-icons { display: flex; gap: 18px; font-size: 22px; }
.social-feed { padding: 0 !important; }
.social-post { margin-bottom: 20px; }
.post-header { display: flex; align-items: center; padding: 10px 14px; gap: 10px; }
.post-avatar { width: 34px; height: 34px; border-radius: 50%; }
.post-user-info { flex: 1; }
.post-username { font-size: 14px; font-weight: 700; }
.post-location { font-size: 12px; color: #8e8e93; }
.post-image { width: 100%; aspect-ratio: 4/5; background: linear-gradient(135deg, #f0f0f0, #e0e0e0); display: flex; align-items: center; justify-content: center; font-size: 50px; color: #ccc; }
.mobile-theme-dark .post-image { background: linear-gradient(135deg, #1a1a1a, #111); }
.post-actions { display: flex; justify-content: space-between; padding: 10px 14px 6px; font-size: 24px; }
.post-actions-left { display: flex; gap: 14px; }
.post-likes { padding: 0 14px; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.post-caption { padding: 0 14px; font-size: 14px; line-height: 1.5; margin-bottom: 6px; }
.caption-user { font-weight: 700; margin-inline-end: 5px; }
.post-comment-count { padding: 0 14px; font-size: 13px; color: #8e8e93; }
.post-timestamp { padding: 0 14px; font-size: 11px; color: #8e8e93; margin-top: 4px; }
.social-tabbar {
  display: flex; justify-content: space-around; align-items: center;
  padding: 10px 0 24px; border-top: 0.5px solid rgba(0,0,0,0.08);
  font-size: 24px; color: #8e8e93;
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
}
.mobile-theme-dark .social-tabbar { border-top-color: rgba(255,255,255,0.08); background: rgba(0,0,0,0.95); }
.social-tabbar .active { color: #000; }
.mobile-theme-dark .social-tabbar .active { color: #fff; }

/* === Music App === */
.music-app { background: #000; color: #fff; position: relative; overflow: hidden; }
.music-bg {
  position: absolute; inset: -50%;
  background: radial-gradient(circle, #4a192c, #1a0f14 50%, #000);
  background-size: 200% 200%;
  animation: musicGradient 12s ease infinite alternate;
  z-index: 0; filter: blur(30px);
}
@keyframes musicGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 50% 100%; }
}
.music-scroll { position: relative; z-index: 1; padding: 12px 22px !important; display: flex; flex-direction: column; }
.music-header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; opacity: 0.7; margin: 8px 0 30px; letter-spacing: 1px; text-transform: uppercase; }
.music-artwork { width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, #ff7e5f, #feb47b); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); margin-bottom: 35px; display: flex; align-items: center; justify-content: center; font-size: 80px; color: rgba(255,255,255,0.3); }
.music-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.music-title { font-size: 24px; font-weight: 800; margin: 0; }
.music-artist { font-size: 16px; opacity: 0.7; margin: 4px 0 0; }
.music-heart { font-size: 24px; opacity: 0.8; }
.music-progress { margin-bottom: 30px; }
.progress-track { height: 5px; background: rgba(255,255,255,0.2); border-radius: 3px; position: relative; margin-bottom: 8px; }
.progress-fill { width: 35%; height: 100%; background: #fff; border-radius: 3px; }
.progress-knob { width: 10px; height: 10px; background: #fff; border-radius: 50%; position: absolute; top: -2.5px; left: 35%; }
.progress-times { display: flex; justify-content: space-between; font-size: 11px; opacity: 0.6; font-weight: 600; }
.music-controls { display: flex; justify-content: space-between; align-items: center; font-size: 26px; margin-bottom: 40px; opacity: 0.85; }
.play-btn { width: 66px; height: 66px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; padding-left: 5px; }
.lyrics-card { background: rgba(255,255,255,0.08); backdrop-filter: blur(15px); border-radius: 18px; padding: 22px; margin-bottom: 35px; border: 1px solid rgba(255,255,255,0.08); }
.lyrics-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; opacity: 0.85; }
.lyrics-body { font-size: 24px; line-height: 1.7; font-weight: 700; opacity: 0.9; }


/* === User Custom Theme Styles === */
.ios-home-screen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("../assets/wallpaper.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 55px 18px 15px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(0.95);
}

.ios-home-screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.ios-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 24px;
  column-gap: 12px;
  justify-items: center;
  margin-top: 14px; /* Adjusted to detach from the edge */
}

.ios-app-icon-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.1s;
}
.ios-app-icon-wrapper:active {
  transform: scale(0.9);
}

.ios-app-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  
  /* Deep translucent red base + Glossy gradient overlay */
  background: rgba(75, 10, 15, 0.45);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.3) 100%);
  
  /* Heavy blur + Saturation boost */
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 34px;
  color: #fff;
  
  /* True Glass Edges */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  
  /* 3D Depth */
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.4), 
    inset 0 -2px 6px rgba(0, 0, 0, 0.5), 
    0 10px 25px rgba(0, 0, 0, 0.4);
}

.ios-app-name {
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  margin-top: 5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.2px;
}

.ios-icon-badge {
  position: absolute;
  top: -6px;
  left: -8px; 
  background: #ed342a;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
  border-radius: 12px;
  border: 2px solid #1a0406;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.ios-search-pill-container {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.ios-search-pill {
  background: rgba(40, 5, 8, 0.4);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 22px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.ios-dock {
  background: rgba(255, 255, 255, 0.05); 
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-radius: 30px;
  padding: 16px 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
}

.ios-dock .ios-app-name { display: none; }
.ios-dock .ios-app-icon {
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.3), 
    inset 0 -2px 6px rgba(0, 0, 0, 0.6), 
    0 5px 12px rgba(0, 0, 0, 0.4);
}

.ios-apps-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 20;
  pointer-events: none;
}

.ios-app {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary, #f2f2f7);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(1.1);
}

.ios-app.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.iphone-statusbar, .iphone-notch, .iphone-home-bar {
  z-index: 100;
}

.iphone-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: rgba(0,0,0,0.3);
  border-radius: 100px;
  cursor: pointer;
  z-index: 100;
  transition: background 0.3s;
}
.iphone-home-bar:hover {
  background: rgba(0,0,0,0.6);
}
.ios-home-screen.active ~ .iphone-home-bar {
  background: rgba(255,255,255,0.7);
}
.ios-home-screen.active ~ .iphone-home-bar:hover {
  background: rgba(255,255,255,1);
}
.ios-home-screen.active ~ .iphone-statusbar {
  color: white; 
}

.mobile-tpl-content { display: none; }


/* ==============================================================
   iOS 26 Mathematical Glass (Pure CSS Light Path)
   ============================================================== */

/* 1. Reset any old borders */
.ios-app-icon, .ios-dock, .ios-search-pill {
    border: none !important;
}

/* 2. Glass Base & Refraction (Blur & Saturation) */
.ios-app-icon, .ios-dock, .ios-search-pill {
    backdrop-filter: blur(25px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(130%) !important;
    
    /* Very dark, highly transparent base color so the blur does the work */
    background-color: rgba(15, 15, 18, 0.3) !important;
    
    /* The Light Path: Surface sheen hitting top-left and fading */
    background-image: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.02) 40%, 
        rgba(0, 0, 0, 0.1) 100%
    ) !important;
}

/* 3. Edge Calculation (Bevel) & Depth (Shadow) */
.ios-app-icon, .ios-search-pill {
    box-shadow: 
        /* Top/Left bright edge (Light reflection) */
        inset 0.5px 1px 1px rgba(255, 255, 255, 0.25),
        /* Bottom/Right dark edge (Glass thickness) */
        inset -0.5px -0.5px 1px rgba(0, 0, 0, 0.5),
        /* Ambient Drop Shadow (Elevation) */
        0 10px 25px rgba(0, 0, 0, 0.45) !important;
}

/* The dock gets slightly different math because it's a larger flat surface */
.ios-dock {
    /* Slightly less sheen, more ambient darkness */
    background-color: rgba(10, 10, 12, 0.4) !important;
    background-image: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(0, 0, 0, 0.05) 50%, 
        rgba(0, 0, 0, 0.2) 100%
    ) !important;
    
    box-shadow: 
        /* Distinct top glass edge */
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        /* Very deep shadow to anchor it */
        0 -2px 30px rgba(0, 0, 0, 0.6) !important;
}

/* Ensure inner icons pop and aren't muddied by the glass */
.ios-app-icon i, .ios-search-pill i {
    /* Give the inner FontAwesome icon a tiny lift off the glass */
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)) !important;
}

/* Fix inner icons in the dock */
.ios-dock .ios-app-icon {
    /* Reset surface for icons nested inside the dock so we don't get double-glass */
    background-color: rgba(30, 30, 35, 0.2) !important;
    background-image: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.0) 50%
    ) !important;
    box-shadow: 
        inset 0.5px 0.5px 1px rgba(255, 255, 255, 0.15),
        inset -0.5px -0.5px 1px rgba(0, 0, 0, 0.3) !important;
}



/* ==============================================================
   Custom User Image for Dock
   ============================================================== */
.ios-dock {
    /* Set the downloaded image as the exact background */
    background-image: url('../assets/dock.jpeg') !important;
    background-size: 100% 100% !important; /* Stretch to fit dock exactly */
    background-position: center !important;
    background-repeat: no-repeat !important;
    
    /* Remove mathematical glass and blur from the dock itself since the image has it */
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    
    /* Remove artificial shadows, let the user's image shine */
    box-shadow: none !important;
    border: none !important;
}


/* ==============================================================
   Modern iOS Status Bar & Dynamic Island
   ============================================================== */

/* Hide old notch completely just in case */
.iphone-notch { display: none !important; }

.iphone-dynamic-island {
    position: absolute;
    top: 14px; /* Adjusted to detach from the edge */
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 35px;
    background-color: #000;
    border-radius: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-shadow: inset 0 0 5px rgba(255,255,255,0.1);
}

.island-camera {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #111;
    box-shadow: inset 0 0 2px rgba(255,255,255,0.2), 0 0 2px rgba(255,255,255,0.1);
}

.island-sensor {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1a1a1a;
    opacity: 0.8;
}

.iphone-statusbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 25px 0 25px !important;
    height: 44px !important;
    color: white !important; /* Ensure it stays white on the dark background */
    z-index: 999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: -0.2px !important;
}

.statusbar-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
}

.statusbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ios-signal { height: 11px; margin-right: 2px; }
.ios-wifi { height: 12px; margin-right: 2px; }
.ios-battery { height: 12px; }


/* ==============================================================
   Arabic iOS Status Bar (RTL) - Custom Matching
   ============================================================== */
.arabic-ios {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 25px 0 25px !important;
    height: 44px !important;
    color: white !important;
    z-index: 999;
}

.statusbar-left-rtl {
    display: flex;
    align-items: center;
    gap: 7px;
}

.statusbar-right-rtl {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 50px;
}

.statusbar-time-rtl {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: -0.3px !important;
}

/* Custom Battery with Percentage */
.ios-battery-container {
    display: flex;
    align-items: center;
    position: relative;
}

.battery-percentage {
    position: absolute;
    left: 4px;
    font-size: 9px;
    font-weight: 800;
    color: #000; /* Black text inside the white battery fill */
    z-index: 2;
    font-family: -apple-system, sans-serif;
}

.ios-battery-icon {
    height: 12px;
    width: 25px;
}

.ios-wifi-rtl {
    height: 11px;
}

/* Dual SIM Dots (4x2 grid) */
.ios-dual-sim {
    display: flex;
    flex-direction: column;
    gap: 1.5px;
    margin-right: 2px;
}

.sim-row {
    display: flex;
    gap: 1.5px;
}

.sim-pill {
    width: 3.5px;
    height: 3.5px;
    border-radius: 1px;
}

.sim-pill.filled {
    background-color: white;
}

.sim-pill.empty {
    background-color: rgba(255, 255, 255, 0.3);
}


/* ==============================================================
   Standard Layout Status Bar (Fixing the Squished Icons)
   ============================================================== */
.iphone-statusbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 25px 0 25px !important;
    height: 44px !important;
    color: white !important;
    z-index: 999;
}

.statusbar-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 60px; /* Give the time enough room */
}

.statusbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px; /* Excellent spacing between icons */
    width: 80px; /* Enough room for dual sim, wifi, battery */
}

.statusbar-time {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: -0.3px !important;
}

/* Ensure battery text is legible and centered correctly */
.battery-percentage {
    position: absolute;
    left: 4px; /* Adjust according to the battery fill */
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    font-weight: 800;
    color: #000;
    z-index: 2;
    font-family: -apple-system, sans-serif;
}

.ios-battery-icon {
    height: 12px;
    width: 25px;
}

.ios-wifi {
    height: 11px;
}

.ios-dual-sim {
    display: flex;
    flex-direction: column;
    gap: 1.5px;
    margin-right: 2px;
}


/* ==============================================================
   Perfect iOS Status Bar Alignment
   ============================================================== */
.iphone-statusbar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 54px !important; /* Standard Dynamic Island status bar height */
    padding: 0 25px !important; /* Perfect side margins */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 999;
}

/* Make sure the icons are perfectly aligned */
.statusbar-left {
    display: flex;
    align-items: center;
    margin-top: 4px; /* Tiny optical adjustment */
}

.statusbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px; /* Tiny optical adjustment */
}

.ios-battery-icon {
    height: 13px !important;
    width: 27px !important;
}

.battery-percentage {
    font-size: 10px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: -0.5px;
    left: 4.5px !important;
}

/* Clean iOS Icons Styling */
.ios-icon {
    margin-left: 5px;
    height: 12px;
}
.ios-icon.battery {
    height: 13px;
    margin-left: 7px;
}
/* Ensure the status bar looks normal and flush to the top */
.iphone-statusbar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 48px !important;
    padding: 0 32px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 999;
    box-sizing: border-box;
}
.statusbar-time {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: -0.3px !important;
}
.iphone-dynamic-island {
    top: 12px !important; /* Proper distance from top */
}

/* =========================================
   ZOLITUNE (MUSIC APP) STYLES
   ========================================= */

#app-music {
  background: #000000 !important;
  color: #ffffff;
  overflow: hidden;
}

.zoli-screen {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #000000;
}

.zoli-screen.active {
  display: block;
}

.zoli-scroll {
  height: calc(100% - 45px); /* Header height approx */
  padding-bottom: 120px; /* Space for mini player and bottom nav */
}

/* Header */
.zoli-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}
.zoli-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}
.zoli-header-icons {
  display: flex;
  gap: 15px;
}
.zoli-header-icons i {
  font-size: 1.1rem;
  color: #cccccc;
  background: rgba(255,255,255,0.1);
  padding: 8px;
  border-radius: 50%;
}

/* Search Bar Fake */
.zoli-search-bar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  margin: 10px 20px 20px;
  padding: 10px 15px;
  border-radius: 30px;
  color: #888;
  gap: 10px;
}
.zoli-search-bar input {
  background: transparent;
  border: none;
  color: white;
  width: 100%;
  outline: none;
}
.zoli-search-bar.active {
  border: 1px solid #4a00e0;
}

/* Section Title */
.zoli-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 15px;
}
.zoli-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  padding: 0 20px;
  margin-bottom: 10px;
}
.zoli-section-header .zoli-section-title {
  padding: 0; margin: 0;
}
.zoli-see-all {
  color: #888;
  font-size: 0.8rem;
}

/* Pills */
.zoli-pills {
  display: flex;
  gap: 10px;
  padding: 0 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}
.zoli-pills::-webkit-scrollbar { display: none; }
.zoli-pill {
  padding: 6px 15px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  color: #bbb;
  font-size: 0.85rem;
  white-space: nowrap;
}
.zoli-pill.active {
  background: #3b28cc; /* Purple blue from screenshot */
  color: white;
}

/* Grid */
.zoli-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 0 20px;
  margin-bottom: 25px;
}
.zoli-card {
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  padding-bottom: 10px;
}
.zoli-card-img {
  height: 100px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid #333;
}
.zoli-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  padding: 3px 6px;
  border-radius: 10px;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: #00ff88;
  border-radius: 50%;
}
.zoli-card h3 {
  font-size: 0.85rem;
  margin: 0 8px 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zoli-card p {
  font-size: 0.7rem;
  color: #888;
  margin: 0 8px;
}

/* Lists */
.zoli-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 20px;
}
.zoli-list-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.zoli-list-item img {
  width: 50px; height: 50px;
  border-radius: 10px;
  object-fit: cover;
}
.zoli-list-info {
  flex-grow: 1;
}
.zoli-list-info h4 {
  font-size: 0.95rem; margin: 0 0 3px;
}
.zoli-list-info p {
  font-size: 0.75rem; color: #888; margin: 0;
}
.zoli-list-item i {
  color: #666;
  font-size: 1.1rem;
}

/* Artists */
.zoli-artists {
  display: flex;
  gap: 15px;
  padding: 0 20px;
  overflow-x: auto;
}
.zoli-artists::-webkit-scrollbar { display: none; }
.zoli-artists img {
  width: 65px; height: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #222;
}

/* Bottom Container */
.zoli-bottom-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 15px 25px; /* bottom padding for home indicator */
  background: linear-gradient(to top, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  z-index: 10;
}

/* Mini Player */
.zoli-mini-player {
  background: #111;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  border: 1px solid #222;
}
.zoli-mini-player img {
  width: 40px; height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.mini-info {
  flex-grow: 1;
}
.mini-info h4 {
  font-size: 0.85rem; margin: 0 0 2px;
}
.mini-info p {
  font-size: 0.7rem; color: #888; margin: 0;
}
.mini-controls {
  display: flex;
  gap: 15px;
  align-items: center;
  color: white;
}

/* Bottom Nav */
.zoli-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #111;
  border-radius: 30px;
  padding: 5px;
  border: 1px solid #222;
}
.zoli-nav-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25%;
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #3b28cc;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.zoli-nav-item i {
  font-size: 1.1rem;
}

/* Library List */
.zoli-library-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.zoli-lib-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.zoli-lib-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.1rem;
}
.zoli-add-btn {
  border: 1px solid white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.zoli-playlist-card {
  margin: 0 20px;
  height: 120px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}
.zoli-playlist-bg {
  width: 100%; height: 100%;
  object-fit: cover;
}
.zoli-playlist-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}
.add-icon {
  font-size: 2rem; color: white;
  border: 2px dashed white;
  padding: 10px;
  border-radius: 50%;
}

/* Player Screen */
.zoli-player-header {
  background: transparent !important;
  color: white !important;
  padding: 10px 20px !important;
}
.zoli-player-artwork-container {
  padding: 20px;
  display: flex;
  justify-content: center;
}
.zoli-player-artwork {
  width: 280px; height: 280px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.zoli-player-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  margin-top: 20px;
}
.zoli-player-text h2 {
  margin: 0; font-size: 1.5rem; font-weight: 700;
}
.zoli-player-text p {
  margin: 5px 0 0; color: #aaa; font-size: 0.9rem;
}

/* Progress Thumb */
.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  width: 12px; height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.music-progress {
  padding: 0 25px;
}

/* Controls */
.zoli-player-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  margin-top: 40px;
}
.zoli-player-controls i {
  font-size: 1.2rem;
  color: #bbb;
}
.play-btn-large {
  width: 60px; height: 60px;
  background: white;
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
}

.zoli-player-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  margin-top: 50px;
  color: #bbb;
}
.lyrics-pill {
  background: rgba(255,255,255,0.1);
  padding: 8px 25px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}



/* =========================================
   ZOLITUNE PREMIUM (MUSIC APP) STYLES
   ========================================= */

#app-music {
  background: #000000 !important;
  color: #ffffff;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Base Screen */
.zoli-screen {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #000000;
  z-index: 1;
}
.zoli-screen.active {
  display: block;
}

/* Background Blob for Depth */
.zoli-bg-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(142, 45, 226, 0.3), transparent 60%);
  top: -50px;
  left: -50px;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* Headers */
.zoli-header-premium {
  position: relative;
  z-index: 10;
  padding: 50px 24px 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.zoli-greeting {
  font-size: 13px;
  color: #a0a0a0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.zoli-logo-premium {
  font-size: 28px;
  font-weight: 800;
  margin: 4px 0 0;
  background: linear-gradient(to right, #ffffff, #b3b3b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.zoli-avatar-header img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Scroll Area */
.zoli-scroll-premium {
  height: calc(100% - 100px);
  overflow-y: auto;
  position: relative;
  z-index: 10;
  padding: 0 24px 120px;
}
.zoli-scroll-premium::-webkit-scrollbar { display: none; }

/* Chips */
.zoli-chips-container {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  overflow-x: auto;
  padding-bottom: 5px;
}
.zoli-chips-container::-webkit-scrollbar { display: none; }
.zoli-chip {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #e0e0e0;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}
.zoli-chip.active {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
}

/* Section Titles */
.zoli-section-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 15px;
}
.zoli-section-title-premium {
  font-size: 20px;
  font-weight: 700;
  margin: 25px 0 15px;
  color: #ffffff;
}

/* Recent Grid (Spotify style 2-col) */
.zoli-recent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.zoli-recent-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: background 0.2s;
  cursor: pointer;
}
.zoli-recent-card:active {
  background: rgba(255, 255, 255, 0.15);
}
.zoli-recent-card img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  box-shadow: 2px 0 8px rgba(0,0,0,0.3);
}
.zoli-recent-info {
  padding: 0 10px;
}
.zoli-recent-info h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Horizontal Featured Cards (Apple Music Style) */
.zoli-horizontal-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 20px;
  margin: 0 -24px;
  padding: 0 24px 20px;
}
.zoli-horizontal-scroll::-webkit-scrollbar { display: none; }
.zoli-featured-card {
  min-width: 280px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  cursor: pointer;
}
.zoli-featured-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.zoli-featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.zoli-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a0a0a0;
  font-weight: 600;
}
.zoli-featured-content h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 5px 0 2px;
}
.zoli-featured-content p {
  font-size: 14px;
  color: #ccc;
  margin: 0;
}
.zoli-play-circle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

/* Track List */
.zoli-track-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.zoli-track-item {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}
.zoli-track-num {
  font-size: 14px;
  font-weight: 600;
  color: #888;
  width: 15px;
}
.zoli-track-item img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.zoli-track-info {
  flex-grow: 1;
}
.zoli-track-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}
.zoli-track-info p {
  font-size: 13px;
  color: #888;
  margin: 0;
}
.zoli-track-more {
  color: #888;
  font-size: 18px;
}

/* Glass Bottom Nav + Mini Player Wrapper */
.zoli-glass-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

/* Mini Player Premium */
.zoli-mini-player-premium {
  margin: 0 10px 5px;
  background: rgba(40, 40, 40, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 12px;
  padding: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}
.zoli-mini-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(255,255,255,0.2);
  width: 100%;
}
.zoli-mini-progress::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 35%;
  background: #fff;
  border-radius: 2px;
}
.zoli-mini-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.zoli-mini-content img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.zoli-mini-text {
  flex-grow: 1;
}
.zoli-mini-text h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.zoli-mini-text p {
  font-size: 12px;
  color: #aaa;
  margin: 0;
}
.zoli-mini-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 8px;
}
.zoli-mini-actions i {
  font-size: 18px;
  color: #fff;
}

/* Glass Bottom Nav */
.zoli-nav-premium {
  display: flex;
  justify-content: space-around;
  padding: 15px 10px 45px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.zoli-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}
.zoli-nav-item.active {
  color: #fff;
}
.zoli-nav-item i {
  font-size: 22px;
}
.zoli-nav-item span {
  font-size: 10px;
  font-weight: 500;
}

/* SEARCH SCREEN */
.zoli-search-box-premium {
  background: #242424;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin-top: 15px;
}
.zoli-search-box-premium i {
  color: #000;
  font-size: 18px;
}
.zoli-search-box-premium input {
  background: transparent;
  border: none;
  outline: none;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  margin-left: 10px;
  width: 100%;
}
.zoli-search-box-premium {
  background: #ffffff;
}

/* Browse Grid */
.zoli-browse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.zoli-browse-card {
  border-radius: 12px;
  padding: 15px;
  height: 100px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.zoli-browse-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.zoli-browse-img {
  position: absolute;
  right: -15px;
  bottom: -10px;
  width: 70px;
  height: 70px;
  transform: rotate(25deg);
  border-radius: 8px;
  box-shadow: -5px 5px 15px rgba(0,0,0,0.3);
}

/* NOW PLAYING SCREEN */
.zoli-player-blur-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(200%);
  transform: scale(1.2);
  z-index: 0;
}
.zoli-player-gradient-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,1) 100%);
  z-index: 1;
}
.zoli-player-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 24px 10px;
}
.zoli-player-close {
  font-size: 22px;
  cursor: pointer;
  padding: 10px;
  margin-left: -10px;
}
.zoli-player-context {
  text-align: center;
}
.zoli-player-context span {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: #ccc;
  font-weight: 600;
}
.zoli-player-context strong {
  font-size: 12px;
  font-weight: 700;
}

.zoli-player-content {
  position: relative;
  z-index: 10;
  padding: 20px 24px 100px;
  height: calc(100% - 90px);
}
.zoli-artwork-wrapper {
  margin: 30px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  aspect-ratio: 1/1;
}
.zoli-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoli-player-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.zoli-player-titles h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 5px;
}
.zoli-player-titles p {
  font-size: 16px;
  color: #b3b3b3;
  margin: 0;
}
.zoli-player-heart {
  font-size: 24px;
  color: #fff;
}

/* Premium Progress */
.zoli-progress-premium {
  margin-bottom: 30px;
}
.zoli-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  position: relative;
}
.zoli-progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  position: relative;
}
.zoli-progress-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -4px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.zoli-progress-times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #a0a0a0;
  font-weight: 500;
}

/* Controls */
.zoli-controls-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.zoli-controls-premium i {
  font-size: 22px;
  color: #fff;
}
.zoli-controls-premium i.fa-shuffle, .zoli-controls-premium i.fa-repeat {
  color: #888;
  font-size: 18px;
}
.zoli-play-massive {
  width: 70px;
  height: 70px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.zoli-play-massive i {
  color: #000;
  font-size: 28px;
}

/* Lyrics Card */
.zoli-lyrics-card-premium {
  background: rgba(142, 45, 226, 0.2);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(20px);
}
.zoli-lyrics-card-premium h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}
.zoli-lyrics-card-premium p {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: #fff;
}

/* =========================================
   END OF ZOLITUNE PREMIUM STYLES
   ========================================= */
