@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* ============================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================================ */

:root {

  /* Brand Colors */
  --main-color: #d8262f;
  --main-color-rgb: 216, 38, 47;
  --main-color-light: rgba(216, 38, 47, 0.1);
  --main-color-border: rgba(216, 38, 47, 0.2);

  /* Primitive Colors */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-slate-500-rgb: 98, 108, 113;
  --color-slate-900-rgb: 19, 52, 59;
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-brown-600-rgb: 94, 82, 64;
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-teal-500-rgb: 33, 128, 141;
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-red-400-rgb: 255, 84, 89;
  --color-red-500-rgb: 192, 21, 47;
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);
  --color-orange-400-rgb: 230, 129, 97;
  --color-orange-500-rgb: 168, 75, 47;
  --color-bg-1: rgba(59, 130, 246, 0.08);
  --color-bg-2: rgba(245, 158, 11, 0.08);
  --color-bg-3: rgba(34, 197, 94, 0.08);
  --color-bg-4: rgba(239, 68, 68, 0.08);
  --color-bg-5: rgba(147, 51, 234, 0.08);
  --color-bg-6: rgba(249, 115, 22, 0.08);
  --color-bg-7: rgba(236, 72, 153, 0.08);
  --color-bg-8: rgba(6, 182, 212, 0.08);

  /* Semantic Colors */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-family-arabic: Tajawal, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-family-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --card-border-radius: 16px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --animation-speed: 0.3s;

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --table-row-height: 80px;

  /* Other */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ============================================================================
   BASE STYLES
   ============================================================================ */

body {
    font-family: Poppins,sans-serif;
    color: #1d1d1b;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box;
}

body.rtl {
  font-family: var(--font-family-arabic) !important;
}

*::after {
  box-sizing: inherit;
}

