/* ==========================================================================
   NEZLIN PRICING SYSTEM (NFS) - STYLING SHEET
   Theme: Dark Coquette Velvet, Burgundy Crimson, Soft Rose & Gold Accents
   ========================================================================== */

/* Design Tokens & Variables */
:root {
  --font-primary: 'Montserrat', sans-serif;
  
  /* Color Palette */
  --bg-main: #0c0809;
  --bg-sidebar: #130a0c;
  --bg-card: rgba(22, 14, 16, 0.75);
  --bg-card-hover: rgba(30, 20, 23, 0.85);
  --bg-input: rgba(10, 6, 7, 0.6);
  
  --color-primary: #6d2932;       /* Velvet Burgundy */
  --color-primary-light: #8b3a45; /* Lighter Burgundy */
  --color-accent: #d36767;        /* Soft Rose */
  --color-accent-gold: #c7a36c;   /* Elegant Gold-Bronze */
  --color-success: #4e9f3d;       /* Clean Forest Green */
  --color-danger: #d9534f;        /* Alert Crimson Red */
  
  --text-main: #f7f4f5;
  --text-muted: #a69b9e;
  --text-dark: #2c1a1d;
  
  --border-gold: rgba(199, 163, 108, 0.2);
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-active: rgba(211, 103, 103, 0.4);
  
  --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(109, 41, 50, 0.2);
  --shadow-gold-glow: 0 0 20px rgba(199, 163, 108, 0.15);
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-large: 16px;
  --radius-medium: 8px;
  --radius-round: 50px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-medium);
}

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

/* Ambient Background Light Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.22;
  pointer-events: none;
  animation: float 20s ease-in-out infinite alternate;
}

.orb-1 {
  background-color: var(--color-primary);
  width: 500px;
  height: 500px;
  top: -10%;
  right: -10%;
}

.orb-2 {
  background-color: var(--color-accent);
  width: 450px;
  height: 450px;
  bottom: -5%;
  left: -5%;
  animation-delay: -5s;
}

.orb-3 {
  background-color: var(--color-accent-gold);
  width: 300px;
  height: 300px;
  top: 40%;
  left: 45%;
  opacity: 0.08;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 40px) scale(1.15); }
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Navigation */
.sidebar {
  width: 280px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 50px;
  padding-left: 10px;
}

.brand-logo {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border: 1px solid var(--color-accent-gold);
  border-radius: var(--radius-large);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  color: var(--text-main);
  box-shadow: var(--shadow-gold-glow);
}

.brand-text h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--text-main), var(--color-accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-large);
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.nav-item i {
  font-size: 16px;
  transition: var(--transition-smooth);
}

.nav-item:hover {
  color: var(--color-accent);
  background-color: rgba(109, 41, 50, 0.15);
  border-color: rgba(211, 103, 103, 0.15);
}

.nav-item.active {
  color: var(--text-main);
  background: linear-gradient(90deg, rgba(109, 41, 50, 0.7), rgba(109, 41, 50, 0.3));
  border: 1px solid var(--border-active);
  box-shadow: var(--shadow-glow);
}

.nav-item.active i {
  color: var(--color-accent-gold);
}

.sidebar-footer {
  margin-top: auto;
  padding: 10px;
}

.sync-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.02);
  padding: 10px 15px;
  border-radius: var(--radius-medium);
  border: 1px solid var(--border-glass);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(199, 163, 108, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(199, 163, 108, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(199, 163, 108, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(199, 163, 108, 0); }
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 40px;
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.header-title h2 {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-title h2 .badge {
  font-size: 11px;
  background-color: rgba(199, 163, 108, 0.15);
  color: var(--color-accent-gold);
  border: 1px solid var(--border-gold);
  padding: 3px 8px;
  border-radius: var(--radius-medium);
}

.header-title p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

/* ==========================================================================
   COMPONENTS & BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-large);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--text-main);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(109, 41, 50, 0.4);
  border-color: var(--color-accent);
}

.btn-success {
  background-color: var(--color-success);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(78, 159, 61, 0.2);
}

.btn-success:hover {
  transform: translateY(-2px);
  background-color: #5bbd47;
  box-shadow: 0 6px 20px rgba(78, 159, 61, 0.4);
}

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
}

/* Filters Card panel */
.filter-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 20px;
  border-radius: var(--radius-large);
  margin-bottom: 35px;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(12px);
}

.search-box {
  flex: 2;
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-large);
  padding: 0 15px;
  height: 48px;
  transition: var(--transition-smooth);
}

.search-box i {
  color: var(--text-muted);
  margin-right: 12px;
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 14px;
  width: 100%;
}

.search-box:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(211, 103, 103, 0.2);
}

.select-box {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-large);
  padding: 0 15px;
  height: 48px;
  position: relative;
  transition: var(--transition-smooth);
}

.select-box i {
  color: var(--text-muted);
  margin-right: 12px;
}

.select-box select {
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 14px;
  width: 100%;
  cursor: pointer;
  appearance: none;
}

.select-box select option {
  background-color: var(--bg-sidebar);
  color: var(--text-main);
}

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

.checkbox-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
}

/* Switch toggle element styling */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-input);
  border: 1px solid var(--border-glass);
  transition: .4s;
  border-radius: var(--radius-round);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .4s;
  border-radius: 50%;
}

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

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--color-accent-gold);
}

.results-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-gold);
  background-color: rgba(199, 163, 108, 0.08);
  border: 1px solid var(--border-gold);
  padding: 8px 16px;
  border-radius: var(--radius-large);
}

/* ==========================================================================
   VIEW PANELS CONTROLLER
   ========================================================================== */

.view-panel {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.view-panel.active {
  display: block;
}

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

/* ==========================================================================
   PRODUCT WORKSPACE GRID & CARDS
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-large);
  padding: 24px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent-gold));
  opacity: 0.7;
}

.product-card:hover {
  transform: translateY(-4px);
  background-color: var(--bg-card-hover);
  border-color: rgba(199, 163, 108, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), var(--shadow-glow);
}

/* Top Section: 2 Columns */
.product-top-row {
  display: flex;
  gap: 20px;
}

/* Left Column: Image wrapper with 1500x1800 aspect ratio */
.product-image-wrapper {
  width: 150px;
  height: 180px; /* Exact 5:6 aspect ratio corresponding to 1500x1800 */
  border-radius: var(--radius-large);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  position: relative;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}

/* Right Column: Text Details */
.product-details-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-name-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.product-category-text {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: auto;
}

.product-category-text i {
  color: var(--color-primary-light);
}

.product-prices-block {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  margin-top: 10px;
}

.price-item {
  display: flex;
  flex-direction: column;
}

.price-item .label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-item .value {
  font-size: 15px;
  font-weight: 600;
}

.price-item.regular .value {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 13px;
}

.price-item.discount .value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
}

/* ==========================================================================
   PRICING FORM SECTION
   ========================================================================== */

.product-pricing-section {
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-options-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.01);
  padding: 12px;
  border-radius: var(--radius-large);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: var(--radius-medium);
  transition: var(--transition-smooth);
}

.option-row:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.option-left-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Checkbox design */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--color-accent);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-accent);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid var(--color-accent-gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Inline Custom Price Input styling */
.custom-price-input {
  width: 70px;
  height: 24px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  color: var(--color-accent-gold);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: var(--transition-smooth);
}

.custom-price-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 5px rgba(211, 103, 103, 0.3);
}

.option-price-right {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 60px;
  text-align: right;
}

.option-row.checked .option-price-right {
  color: var(--text-main);
}

/* Real-Time Total Pricing calculation block */
.pricing-total-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 12px;
  padding-top: 12px;
  padding-left: 8px;
  padding-right: 8px;
}

.pricing-total-block .label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
}

.pricing-total-block .value {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent-gold);
  text-shadow: 0 0 10px rgba(199, 163, 108, 0.2);
}

/* Auto-Save Indicator */
.save-indicator-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(78, 159, 61, 0.08);
  border: 1px solid rgba(78, 159, 61, 0.15);
  padding: 4px 10px;
  border-radius: var(--radius-medium);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.save-indicator-badge.saving {
  color: var(--color-accent-gold);
  background-color: rgba(199, 163, 108, 0.08);
  border-color: rgba(199, 163, 108, 0.15);
  opacity: 1;
}

.save-indicator-badge.saved {
  opacity: 1;
}

/* WARNING BOX - Pricing mismatch alert */
.mismatch-alert-banner {
  background: linear-gradient(135deg, rgba(217, 83, 79, 0.12), rgba(109, 41, 50, 0.2));
  border: 1px solid rgba(217, 83, 79, 0.25);
  border-radius: var(--radius-large);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  animation: pulse-border 2s infinite alternate;
}