html {
    font-size: var(--font-size-base);
    font-family: var(--font-family-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h6 {
  font-size: var(--font-size-md);
}

h1 {
    font-size: 40px;
    font-weight: 550;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    h1 {
        font-size: 25px;
    }
}

h2 {
  color: #424a54;
  font-weight: 600;
  font-size: 20px;
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* ============================================================================
   FORM ELEMENTS
   ============================================================================ */

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: var(--space-16);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-label.required::after {
  content: ' *';
  color: var(--main-color);
}

.input-group-text {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-right: none;
  color: #6c757d;
}

.form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

.form-check-input:focus {
  box-shadow: var(--focus-ring);
}

.comment-form p, .form-group, .search-form label {
  margin-bottom: 1rem;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn--primary {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.action-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-action {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-edit {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
}

.btn-edit:hover {
  background: #007bff;
  color: white;
  transform: scale(1.05);
}

.btn-toggle {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.btn-toggle:hover {
  background: #28a745;
  color: white;
  transform: scale(1.05);
}

.btn-toggle.inactive {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.btn-toggle.inactive:hover {
  background: #6c757d;
  color: white;
}

.btn-delete {
    background: rgba(220, 53, 69, 0.1);
    color: var(--main-color);
}

.btn-delete:hover {
  background: var(--main-color);
  color: white;
  transform: scale(1.05);
}

.btn-delete:disabled {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  cursor: not-allowed;
}

.btn-reply {
  background: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
}

.btn-reply:hover {
  background: #17a2b8;
  color: white;
  transform: scale(1.05);
}

.btn-reply:disabled {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  cursor: not-allowed;
}

.btn-forward {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.btn-forward:hover {
  background: #28a745;
  color: white;
  transform: scale(1.05);
}

.btn-forward:disabled {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  cursor: not-allowed;
}

.btn-create {
  background: var(--main-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(216, 38, 47, 0.3);
}

.btn-create:hover {
  background: #b91c2c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 38, 47, 0.4);
}

.btn-create i {
  margin-right: 0.5rem;
}

.btn-action:hover {
  transform: scale(1.1);
}

.tox .tox-button {
  color: var(--color-text);
}

.tox .tox-button:hover {
  background: var(--color-secondary);
  color: var(--color-text);
}

.tox .tox-button--enabled {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}

/* ============================================================================
   CARDS
   ============================================================================ */

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

.card-header-enhanced {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: none;
  padding: 1.5rem;
  border-radius: 16px 16px 0 0 !important;
}

.card-header-enhanced h6 {
  color: #2c3e50;
  font-weight: 600;
  margin: 0;
}

.card-body-enhanced {
  padding: 2rem;
}

.stats-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stats-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--main-color);
}

.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.preview-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
}

.preview-card div:first-child {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: white;
}

.settings-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid;
}

.info-card-blue {
  background: rgba(0, 123, 255, 0.05);
  border-left-color: #007bff;
}

.info-card-green {
  background: rgba(40, 167, 69, 0.05);
  border-left-color: #28a745;
}

.info-card i {
  margin-top: 0.125rem;
  font-size: 1.1rem;
}

.info-card-blue i {
  color: #007bff;
}

.info-card-green i {
  color: #28a745;
}

.seo-card {
  background: white;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.seo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.content-tabs-card, .quick-actions-card, .settings-card, .media-card, .seo-card {
  background: white;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.content-tabs-card:hover, .settings-card:hover, .media-card:hover, .seo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ============================================================================
   TABLES
   ============================================================================ */

.table-header {
  background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.5rem;
  border-bottom: 2px solid var(--main-color-border);
}

.enhanced-table {
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  table-layout: auto;
}

.enhanced-table thead th {
  background: #f8f9fa;
  border: none;
  padding: 1rem;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.enhanced-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.enhanced-table tbody tr:hover {
  background: var(--main-color-light);
}

.enhanced-table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border: none;
}

.sortable-ghost {
  opacity: 0.4;
  background: #f8f9fa;
}

.sortable-chosen {
  background: #e8f4f8;
  transform: scale(1.02);
}

.sortable-drag {
  opacity: 0.8;
  transform: rotate(2deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.table-check {
  margin-left: 0;
}

thead .table-check {
  margin-top: -1rem;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

.step-navigation .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
}

.step-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.custom-tabs .nav-item {
  flex: 1;
  max-width: 120px;
}

.custom-tabs .nav-link {
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  padding: var(--space-12) var(--space-20);
  border-radius: var(--radius-base);
  margin-right: var(--space-4);
  transition: all var(--duration-normal) var(--ease-standard);
  font-weight: var(--font-weight-medium);
}

.custom-tabs .nav-link:hover {
  background: rgba(var(--color-teal-500-rgb), 0.1);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.custom-tabs .nav-link.active {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
  box-shadow: 0 4px 12px rgba(var(--color-teal-500-rgb), 0.3);
}

.custom-tabs .nav-link:hover .tab-flag {
  filter: none;
}

.custom-tabs .nav-link.active .tab-indicator {
  transform: translateX(-50%) scaleX(1);
}

.header-info h1 {
  font-size: 2.2rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.enhanced-tabs .nav-link {
  border: none;
  background: transparent;
  color: #6c757d;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.enhanced-tabs .nav-link:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  transform: translateY(-1px);
}

.enhanced-tabs .nav-link.active {
  background: #667eea;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-link.active .completion-indicator {
  background: rgba(255, 255, 255, 0.7);
}

.nav-link.active .completion-indicator.completed {
  background: #90EE90;
}

.c-header .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
    max-width: none;
}

.c-header__nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    order: 2;
}

.burger-wrap {
    display: none;
    flex-shrink: 0;
    order: 5;
    margin-left: var(--space-8);
}

.hamburger {
  padding: 15px;
  display: inline-block;
  cursor: pointer;
  transition-property: opacity,filter;
  transition-duration: .15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible;
}

.hamburger.is-active:hover, .hamburger:hover {
  opacity: .7;
}

.hamburger.is-active .hamburger-inner, .hamburger.is-active .hamburger-inner:after, .hamburger.is-active .hamburger-inner:before {
  background-color: #fff;
}

.hamburger-box {
    width: 40px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

    .hamburger-inner, .hamburger-inner:after, .hamburger-inner:before {
        width: 40px;
        height: 4px;
        background-color: #fff;
        border-radius: 4px;
        position: absolute;
        transition-property: transform;
        transition-duration: .15s;
        transition-timing-function: ease;
    }

        .hamburger-inner:after, .hamburger-inner:before {
            content: "";
            display: block;
        }

        .hamburger-inner:before {
            top: -10px;
        }

        .hamburger-inner:after {
            bottom: -10px;
        }
.hamburger--squeeze .hamburger-inner {
  transition-duration: 75ms;
  transition-timing-function: cubic-bezier(.55,.055,.675,.19);
}

.hamburger--squeeze .hamburger-inner:before {
  transition: top 75ms ease .12s,opacity 75ms ease;
}

.hamburger--squeeze .hamburger-inner:after {
  transition: bottom 75ms ease .12s,transform 75ms cubic-bezier(.55,.055,.675,.19);
}

.hamburger--squeeze.is-active .hamburger-inner {
  transform: rotate(45deg);
  transition-delay: .12s;
  transition-timing-function: cubic-bezier(.215,.61,.355,1);
}

.hamburger--squeeze.is-active .hamburger-inner:before {
  top: 0;
  opacity: 0;
  transition: top 75ms ease,opacity 75ms ease .12s;
}

.hamburger--squeeze.is-active .hamburger-inner:after {
  bottom: 0;
  transform: rotate(-90deg);
  transition: bottom 75ms ease,transform 75ms cubic-bezier(.215,.61,.355,1) .12s;
}

.c-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: var(--main-color);
  color: #fff;
  box-shadow: 0 2px 8px rgba(86,52,52,.4);
}

.c-header__logo {
  width: 120px;
  height: auto;
}

.c-header__nav-mob {
  position: fixed;
  right: -100%;
  top: 0;
  width: 100%;
  height: 100vh;
  background: var(--main-color);
  opacity: 1;
  transition: all .1s ease-out 0s;
}

.c-header__nav-mob.c-header__nav-mob--open {
  right: 0;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
}

.c-header__hamburger {
  height: 60px;
}

.c-header__hamburger.hamburger {
  background: var(--main-color);
}

.c-header__hamburger.hamburger .hamburger-box {
  transform: scale(.6);
}

.c-header__hamburger.hamburger:focus {
  outline: none;
}

/* ============================================================================
   MENU COMPONENTS
   ============================================================================ */

.menus-table-container {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
}

#menusTable tbody tr:hover .drag-handle {
  color: #007bff;
}

.mobile-menu-open {
  overflow: hidden;
}

.menu-management-header {
    background: linear-gradient(135deg, var(--main-color) 0%, #b91c2c 100%);
    color: white;
    padding: 2rem 0;
    margin: 10px -24px 2rem -24px;
    border-radius: 0 0 20px 20px;
}

.menu-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-icon {
  width: 40px;
  height: 40px;
  background: var(--main-color-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
  font-size: 1.1rem;
}

.menu-details h6 {
  margin: 0;
  font-weight: 600;
  color: #212529;
  font-size: 0.95rem;
}

.menu-link {
  color: #6c757d;
  font-size: 0.8rem;
  margin: 0;
  font-family: 'Courier New', monospace;
}

.menu-management-header h1, .menu-management-header p {
  color: var(--color-white);
}

.menu-summary {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
}

.menu-summary h6 {
  color: var(--main-color);
  margin-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.menu-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-badge {
  background: #e8f4f8;
  color: #2980b9;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.h-metodo-nav:after {
  width: 25px;
  height: 30px;
  left: 0;
  bottom: -42px;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 15px solid #ededed;
  transform: rotate(270deg);
  border-left: 15px solid var(--main-color);
  transition: all .2s ease-out 0s;
}

.h-metodo-nav:after, .h-metodo-nav:before {
  content: "";
  display: block;
  position: absolute;
}

.h-metodo__intro, .h-metodo__intro p {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #424a54;
}


.c-header__menu {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.c-header__menu li {
  display: block;
  position: relative;
}

@media (min-width: 992px) {
    .c-header__menu li {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-pack: center;
        justify-content: center;
        -ms-flex-align: center;
        align-items: center;
        border-left: 1px solid #fff;
        min-width: 140px;
    }
}

.c-header__menu li a {
  padding: 0 20px;
  display: block;
  line-height: 50px;
  color: #fff;
  font-size: 14px;
  line-height: 1.2em;
  text-transform: uppercase;
  font-weight: 700;
}

@media (min-width: 992px) {
    .c-header__menu li a {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-flex-pack: center;
        justify-content: center;
        -ms-flex-item-align: stretch;
        align-self: stretch;
        text-align: center;
        max-width: 120px;
        padding-top: 7px;
        padding-bottom: 5px;
    }
}

.admin-nav-link.active-admin-link {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 -3px 0 var(--color-white);
}

.rtl .c-header__menu li a {
  font-size: 15px;
}

.c-header__menu-mob {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.c-header__menu-mob li {
  margin: 0;
  padding: 0;
}

.c-header__menu-mob li a {
  color: #fff;
  font-size: 16px;
  line-height: 3.5em;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  display: block;
  border-top: 1px solid #fff;
}

.c-header__menu-mob li a br {
  display: none;
}

.c-header__menu-mob li:first-child a {
  border-top: none;
}


/* ============================================================================
   ADMIN PANEL
   ============================================================================ */

.admin-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--duration-normal) var(--ease-standard);
}

.admin-header .dropdown {
  flex-shrink: 0;
  order: 3;
}

.admin-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.admin-nav-item {
  position: relative;
}

.admin-nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-md);
  padding: var(--space-10) var(--space-16);
  border-radius: var(--radius-base);
  transition: all var(--duration-normal) var(--ease-standard);
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  line-height: var(--line-height-tight);
  min-height: 45px;
  justify-content: center;
}

.admin-nav-link:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  text-decoration: none;
}

.admin-nav-icon {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

.admin-user-section {
    flex-shrink: 0;
    order: 3;
    display: flex;
    align-items: center;
    transition: all var(--duration-normal) var(--ease-standard) cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-user-dropdown-btn {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-16);
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  transition: all var(--duration-normal) var(--ease-standard);
  text-decoration: none;
}

.admin-user-dropdown-btn[aria-expanded="true"] {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.admin-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-white) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-right: var(--space-10);
  font-size: var(--font-size-base);
}

.admin-user-name {
  font-weight: var(--color-white);
  color: inherit;
}

.dropdown-toggle::after {
    display: none;
}

.admin-user-dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: var(--space-8) 0;
    margin-top: var(--space-8);
    min-width: 150px;
    background-color: var(--color-surface);
}

.admin-dropdown-item {
  padding: var(--space-12) var(--space-20);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  transition: all var(--duration-normal) var(--ease-standard);
}

.admin-dropdown-item:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.admin-dropdown-icon {
  width: var(--space-16);
  text-align: center;
}

.admin-nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--main-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-standard);
  z-index: 999;
  pointer-events: none;
}

.admin-nav-mobile.mobile-nav-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-mobile-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1000;
}

.admin-mobile-menu {
  list-style: none;
  margin: 0;
  padding: var(--space-20) 0;
}

.admin-mobile-item {
  border-bottom: 1px solid var(--color-border);
}

.admin-mobile-item:last-child {
  border-bottom: none;
}

.admin-mobile-link {
  text-decoration: none;
}

.admin-main {
  min-height: calc(100vh - 80px);
  padding: var(--space-24) 0;
}

.admin-container {
  max-width: var(--container-xl);
}

.admin-user-dropdown-btn:focus {
  outline: none;
  outline-offset: 2px;
}

.admin-mobile-link.active-mobile-link {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  padding-left: var(--space-32);
}

.admin-mobile-item:last-child .admin-mobile-link {
  border-bottom: none;
}

.c-header.admin-header {
  background-color: var(--main-color);
  box-shadow: var(--shadow-sm);
}

.admin-user-dropdown-btn:hover, .admin-user-dropdown-btn:focus, .admin-user-dropdown-btn[aria-expanded="true"] {
  border-color: var(--color-white);
  color: var(--color-white);
  opacity: 1;
  background: var(--color-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.admin-nav-link:focus, .admin-user-dropdown-btn:focus {
  outline: none;
  outline-offset: 2px;
}

.admin-mobile-link:hover, .admin-mobile-link.active-mobile-link {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  padding-left: var(--space-32);
}

/* ============================================================================
   POSTS & CONTENT
   ============================================================================ */

.posts-table-container .table-responsive {
  border-radius: 0;
  border: none;
  margin: 0;
  padding: 0;
}

.stat-posts {
  color: #007bff;
}

.post-management-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.post-management-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.post-item-card {
  max-width: 500px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.post-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.post-details {
  flex: 1;
  min-width: 0;
}

.post-details h6 {
  margin: 0 0 4px 0;
  font-weight: 600;
  font-size: 14px;
  color: #2c3e50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-summary {
  margin: 0;
  font-size: 12px;
  color: #7f8c8d;
  line-height: 1.3;
  max-height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-thumbnail {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-row:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-row:hover .post-icon {
  transform: scale(1.1);
}

.post-row:hover .drag-handle {
  opacity: 1;
  color: #667eea;
}

.post-row {
  transition: all 0.2s ease;
}

.post-form-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.post-form-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

/* ============================================================================
   MODALS
   ============================================================================ */

.modal-header.bg-gradient {
  background: linear-gradient(135deg, var(--main-color) 0%, #b91c2c 100%);
  color: white;
  border-bottom: none;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.modal-fullscreen .modal-body {
  padding: 0;
}

/* ============================================================================
   TABS
   ============================================================================ */

.tab-flag {
  font-size: 20px;
  margin-bottom: 2px;
  filter: grayscale(50%);
  transition: filter 0.3s ease;
}

.tab-text {
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  height: 3px;
  width: 80%;
  background: var(--main-color);
  border-radius: 2px 2px 0 0;
  transition: transform 0.3s ease;
}

.tab-content {
  background: white;
  border-radius: 8px;
  padding: 5px 20px;
  border: 1px solid #e9ecef;
  min-height: 80px;
}

.tab-pane {
  animation: fadeIn 0.3s ease-in-out;
}

.tab-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(216, 38, 47, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

.tab-content > .tab-pane {
  display: none;
}

.tab-content > .active {
  display: block;
}

/* ============================================================================
   STATUS & BADGES
   ============================================================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 2px solid;
}

.status--success {
  background-color: rgba( var(--color-success-rgb, 33, 128, 141), var(--status-bg-opacity) );
  color: var(--color-success);
  border: 1px solid rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba( var(--color-error-rgb, 192, 21, 47), var(--status-bg-opacity) );
  color: var(--color-error);
  border: 1px solid rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba( var(--color-warning-rgb, 168, 75, 47), var(--status-bg-opacity) );
  color: var(--color-warning);
  border: 1px solid rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba( var(--color-info-rgb, 98, 108, 113), var(--status-bg-opacity) );
  color: var(--color-info);
  border: 1px solid rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

.status-badge {
  transition: all 0.3s ease;
}

.status-active {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border-color: rgba(40, 167, 69, 0.2);
}

.status-inactive {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  border-color: rgba(108, 117, 125, 0.2);
}

.system-badge {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border-color: rgba(255, 193, 7, 0.2);
}

.order-badge {
  transition: all 0.3s ease;
}

.order-badge.updating {
  transform: scale(1.1);
  background-color: #28a745 !important;
  color: white !important;
}

.category-badge {
  background: #fef9e7;
  color: #f39c12;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.item-badge {
  background: #f4f6f7;
  color: #7f8c8d;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.status-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.featured-badge {
  background: white;
  border: none;
  font-size: 14px;
  padding: 5px;
  border-radius: 3px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.order-badge:hover {
  transform: scale(1.1);
}

/* ============================================================================
   PROGRESS & STEPS
   ============================================================================ */


.progress-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: #e9ecef;
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 120px;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.step.active .step-circle {
  background: var(--main-color);
  color: white;
}

.step.completed .step-circle {
  background: #28a745;
  color: white;
}

.step-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6c757d;
}

.step.active .step-label {
  color: var(--main-color);
  font-weight: 600;
}

.progress-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 80px;
}

.progress-step.active {
  background: #667eea;
  color: white;
  transform: scale(1.05);
}

.progress-step i {
  font-size: 1.2rem;
}

.progress-step span {
  font-size: 0.85rem;
  font-weight: 500;
}

.progress {
  height: 8px;
  border-radius: 4px;
  background: #f1f3f4;
}

.progress-bar {
  background: linear-gradient(90deg, #28a745, #20c997);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-bar-custom {
  height: var(--space-4);
  background: var(--color-success);
  border-radius: var(--space-2);
  transition: width var(--duration-normal) var(--ease-standard);
}

/* ============================================================================
   UPLOAD COMPONENTS
   ============================================================================ */

.url-preview {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.preview-box {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

#urlPreview {
  color: var(--main-color);
  font-weight: 600;
}

.preview-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: #495057;
}

.color-preview {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 2px solid #dee2e6;
  background: var(--selected-color, #d8262f);
}

/* ============================================================================
   FILE UPLOAD AREAS - ENHANCED
   ============================================================================ */

/* Featured Image Upload Area */
.image-upload-area {
    border: 3px dashed #dee2e6;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: #f8f9fa;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .image-upload-area:hover {
        border-color: #667eea;
        background: rgba(102, 126, 234, 0.05);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
    }

/* Icon Upload Area */
.icon-upload-area {
    border: 3px dashed #dee2e6;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: #f8f9fa;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .icon-upload-area:hover {
        border-color: #17a2b8;
        background: rgba(23, 162, 184, 0.05);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(23, 162, 184, 0.1);
    }

/* Upload Placeholder */
.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #6c757d;
}

    .upload-placeholder i {
        font-size: 2rem;
        color: #adb5bd;
        transition: all 0.3s ease;
    }

.image-upload-area:hover .upload-placeholder i {
    color: #667eea;
    transform: scale(1.1);
}

.icon-upload-area:hover .upload-placeholder i {
    color: #17a2b8;
    transform: scale(1.1);
}

.upload-placeholder span {
    font-weight: 600;
    font-size: 1rem;
}

.upload-placeholder small {
    color: #adb5bd;
    font-size: 0.85rem;
}

/* Uploaded Images */
.uploaded-image {
    max-height: 250px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.uploaded-icon {
    max-height: 120px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Image Overlay - Fixed */
.upload-image-overlay,
.upload-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

    .upload-image-overlay i,
    .upload-icon-overlay i {
        font-size: 2rem;
        color: #ffffff;
    }

    .upload-image-overlay span,
    .upload-icon-overlay span {
        font-weight: 600;
        font-size: 1rem;
    }

/* Show overlay on hover when image exists */
.image-upload-area:hover .upload-image-overlay,
.icon-upload-area:hover .upload-icon-overlay {
    opacity: 1;
}

/* Hide overlay when no image */
.image-upload-area .upload-image-overlay {
    display: none;
}

.icon-upload-area .upload-icon-overlay {
    display: none;
}

/* Show overlay only when image is present */
.image-upload-area.has-image .upload-image-overlay {
    display: flex;
}

.icon-upload-area.has-icon .upload-icon-overlay {
    display: flex;
}

/* Upload States */
.upload-success {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

    .upload-success .upload-placeholder i {
        color: #28a745;
    }

.upload-error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

    .upload-error .upload-placeholder i {
        color: #dc3545;
    }

/* Drag and Drop States */
.upload-area-dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.upload-area-dragging {
    border-style: solid;
    border-width: 3px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Upload Progress */
.upload-progress {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    display: none;
    font-size: 0.875rem;
}

    .upload-progress.show {
        display: block;
    }

    .upload-progress .progress {
        height: 4px;
        margin-top: 8px;
        background: rgba(255, 255, 255, 0.2);
    }

    .upload-progress .progress-bar {
        background: #667eea;
    }

/* Responsive */
@media (max-width: 767px) {
    .image-upload-area {
        min-height: 200px;
        padding: 1.5rem;
    }

    .icon-upload-area {
        min-height: 120px;
        padding: 1rem;
    }

    .upload-placeholder i {
        font-size: 2.5rem;
    }

    .uploaded-image {
        max-height: 200px;
    }

    .uploaded-icon {
        max-height: 100px;
    }
}



/* ============================================================================
   ARABIC & LANGUAGE SUPPORT
   ============================================================================ */

html[dir="rtl"] {
  font-family: var(--font-family-arabic) !important;
}

.arabic-font {
  font-family: var(--font-family-arabic) !important;
  direction: rtl;
  text-align: right;
  font-feature-settings: "liga" 1, "kern" 1, "arab" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.arabic-font-light {
  font-family: var(--font-family-arabic) !important;
  font-weight: 200;
  direction: rtl;
  text-align: right;
}

.arabic-font-regular {
  font-family: var(--font-family-arabic) !important;
  font-weight: 400;
  direction: rtl;
  text-align: right;
}

.arabic-font-medium {
  font-family: var(--font-family-arabic) !important;
  font-weight: 500;
  direction: rtl;
  text-align: right;
}

.arabic-font-bold {
  font-family: var(--font-family-arabic) !important;
  font-weight: 700;
  direction: rtl;
  text-align: right;
}

.arabic-font-sm {
  font-family: var(--font-family-arabic) !important;
  font-size: 0.875rem;
  direction: rtl;
  text-align: right;
  line-height: 1.5;
}

.arabic-font-base {
  font-family: var(--font-family-arabic) !important;
  font-size: 1rem;
  direction: rtl;
  text-align: right;
  line-height: 1.6;
}

.arabic-font-lg {
  font-family: var(--font-family-arabic) !important;
  font-size: 1.125rem;
  direction: rtl;
  text-align: right;
  line-height: 1.6;
}

.arabic-title {
  font-family: var(--font-family-arabic) !important;
  font-weight: 700;
  font-size: 2rem;
  direction: rtl;
  text-align: right;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.arabic-subtitle {
  font-family: var(--font-family-arabic) !important;
  font-weight: 600;
  font-size: 1.5rem;
  direction: rtl;
  text-align: right;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.arabic-body {
  font-family: var(--font-family-arabic) !important;
  font-weight: 400;
  font-size: 1rem;
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.arabic-input {
  font-family: var(--font-family-arabic) !important;
  direction: rtl;
  text-align: right;
  font-size: 1rem;
  line-height: 1.5;
}

.arabic-textarea {
  font-family: var(--font-family-arabic) !important;
  direction: rtl;
  text-align: right;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
}

.arabic-label {
  font-family: var(--font-family-arabic) !important;
  font-weight: 500;
  direction: rtl;
  text-align: right;
  font-size: 0.875rem;
  line-height: 1.5;
}

.arabic-button {
  font-family: var(--font-family-arabic) !important;
  font-weight: 500;
  direction: rtl;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
}

.arabic-table {
  font-family: var(--font-family-arabic) !important;
  direction: rtl;
}

.arabic-table th {
  font-weight: 600;
  text-align: right;
  font-size: 0.875rem;
}

.arabic-table td {
  font-weight: 400;
  text-align: right;
  font-size: 0.875rem;
  line-height: 1.5;
}

.arabic-badge {
  font-family: var(--font-family-arabic) !important;
  font-weight: 500;
  font-size: 0.75rem;
  direction: rtl;
  text-align: center;
  line-height: 1.4;
}

.mixed-content .arabic {
  direction: rtl;
  display: inline-block;
  font-family: var(--font-family-arabic) !important;
}

.text-arabic {
  font-family: var(--font-family-arabic) !important;
  direction: rtl;
  text-align: right;
}

.language-flags {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.flag-indicator {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: white;
  font-weight: 600;
}

.flag-en {
  background: #007bff;
}

.flag-fr {
  background: #0056b3;
}

.flag-tr {
  background: var(--main-color);
}

.flag-ar {
  background: #28a745;
}

.flag-icon {
  font-size: 1.2rem;
}

.language-preview {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
}

.language-sync {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.75rem;
}

.language-tabs-container {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid #e9ecef;
}

.flag-indicator.has-content {
  background: #27ae60;
  color: white;
  font-weight: 600;
}

.language-progress {
  display: flex;
  gap: 8px;
  align-items: center;
}

.language-form {
  animation: fadeIn 0.5s ease;
}

.language-form[data-lang="ar"] {
  direction: rtl;
  text-align: right;
}

.rtl .logo-img {
  margin-right: auto;
  margin-left: var(--space-12);
}

.rtl .dropdown-item {
  text-align: right !important;
}

/* ============================================================================
   OTHER COMPONENTS
   ============================================================================ */

code {
  padding: var(--space-1) var(--space-4);
}

.ar-font, .ar-font p, .ar-font h1, .ar-font h2, .ar-font h3, .ar-font span {
  font-family: var(--font-family-arabic) !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.password-toggle-icon {
  position: absolute;
  top: 34px;
  right: 12px;
  cursor: pointer;
}

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.mixed-content {
  font-family: var(--font-family-arabic) !important;
  line-height: 1.6;
}

.mixed-content .english {
  direction: ltr;
  display: inline-block;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}

.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.logo-section {
    flex-shrink: 0;
    order: 1;
    cursor: pointer;
}

    .logo-section:hover {
        transform: scale(1.02);
        text-decoration: none;
    }

.logo-main {
    /* Horizontal flex for logo + text */
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all var(--duration-normal) var(--ease-standard);
}

.logo-text {
    color: var(--color-white);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
    text-transform: uppercase;
    user-select: none;
}

.logo-text-subtext {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    color: var(--color-white);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
    text-transform: uppercase;
    user-select: none;
    line-height: 1;
}

.logo-subtext {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.9rem;
    user-select: none;
}


.logo-section:hover .logo-text,
.logo-section:hover .logo-subtext {
    transform: scale(1.02);
}


.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--main-color);
  line-height: 1;
}

.stats-label {
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-mini {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-item {
  font-size: 11px;
  color: #7f8c8d;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-categories {
  color: #28a745;
}

.stat-products {
  color: #ffc107;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6c757d;
}

.section-title {
  color: var(--main-color);
  border-bottom: 2px solid var(--main-color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.base-url {
  color: #6c757d;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.summary-item .label {
  font-weight: 500;
  color: #6c757d;
}

.summary-item .value {
  font-weight: 600;
  color: #495057;
}

.custom-tabs {
  border: none;
  background: transparent;
  justify-content: center;
  gap: 4px;
}

.drag-handle {
  cursor: grab;
  color: #6c757d;
  margin-right: 8px;
}

.drag-handle:hover {
  color: #007bff;
}

.drag-handle:active {
  cursor: grabbing;
}

.parent-info {
  color: #95a5a6;
  font-size: 11px;
  margin-top: 2px;
  display: block;
}

.stat-views {
  color: #3498db;
}

.stat-children {
  color: #e67e22;
}

.stat-date {
  color: #95a5a6;
}

.quick-filters {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  text-decoration: none;
  color: #6c757d;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-btn:hover {
  background: #e9ecef;
  color: #495057;
  text-decoration: none;
  transform: translateY(-1px);
}

.filter-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.filter-btn.active:hover {
  background: #5a6fd8;
  color: white;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#changePasswordErrors ul {
  padding-left: 20px;
  margin: 0;
}

#changePasswordErrors li {
  list-style-type: disc;
}

.save-indicator {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.save-indicator.show {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInRight 0.3s ease;
}

.lang-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.completion-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dee2e6;
  transition: all 0.3s ease;
}

.completion-dot.completed {
  background: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.enhanced-tabs {
  border: none;
  background: transparent;
  gap: 4px;
  padding: 0 1rem;
}

.completion-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dee2e6;
  transition: all 0.3s ease;
}

.completion-indicator.completed {
  background: #28a745;
}

.char-counter {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 500;
  transition: color 0.3s ease;
}

.char-counter.text-warning {
  color: #f39c12 !important;
}

.char-counter.text-danger {
  color: #e74c3c !important;
}

.editor-toolbar {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.settings-toggles {
  background: var(--color-surface);
  border-radius: var(--radius-base);
  padding: var(--space-16);
}

.color-picker-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-picker {
  width: 50px !important;
  height: 50px !important;
  padding: 4px !important;
  cursor: pointer;
}

.current-image {
  max-width: 100%;
  max-height: 180px;
  border-radius: 8px;
  object-fit: cover;
}

.current-icon {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
}

.or-divider {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
}

.sticky-sidebar {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding-right: 8px;
}

.completion-status h6 {
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.rich-editor-container {
  position: relative;
}

.rich-editor-container .mce-tinymce {
  border-radius: var(--radius-base);
  border: 2px solid var(--color-border);
  transition: border-color var(--duration-normal) var(--ease-standard);
}

.rich-editor-container .mce-tinymce:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

.fullscreen-editor-container {
  height: calc(100vh - 120px);
  width: 100%;
}

.fullscreen-rich-editor {
  width: 100%;
  height: 100%;
  border: none;
  resize: none;
}

.fullscreen-editor-controls {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.editor-tools {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.tox .tox-toolbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.tox .tox-toolbar__primary {
  background: transparent;
}

.tox .tox-statusbar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.tox-fullscreen {
  z-index: 9999;
}

.rich-editor-container[data-lang="ar"] .tox-edit-area {
  direction: rtl;
  text-align: right;
}

.editor-loading {
  position: relative;
}

.editor-loading::before {
  background: rgba(var(--color-charcoal-800-rgb, 38, 40, 40), 0.8);
}

.editor-loading::after {
  content: 'Loading editor...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

from {
  transform: scale(0.9);
  opacity: 0;
}

to {
  transform: scale(1);
  opacity: 1;
}

0% {
  box-shadow: 0 0 0 0 rgba(var(--color-teal-500-rgb), 0.4);
}

70% {
  box-shadow: 0 0 0 var(--space-10) rgba(var(--color-teal-500-rgb), 0);
}

100% {
  box-shadow: 0 0 0 0 rgba(var(--color-teal-500-rgb), 0);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-8 {
  gap: var(--space-8);
}

.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}

.p-0 {
  padding: 0;
}

.block {
  display: block;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25;
}

.dropdown-item.active {
    background-color: var(--color-primary);
    color: white;
}

.rich-editor-container:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--color-teal-500-rgb), 0.1);
}

.file-type-icon {
  font-size: var(--font-size-lg);
  margin-right: var(--space-8);
}

.file-type-image {
  color: var(--color-success);
}

.file-type-video {
  color: var(--color-error);
}

.file-type-document {
  color: var(--color-primary);
}

/* header Hi*/
.heading-block {
    text-align: center;
    padding: 2em 0;
    overflow: visible;
    position: relative;
}

    .heading-block h1 {
        display: inline-block;
        position: relative;
        background: #fff;
        padding: 0 20px;
        margin: 0 0 10px;
        z-index: 1;
    }

        .heading-block h1::before {
            content: "";
            position: absolute;
            bottom: 50%;
            left: 50%;
            transform: translateX(-50%);
            width: 100vw;
            max-width: 2000px;
            height: 3px;
            background: var(--main-color);
            z-index: -1;
        }

.heading-block-light h1 {
    background: #dc3545;
    color: #fff;
}

    .heading-block-light h1::before {
        background: #fff;
    }

.heading-block h2 {
    text-align: center;
    padding: 0 40px;
}

/* Heading Block Styles */
@media (min-width: 768px) {
    .heading-block {
        padding: 2em 0;
    }
}

@media (min-width: 992px) {
    .heading-block {
        display: block;
        padding: 4.5em 0 2em;
        margin: 0 auto;
        max-width: 1400px;
    }
}

/* Global h1 styles */
h1 {
    color: var(--main-color);
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

@media (min-width: 992px) {
    h1 {
        font-size: 50px;
        font-weight: 900;
    }
}


.heading-block h1 {
    position: relative;
    display: inline;
    z-index: 2;
}

    .heading-block h1:before {
        content: "";
        width: 100vw;
        height: 3px;
        background: var(--main-color);
        position: absolute;
        bottom: 50%;
        left: 50%;
        transform: translateX(-50%);
        z-index: -1;
    }

.heading-block-light h1:before {
    background: #fff;
}

@media (min-width: 768px) {
    .heading-block h1 {
        max-width: 100%;
    }
}

/* Global h2 styles */
h2 {
    color: #424a54;
    font-weight: 600;
    font-size: 20px;
}

@media (min-width: 992px) {
    h2 {
        font-size: 24px;
    }
}

.heading-block h2 {
    text-align: center;
    padding: 5px 40px
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

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

    to {
        opacity: 1;
  transform: translateY(0);
  }
}

@keyframes ripple {
  to {
        transform: scale(4);
  opacity: 0;
  }
}

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

    100% {
        transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
        transform: translateY(0px);
  }

    50% {
        transform: translateY(-20px);
  }
}

@keyframes slideInRight {
  from {
        transform: translateX(100%);
  }

    to {
        transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
        box-shadow: 0 0 0 0 rgba(var(--color-teal-500-rgb), 0.4);
  }

.h-metodo-nav:after, .h-metodo-nav:before {
        content: "";
  display: block;
  position: absolute;
  }

.h-metodo__intro, .h-metodo__intro p {
        margin-bottom: 20px;
  max-width: 18em;
  }
}

/* ============================================================================
   FONTS
   ============================================================================ */

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
}

/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

@media (max-width: 768px) {
  .modal-xl .modal-body {
        padding: var(--space-16);
  }

    .image-upload-area,
    .icon-upload-area {
        min-height: 120px;
  padding: var(--space-16);
  }

    .upload-placeholder i {
        font-size: var(--font-size-3xl);
  }

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

    .editor-tools {
        flex-direction: column;
  gap: var(--space-4);
  }

    .fullscreen-editor-controls {
        flex-direction: column;
  gap: var(--space-4);
  }

    .modal-header-actions {
        flex-direction: column;
  gap: var(--space-4);
  }
}

@media (min-width: 640px) {
  .container {
        max-width: var(--container-sm);
  }
}

@media (min-width: 1024px) {
  .container {
        max-width: var(--container-lg);
  }
}

@media (min-width: 1280px) {
  .container {
        max-width: var(--container-xl);
  }
}

@media (max-width: 1200px) {
  .admin-nav-menu {
        gap: var(--space-24);
  }

    .admin-nav-link {
        font-size: var(--font-size-sm);
  padding: var(--space-8) var(--space-12);
  }
}

@media (max-width: 992px) {
  .post-form-header h1 {
        font-size: 1.8rem;
  }

    .header-actions {
        flex-direction: column;
  gap: 8px;
  }

    .progress-indicator {
        flex-wrap: wrap;
  gap: 1rem;
  }

    .sticky-sidebar {
        position: static;
  max-height: none;
  }

    .enhanced-tabs .nav-link {
        padding: 8px 12px;
  font-size: 0.85rem;
  }

    .flag-icon {
        font-size: 1rem;
  }

    .lang-name {
        display: none;
  }
}

@media (max-width: 480px) {
  .modal-header-actions {
        flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
  }

    .editor-tools {
        flex-wrap: wrap;
  justify-content: center;
  }

    .custom-tabs .nav-link {
        padding: var(--space-6) var(--space-10);
  font-size: var(--font-size-xs);
  margin-right: var(--space-2);
  }

    .image-upload-area,
    .icon-upload-area {
        min-height: 100px;
  padding: var(--space-12);
  }

    .upload-placeholder i {
        font-size: var(--font-size-2xl);
  }

    .fullscreen-editor-container {
        height: calc(100vh - 80px);
  }
}

@media (prefers-contrast: high) {
  .admin-header {
        border-bottom: 2px solid var(--color-text);
  }

    .admin-nav-link,
    .admin-user-dropdown-btn {
        border: 1px solid var(--color-text);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-header,
    .admin-nav-item,
    .admin-nav-link,
    .admin-user-dropdown-btn {
        animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  }
}

@media print {
  .post-form-header,
    .progress-indicator,
    .save-indicator,
    .header-actions,
    .editor-toolbar,
    .quick-actions-card {
        display: none !important;
  }

    .enhanced-tabs {
        display: none !important;
  }

    .tab-content .tab-pane {
        display: block !important;
  opacity: 1 !important;
  }
}

@media (min-width: 1200px) {
  .admin-user-name span {
        display: inline;
  }
}

@media (max-width: 1199.98px) {
  .admin-user-name span {
        display: none;
  }
}

@media (min-width: 992px) {
  h2 {
        font-size: 24px;
  }
}

@media (max-width: 991.98px) {
  .c-header__nav {
        display: none;
  }

    .burger-wrap {
        display: flex;
  }

    .admin-avatar {
        margin-right: 0;
  }

    
    .c-header .wrapper {
        display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "logo user burger";
  align-items: center;
  gap: var(--space-12);
  height: 60px;
  }

    .logo-section {
        grid-area: logo;
  order: unset;
  }

    .admin-user-section {
        grid-area: user;
  order: unset;
  }

    .burger-wrap {
        grid-area: burger;
  order: unset;
  }

    .admin-nav-mobile {
        grid-column: 1 / -1;
  grid-row: 2;
  order: unset;
  }
}

@media (max-width: 767.98px) {
    .c-header .wrapper, .c-header__hamburger {
        height: 55px;
        padding: 0 var(--space-6);
    }

    .logo-img {
        height: 35px;
    }

    .logo-text {
        font-size: var(--font-size-xl);
    }

    .admin-user-dropdown-btn {
        padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-xs);
  }

    .admin-avatar {
        width: 20px;
        height: 20px;
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 479.98px) {
    .c-header .wrapper, .c-header__hamburger {
        height: 50px;
        padding: 0 var(--space-10);
        gap: var(--space-8);
    }

    .logo-img {
        height: 30px;
    }

    .logo-text {
        font-size: var(--font-size-lg);
    }

    .admin-user-dropdown-btn {
        padding: var(--space-2) var(--space-6);
    }
}

@media (max-width: 576px) {
  .custom-tabs .nav-link {
        padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-sm);
  }

    .upload-placeholder span {
        font-size: var(--font-size-sm);
  }

    .upload-placeholder small {
        font-size: var(--font-size-xs);
  }
}

@media (prefers-reduced-motion:reduce) {
  .h-soluzioni_bg {
        transition: none;
  }
}


/* Footer */
.c-footer {
    background: #424a54;
    position: relative;
    text-align: center
}

    .c-footer p {
        color: #fff;
        font-size: 16px
    }

.c-footer__wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 15px
}

@media (min-width: 1200px) {
    .c-footer__wrapper {
        padding: 50px 15px;
        display: -ms-flexbox;
        display: flex
    }

        .c-footer__wrapper > div {
            -ms-flex-preferred-size: 50%;
            flex-basis: 50%
        }
}

@media (min-width: 992px) {
    .c-footer__info {
        padding: 0 15px;
        border-right: 2px solid #fff
    }
}

.c-footer__logo {
    width: 230px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
    position: relative
}

@media (min-width: 768px) {
    .c-footer__logo {
        width: 180px
    }
}

@media (min-width: 992px) {
    .c-footer__logo {
        width: 220px
    }
}

@media (min-width: 1200px) {
    .c-footer__logo {
        width: 270px
    }
}

/* ============================================================================
   MODERN FOOTER STYLES
   ============================================================================ */

/* Modern Footer Base */
.footer-modern {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, var(--color-primary) 100%);
    overflow: hidden;
}

    .footer-modern::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #d8262f, #ff6b6b, #d8262f);
        background-size: 200% 100%;
        animation: gradientShift 3s ease infinite;
    }

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 0%;
    }
}

.footer-main {
    position: relative;
    z-index: 1;
}

/* Footer Brand */
.footer-brand img {
    transition: transform 0.3s ease;
    display: inline-block;
}

.footer-brand:hover img {
    transform: scale(1.05);
}

.footer-brand h3 {
    margin: 0;
}

/* Footer Headings */
.footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

    .footer-heading::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, #d8262f, #ff6b6b);
        border-radius: 2px;
    }

/* RTL Support for Heading */
[dir="rtl"] .footer-heading::after {
    left: auto;
    right: 0;
}

/* Center heading underline on mobile */
@media (max-width: 767px) {
    .footer-heading {
        display: block;
        text-align: center;
    }

        .footer-heading::after {
            left: 50%;
            transform: translateX(-50%);
        }

    [dir="rtl"] .footer-heading::after {
        right: 50%;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Social Media Icons */
.social-links-modern {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .social-icon::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: linear-gradient(135deg, #d8262f, #ff6b6b);
        transform: translate(-50%, -50%);
        transition: all 0.4s ease;
        z-index: 0;
    }

    .social-icon i {
        position: relative;
        z-index: 1;
    }

    .social-icon:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(216, 38, 47, 0.4);
        border-color: var(--main-color);
        color: #fff;
    }

        .social-icon:hover::before {
            width: 100%;
            height: 100%;
        }

/* Footer Links */
.footer-links {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-link-item {
    text-align: center;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .footer-links {
        flex-direction: column;
    }

    .footer-link-item {
        text-align: left;
        margin-bottom: 0.5rem;
    }

    [dir="rtl"] .footer-link-item {
        text-align: right;
    }
}

/* Horizontal Layout for Mobile */
@media (max-width: 767px) {
    .footer-links-horizontal {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 15px;
    }

    .footer-link-item {
        margin-bottom: 0;
        position: relative;
        padding-right: 15px;
    }

        .footer-link-item::after {
            content: '|';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.3);
        }

        .footer-link-item:last-child::after {
            display: none;
        }

    [dir="rtl"] .footer-link-item {
        padding-right: 0;
        padding-left: 15px;
    }

        [dir="rtl"] .footer-link-item::after {
            right: auto;
            left: 0;
        }
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

    .footer-link i {
        transition: transform 0.3s ease;
        opacity: 0;
    }

/* Hide icons on mobile for cleaner look */
@media (max-width: 767px) {
    .footer-link i {
        display: none;
    }
}

/* RTL Support for Links */
[dir="rtl"] .footer-link i {
    margin-right: 0;
    margin-left: 8px;
    transform: rotate(180deg);
}

.footer-link:hover {
    color: #fff;
    padding-left: 5px;
}

[dir="rtl"] .footer-link:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-link:hover i {
    opacity: 1;
    transform: translateX(3px);
}

[dir="rtl"] .footer-link:hover i {
    transform: translateX(-3px) rotate(180deg);
}

@media (max-width: 767px) {
    .footer-link:hover {
        padding-left: 0;
    }

    [dir="rtl"] .footer-link:hover {
        padding-right: 0;
    }
}

/* World Map Section */
.footer-world {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

    .footer-world:hover {
        background: rgba(255, 255, 255, 0.05);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .footer-world h4 {
        font-size: 1.5rem;
    }

@media (max-width: 767px) {
    .footer-world h4 {
        font-size: 1.25rem;
    }
}

.world-map-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.world-map {
    max-width: 100%;
    height: auto;
    filter: brightness(0.8) contrast(1.2);
    transition: all 0.5s ease;
}

.footer-world:hover .world-map {
    filter: brightness(1) contrast(1.3);
    transform: scale(1.05);
}

/* Copyright Section */
.footer-copyright {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.footer-copy-link {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

    .footer-copy-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: #fff;
        transition: width 0.3s ease;
    }

[dir="rtl"] .footer-copy-link::after {
    left: auto;
    right: 0;
}

.footer-copy-link:hover::after {
    width: 100%;
}

.footer-copy-link:hover {
    opacity: 0.8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d8262f, #ff6b6b);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(216, 38, 47, 0.4);
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(216, 38, 47, 0.6);
    }

/* RTL Support for Back to Top */
[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 991px) {
    .footer-heading {
        font-size: 16px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .footer-world {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding: 3rem 0 !important;
    }

    .footer-brand {
        text-align: center !important;
        margin-bottom: 2rem;
    }

    .social-links-modern {
        justify-content: center !important;
    }

    .footer-links {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-link {
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    [dir="rtl"] .back-to-top {
        right: auto;
        left: 20px;
    }

    .footer-world {
        margin-top: 2rem;
    }
}

@media (max-width: 575px) {
    .footer-copyright {
        font-size: 13px;
        text-align: center !important;
    }

        .footer-copyright .col-md-6 {
            text-align: center !important;
            margin-bottom: 10px;
        }

            .footer-copyright .col-md-6:last-child {
                margin-bottom: 0;
            }

    .footer-copy-link {
        display: inline-block;
        margin: 5px 8px;
    }

    .footer-brand img {
        height: 70px;
        width: 70px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

/* ============================================================================
   RTL TEXT ALIGNMENT FIXES
   ============================================================================ */

[dir="rtl"] .text-md-start {
    text-align: right !important;
}

[dir="rtl"] .text-md-end {
    text-align: left !important;
}

[dir="rtl"] .text-lg-start {
    text-align: right !important;
}

@media (max-width: 767px) {
    [dir="rtl"] .text-md-start,
    [dir="rtl"] .text-md-end,
    [dir="rtl"] .text-lg-start {
        text-align: center !important;
    }
}