@keyframes pulse-border {
  0% { border-color: rgba(217, 83, 79, 0.2); }
  100% { border-color: rgba(217, 83, 79, 0.45); }
}

.mismatch-alert-banner i {
  color: var(--color-danger);
  font-size: 18px;
}

.mismatch-alert-banner p {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
}

.mismatch-alert-banner strong {
  color: var(--color-accent);
}

/* Bottom Text Area Notes */
.notes-textarea-section {
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notes-textarea-section textarea {
  width: 100%;
  min-height: 70px;
  max-height: 150px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-large);
  padding: 12px;
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 12px;
  resize: vertical;
  outline: none;
  transition: var(--transition-smooth);
}

.notes-textarea-section textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(211, 103, 103, 0.15);
}

/* ==========================================================================
   ADMIN SETTINGS SOT VIEW PANEL
   ========================================================================== */

.settings-container {
  max-width: 900px;
  margin: 0 auto;
}

.settings-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-large);
  padding: 35px;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(12px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.card-header i {
  font-size: 24px;
  color: var(--color-accent-gold);
}

.card-header h3 {
  font-size: 20px;
  font-weight: 700;
}

.settings-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.sot-grid-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.form-input-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-large);
  padding: 0 15px;
  height: 48px;
  transition: var(--transition-smooth);
}

.form-input-wrapper input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  width: 100%;
}

.form-input-wrapper span {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
}

.form-input-wrapper:focus-within {
  border-color: var(--color-accent);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
}

.save-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-success);
}

/* ==========================================================================
   SYNC & LOGS VIEW PANEL
   ========================================================================== */

.sync-container {
  max-width: 900px;
  margin: 0 auto;
}

.sync-status-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-large);
  padding: 35px;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(12px);
}

.sync-info-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-large);
  padding: 20px;
  margin-bottom: 30px;
}

.sync-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sync-info-item .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sync-info-item .value {
  font-size: 15px;
  font-weight: 600;
}

.badge-success {
  background-color: rgba(78, 159, 61, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(78, 159, 61, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.sync-actions-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 35px;
  align-items: center;
}

/* Real-Time progress indicator bar styling */
.sync-progress-bar-container {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-large);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

#sync-progress-text {
  color: var(--text-main);
}

#sync-progress-percentage {
  color: var(--color-accent-gold);
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--bg-input);
  border-radius: var(--radius-round);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-accent-gold));
  border-radius: var(--radius-round);
  width: 0;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--color-accent);
}

.progress-subtext {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

/* Scraper Logs Terminal Box */
.scraper-logs-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scraper-logs-box h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.logs-console {
  background-color: #080506;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-large);
  font-family: monospace;
  font-size: 12px;
  color: #39FF14; /* Hacker Green console */
  padding: 20px;
  min-height: 200px;
  max-height: 350px;
  overflow-y: auto;
  white-space: pre-wrap;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   SPINNERS & LOADING STATE
   ========================================================================== */

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  gap: 15px;
  grid-column: 1 / -1;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive styling updates */
@media (max-width: 1400px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 80px;
    padding: 20px 10px;
  }
  .brand-text, .nav-item span, .sidebar-footer {
    display: none;
  }
  .brand {
    justify-content: center;
    margin-bottom: 30px;
    padding: 0;
  }
  .main-content {
    margin-left: 80px;
    padding: 20px;
  }
  .filter-card {
    flex-direction: column;
    align-items: stretch;
  }
  .sot-grid-form {
    grid-template-columns: 1fr;
  }
  .sync-info-box {
    grid-template-columns: 1fr;
  }
}

/* History Undo/Redo Controls */
.history-controls {
  display: inline-flex;
  gap: 6px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-glass);
  padding: 4px;
  border-radius: var(--radius-large);
  margin-right: 12px;
  align-items: center;
}

.btn-history {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 16px;
  outline: none;
}

.btn-history:hover:not(:disabled) {
  color: var(--color-accent-gold);
  background-color: rgba(255, 255, 255, 0.03);
  transform: scale(1.05);
}

.btn-history:active:not(:disabled) {
  transform: scale(0.95);
}

.btn-history:disabled {
  color: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}

/* Turkey SVG Map Styling */
.turkey-map-svg-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  background: rgba(22, 14, 16, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-large);
  padding: 20px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.turkey-map-svg-wrapper svg {
  width: 100%;
  height: auto;
}

/* Turkey SVG Map Base Land Paths */
.turkey-map-svg-wrapper svg g[data-plate] > path {
  fill: rgba(255, 255, 255, 0.04) !important;
  stroke: none !important; /* Remove individual paths borders, handle via subgroups */
  transition: var(--transition-smooth);
  cursor: pointer;
}

/* Turkey SVG Map Border Lines Subgroup */
.turkey-map-svg-wrapper svg g[data-plate] > g > path {
  fill: none !important;
  stroke: rgba(255, 255, 255, 0.08) !important;
  stroke-width: 0.75px !important;
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Turkey SVG Map City Name Text Paths Subgroup */
.turkey-map-svg-wrapper svg g[data-plate] g path[fill="#444444"] {
  fill: var(--text-muted) !important;
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* ==========================================
   HOVER STATES
   ========================================== */
/* Land hover */
.turkey-map-svg-wrapper svg g[data-plate]:hover > path {
  fill: var(--color-accent) !important;
  filter: drop-shadow(0 0 10px rgba(211, 103, 103, 0.25)) !important;
}

/* Border hover */
.turkey-map-svg-wrapper svg g[data-plate]:hover > g > path {
  stroke: var(--text-main) !important;
  stroke-width: 1px !important;
}

/* Text hover */
.turkey-map-svg-wrapper svg g[data-plate]:hover g path[fill="#444444"] {
  fill: var(--text-main) !important;
}

/* ==========================================
   CITIES WITH ORDERS (ACTIVE CUSTOMERS)
   ========================================== */
/* Land has orders */
.turkey-map-svg-wrapper svg g.city-has-orders > path {
  fill: rgba(109, 41, 50, 0.5) !important;
}

/* Border has orders */
.turkey-map-svg-wrapper svg g.city-has-orders > g > path {
  stroke: rgba(211, 103, 103, 0.3) !important;
}

/* Text has orders */
.turkey-map-svg-wrapper svg g.city-has-orders g path[fill="#444444"] {
  fill: var(--color-accent-gold) !important;
}

/* Hover has orders */
.turkey-map-svg-wrapper svg g.city-has-orders:hover > path {
  fill: var(--color-primary-light) !important;
}

/* ==========================================
   ACTIVE SELECTED CITY STATE
   ========================================== */
/* Land active selected */
.turkey-map-svg-wrapper svg g.city-active > path {
  fill: var(--color-accent-gold) !important;
  filter: drop-shadow(0 0 15px rgba(199, 163, 108, 0.3)) !important;
}

/* Border active selected */
.turkey-map-svg-wrapper svg g.city-active > g > path {
  stroke: var(--text-main) !important;
  stroke-width: 1.25px !important;
}

/* Text active selected */
.turkey-map-svg-wrapper svg g.city-active g path[fill="#444444"] {
  fill: var(--bg-main) !important;
}

/* Custom Mouse-Following Interactive Tooltip */
.map-tooltip-box {
  position: fixed;
  pointer-events: none;
  background: rgba(19, 10, 12, 0.95);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  padding: 8px 15px;
  border-radius: var(--radius-large);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  z-index: 10000;
  box-shadow: var(--shadow-premium), var(--shadow-glow);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -120%);
  transition: opacity 0.15s ease, transform 0.1s ease;
  pointer-events: none;
}

.selected-city-badge {
  font-size: 13px;
  background-color: var(--color-accent-gold);
  color: var(--bg-main);
  padding: 4px 12px;
  border-radius: var(--radius-medium);
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-gold-glow);
}

/* Customer CRM Table Styling */
.crm-table-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(12px);
  margin-top: 20px;
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.crm-table th, .crm-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-glass);
}

.crm-table th {
  background-color: rgba(19, 10, 12, 0.8);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--color-accent-gold);
}

.crm-table tbody tr {
  transition: var(--transition-smooth);
}

.crm-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.table-empty {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 30px !important;
}

/* Instagram & Phone Badges/Links */
.insta-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.insta-link:hover {
  color: var(--text-main);
  text-shadow: 0 0 5px var(--color-accent);
}

.phone-badge {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 4px 8px;
  border-radius: var(--radius-medium);
  color: var(--text-muted);
  font-family: monospace;
}

/* Finger sizes badges */
.finger-sizes-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.finger-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(199, 163, 108, 0.05);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-medium);
  padding: 4px 6px;
  min-width: 42px;
}

.finger-badge .finger-name {
  font-size: 8px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.finger-badge .finger-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent-gold);
}

/* Product chips badges */
.order-chips-wrapper {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.order-chip {
  background-color: rgba(109, 41, 50, 0.2);
  border: 1px solid var(--border-active);
  color: var(--text-main);
  padding: 3px 8px;
  border-radius: var(--radius-medium);
  font-size: 11px;
  font-weight: 600;
}

/* CRM Modal Dialog Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(12, 8, 9, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
  animation: fadeIn 0.3s ease;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-large);
  width: 100%;
  max-width: 650px;
  padding: 30px;
  box-shadow: var(--shadow-premium), var(--shadow-glow);
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow-y: auto;
  max-height: 90vh;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 20px;
  color: var(--color-accent-gold);
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.close-btn:hover {
  color: var(--color-accent);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.modal-form label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  display: block;
}

.modal-form input, .modal-form select, .modal-form textarea {
  background-color: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-medium);
  padding: 10px 15px;
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-smooth);
  width: 100%;
}

.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(211, 103, 103, 0.2);
}

.input-prefix-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-medium);
  padding-left: 15px;
}

.input-prefix-wrapper .prefix {
  color: var(--color-accent);
  font-weight: 700;
  margin-right: 5px;
}

.input-prefix-wrapper input {
  border: none;
  background: none;
  padding-left: 0;
}

/* Finger sizes section in form */
.sizes-section {
  border-top: 1px solid var(--border-glass);
  padding-top: 15px;
  margin-top: 10px;
}

.sizes-section h5 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.sizes-row-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.size-input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 10px;
  border-radius: var(--radius-medium);
}

.size-input-group label {
  font-size: 9px;
  margin-bottom: 6px;
  text-align: center;
}

.size-input-group input {
  width: 50px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 5px;
  color: var(--color-accent-gold);
}

.size-input-group .unit {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
  margin-top: 15px;
}

.city-customers-block {
  margin-top: 30px;
  border-top: 1px dashed var(--border-glass);
  padding-top: 20px;
}

.city-customers-block .block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.city-customers-block .block-title i {
  color: var(--color-accent-gold);
}

.city-customers-block .block-title h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================
   SOT SETTINGS FORM SUB-SECTIONS & SELECT STYLING
   ========================================== */
#sot-form {
  display: block !important;
}

.sot-section-wrapper {
  margin-bottom: 35px;
}

.sot-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.sot-section-title i {
  color: var(--color-accent-gold);
}

.sot-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px 30px;
}

.settings-section-divider {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: 15px;
}

.sot-select-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-large);
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23c7a36c' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 35px;
}

.sot-select-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(211, 103, 103, 0.15);
}

.sot-select-control option {
  background-color: var(--bg-sidebar);
  color: var(--text-main);
  padding: 10px;
}

/* ==========================================
   SECURE ADMIN LOGIN SCREEN STYLING
   ========================================== */
.login-overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(12, 8, 9, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.login-overlay-container.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(22, 14, 16, 0.7);
  border: 1px solid var(--color-accent-gold);
  border-radius: var(--radius-large);
  padding: 40px;
  box-shadow: var(--shadow-premium), var(--shadow-glow);
  animation: modalSlideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.login-logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border: 1px solid var(--color-accent-gold);
  border-radius: var(--radius-large);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  color: var(--text-main);
  box-shadow: var(--shadow-gold-glow);
}

.login-brand-text h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(90deg, var(--text-main), var(--color-accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-brand-text p {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.login-form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper input {
  width: 100%;
  padding: 12px 45px 12px 16px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-large);
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
}

.password-input-wrapper input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(211, 103, 103, 0.15);
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 14px;
  transition: var(--transition-smooth);
  outline: none;
}

.btn-toggle-password:hover {
  color: var(--color-accent-gold);
}

.login-btn {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
  height: 48px;
}

.login-error-alert {
  margin-top: 20px;
  background-color: rgba(217, 83, 79, 0.1);
  border: 1px solid var(--color-danger);
  color: var(--text-main);
  padding: 12px 15px;
  border-radius: var(--radius-large);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
