@charset "UTF-8";
/* ==========================================================================
  فهرس ملف التنسيقات (STYLE.SCSS INDEX)
  ==========================================================================
  01. الخطوط (FONTS)
  02. المتغيرات والسمات (VARIABLES & THEMES)
  03. إعادة الضبط والأساسيات (RESET & BASE STYLES)
  04. التخطيط العام (GLOBAL LAYOUT)
  05. فئات الألوان المساعدة (COLOR UTILITIES)
  06. شريط ماك (MAC DOCK & REVEAL TRIGGER)
  07. النوافذ المنبثقة والإشعارات (POPUPS, TOASTS & RECOMMENDATIONS)
  08. عناصر قائمة الأدوات (TOOL LIST ITEMS & METRICS)
  09. النوافذ المشتركة (SHARED MODALS - WORKSPACE, SEARCH, RATING)
  10. إعدادات البوب أب وبطاقة الاستخدام (SETTINGS & USAGE WIDGETS)
  11. أزرار تسجيل الدخول (AUTHENTICATION UI)
  12. تنسيقات لوحة التحكم (DASHBOARD ISOLATED STYLES)
      - Header & General
      - Widgets (Promo, Affiliate, Chart, Early Access)
      - Recent Activity & Notifications Detail
      - Modals (Dash Promo)
  13. التجاوب مع الشاشات (RESPONSIVE DESIGN - MEDIA QUERIES)
  ========================================================================== */
/* =========================================
   01. الخطوط (FONTS)
   ========================================= */
@font-face {
  font-family: "GE SS Unique Light";
  src: url("/../font/GE_SS_Unique_Light.ttf") format("truetype");
}
@font-face {
  font-family: "Alice";
  src: url("/../font/Alice-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Tajawal";
  src: url("/../font/Tajawal-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "ComingSoon";
  src: url("/../font/ComingSoon-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "jersey-m54";
  src: url("/../font/Jersey-M54.ttf") format("truetype");
}
@font-face {
  font-family: "DoppioOne";
  src: url("/../font/DoppioOne-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "digital";
  src: url("/../font/digital-7.ttf") format("truetype");
}
@font-face {
  font-family: "Play";
  src: url("/../font/Play-Regular.ttf") format("truetype");
}
.num {
  font-family: "Jersey-M54";
}

/* =========================================
   02. المتغيرات والسمات (VARIABLES & THEMES)
   ========================================= */
:root {
  --primary-color: #f46a25;
  --primary-gradient-end: color-mix(in srgb, var(--primary-color) 75%, white 25%);
  --primary-gradient-dark: color-mix(in srgb, var(--primary-color) 80%, black 20%);
  --primary-hover: color-mix(in srgb, var(--primary-color) 85%, black 15%);
  --primary-light: color-mix(in srgb, var(--primary-color) 12%, transparent);
  --primary-shadow: color-mix(in srgb, var(--primary-color) 25%, transparent);
  --primary-glow: color-mix(in srgb, var(--primary-color) 20%, transparent);
  --danger: #f42525;
  --success: #22c33c;
  --success-light: #d4f7d9;
  --blue: #25aff4;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --warning: #f59e0b;
  --bg-body: #f6f5f4;
  --bg-gradient: radial-gradient(circle at 50% 50%, #ffffff 0%, #f6f5f4 100%);
  --text-main: #2d2725;
  --text-muted: #8c7b73;
  --border-color: #e9e4e2;
  --card-bg: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --dock-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.03);
  --shadow-lg: 0 20px 50px rgba(140, 123, 115, 0.15);
  --icon-blue-bg: #f5fcff;
  --icon-green-bg: #d4f7d9;
  --icon-danger-bg: #fef5f5;
  --icon-purple-bg: #f5f3ff;
  --icon-pink-bg: #fdf2f8;
  --icon-orange-bg: #fef8f5;
  --icon-yellow-bg: #fefce8;
  --icon-indigo-bg: #eef2ff;
  --primary-rgb: var(--glass-bg);
  --ai-color: var(--purple);
}

[data-theme=sunmoon] {
  --bg-body: #161412;
  --bg-gradient: radial-gradient(circle at 50% 50%, #2d2725 0%, #161412 100%);
  --text-main: #f4f2f1;
  --text-muted: #9e9089;
  --border-color: #433837;
  --card-bg: #2d2725;
  --glass-bg: rgba(45, 39, 37, 0.85);
  --dock-bg: rgba(22, 20, 18, 0.75);
  --glass-border: rgba(118, 104, 96, 0.3);
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.2);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --primary-light: color-mix(in srgb, var(--primary-color) 20%, transparent);
  --success-light: rgba(34, 195, 60, 0.15);
  --icon-blue-bg: rgba(37, 175, 244, 0.15);
  --icon-green-bg: rgba(34, 195, 60, 0.15);
  --icon-danger-bg: rgba(244, 37, 37, 0.15);
  --icon-purple-bg: rgba(139, 92, 246, 0.15);
  --icon-pink-bg: rgba(236, 72, 153, 0.15);
  --icon-orange-bg: rgba(244, 106, 37, 0.15);
  --icon-yellow-bg: rgba(245, 158, 11, 0.15);
  --icon-indigo-bg: rgba(79, 70, 229, 0.15);
  --primary-rgb: var(--glass-bg);
}

[data-theme=dark] {
  --bg-body: #13151a;
  --bg-gradient: radial-gradient(circle at 50% 50%, #1a1d25 0%, #13151a 100%);
  --text-main: #f8f9fa;
  --text-muted: #adb5bd;
  --border-color: #323644;
  --card-bg: #1a1d25;
  --glass-bg: rgba(26, 29, 37, 0.85);
  --dock-bg: rgba(19, 21, 26, 0.75);
  --glass-border: rgba(50, 54, 68, 0.3);
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.2);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --primary-light: color-mix(in srgb, var(--primary-color) 20%, transparent);
  --success-light: rgba(16, 185, 129, 0.15);
  --icon-blue-bg: rgba(59, 130, 246, 0.15);
  --icon-green-bg: rgba(16, 185, 129, 0.15);
  --icon-danger-bg: rgba(239, 68, 68, 0.15);
  --icon-purple-bg: rgba(139, 92, 246, 0.15);
  --icon-pink-bg: rgba(236, 72, 153, 0.15);
  --icon-orange-bg: rgba(245, 158, 11, 0.15);
  --icon-yellow-bg: rgba(245, 158, 11, 0.15);
  --icon-indigo-bg: rgba(79, 70, 229, 0.15);
  --primary-rgb: var(--glass-bg);
}

/* =========================================
   03. إعادة الضبط والأساسيات (RESET & BASE STYLES)
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: "Tajawal", "Inter", system-ui, sans-serif;
  outline: none;
}

body {
  background-color: var(--bg-body);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.noneScroll {
  overflow: hidden;
}

.lucide {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lucide-filled {
  fill: currentColor;
}

/* =========================================
   04. التخطيط العام (GLOBAL LAYOUT)
   ========================================= */
.app-layout-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow-y: auto;
}

.page-content {
  flex-grow: 1;
  padding: 0px 25px 125px;
  /*  overflow-y: auto;
    scrollbar-width: none;
  -webkit-overflow-scrolling: touch;*/
  margin: 0 auto;
  width: 100%;
  transition: opacity 0.3s ease-in-out;
  max-width: 1950px;
}

.page-content::-webkit-scrollbar {
  /*    display: none;*/
}

.page-container {
  width: 100%;
  position: relative;
  max-width: 1800px;
  margin: auto;
}

.logo-app {
  background-image: url("../../assets/favicon/logo-2.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 56px;
  height: 56px;
  display: flex;
}

.logo-app:hover {
  background-image: url("../../assets/favicon/logo.png");
}

/* =========================================
05. فئات الألوان المساعدة (COLOR UTILITIES)
========================================= */
.color-primary {
  color: var(--primary-color);
}

.bg-primary {
  background: var(--primary-light);
}

.color-blue {
  color: var(--blue);
}

.bg-blue {
  background: var(--icon-blue-bg);
}

.color-green {
  color: var(--success);
}

.bg-green {
  background: var(--icon-green-bg);
}

.color-purple {
  color: var(--purple);
}

.bg-purple {
  background: var(--icon-purple-bg);
}

.color-pink {
  color: var(--pink);
}

.bg-pink {
  background: var(--icon-pink-bg);
}

.color-danger {
  color: var(--danger);
}

.bg-danger {
  background: var(--icon-danger-bg);
}

.color-yellow {
  color: #eab308;
}

.bg-yellow {
  background: var(--icon-yellow-bg);
}

.color-indigo {
  color: #4f46e5;
}

.bg-indigo {
  background: var(--icon-indigo-bg);
}

.c-bg-orange {
  background: var(--icon-orange-bg, #fef8f5);
}

.c-text-orange {
  color: #f46a25;
}

.c-bg-blue {
  background: var(--icon-blue-bg, #f5fcff);
}

.c-text-blue {
  color: #25aff4;
}

.c-bg-green {
  background: var(--icon-green-bg, #d4f7d9);
}

.c-text-green {
  color: #22c33c;
}

.c-bg-purple {
  background: var(--icon-purple-bg, #f5f3ff);
}

.c-text-purple {
  color: #8b5cf6;
}

.c-bg-pink {
  background: var(--icon-pink-bg, #fdf2f8);
}

.c-text-pink {
  color: #ec4899;
}

.c-bg-yellow {
  background: var(--icon-yellow-bg, #fefce8);
}

.c-text-yellow {
  color: #eab308;
}

.c-bg-indigo {
  background: var(--icon-indigo-bg, #eef2ff);
}

.c-text-indigo {
  color: #4f46e5;
}

.c-bg-primary {
  background: var(--primary-light);
}

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

/* =========================================
06. شريط ماك (MAC DOCK & REVEAL TRIGGER)
========================================= */
.mac-dock-container {
  position: fixed;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 100;
  padding: 0 16px;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mac-dock-container.dock-hidden {
  transform: translateY(150%);
}

.mac-dock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--dock-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  transition: all 0.3s;
}

.app-logo-dock {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 0 16px;
  color: var(--text-main);
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.app-logo-dock:hover {
  opacity: 0.8;
}

.app-logo-dock .lucide {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
  stroke-width: 2.5;
}

.logo-text {
  display: none;
  font-family: "Play";
}
.logo-text span {
  font-family: "Play";
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
  outline: none;
  flex-shrink: 0;
}

.dock-item .lucide {
  width: 26px;
  height: 26px;
  transition: all 0.3s ease;
}

@media (hover: hover) {
  .dock-item-tool:hover {
    transform: translateY(-12px) scale(1.15);
    color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 10px 25px var(--primary-shadow);
    z-index: 2;
  }
  .dock-item:hover .dock-tooltip {
    opacity: 1;
    transform: translateY(0);
  }
}
.dock-item.active {
  color: var(--primary-color);
  background: var(--primary-light);
  transform: translateY(-5px);
}

.dock-item.active::after {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transition: all 0.3s;
}

.dock-item.temp-item {
  border: 1px dashed var(--primary-color);
  background: var(--primary-light);
}

.dock-item.tool-active-item {
  border: 2px dashed var(--primary-color);
  background: var(--card-bg);
  box-shadow: 0 4px 15px var(--primary-shadow);
}

.dock-item.tool-active-item::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: var(--success);
  border: 2px dashed var(--dock-bg);
  border-radius: 50%;
}

/* Micro Winglet Satellite Buttons */
.dock-winglet-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  flex-shrink: 0;
  margin: 0 2px;
  padding: 0;
}

.dock-winglet-btn .lucide {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dock-winglet-btn:hover {
  color: var(--primary-color);
  background: var(--card-bg);
  border-color: var(--primary-color);
  transform: translateY(-4px) scale(1.12);
  box-shadow: 0 6px 16px var(--primary-shadow);
}

.dock-winglet-btn:hover .dock-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.dock-winglet-btn.search-winglet-btn {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: rgba(244, 106, 37, 0.25);
}

.dock-winglet-btn.more-winglet-btn:hover {
  color: #a855f7;
  border-color: #a855f7;
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.3);
}

.dock-winglet-btn.collapse-winglet-btn {
  width: 30px;
  height: 30px;
  opacity: 0.75;
  background: transparent;
  border-color: transparent;
}

.dock-winglet-btn.collapse-winglet-btn .lucide {
  width: 15px;
  height: 15px;
}

.dock-winglet-btn.collapse-winglet-btn:hover {
  opacity: 1;
  color: var(--text-main);
  background: var(--bg-hover);
  border-color: var(--border-color);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dock-divider {
  width: 1px;
  height: 32px;
  background: var(--border-color);
  border-radius: 2px;
  margin: 0 4px;
  flex-shrink: 0;
}

.dock-tooltip {
  position: absolute;
  top: -45px;
  background: var(--text-main);
  color: var(--bg-body);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  transform: translateY(10px);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dock-tooltip::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0;
  border-style: solid;
  border-color: var(--text-main) transparent transparent transparent;
}

.dock-reveal-trigger {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: var(--dock-bg);
  border: 1px solid var(--glass-border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.dock-reveal-trigger.visible {
  opacity: 1;
  visibility: visible;
}

.dock-reveal-trigger:hover {
  color: var(--primary-color);
  height: 32px;
  background: var(--card-bg);
}

/* =========================================
07. النوافذ المنبثقة والإشعارات (POPUPS, TOASTS & RECOMMENDATIONS)
========================================= */
.popups-container {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: 90%;
  max-width: 420px;
  pointer-events: none;
}

.popup-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: absolute;
  left: 0;
  right: 0;
  max-height: 65vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.popup-panel::-webkit-scrollbar {
  display: none;
}

.popup-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.popups-container .popup-panel {
  bottom: 0;
}

.popup-header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: normal;
  gap: 12px;
}

.popup-header.p {
  justify-content: space-between;
}

.popup-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.popup-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.popup-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.popup-header-action {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.popup-header-action:hover {
  background: var(--primary-color);
  color: white;
}

.popup-search-area {
  position: sticky;
  top: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  z-index: 5;
  margin: -8px -8px 12px -8px;
  padding: 8px;
}

.popup-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.popup-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

[dir=rtl] .popup-search-icon {
  left: auto;
  right: 12px;
}

.popup-search-input {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 12px 12px 38px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

[dir=rtl] .popup-search-input {
  padding: 12px 38px 12px 12px;
}

.popup-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.popup-section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  margin: 16px 8px 8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toast-msg {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-main);
  color: var(--bg-body);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes slideDown {
  from {
    top: -50px;
    opacity: 0;
  }
  to {
    top: 20px;
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    top: 20px;
    opacity: 1;
  }
  to {
    top: -50px;
    opacity: 0;
  }
}
.recommendation-toast {
  position: fixed;
  bottom: max(110px, 90px + env(safe-area-inset-bottom));
  right: 24px;
  width: 320px;
  background: var(--card-bg);
  border: 1px solid var(--primary-light);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 95;
  transform: translateX(150%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 16px;
  pointer-events: none;
}

[dir=rtl] .recommendation-toast {
  right: auto;
  left: 24px;
  transform: translateX(-150%);
}

.recommendation-toast.show {
  transform: translateX(0);
  pointer-events: auto;
}

.rec-toast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.rec-toast-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 8px;
}

.rec-toast-header button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  transition: color 0.2s;
}

.rec-toast-header button:hover {
  color: var(--danger);
}

.rec-toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  background: var(--bg-body);
  padding: 12px;
  border-radius: 12px;
  transition: background 0.2s;
  border: 1px solid transparent;
}

.rec-toast-content:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
}

.rec-toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rec-toast-info {
  flex-grow: 1;
}

.rec-toast-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.rec-toast-info p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.rec-toast-arrow {
  color: var(--primary-color);
  width: 18px;
  height: 18px;
}

[dir=rtl] .rec-toast-arrow {
  transform: rotate(180deg);
}

.primary-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

/* =========================================
08. عناصر قائمة الأدوات (TOOL LIST ITEMS & METRICS)
========================================= */
.tool-list-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  margin-bottom: 8px;
  border: 1px solid transparent;
}

.tool-list-item:hover, .tool-list-item:active {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.tool-list-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline-end: 16px;
  flex-shrink: 0;
}

.tool-list-info {
  flex-grow: 1;
}

.tool-list-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

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

.tool-list-cost {
  font-size: 11px;
  background: var(--bg-body);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.tool-list-pin {
  background: transparent;
  border: none;
  color: var(--border-color);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s;
  opacity: 0;
}

.tool-list-item:hover .tool-list-pin {
  opacity: 1;
  color: var(--text-muted);
}

.tool-list-pin.pinned {
  opacity: 1;
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
}

.tool-list-pin.pinned svg {
  fill: var(--warning);
}

.tool-list-pin:hover {
  background: var(--bg-body);
  color: var(--warning);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .tool-list-pin {
    opacity: 1;
  }
}
.tool-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.tool-metric-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.tool-metric-item.rateable {
  cursor: pointer;
  transition: color 0.2s;
}

.tool-metric-item.rateable:hover {
  color: var(--warning);
}

.tool-metric-item svg {
  width: 14px;
  height: 14px;
}

.tool-lock-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: white;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  z-index: 5;
}

[dir=rtl] .tool-lock-icon {
  right: auto;
  left: 12px;
}

/* =========================================
09. النوافذ المشتركة (SHARED MODALS - WORKSPACE, SEARCH, RATING)
========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--card-bg);
  width: 100%;
  max-width: 550px;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transform: scale(0.95);
  transition: transform 0.3s;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.modal-content::-webkit-scrollbar {
  display: none;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: sticky;
  top: -24px;
  background: var(--card-bg);
  padding: 24px 0 16px;
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
  margin-top: -24px;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.close-modal {
  background: var(--bg-body);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.close-modal:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.close-modal.hidden {
  display: none;
}

/* Workspace Selectors */
.ws-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.ws-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-body);
  position: relative;
  overflow: hidden;
}

.ws-card:hover, .ws-card:active {
  border-color: var(--primary-color);
  background: var(--card-bg);
}

.ws-card.active {
  border-color: var(--primary-color);
  background: var(--primary-light);
  box-shadow: 0 4px 12px var(--primary-shadow);
}

.ws-card.active::before {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-color);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

[dir=rtl] .ws-card.active::before {
  right: auto;
  left: 10px;
}

.ws-card .lucide {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  color: var(--text-muted);
  transition: color 0.2s;
  margin-left: auto;
  margin-right: auto;
}

.ws-card.active .lucide {
  color: var(--primary-color);
}

.ws-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.ws-card p {
  font-size: 11px;
  color: var(--text-muted);
}

.custom-ws-section {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.input-group input[type=text] {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.input-group input[type=text]:focus {
  border-color: var(--primary-color);
}

.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.cat-select-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.cat-select-card:hover {
  background: var(--card-bg);
  border-color: var(--primary-color);
}

.cat-select-card.selected {
  background: var(--primary-light);
  border-color: var(--primary-color);
}

.cat-select-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  color: var(--text-muted);
}

.cat-select-card.selected .cat-select-icon {
  color: var(--primary-color);
}

.cat-select-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.cat-select-card.selected::after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-weight: bold;
  font-size: 14px;
}

[dir=rtl] .cat-select-card.selected::after {
  right: auto;
  left: 12px;
}

.save-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s;
}

.save-btn:active {
  background: var(--primary-hover);
  transform: scale(0.98);
}

/* Search Modal */
.search-modal .modal-content {
  max-width: 650px;
  padding: 0;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
}

.search-input-area {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.search-input-area .lucide {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.search-input-area input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 18px;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}

.search-input-area input::placeholder {
  color: var(--text-muted);
}

.search-results {
  max-height: 450px;
  overflow-y: auto;
  padding: 12px;
}

.search-results::-webkit-scrollbar {
  display: none;
}

.no-results {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

/* Rating Modal */
.rating-feedback-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 14px;
  font-family: inherit;
  font-size: 13px;
  margin-bottom: 16px;
  background: var(--bg-body);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.rating-feedback-input:focus {
  border-color: var(--primary-color);
}

.star-icon {
  width: 32px;
  height: 32px;
  color: var(--border-color);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.star-icon.active {
  color: var(--warning);
  fill: var(--warning);
}

.star-icon:hover {
  transform: scale(1.2);
}

/* =========================================
10. إعدادات البوب أب وبطاقة الاستخدام (SETTINGS & USAGE WIDGETS)
========================================= */
.popup-settings-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-body);
  padding: 12px;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

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

.settings-group {
  display: flex;
  gap: 4px;
  background: var(--card-bg);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.setting-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.setting-btn .lucide {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

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

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
}

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

.colors-list {
  display: flex;
  gap: 8px;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--card-bg);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.color-dot:hover, .color-dot.active {
  transform: scale(1.2);
}

.color-input-wrapper {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--card-bg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-input-wrapper input[type=color] {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  border: none;
  opacity: 0;
}

.color-input-wrapper .lucide {
  width: 14px;
  height: 14px;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.usage-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

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

.usage-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.progress-container {
  width: 100%;
  height: 8px;
  background-color: var(--bg-body);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 10px;
  width: 75%;
  transition: width 1s ease-in-out, background 0.3s;
}

.usage-stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

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

.stat-item span:first-child {
  color: var(--text-muted);
  font-size: 11px;
}

.stat-item span:last-child {
  font-weight: 800;
  color: var(--text-main);
  font-size: 16px;
}

.stat-item.remaining span:last-child {
  color: var(--primary-color);
}

.app-version {
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 16px;
  font-family: monospace;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-body);
  transition: transform 0.2s;
  z-index: 10;
}

[dir=rtl] .notification-badge {
  right: auto;
  left: -4px;
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
}

.new-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 10px;
  z-index: 10;
  animation: pulseNew 2s infinite;
  pointer-events: none;
}

[dir=rtl] .new-badge {
  left: auto;
  right: 16px;
}

@keyframes pulseNew {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 37, 37, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(244, 37, 37, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 37, 37, 0);
  }
}
/* =========================================
11. أزرار تسجيل الدخول (AUTHENTICATION UI)
========================================= */
.btn-auth {
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-auth.login {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px var(--primary-shadow);
}

.btn-auth.login:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-shadow);
}

.btn-auth.register {
  background: var(--bg-body);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-auth.register:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.auth-required-item {
  display: flex;
}

/* =========================================
12. تنسيقات لوحة التحكم (DASHBOARD ISOLATED STYLES)
========================================= */
/* --- Header & General --- */
.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.ws-title-group h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  line-height: 1.2;
}

.ws-title-group p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 6px 0 0 0;
}

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

.icon-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  box-shadow: var(--shadow-sm);
  outline: none;
  padding: 0;
}

.icon-action-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.icon-action-btn svg {
  width: 20px;
  height: 20px;
}

.search-btn-wrapper {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 4px 12px 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  height: 42px;
}

[dir=rtl] .search-btn-wrapper {
  padding: 4px 4px 4px 16px;
}

.search-btn-wrapper:hover {
  border-color: var(--primary-color);
}

.search-btn-wrapper .icon-action-btn {
  box-shadow: none;
  border: none;
  background: transparent;
  width: 34px;
  height: 34px;
}

.search-btn-wrapper span.placeholder {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.search-shortcut {
  display: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-body);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-inline-start: 8px;
  font-family: monospace;
}

@media (min-width: 768px) {
  .search-shortcut {
    display: inline-block;
  }
}
.credits-badge-main {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 16px;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  height: 42px;
}

.credits-badge-main svg {
  color: var(--primary-color);
  width: 18px;
  height: 18px;
}

.workspace-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid var(--primary-shadow);
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.2s;
  height: 42px;
}

.workspace-badge:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Widgets (Promo, Affiliate, Chart, Early Access) --- */
.dashboard-widgets {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 16px;
  margin-bottom: 32px;
  align-items: stretch;
  margin-top: 20px;
}

.promo-widget {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border-radius: 20px;
  padding: 24px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--primary-shadow);
  min-height: 180px;
}

.promo-widget::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -50%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.promo-widget h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px 0;
  z-index: 2;
}

.promo-widget p {
  font-size: 13px;
  opacity: 0.9;
  margin: 0 0 16px 0;
  z-index: 2;
  max-width: 85%;
  line-height: 1.6;
}

.promo-btn {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  width: max-content;
  z-index: 2;
  transition: transform 0.2s ease;
  font-family: inherit;
}

.promo-btn:hover {
  transform: scale(1.05);
}

.promo-widget-empty {
  background: var(--bg-body);
  border: 2px dashed var(--border-color);
  border-radius: 20px;
  padding: 24px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 180px;
  text-align: center;
  align-items: center;
  box-shadow: none;
}

.promo-widget-empty h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--text-main);
}

.promo-widget-empty p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px 0;
  max-width: 80%;
  line-height: 1.6;
}

.promo-btn-empty {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  width: max-content;
  transition: transform 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.promo-btn-empty:hover {
  transform: scale(1.05);
  background: var(--primary-hover);
}

.affiliate-widget {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.affiliate-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.affiliate-header h3 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  margin: 0;
}

.affiliate-chart-box {
  flex: 1;
  border-inline-start: 1px dashed var(--border-color);
  padding-inline-start: 16px;
}

.affiliate-header h3 svg {
  color: var(--primary-color);
  width: 18px;
  height: 18px;
}

.affiliate-balance-area {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.aff-earn {
  color: var(--text-main);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  margin: 0;
}

.aff-growth-badge {
  background: var(--success-light);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.affiliate-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.aff-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aff-stat span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.aff-stat strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.affiliate-footer {
  display: flex;
  gap: 12px;
  align-items: center;
}

.affiliate-link-box {
  flex-grow: 1;
  display: flex;
  align-items: center;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 6px;
}

.affiliate-link-box input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  font-family: monospace;
  direction: ltr;
  text-align: left;
  width: 100%;
}

.aff-copy-btn {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.aff-copy-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.aff-withdraw-btn {
  background: var(--text-main);
  color: var(--bg-body);
  border: none;
  padding: 0 20px;
  height: 48px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: inherit;
}

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

/* --- Affiliate Chart Bar Styles --- */
.aff-chart-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
}

.aff-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  position: relative;
}

.aff-bar {
  width: 100%;
  max-width: 12px;
  background: var(--primary-light);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease, background 0.2s;
  cursor: pointer;
}

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

.aff-bar-tooltip {
  position: absolute;
  top: -25px;
  background: var(--text-main);
  color: var(--bg-body);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  white-space: nowrap;
}

.aff-bar-container:hover .aff-bar-tooltip {
  opacity: 1;
  visibility: visible;
  top: -30px;
}

/* --- Early Access Styles --- */
.early-access-widget {
  background: linear-gradient(145deg, #1e1e2d, #13151a);
  border: 1px solid #323644;
  border-radius: 20px;
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
}

.ea-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ea-header h3 {
  display: flex;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.ea-badge {
  background: var(--warning);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

/* --- Recent Activity & Notifications Detail --- */
.dash-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin: 24px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-section-title i {
  color: var(--primary-color);
}

.recent-tools-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  padding-top: 5px;
  flex-wrap: wrap;
}

.recent-tools-row::-webkit-scrollbar {
  display: none;
}

.recent-tool-chip {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.recent-tool-chip:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.recent-work-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
}

.work-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
}

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

.work-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-info h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.work-info p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

/* --- Empty States (حالة البدء) --- */
.empty-state-box {
  text-align: center;
  padding: 24px;
  background: var(--bg-body);
  border-radius: 12px;
  border: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.empty-state-box i {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  opacity: 0.7;
}

.empty-state-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* --- Notif Details --- */
.notif-detail-view {
  padding: 12px 0;
  animation: fade-in 0.3s;
}

.notif-back-btn {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.notif-back-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.notif-d-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.notif-d-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.notif-d-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-body);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* --- Tool Cards --- */
.tools-filter-header {
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.tool-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.tool-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.tool-favorite-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  opacity: 0;
  padding: 0;
}

.tool-card:hover .tool-favorite-btn {
  opacity: 1;
}

.tool-favorite-btn:hover {
  background: var(--bg-body);
  color: var(--warning);
}

.tool-favorite-btn.active {
  opacity: 1;
  color: var(--warning);
}

.tool-favorite-btn.active svg {
  fill: var(--warning);
}

.tool-card-cost {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--bg-body);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.tool-card-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-main);
}

.tool-card-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* --- Modals (Dash Workspace & Dash Promo) --- */
.dash-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 16px;
}

.dash-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.dash-modal-content {
  background: var(--card-bg);
  width: 100%;
  max-width: 550px;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transform: scale(0.95);
  transition: transform 0.3s;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.dash-modal-content::-webkit-scrollbar {
  display: none;
}

.dash-modal-overlay.active .dash-modal-content {
  transform: scale(1);
}

.dash-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: sticky;
  top: -24px;
  background: var(--card-bg);
  padding: 24px 0 16px;
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
  margin-top: -24px;
}

.dash-modal-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.dash-close-modal {
  background: var(--bg-body);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.dash-close-modal:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.dash-save-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s;
}

/* --- Promo Modal --- */
.dash-promo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dash-promo-modal.active {
  display: flex;
  opacity: 1;
}

.promo-modal-content {
  background: linear-gradient(135deg, var(--card-bg), var(--bg-body));
  width: 90%;
  max-width: 450px;
  border-radius: 24px;
  padding: 32px;
  position: relative;
  border: 2px solid var(--primary-light);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.dash-promo-modal.active .promo-modal-content {
  transform: scale(1);
}

.promo-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

[dir=rtl] .promo-close {
  right: auto;
  left: 16px;
}

/* =========================================
13. التجاوب مع الشاشات (RESPONSIVE DESIGN)
========================================= */
@media (max-width: 768px) {
  .page-content {
    padding: 24px 16px 120px;
  }
  .mac-dock-container {
    bottom: max(16px, env(safe-area-inset-bottom));
    padding: 0 10px;
  }
  .mac-dock {
    padding: 8px;
    gap: 8px;
    border-radius: 24px;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .app-logo-dock span.logo-text {
    display: none;
  }
  .app-logo-dock {
    padding: 0 8px;
  }
  .dock-item {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
  .dock-item .lucide {
    width: 22px;
    height: 22px;
  }
  .dock-tooltip {
    display: none !important;
  }
  .popups-container {
    bottom: max(85px, 70px + env(safe-area-inset-bottom));
    width: 95%;
  }
  .popup-panel {
    padding: 20px 16px;
    border-radius: 24px;
  }
  .ws-grid, .cats-grid {
    grid-template-columns: 1fr;
  }
  .modal-content, .dash-modal-content {
    padding: 20px 16px;
  }
  .modal-header, .dash-modal-header {
    padding: 20px 0 16px;
    margin-top: -20px;
    top: -20px;
  }
  .tool-favorite-btn {
    opacity: 1;
    background: var(--bg-body);
  }
  .dashboard-widgets {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .activity-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================
Custom Dropdown
========================================= */
/* Custom Dropdown  */
.custom-dropdown-wrap {
  position: relative;
}

.custom-dropdown-trigger {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: 0.2s;
}

.custom-dropdown-trigger:hover {
  border-color: var(--primary-color);
}

.custom-dropdown-active {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  flex: 1;
  padding: 10px 12px;
  cursor: pointer;
  transition: 0.2s;
}

.custom-dropdown-active:hover {
  opacity: 0.8;
}

.custom-dropdown-split-arrow {
  padding: 7px 7px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 50%;
  margin-inline-end: 2px;
  height: 30px;
  margin-top: 4px;
}

.custom-dropdown-split-arrow:hover {
  background: var(--icon-orange-bg);
}

.custom-dropdown-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}

.custom-dropdown-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dropdown-arrow {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.custom-dropdown-menu {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-top: 4px;
  padding: 4px;
  max-height: 140px;
  overflow-y: auto;
}

.custom-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  background: transparent;
}

.custom-dropdown-item.selected, .custom-dropdown-item:hover {
  background: var(--icon-orange-bg);
}

.custom-dropdown-item-icon-wrapper {
  position: relative;
  display: inline-block;
}

.custom-dropdown-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--card-bg);
  border-radius: 50%;
}

.custom-dropdown-item-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
}

.custom-dropdown-item-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dropdown-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  padding: 8px;
  border: 1.5px dashed var(--border-color);
  border-radius: 10px;
  transition: 0.2s;
  background: transparent;
}

.custom-dropdown-add-btn:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.custom-dropdown-add-icon {
  width: 14px;
  height: 14px;
}

.custom-dropdown-empty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  padding: 12px 0;
}

.custom-dropdown-empty-text {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.custom-dropdown-empty-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-color);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s;
}

.custom-dropdown-empty-btn:hover {
  opacity: 0.9;
}

.custom-dropdown-empty-icon {
  width: 14px;
  height: 14px;
}

/* Profile & Popup Layout */
.profile-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.profile-card-header:hover {
  border-color: var(--primary-color);
  background: var(--icon-orange-bg);
}

.profile-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.profile-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.profile-card-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.vip-badge {
  display: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

/* Usage Card */
.usage-card-wrap {
  display: flex;
  gap: 10px;
  background: transparent;
  padding: 0;
  border: none;
}

.usage-item {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.usage-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.usage-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.usage-item-stats {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

/* Guest Info */
.guest-info-card {
  display: none;
  margin-top: 16px;
  padding: 12px;
  background: var(--icon-orange-bg);
  border: 1px dashed var(--warning);
  border-radius: 12px;
  flex-direction: column;
  gap: 8px;
}

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

.guest-info-title {
  font-size: 15px;
  margin: 0;
  color: var(--text-main);
}

.guest-info-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.guest-info-btns {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.guest-info-btn {
  padding: 8px 14px;
  font-size: 12px;
}

/* Auth List Grid */
.auth-list-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-list-container {
  flex: 1;
  min-width: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

/* Settings Grid */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.settings-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.settings-card-icon-wrap {
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.settings-card-billing:hover {
  border-color: var(--primary-color);
  background: var(--icon-orange-bg);
}

.icon-wrap-billing {
  background: var(--icon-orange-bg);
  color: var(--primary-color);
}

.settings-card-upgrade:hover {
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.08);
}

.icon-wrap-upgrade {
  background: rgba(245, 158, 11, 0.08);
  color: var(--warning);
}

.settings-card-affiliate:hover {
  border-color: var(--success);
  background: rgba(34, 195, 60, 0.08);
}

.icon-wrap-affiliate {
  background: rgba(34, 195, 60, 0.08);
  color: var(--success);
}

.settings-card-members:hover {
  border-color: var(--blue);
  background: rgba(37, 175, 244, 0.08);
}

.icon-wrap-members {
  background: rgba(37, 175, 244, 0.08);
  color: var(--blue);
}

.settings-card-apikey:hover {
  border-color: var(--pink);
  background: rgba(236, 72, 153, 0.08);
}

.icon-wrap-apikey {
  background: rgba(236, 72, 153, 0.08);
  color: var(--pink);
}

.settings-card-help:hover {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.08);
}

.icon-wrap-help {
  background: rgba(139, 92, 246, 0.08);
  color: var(--purple);
}

/* =========================================
Affiliate
========================================= */
.promo-widget-empty {
  background: var(--bg-body);
  border: 2px dashed var(--border-color);
  border-radius: 20px;
  padding: 24px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  text-align: center;
  align-items: center;
  box-shadow: none;
}

.promo-widget-empty h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--text-main);
}

.promo-widget-empty p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px 0;
  max-width: 80%;
  line-height: 1.6;
}

.promo-btn-empty {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.promo-btn-empty:hover {
  transform: scale(1.05);
  background: var(--primary-hover);
}

.affiliate-guest-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
}

.affiliate-guest-icon {
  width: 32px;
  height: 32px;
  color: var(--success);
  margin-bottom: 12px;
}

.affiliate-guest-view h4 {
  margin: 0 0 8px 0;
  color: var(--text-color);
}

.affiliate-guest-view p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.affiliate-guest-view .primary-btn i {
  width: 16px;
  height: 16px;
}

.filter-tabs-container {
  display: flex;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 12px;
  overflow-x: auto;
  max-width: 100%;
}

.filter-tabs-container::-webkit-scrollbar {
  height: 4px;
}

.filter-tab {
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-tab i {
  width: 14px;
  height: 14px;
}

.filter-tab:hover {
  color: var(--primary-color);
  background: var(--primary-light);
}

.filter-tab.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.recent-tool-compact {
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.recent-tool-compact i {
  width: 14px;
  height: 14px;
  color: var(--primary-color);
}

.recent-tool-compact:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
  color: var(--primary-color);
}

.recent-tool-compact.ea-compact {
  border-color: var(--warning);
  color: white;
  background: rgba(245, 158, 11, 0.05);
}

.recent-tool-compact.ea-compact i {
  color: var(--warning);
}

/* Dashboard Common & Reusable */
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-section-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.recent-tools-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 4px;
}

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

.section-subtitle {
  font-size: 14px;
  margin: 0 0 12px 0;
  color: var(--text-muted);
}

.empty-state-compact {
  padding: 12px;
  min-height: unset;
}

.empty-state-text {
  margin: 0;
  font-size: 13px;
}

/* Recent Keywords List */
.recent-keywords-list {
  flex-direction: column;
  gap: 8px;
}

.keyword-chip {
  justify-content: space-between;
  width: 100%;
  display: flex;
  text-decoration: none;
}

.keyword-chip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
}

.keyword-flag {
  width: 18px;
  border-radius: 2px;
}

.keyword-icon-fallback {
  color: var(--warning);
  width: 18px;
  height: 18px;
}

.keyword-title {
  font-weight: 600;
  color: var(--text-main);
}

.keyword-indicators {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kw-vol-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

.kw-diff-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kw-indicator-icon {
  width: 10px;
  height: 10px;
}

.kw-sparkline {
  width: 60px;
  height: 20px;
  margin: 0 12px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.kw-sparkline-bar {
  flex: 1;
  background: var(--primary-color);
  border-radius: 2px 2px 0 0;
  opacity: 0.6;
}

.kw-lang-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-body);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

/* Early Access Widget Extensions */
.ea-widget-override {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.ea-bg-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.ea-header {
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  border: none;
  padding: 0;
}

.ea-header h3 {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #ffffff;
}

.ea-badge {
  background: var(--warning);
  color: #000;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
}

.ea-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ea-unlocked-state {
  text-align: center;
}

.ea-success-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: rgba(34, 195, 60, 0.15);
  border-radius: 50%;
  margin-bottom: 12px;
  color: var(--success);
}

.ea-success-title {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: #ffffff;
}

.ea-text {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.ea-text-mb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.ea-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}

.ea-progress-label {
  color: #ffffff;
}

.ea-progress-value {
  color: var(--warning);
}

.ea-progress-bar {
  background: rgba(245, 158, 11, 0.1);
  border: none;
  height: 8px;
  border-radius: 4px;
}

/* Recent Works */
.empty-state-guest {
  /*         background: rgba(var(--primary-rgb), 0.05);
         border-color: rgba(var(--primary-rgb), 0.2);
  */
}

.empty-state-icon-primary {
  color: var(--primary-color);
}

.btn-full-width {
  margin-top: 12px;
  width: 100%;
  border-radius: 8px;
}

.primary-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* =========================================
   AFFILIATE DASHBOARD SPECIFIC STYLES
   ========================================= */
/* Header Box */
.aff-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.aff-title-group h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.aff-date-filter {
  position: relative;
  display: inline-block;
}

.aff-date-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.aff-date-btn:hover {
  background: var(--bg-body);
  border-color: var(--primary-color);
}

.aff-date-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  min-width: 200px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  padding: 8px;
  display: none;
}

.aff-date-dropdown.active {
  display: flex;
  flex-direction: column;
  animation: dropFade 0.2s ease forwards;
}

.aff-date-option {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aff-date-option:hover {
  background: var(--bg-body);
  color: var(--primary-color);
}

.aff-date-option.selected {
  background: var(--primary-color);
  color: white;
}

.aff-custom-date-invisible {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.aff-title-group p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Stats Counter Grid */
.aff-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.aff-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 20px 40px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.aff-stat-chart-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.aff-stat-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.aff-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.aff-stat-info {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.aff-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.aff-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Layout Split */
.aff-layout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .aff-layout-grid {
    grid-template-columns: 1fr;
  }
}
.aff-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.aff-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

/* Link Copy Box */
.aff-link-copy-box {
  display: flex;
  align-items: center;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px 12px;
  gap: 12px;
}

.aff-link-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: monospace;
  font-size: 14px;
  outline: none;
  direction: ltr;
  text-align: left;
}

.aff-copy-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aff-copy-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Payout Progress Bar */
.payout-progress-wrapper {
  margin-bottom: 16px;
}

.payout-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.payout-progress-bar-bg {
  width: 100%;
  height: 10px;
  background: var(--bg-body);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.payout-progress-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 20px;
  width: 0%; /* Dynamic allocation */
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Payout Method Select Options (No Select Tags) */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.payment-method-card {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.payment-method-card:hover {
  border-color: var(--primary-light);
}

.payment-method-card.selected {
  border-color: var(--primary-color);
  background: var(--primary-light);
  color: var(--primary-color);
}

.payment-method-card i {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.payment-method-card.selected i {
  color: var(--primary-color);
}

.payment-method-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

/* Partner Rank & Marketing Hub Classes */
.aff-partner-rank-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-left: 4px solid var(--primary-color);
}

.aff-partner-rank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aff-partner-rank-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
}

.aff-partner-rank-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.aff-quick-share-box {
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.aff-quick-share-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.aff-marketing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.aff-marketing-card {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.aff-marketing-bg-icon {
  position: absolute;
  right: -10px;
  top: -10px;
  opacity: 0.05;
}

.aff-marketing-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
}

.aff-marketing-title {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 700;
}

.aff-promo-box {
  background: var(--bg-body);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border-color);
  position: relative;
}

.aff-promo-code {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  font-family: monospace;
  color: var(--text-main);
}

.aff-marketing-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
  position: relative;
}

.aff-marketing-list {
  font-size: 12px;
  color: var(--text-muted);
  padding-inline-start: 20px;
  margin-bottom: 12px;
  position: relative;
  line-height: 1.6;
}

.aff-marketing-rule {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--danger);
  padding: 10px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--danger);
  position: relative;
}

.aff-empty-state {
  text-align: center;
  padding: 40px 20px;
  background: rgba(59, 130, 246, 0.03);
  border: 1px dashed var(--primary-color);
  border-radius: 12px;
}

.aff-empty-icon {
  width: 48px;
  height: 48px;
  color: var(--primary-color);
  margin-bottom: 16px;
  opacity: 0.8;
}

.aff-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.aff-empty-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 450px;
  margin: 0 auto;
}

@keyframes dropFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Media Kit Promotion Block */
.media-kit-block {
  background: linear-gradient(135deg, var(--primary-light), var(--icon-blue-bg));
  border: 1px dashed var(--blue);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.media-kit-text h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px 0;
}

.media-kit-text p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.btn-download-kit {
  background: var(--text-main);
  color: var(--bg-body);
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn-download-kit:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Notes Guidelines Box */
.guidelines-box {
  background: var(--icon-blue-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
}

.guidelines-box ul {
  margin: 0;
  padding-inline-start: 20px;
}

.guidelines-box li {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 8px;
}

.guidelines-box li:last-child {
  margin-bottom: 0;
}

/* Table Operations */
.aff-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

[dir=rtl] .aff-table {
  text-align: right;
}

.aff-table th {
  background: var(--bg-body);
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.aff-table td {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

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

.btn-payout-request {
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: 0.2s;
}

.btn-payout-request:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--border-color);
  color: var(--text-muted);
}

.btn-payout-request:hover:not(:disabled) {
  background: var(--primary-hover);
}

.none {
  display: none;
}

.show {
  display: block;
}

.show-flex {
  display: flex;
}

/* --- Help.razor Styles --- */
.help-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.filters {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
  font-weight: 600;
}

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

.filter-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.ticket-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: var(--shadow-sm);
}

.ticket-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.ticket-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

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

.ticket-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 12px 0;
}

.ticket-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  align-items: center;
}

.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.priority-dot.p-1 {
  background: var(--success);
}

.priority-dot.p-2 {
  background: var(--warning);
}

.priority-dot.p-3 {
  background: var(--warning);
}

.priority-dot.p-4 {
  background: var(--orange);
}

.priority-dot.p-5 {
  background: var(--danger);
}

.chat-view {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 70vh;
  box-shadow: var(--shadow-sm);
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-body);
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-body);
}

.chat-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
}

.closed-notice {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 20px;
}

.chat-bubble {
  display: flex;
  gap: 12px;
  max-width: 80%;
}

.chat-bubble.customer {
  align-self: flex-start;
}

.chat-bubble.support {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble.system {
  align-self: center;
  max-width: 90%;
  margin: 10px 0;
}

.sender-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.sender-avatar i {
  width: 18px;
  height: 18px;
}

.ai-avatar {
  background: var(--warning);
}

.bubble-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.customer .bubble-content {
  border-top-right-radius: 4px;
}

[dir=rtl] .customer .bubble-content {
  border-top-left-radius: 16px;
  border-top-right-radius: 4px;
}

.support .bubble-content {
  background: var(--primary-light);
  border-color: var(--primary-shadow);
  border-top-left-radius: 4px;
}

[dir=rtl] .support .bubble-content {
  border-top-right-radius: 16px;
  border-top-left-radius: 4px;
}

.bubble-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
}

.support .bubble-text {
  color: var(--primary-color);
}

.bubble-meta {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 8px;
  opacity: 0.8;
}

.system-msg-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.system-msg {
  background: var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge.status-1 {
  background: var(--warning);
  color: #fff;
}

.badge.status-2 {
  background: var(--warning);
  color: #fff;
}

.badge.status-3 {
  background: var(--orange);
  color: #fff;
}

.badge.status-4 {
  background: var(--success);
  color: #fff;
}

.badge.status-5 {
  background: var(--text-muted);
  color: #fff;
}

/* ==========================================================================
GLOBAL SCROLLBAR STYLING
========================================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

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

/* ═══════════════════════════════════════════════════════
       AI ARTICLE REWRITER — ULTRA PREMIUM DESIGN
       ═══════════════════════════════════════════════════════ */
.rw-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  font-family: "Inter", sans-serif;
  padding-top: 40px;
}

.rw-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ── Hero ── */
.rw-hero {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
  padding: 20px 0 10px 0;
}

.hero-ambient-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 20%, transparent) 0%, color-mix(in srgb, var(--pink, #ec4899) 12%, transparent) 40%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

.rw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color) 12%, transparent);
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}
.rw-hero-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 18px;
}

.rw-hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary-color), var(--pink, #ec4899));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rw-hero-desc {
  font-size: 16.5px;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 580px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}

.hero-features-belt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hfb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-body);
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.hfb-icon {
  width: 14px;
  height: 14px;
  color: var(--primary-color);
}

/* ---------- BENTO BOX FEATURES ---------- */
.console-features {
  margin-top: 50px;
  width: 100%;
  max-width: 950px;
  margin: auto;
}

.bento-features-cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(130px, auto);
  gap: 20px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.bento-card {
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.03;
  transition: all 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.bento-card:hover::before {
  opacity: 0.08;
  transform: translate(-50%, -50%) scale(1.1);
}

html[data-theme=dark] .bento-card::before, .dark-mode .bento-card::before {
  filter: invert(1);
  opacity: 0.05;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--primary-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.bento-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}

.dashed-ring-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  width: 44px;
  height: 44px;
}

.dashed-ring-wrapper::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  opacity: 0.5;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
  transform-origin: center center;
}

.bento-card:hover .dashed-ring-wrapper::before {
  opacity: 1;
  transform: scale(1.1) rotate(180deg);
  border-color: var(--primary-color);
}

.bc-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.4s ease;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.bento-card:hover .bc-icon-wrapper {
  background: linear-gradient(135deg, var(--primary-color), var(--border-color));
  color: white;
  border-color: transparent;
  transform: scale(1.1) rotate(4deg);
}

.bc-icon-wrapper i, .bc-icon-wrapper svg {
  width: 18px;
  height: 18px;
}

.bc-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.bc-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.bc-wide-top {
  grid-column: span 2;
}

.bc-tall {
  grid-row: span 2;
}

.bc-wide-mid {
  grid-column: span 2;
}

.bc-wide-top .bento-card-content, .bc-wide-mid .bento-card-content {
  justify-content: center;
}

.bc-wide-top .bc-desc, .bc-wide-mid .bc-desc {
  max-width: 85%;
}

@media (max-width: 900px) {
  .bento-features-cluster {
    grid-template-columns: repeat(2, 1fr);
  }
  .bc-wide-top {
    grid-column: span 2;
  }
  .bc-wide-mid {
    grid-column: span 2;
  }
  .bc-tall {
    grid-row: span 1;
    grid-column: span 1;
  }
}
@media (max-width: 600px) {
  .bento-features-cluster {
    grid-template-columns: 1fr;
  }
  .bc-wide-top, .bc-wide-mid, .bc-tall {
    grid-column: span 1;
  }
  .bc-wide-top .bc-desc, .bc-wide-mid .bc-desc {
    max-width: 100%;
  }
}
/* Micro UI Details */
/* 1. Globe Scan */
.decor-globe-scan::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, color-mix(in srgb, var(--primary-color) 15%, transparent) 360deg);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.decor-globe-scan::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-image: linear-gradient(var(--border-color) 1px, transparent 1px), linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 50%;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.bento-card:hover.decor-globe-scan::before {
  opacity: 1;
  animation: radar-spin 4s linear infinite;
}

.bento-card:hover.decor-globe-scan::after {
  opacity: 0.15;
}

@keyframes radar-spin {
  100% {
    transform: rotate(360deg);
  }
}
/* 2. Live Pulse */
.decor-live-pulse::before, .decor-live-pulse::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 20%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px dashed var(--primary-color);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  transform: translate(50%, -50%) scale(1);
}

.decor-live-pulse::after {
  border-style: solid;
  opacity: 0;
  transform: translate(50%, -50%) scale(0.1);
}

.bento-card:hover.decor-live-pulse::before {
  border-style: solid;
  animation: ripple-pulse 2s infinite ease-out;
}

.bento-card:hover.decor-live-pulse::after {
  animation: ripple-pulse 2s infinite ease-out 1s;
}

@keyframes ripple-pulse {
  0% {
    transform: translate(50%, -50%) scale(0.1);
    opacity: 0.6;
  }
  100% {
    transform: translate(50%, -50%) scale(2);
    opacity: 0;
  }
}
/* 3. Server Racks */
.decor-server-racks {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 0;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.s-rack {
  width: 50px;
  height: 12px;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
}

.s-light {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0.4;
}

.bento-card:hover .decor-server-racks {
  opacity: 0.7;
}

.bento-card:hover .s-rack:nth-child(1) .s-light {
  animation: server-blink 1s infinite;
}

.bento-card:hover .s-rack:nth-child(2) .s-light {
  animation: server-blink 1.5s infinite 0.2s;
}

.bento-card:hover .s-rack:nth-child(3) .s-light {
  animation: server-blink 0.8s infinite 0.5s;
}

@keyframes server-blink {
  0%, 100% {
    opacity: 0.2;
    box-shadow: none;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 5px var(--primary-color);
  }
}
/* 4. Expiry Timeline */
.decor-expiry-timeline::before {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary-color) 30%, transparent), rgba(239, 68, 68, 0.4));
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.decor-expiry-timeline::after {
  content: "";
  position: absolute;
  bottom: 26px;
  left: 10%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  box-shadow: 0 0 6px var(--primary-color);
}

.bento-card:hover.decor-expiry-timeline::after {
  opacity: 1;
  animation: move-timeline 3s infinite linear;
}

@keyframes move-timeline {
  0% {
    left: 10%;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
  }
  80% {
    left: 80%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
  }
  100% {
    left: 90%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    opacity: 0;
  }
}
/* 5. Certificate / Shield */
.decor-certificate::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 10px;
  width: 60px;
  height: 80px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 8px, color-mix(in srgb, var(--primary-color) 20%, transparent) 8px, color-mix(in srgb, var(--primary-color) 20%, transparent) 10px);
  transform: rotate(5deg) translateY(10px);
  transition: all 0.5s ease;
}

.decor-certificate::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 25px;
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
  transform: rotate(5deg) translateY(10px);
  transition: all 0.5s ease;
}

.bento-card:hover.decor-certificate::before {
  opacity: 0.2;
  transform: rotate(10deg) translateY(20px);
}

.bento-card:hover.decor-certificate::after {
  opacity: 0.3;
  transform: rotate(10deg) translateY(20px);
  box-shadow: 0 0 15px var(--primary-color);
}

/* 6. Cascading Text */
.decor-cascading-text {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  opacity: 0.05;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  transition: all 0.3s;
}

.bento-card:hover .decor-cascading-text {
  opacity: 0.1;
  color: var(--primary-color);
  transform: scale(1.05) translate(-5px, 5px);
}

/* 7. Radar Sweep (from keyword-research) */
.decor-radar-sweep::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, color-mix(in srgb, var(--primary-color) 20%, transparent) 360deg);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.bento-card:hover.decor-radar-sweep::before {
  opacity: 1;
  animation: radar-spin 3s linear infinite;
}

/* 8. Nodes Network */
.decor-nodes-network::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 10%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 30px 20px 0 0 var(--primary-color), 10px 40px 0 0 var(--primary-color), 40px 50px 0 0 var(--primary-color);
  opacity: 0.1;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.decor-nodes-network::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 10%;
  width: 1px;
  height: 35px;
  background: var(--primary-color);
  transform-origin: top left;
  transform: rotate(-35deg);
  box-shadow: 20px 20px 0 0 var(--primary-color);
  opacity: 0.1;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.bento-card:hover.decor-nodes-network::before, .bento-card:hover.decor-nodes-network::after {
  opacity: 0.5;
}

/* 9. Chart Bars */
.decor-chart-bars {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  z-index: 0;
  opacity: 0.1;
  transition: opacity 0.5s ease;
}

.c-bar {
  width: 8px;
  background: var(--primary-color);
  border-radius: 2px 2px 0 0;
}

.c-bar:nth-child(1) {
  height: 15px;
}

.c-bar:nth-child(2) {
  height: 25px;
}

.c-bar:nth-child(3) {
  height: 40px;
}

.bento-card:hover .decor-chart-bars {
  opacity: 0.4;
}

.bento-card:hover .c-bar:nth-child(1) {
  animation: bar-grow 1s ease-out forwards;
}

.bento-card:hover .c-bar:nth-child(2) {
  animation: bar-grow 1s ease-out 0.2s forwards;
}

.bento-card:hover .c-bar:nth-child(3) {
  animation: bar-grow 1s ease-out 0.4s forwards;
}

@keyframes bar-grow {
  0% {
    height: 5px;
  }
}
/* 10. Trend Line */
.decor-trend-line::before {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 10%;
  width: 80px;
  height: 40px;
  border-bottom: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
  transform: skewY(-20deg);
  opacity: 0.1;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.bento-card:hover.decor-trend-line::before {
  opacity: 0.4;
  animation: trend-pulse 2s infinite;
}

@keyframes trend-pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}
/* 11. Lightning */
.decor-lightning::before {
  content: "";
  position: absolute;
  top: 20%;
  right: 20%;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 25px solid var(--primary-color);
  transform: rotate(15deg);
  opacity: 0.05;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.decor-lightning::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 20%;
  margin-top: 15px;
  margin-right: 5px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 20px solid var(--primary-color);
  transform: rotate(15deg);
  opacity: 0.05;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.bento-card:hover.decor-lightning::before, .bento-card:hover.decor-lightning::after {
  opacity: 0.2;
  animation: flash 1.5s infinite;
}

@keyframes flash {
  0%, 50%, 100% {
    opacity: 0.2;
  }
  25%, 75% {
    opacity: 0.8;
    box-shadow: 0 0 10px var(--primary-color);
  }
}
/* 12. Speedometer Gauge */
.decor-speedometer::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 3px dashed var(--primary-color);
  border-radius: 50%;
  opacity: 0.1;
  transition: opacity 0.5s;
  z-index: 0;
  pointer-events: none;
}

.bento-card:hover.decor-speedometer::before {
  opacity: 0.4;
  animation: gauge-spin 3s linear infinite;
}

@keyframes gauge-spin {
  100% {
    transform: rotate(360deg);
  }
}
/* 13. Flow Nodes Chain */
.decor-flow-nodes::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.bento-card:hover.decor-flow-nodes::before {
  opacity: 0.6;
  animation: flow-pulse 1.5s infinite alternate;
}

@keyframes flow-pulse {
  0% {
    opacity: 0.2;
    transform: scaleX(0.8);
  }
  100% {
    opacity: 0.8;
    transform: scaleX(1.1);
  }
}
/* 14. Vault Download */
.decor-vault-download::before {
  content: "";
  position: absolute;
  bottom: 15px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.bento-card:hover.decor-vault-download::before {
  opacity: 0.4;
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--primary-color);
}

/* 15. Ruler Scale Grid */
.decor-ruler-scale::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 15px;
  width: 60px;
  height: 20px;
  background: repeating-linear-gradient(90deg, var(--primary-color) 0 2px, transparent 2px 8px);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.bento-card:hover.decor-ruler-scale::before {
  opacity: 0.5;
}

/* 16. QR Corner Scanner */
.decor-qr-corners::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  border: 2px dashed var(--primary-color);
  border-radius: 6px;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.bento-card:hover.decor-qr-corners::before {
  opacity: 0.7;
  animation: qr-scan-frame 1.8s infinite alternate ease-in-out;
}

@keyframes qr-scan-frame {
  0% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1.15);
    box-shadow: 0 0 10px var(--primary-color);
  }
}
/* 17. Neural Synapse Network */
.decor-neural-synapse::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.bento-card:hover.decor-neural-synapse::before {
  opacity: 0.6;
  animation: neural-pulse 2s infinite alternate;
}

@keyframes neural-pulse {
  0% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1.05);
  }
}
/* 18. Soundwave Equalizer */
.decor-soundwave-bars::before {
  content: "";
  position: absolute;
  bottom: 18px;
  right: 20px;
  width: 35px;
  height: 16px;
  background: repeating-linear-gradient(90deg, var(--primary-color) 0 3px, transparent 3px 7px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.bento-card:hover.decor-soundwave-bars::before {
  opacity: 0.6;
  animation: sound-bounce 0.8s infinite alternate;
}

@keyframes sound-bounce {
  0% {
    transform: scaleY(0.6);
  }
  100% {
    transform: scaleY(1.4);
  }
}
/* 19. Aperture Lens Grid */
.decor-aperture-grid::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.bento-card:hover.decor-aperture-grid::before {
  opacity: 0.4;
  transform: rotate(45deg) scale(1.1);
}

/* 20. Code Terminal Box */
.decor-code-terminal::before {
  content: ">_";
  position: absolute;
  bottom: 15px;
  right: 20px;
  font-family: monospace;
  font-weight: 900;
  font-size: 20px;
  color: var(--primary-color);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.bento-card:hover.decor-code-terminal::before {
  opacity: 0.7;
  animation: blink-prompt 0.8s infinite steps(2, start);
}

@keyframes blink-prompt {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.9;
  }
}
/* 21. Email Envelope Frame */
.decor-email-envelope::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 26px;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.bento-card:hover.decor-email-envelope::before {
  opacity: 0.5;
  transform: translateY(-2px);
}

/* 22. Checklist Grid */
.decor-list-check::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: repeating-linear-gradient(0deg, var(--primary-color) 0 2px, transparent 2px 8px);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.bento-card:hover.decor-list-check::before {
  opacity: 0.5;
}

/* 23. Search Lens Sweep */
.decor-search-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(59, 130, 246, 0.08) 50%, transparent 60%);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.bento-card:hover.decor-search-glass::before {
  opacity: 1;
  animation: lens-sweep 1.8s infinite linear;
}

@keyframes lens-sweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
/* =========================================
   BENTO BOX FEATURES CLUSTER & GEOMETRIC DECORATIONS
   ========================================= */
.console-features {
  margin-top: 40px;
  width: 100%;
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
}

.bento-features-cluster {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  position: relative !important;
  z-index: 2 !important;
  grid-auto-flow: dense !important;
}

.bento-card {
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: 200px !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.bento-card:hover {
  transform: translateY(-4px) scale(1.01) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.bc-wide-top {
  grid-column: span 2 !important;
}

.bc-tall {
  grid-row: span 2 !important;
  min-height: 420px !important;
}

.bc-wide-mid {
  grid-column: span 2 !important;
}

@media (max-width: 900px) {
  .bento-features-cluster {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .bc-wide-top, .bc-wide-mid {
    grid-column: span 2 !important;
  }
  .bc-tall {
    grid-row: span 1 !important;
    grid-column: span 1 !important;
    min-height: 200px !important;
  }
}
@media (max-width: 600px) {
  .bento-features-cluster {
    grid-template-columns: 1fr !important;
  }
  .bc-wide-top, .bc-wide-mid, .bc-tall {
    grid-column: span 1 !important;
  }
}
/* GEOMETRIC ARTWORK STYLES */
.card-geom-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  transition: all 0.4s ease;
}

.bento-card:hover .card-geom-decor {
  opacity: 0.85;
}

/* 1. Server Racks */
.geom-server {
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.geom-server .s-rack {
  width: 55px;
  height: 14px;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding-right: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.geom-server .s-led {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.geom-server .s-led.red {
  background: #ef4444;
}

.geom-server .s-led.green {
  background: #10b981;
}

.geom-server .s-led.blue {
  background: #3b82f6;
}

.bento-card:hover .geom-server .s-rack {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
}

/* 2. Speedometer Gauge */
.geom-speedometer {
  top: -15px;
  right: -15px;
  width: 110px;
  height: 110px;
}

.geom-speedometer .speed-arc {
  width: 100%;
  height: 100%;
  border: 3px dashed var(--primary-color);
  border-radius: 50%;
}

.bento-card:hover .geom-speedometer .speed-arc {
  animation: spin-gauge 4s linear infinite;
}

@keyframes spin-gauge {
  100% {
    transform: rotate(360deg);
  }
}
/* 3. Radar Sweep */
.geom-radar {
  top: -20px;
  right: -20px;
  width: 130px;
  height: 130px;
}

.geom-radar .r-circle {
  position: absolute;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  inset: 0;
}

.geom-radar .r-circle.r2 {
  inset: 25px;
}

.geom-radar .r-sweep {
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--primary-color) 360deg);
  border-radius: 50%;
  opacity: 0.15;
}

.bento-card:hover .geom-radar .r-sweep {
  animation: radar-spin 3s linear infinite;
}

@keyframes radar-spin {
  100% {
    transform: rotate(360deg);
  }
}
/* 4. Flow Nodes */
.geom-flownodes {
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.geom-flownodes .f-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
}

.geom-flownodes .f-line {
  width: 25px;
  height: 2px;
  background: var(--primary-color);
}

.bento-card:hover .geom-flownodes {
  animation: pulse-flow 1.2s infinite alternate;
}

@keyframes pulse-flow {
  0% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1.15);
  }
}
/* 5. Equalizer Bar Graph */
.geom-equalizer {
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.geom-equalizer .eq-b {
  width: 8px;
  background: var(--primary-color);
  border-radius: 2px;
}

.geom-equalizer .eq-b.b1 {
  height: 14px;
}

.geom-equalizer .eq-b.b2 {
  height: 26px;
}

.geom-equalizer .eq-b.b3 {
  height: 38px;
}

.geom-equalizer .eq-b.b4 {
  height: 20px;
}

.bento-card:hover .geom-equalizer .eq-b {
  animation: eq-bounce 0.8s infinite alternate ease-in-out;
}

@keyframes eq-bounce {
  0% {
    transform: scaleY(0.5);
  }
  100% {
    transform: scaleY(1.3);
  }
}
/* 6. Vault & Download Box */
.geom-vault {
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.geom-vault .v-beam {
  width: 14px;
  height: 14px;
  border-bottom: 3px solid var(--primary-color);
  border-right: 3px solid var(--primary-color);
  transform: rotate(45deg);
}

.bento-card:hover .geom-vault {
  transform: scale(1.15);
  box-shadow: 0 0 15px var(--primary-color);
}

/* 7. QR Scanner Reticle */
.geom-qr {
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  border: 2px dashed var(--primary-color);
  border-radius: 8px;
}

.bento-card:hover .geom-qr {
  animation: qr-pulse 1.5s infinite alternate;
}

@keyframes qr-pulse {
  0% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1.15);
    box-shadow: 0 0 12px var(--primary-color);
  }
}
/* 8. Neural Network */
.geom-neural {
  top: 20px;
  right: 20px;
  width: 60px;
  height: 40px;
}

.geom-neural .n-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  position: absolute;
}

.geom-neural .n-dot.d1 {
  top: 0;
  left: 0;
}

.geom-neural .n-dot.d2 {
  top: 20px;
  right: 0;
}

.geom-neural .n-dot.d3 {
  bottom: 0;
  left: 20px;
}

.geom-neural .n-line {
  position: absolute;
  inset: 0;
  border: 1px solid var(--primary-color);
  opacity: 0.3;
}

.bento-card:hover .geom-neural {
  animation: neural-glow 1.5s infinite alternate;
}

@keyframes neural-glow {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}
/* 9. Soundwave Audio Spectrum */
.geom-soundwave {
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.geom-soundwave .sw-b {
  width: 4px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 2px;
}

.bento-card:hover .geom-soundwave .sw-b {
  animation: sw-anim 0.6s infinite alternate ease-in-out;
}

@keyframes sw-anim {
  0% {
    transform: scaleY(0.3);
  }
  100% {
    transform: scaleY(1.5);
  }
}
/* 10. Code Terminal Box */
.geom-code {
  bottom: 15px;
  right: 15px;
  font-family: monospace;
  font-weight: 900;
  font-size: 22px;
  color: var(--primary-color);
}

.bento-card:hover .geom-code {
  animation: term-blink 0.8s infinite steps(2, start);
}

@keyframes term-blink {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}
/* 11. Security Certificate */
.geom-cert {
  top: 15px;
  right: 15px;
  width: 40px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
}

.geom-cert .cert-badge {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  position: absolute;
  bottom: 6px;
  right: 6px;
}

.bento-card:hover .geom-cert {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 12px var(--primary-color);
}

/* 12. Keyword Trend Line */
.geom-trend {
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 30px;
  border-bottom: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
  transform: skewY(-15deg);
}

.bento-card:hover .geom-trend {
  animation: trend-anim 1.5s infinite alternate;
}

@keyframes trend-anim {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
    transform: skewY(-15deg) scale(1.1);
  }
}
/* =========================================
   31 UNIQUE CATEGORY-MATCHED GEOMETRIC ARTWORKS
   ========================================= */
.console-features {
  margin-top: 40px;
  width: 100%;
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
}

.bento-features-cluster {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  position: relative !important;
  z-index: 2 !important;
  grid-auto-flow: dense !important;
}

.bento-card {
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: 200px !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.bento-card:hover {
  transform: translateY(-4px) scale(1.01) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.bc-wide-top {
  grid-column: span 2 !important;
}

.bc-tall {
  grid-row: span 2 !important;
  min-height: 420px !important;
}

.bc-wide-mid {
  grid-column: span 2 !important;
}

@media (max-width: 900px) {
  .bento-features-cluster {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .bc-wide-top, .bc-wide-mid {
    grid-column: span 2 !important;
  }
  .bc-tall {
    grid-row: span 1 !important;
    grid-column: span 1 !important;
    min-height: 200px !important;
  }
}
@media (max-width: 600px) {
  .bento-features-cluster {
    grid-template-columns: 1fr !important;
  }
  .bc-wide-top, .bc-wide-mid, .bc-tall {
    grid-column: span 1 !important;
  }
}
/* GEOMETRIC ARTWORK STYLES */
.card-geom-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  transition: all 0.4s ease;
}

.bento-card:hover .card-geom-decor {
  opacity: 0.85;
}

/* 1. Server Racks */
.geom-server {
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.geom-server .s-rack {
  width: 55px;
  height: 14px;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding-right: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.geom-server .s-led {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.geom-server .s-led.red {
  background: #ef4444;
}

.geom-server .s-led.green {
  background: #10b981;
}

.geom-server .s-led.blue {
  background: #3b82f6;
}

.bento-card:hover .geom-server .s-rack {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
}

/* 2. Speedometer Gauge */
.geom-speedometer {
  top: -15px;
  right: -15px;
  width: 110px;
  height: 110px;
}

.geom-speedometer .speed-arc {
  width: 100%;
  height: 100%;
  border: 3px dashed var(--primary-color);
  border-radius: 50%;
}

.bento-card:hover .geom-speedometer .speed-arc {
  animation: spin-gauge 4s linear infinite;
}

@keyframes spin-gauge {
  100% {
    transform: rotate(360deg);
  }
}
/* 3. Radar Sweep */
.geom-radar {
  top: -20px;
  right: -20px;
  width: 130px;
  height: 130px;
}

.geom-radar .r-circle {
  position: absolute;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  inset: 0;
}

.geom-radar .r-circle.r2 {
  inset: 25px;
}

.geom-radar .r-sweep {
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--primary-color) 360deg);
  border-radius: 50%;
  opacity: 0.15;
}

.bento-card:hover .geom-radar .r-sweep {
  animation: radar-spin 3s linear infinite;
}

@keyframes radar-spin {
  100% {
    transform: rotate(360deg);
  }
}
/* 4. Flow Nodes */
.geom-flownodes {
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.geom-flownodes .f-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
}

.geom-flownodes .f-line {
  width: 25px;
  height: 2px;
  background: var(--primary-color);
}

.bento-card:hover .geom-flownodes {
  animation: pulse-flow 1.2s infinite alternate;
}

@keyframes pulse-flow {
  0% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1.15);
  }
}
/* 5. Equalizer Bar Graph */
.geom-equalizer {
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.geom-equalizer .eq-b {
  width: 8px;
  background: var(--primary-color);
  border-radius: 2px;
}

.geom-equalizer .eq-b.b1 {
  height: 14px;
}

.geom-equalizer .eq-b.b2 {
  height: 26px;
}

.geom-equalizer .eq-b.b3 {
  height: 38px;
}

.geom-equalizer .eq-b.b4 {
  height: 20px;
}

.bento-card:hover .geom-equalizer .eq-b {
  animation: eq-bounce 0.8s infinite alternate ease-in-out;
}

@keyframes eq-bounce {
  0% {
    transform: scaleY(0.5);
  }
  100% {
    transform: scaleY(1.3);
  }
}
/* 6. Vault & Download Box */
.geom-vault {
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.geom-vault .v-beam {
  width: 14px;
  height: 14px;
  border-bottom: 3px solid var(--primary-color);
  border-right: 3px solid var(--primary-color);
  transform: rotate(45deg);
}

.bento-card:hover .geom-vault {
  transform: scale(1.15);
  box-shadow: 0 0 15px var(--primary-color);
}

/* 7. QR Scanner Reticle */
.geom-qr {
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  border: 2px dashed var(--primary-color);
  border-radius: 8px;
}

.bento-card:hover .geom-qr {
  animation: qr-pulse 1.5s infinite alternate;
}

@keyframes qr-pulse {
  0% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1.15);
    box-shadow: 0 0 12px var(--primary-color);
  }
}
/* 8. Neural Network */
.geom-neural {
  top: 20px;
  right: 20px;
  width: 60px;
  height: 40px;
}

.geom-neural .n-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  position: absolute;
}

.geom-neural .n-dot.d1 {
  top: 0;
  left: 0;
}

.geom-neural .n-dot.d2 {
  top: 20px;
  right: 0;
}

.geom-neural .n-dot.d3 {
  bottom: 0;
  left: 20px;
}

.geom-neural .n-line {
  position: absolute;
  inset: 0;
  border: 1px solid var(--primary-color);
  opacity: 0.3;
}

.bento-card:hover .geom-neural {
  animation: neural-glow 1.5s infinite alternate;
}

@keyframes neural-glow {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}
/* 9. Soundwave Audio Spectrum */
.geom-soundwave {
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.geom-soundwave .sw-b {
  width: 4px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 2px;
}

.bento-card:hover .geom-soundwave .sw-b {
  animation: sw-anim 0.6s infinite alternate ease-in-out;
}

@keyframes sw-anim {
  0% {
    transform: scaleY(0.3);
  }
  100% {
    transform: scaleY(1.5);
  }
}
/* 10. Code Terminal Box */
.geom-code {
  bottom: 15px;
  right: 15px;
  font-family: monospace;
  font-weight: 900;
  font-size: 22px;
  color: var(--primary-color);
}

.bento-card:hover .geom-code {
  animation: term-blink 0.8s infinite steps(2, start);
}

@keyframes term-blink {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}
/* 11. Security Certificate */
.geom-cert {
  top: 15px;
  right: 15px;
  width: 40px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
}

.geom-cert .cert-badge {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  position: absolute;
  bottom: 6px;
  right: 6px;
}

.bento-card:hover .geom-cert {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 12px var(--primary-color);
}

/* 12. Keyword Trend Line */
.geom-trend {
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 30px;
  border-bottom: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
  transform: skewY(-15deg);
}

.bento-card:hover .geom-trend {
  animation: trend-anim 1.5s infinite alternate;
}

@keyframes trend-anim {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
    transform: skewY(-15deg) scale(1.1);
  }
}
/* 13. Decibel VU Meter */
.geom-decibel-meter {
  bottom: 20px;
  right: 20px;
  width: 14px;
  height: 45px;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2px;
  gap: 2px;
}

.geom-decibel-meter .vu-segment {
  width: 100%;
  height: 6px;
  border-radius: 2px;
  background: var(--primary-color);
  opacity: 0.4;
}

.bento-card:hover .geom-decibel-meter .vu-segment {
  animation: vu-pulse 0.7s infinite alternate;
}

@keyframes vu-pulse {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 6px var(--primary-color);
  }
}
/* 14. Audio Waveform Line */
.geom-audio-waveform {
  bottom: 25px;
  right: 20px;
  width: 60px;
  height: 15px;
  border-bottom: 2px dashed var(--primary-color);
}

.bento-card:hover .geom-audio-waveform {
  animation: wave-slide 1s infinite linear;
}

@keyframes wave-slide {
  0% {
    transform: scaleX(0.8);
  }
  100% {
    transform: scaleX(1.15);
  }
}
/* 15. Voice Nodes Acoustic Rings */
.geom-voice-nodes {
  top: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  opacity: 0.3;
}

.bento-card:hover .geom-voice-nodes {
  animation: voice-ring 1.4s infinite ease-out;
}

@keyframes voice-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
/* 16. Ruler Scale Grid */
.geom-ruler-scale {
  top: 20px;
  right: 20px;
  width: 55px;
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--primary-color) 0 2px, transparent 2px 8px);
}

.bento-card:hover .geom-ruler-scale {
  opacity: 0.8;
}

/* 17. Case Toggle Reticle */
.geom-case-toggle {
  top: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  border: 2px solid var(--primary-color);
  transform: rotate(45deg);
  border-radius: 6px;
}

.bento-card:hover .geom-case-toggle {
  transform: rotate(225deg) scale(1.1);
}

/* 18. Alignment Line Grid */
.geom-align-grid {
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 40px;
}

.geom-align-grid .a-line {
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.geom-align-grid .a-line.l1 {
  width: 100%;
}

.geom-align-grid .a-line.l2 {
  width: 70%;
}

.geom-align-grid .a-line.l3 {
  width: 85%;
}

.bento-card:hover .geom-align-grid .a-line {
  animation: align-slide 1s infinite alternate;
}

@keyframes align-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-5px);
  }
}
/* 19. Word Histogram */
.geom-word-histogram {
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.geom-word-histogram .h-bar {
  width: 6px;
  background: var(--primary-color);
  border-radius: 2px;
}

.geom-word-histogram .h-bar.h1 {
  height: 12px;
}

.geom-word-histogram .h-bar.h2 {
  height: 28px;
}

.geom-word-histogram .h-bar.h3 {
  height: 18px;
}

.geom-word-histogram .h-bar.h4 {
  height: 35px;
}

.bento-card:hover .geom-word-histogram .h-bar {
  animation: histo-grow 0.9s infinite alternate;
}

@keyframes histo-grow {
  0% {
    transform: scaleY(0.4);
  }
  100% {
    transform: scaleY(1.3);
  }
}
/* 20. Dedup Matrix */
.geom-dedup-matrix {
  top: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  border: 2px dashed var(--primary-color);
  border-radius: 6px;
}

.bento-card:hover .geom-dedup-matrix {
  transform: rotate(90deg) scale(1.1);
}

/* 21. Spark Matrix */
.geom-spark-matrix {
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary-color);
  transform: rotate(45deg);
  border-radius: 4px;
}

.bento-card:hover .geom-spark-matrix {
  animation: spark-glow 1.2s infinite alternate;
}

@keyframes spark-glow {
  0% {
    box-shadow: 0 0 2px var(--primary-color);
  }
  100% {
    box-shadow: 0 0 14px var(--primary-color);
  }
}
/* 22. Email Envelope Frame */
.geom-email-envelope {
  top: 20px;
  right: 20px;
  width: 45px;
  height: 30px;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
}

.bento-card:hover .geom-email-envelope {
  transform: translateY(-3px);
  box-shadow: 0 0 10px var(--primary-color);
}

/* 23. Prompt Parameter Array */
.geom-prompt-array {
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary-color);
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
}

.geom-prompt-array .p-cell {
  background: var(--primary-color);
  border-radius: 2px;
  opacity: 0.4;
}

.bento-card:hover .geom-prompt-array .p-cell {
  animation: cell-flash 0.8s infinite alternate;
}

@keyframes cell-flash {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.9;
  }
}
/* 24. AI Matrix Frame */
.geom-ai-matrix {
  inset: 10px;
  border: 1px dashed var(--primary-color);
  border-radius: 14px;
  opacity: 0.15;
}

.bento-card:hover .geom-ai-matrix {
  opacity: 0.5;
  animation: matrix-pulse 2s infinite alternate;
}

@keyframes matrix-pulse {
  0% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1.02);
  }
}
/* 25. Document Structure Tree */
.geom-doc-structure {
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 35px;
}

.geom-doc-structure .d-row {
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.geom-doc-structure .d-row.r1 {
  width: 100%;
}

.geom-doc-structure .d-row.r2 {
  width: 60%;
  margin-left: 8px;
}

.geom-doc-structure .d-row.r3 {
  width: 80%;
  margin-left: 8px;
}

.bento-card:hover .geom-doc-structure {
  transform: translateX(-3px);
}

/* 26. Content Meter Arc */
.geom-content-meter {
  top: -10px;
  right: -10px;
  width: 90px;
  height: 90px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  opacity: 0.2;
}

.bento-card:hover .geom-content-meter {
  opacity: 0.6;
  transform: scale(1.1);
}

/* 27. Aperture Polygon Grid */
.geom-aperture {
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
}

.bento-card:hover .geom-aperture {
  transform: rotate(60deg) scale(1.1);
}

/* 28. Pixel Grid Lattice */
.geom-pixel-grid {
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.geom-pixel-grid .px-dot {
  background: var(--primary-color);
  border-radius: 1px;
  opacity: 0.3;
}

.bento-card:hover .geom-pixel-grid .px-dot {
  animation: px-blink 1s infinite alternate;
}

@keyframes px-blink {
  0% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.9;
  }
}
/* 29. Layer Separation Shield */
.geom-layer-shield {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  transform: rotate(15deg);
  border-radius: 6px;
}

.bento-card:hover .geom-layer-shield {
  transform: rotate(30deg) scale(1.1);
  box-shadow: 0 0 10px var(--primary-color);
}

/* 30. Barcode Laser Beams */
.geom-barcode-beam {
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 3px;
  height: 30px;
}

.geom-barcode-beam .b-line {
  width: 3px;
  background: var(--primary-color);
  border-radius: 1px;
}

.bento-card:hover .geom-barcode-beam .b-line {
  animation: barcode-scan 0.8s infinite alternate;
}

@keyframes barcode-scan {
  0% {
    transform: scaleY(0.7);
  }
  100% {
    transform: scaleY(1.2);
  }
}
/* 31. Wifi Wave Signal */
.geom-wifi-signal {
  top: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  border-top: 3px solid var(--primary-color);
  border-right: 3px solid var(--primary-color);
  border-radius: 0 45px 0 0;
}

.bento-card:hover .geom-wifi-signal {
  animation: wifi-pulse 1.2s infinite alternate;
}

@keyframes wifi-pulse {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 10px var(--primary-color);
  }
}
/* =========================================
   31 HIGHLY CREATIVE SEMANTIC GEOMETRIC ARTWORKS
   ========================================= */
.console-features {
  margin-top: 40px;
  width: 100%;
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
}

.bento-features-cluster {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  position: relative !important;
  z-index: 2 !important;
  grid-auto-flow: dense !important;
}

.bento-card {
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: 200px !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.bento-card:hover {
  transform: translateY(-4px) scale(1.01) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.bc-wide-top {
  grid-column: span 2 !important;
}

.bc-tall {
  grid-row: span 2 !important;
  min-height: 420px !important;
}

.bc-wide-mid {
  grid-column: span 2 !important;
}

@media (max-width: 900px) {
  .bento-features-cluster {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .bc-wide-top, .bc-wide-mid {
    grid-column: span 2 !important;
  }
  .bc-tall {
    grid-row: span 1 !important;
    grid-column: span 1 !important;
    min-height: 200px !important;
  }
}
@media (max-width: 600px) {
  .bento-features-cluster {
    grid-template-columns: 1fr !important;
  }
  .bc-wide-top, .bc-wide-mid, .bc-tall {
    grid-column: span 1 !important;
  }
}
/* GEOMETRIC ARTWORK STYLES */
.card-geom-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  transition: all 0.4s ease;
}

.bento-card:hover .card-geom-decor {
  opacity: 0.9;
}

/* 1. Server Racks */
.geom-server {
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.geom-server .s-rack {
  width: 55px;
  height: 14px;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding-right: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.geom-server .s-led {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.geom-server .s-led.red {
  background: #ef4444;
}

.geom-server .s-led.green {
  background: #10b981;
}

.geom-server .s-led.blue {
  background: #3b82f6;
}

.bento-card:hover .geom-server .s-rack {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
}

/* 2. Speedometer Gauge */
.geom-speedometer {
  top: -15px;
  right: -15px;
  width: 110px;
  height: 110px;
}

.geom-speedometer .speed-arc {
  width: 100%;
  height: 100%;
  border: 3px dashed var(--primary-color);
  border-radius: 50%;
}

.bento-card:hover .geom-speedometer .speed-arc {
  animation: spin-gauge 4s linear infinite;
}

@keyframes spin-gauge {
  100% {
    transform: rotate(360deg);
  }
}
/* 3. Radar Sweep */
.geom-radar {
  top: -20px;
  right: -20px;
  width: 130px;
  height: 130px;
}

.geom-radar .r-circle {
  position: absolute;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  inset: 0;
}

.geom-radar .r-circle.r2 {
  inset: 25px;
}

.geom-radar .r-sweep {
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--primary-color) 360deg);
  border-radius: 50%;
  opacity: 0.15;
}

.bento-card:hover .geom-radar .r-sweep {
  animation: radar-spin 3s linear infinite;
}

@keyframes radar-spin {
  100% {
    transform: rotate(360deg);
  }
}
/* 4. Flow Nodes */
.geom-flownodes {
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.geom-flownodes .f-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
}

.geom-flownodes .f-line {
  width: 25px;
  height: 2px;
  background: var(--primary-color);
}

.bento-card:hover .geom-flownodes {
  animation: pulse-flow 1.2s infinite alternate;
}

@keyframes pulse-flow {
  0% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1.15);
  }
}
/* 5. Equalizer Bar Graph */
.geom-equalizer {
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.geom-equalizer .eq-b {
  width: 8px;
  background: var(--primary-color);
  border-radius: 2px;
}

.geom-equalizer .eq-b.b1 {
  height: 14px;
}

.geom-equalizer .eq-b.b2 {
  height: 26px;
}

.geom-equalizer .eq-b.b3 {
  height: 38px;
}

.geom-equalizer .eq-b.b4 {
  height: 20px;
}

.bento-card:hover .geom-equalizer .eq-b {
  animation: eq-bounce 0.8s infinite alternate ease-in-out;
}

@keyframes eq-bounce {
  0% {
    transform: scaleY(0.5);
  }
  100% {
    transform: scaleY(1.3);
  }
}
/* 6. Vault & Download Box */
.geom-vault {
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.geom-vault .v-beam {
  width: 14px;
  height: 14px;
  border-bottom: 3px solid var(--primary-color);
  border-right: 3px solid var(--primary-color);
  transform: rotate(45deg);
}

.bento-card:hover .geom-vault {
  transform: scale(1.15);
  box-shadow: 0 0 15px var(--primary-color);
}

/* 7. QR Scanner Reticle */
.geom-qr {
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  border: 2px dashed var(--primary-color);
  border-radius: 8px;
}

.bento-card:hover .geom-qr {
  animation: qr-pulse 1.5s infinite alternate;
}

@keyframes qr-pulse {
  0% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1.15);
    box-shadow: 0 0 12px var(--primary-color);
  }
}
/* 8. Neural Network */
.geom-neural {
  top: 20px;
  right: 20px;
  width: 60px;
  height: 40px;
}

.geom-neural .n-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  position: absolute;
}

.geom-neural .n-dot.d1 {
  top: 0;
  left: 0;
}

.geom-neural .n-dot.d2 {
  top: 20px;
  right: 0;
}

.geom-neural .n-dot.d3 {
  bottom: 0;
  left: 20px;
}

.geom-neural .n-line {
  position: absolute;
  inset: 0;
  border: 1px solid var(--primary-color);
  opacity: 0.3;
}

.bento-card:hover .geom-neural {
  animation: neural-glow 1.5s infinite alternate;
}

@keyframes neural-glow {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}
/* 9. Soundwave Audio Spectrum */
.geom-soundwave {
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.geom-soundwave .sw-b {
  width: 4px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 2px;
}

.bento-card:hover .geom-soundwave .sw-b {
  animation: sw-anim 0.6s infinite alternate ease-in-out;
}

@keyframes sw-anim {
  0% {
    transform: scaleY(0.3);
  }
  100% {
    transform: scaleY(1.5);
  }
}
/* 10. Code Terminal Box */
.geom-code {
  bottom: 15px;
  right: 15px;
  font-family: monospace;
  font-weight: 900;
  font-size: 22px;
  color: var(--primary-color);
}

.bento-card:hover .geom-code {
  animation: term-blink 0.8s infinite steps(2, start);
}

@keyframes term-blink {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}
/* 11. Security Certificate */
.geom-cert {
  top: 15px;
  right: 15px;
  width: 40px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
}

.geom-cert .cert-badge {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  position: absolute;
  bottom: 6px;
  right: 6px;
}

.bento-card:hover .geom-cert {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 12px var(--primary-color);
}

/* 12. Keyword Trend Line */
.geom-trend {
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 30px;
  border-bottom: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
  transform: skewY(-15deg);
}

.bento-card:hover .geom-trend {
  animation: trend-anim 1.5s infinite alternate;
}

@keyframes trend-anim {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
    transform: skewY(-15deg) scale(1.1);
  }
}
/* 13. Decibel VU Meter */
.geom-decibel-meter {
  bottom: 20px;
  right: 20px;
  width: 14px;
  height: 45px;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2px;
  gap: 2px;
}

.geom-decibel-meter .vu-segment {
  width: 100%;
  height: 6px;
  border-radius: 2px;
  background: var(--primary-color);
  opacity: 0.4;
}

.bento-card:hover .geom-decibel-meter .vu-segment {
  animation: vu-pulse 0.7s infinite alternate;
}

@keyframes vu-pulse {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 6px var(--primary-color);
  }
}
/* 14. Audio Waveform Line */
.geom-audio-waveform {
  bottom: 25px;
  right: 20px;
  width: 60px;
  height: 15px;
  border-bottom: 2px dashed var(--primary-color);
}

.bento-card:hover .geom-audio-waveform {
  animation: wave-slide 1s infinite linear;
}

@keyframes wave-slide {
  0% {
    transform: scaleX(0.8);
  }
  100% {
    transform: scaleX(1.15);
  }
}
/* 15. Voice Nodes Acoustic Rings */
.geom-voice-nodes {
  top: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  opacity: 0.3;
}

.bento-card:hover .geom-voice-nodes {
  animation: voice-ring 1.4s infinite ease-out;
}

@keyframes voice-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
/* 16. Ruler Scale Grid */
.geom-ruler-scale {
  top: 20px;
  right: 20px;
  width: 55px;
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--primary-color) 0 2px, transparent 2px 8px);
}

.bento-card:hover .geom-ruler-scale {
  opacity: 0.8;
}

/* 17. Case Toggle Reticle */
.geom-case-toggle {
  top: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  border: 2px solid var(--primary-color);
  transform: rotate(45deg);
  border-radius: 6px;
}

.bento-card:hover .geom-case-toggle {
  transform: rotate(225deg) scale(1.1);
}

/* 18. Alignment Line Grid */
.geom-align-grid {
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 40px;
}

.geom-align-grid .a-line {
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.geom-align-grid .a-line.l1 {
  width: 100%;
}

.geom-align-grid .a-line.l2 {
  width: 70%;
}

.geom-align-grid .a-line.l3 {
  width: 85%;
}

.bento-card:hover .geom-align-grid .a-line {
  animation: align-slide 1s infinite alternate;
}

@keyframes align-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-5px);
  }
}
/* 19. Word Histogram */
.geom-word-histogram {
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.geom-word-histogram .h-bar {
  width: 6px;
  background: var(--primary-color);
  border-radius: 2px;
}

.geom-word-histogram .h-bar.h1 {
  height: 12px;
}

.geom-word-histogram .h-bar.h2 {
  height: 28px;
}

.geom-word-histogram .h-bar.h3 {
  height: 18px;
}

.geom-word-histogram .h-bar.h4 {
  height: 35px;
}

.bento-card:hover .geom-word-histogram .h-bar {
  animation: histo-grow 0.9s infinite alternate;
}

@keyframes histo-grow {
  0% {
    transform: scaleY(0.4);
  }
  100% {
    transform: scaleY(1.3);
  }
}
/* 20. Dedup Matrix */
.geom-dedup-matrix {
  top: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  border: 2px dashed var(--primary-color);
  border-radius: 6px;
}

.bento-card:hover .geom-dedup-matrix {
  transform: rotate(90deg) scale(1.1);
}

/* 21. Spark Matrix */
.geom-spark-matrix {
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary-color);
  transform: rotate(45deg);
  border-radius: 4px;
}

.bento-card:hover .geom-spark-matrix {
  animation: spark-glow 1.2s infinite alternate;
}

@keyframes spark-glow {
  0% {
    box-shadow: 0 0 2px var(--primary-color);
  }
  100% {
    box-shadow: 0 0 14px var(--primary-color);
  }
}
/* 22. Email Envelope Frame */
.geom-email-envelope {
  top: 20px;
  right: 20px;
  width: 45px;
  height: 30px;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
}

.bento-card:hover .geom-email-envelope {
  transform: translateY(-3px);
  box-shadow: 0 0 10px var(--primary-color);
}

/* 23. Prompt Parameter Array */
.geom-prompt-array {
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary-color);
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
}

.geom-prompt-array .p-cell {
  background: var(--primary-color);
  border-radius: 2px;
  opacity: 0.4;
}

.bento-card:hover .geom-prompt-array .p-cell {
  animation: cell-flash 0.8s infinite alternate;
}

@keyframes cell-flash {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.9;
  }
}
/* 24. AI Matrix Frame */
.geom-ai-matrix {
  inset: 10px;
  border: 1px dashed var(--primary-color);
  border-radius: 14px;
  opacity: 0.15;
}

.bento-card:hover .geom-ai-matrix {
  opacity: 0.5;
  animation: matrix-pulse 2s infinite alternate;
}

@keyframes matrix-pulse {
  0% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1.02);
  }
}
/* 25. Document Structure Tree */
.geom-doc-structure {
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 35px;
}

.geom-doc-structure .d-row {
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.geom-doc-structure .d-row.r1 {
  width: 100%;
}

.geom-doc-structure .d-row.r2 {
  width: 60%;
  margin-left: 8px;
}

.geom-doc-structure .d-row.r3 {
  width: 80%;
  margin-left: 8px;
}

.bento-card:hover .geom-doc-structure {
  transform: translateX(-3px);
}

/* 26. Content Meter Arc */
.geom-content-meter {
  top: -10px;
  right: -10px;
  width: 90px;
  height: 90px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  opacity: 0.2;
}

.bento-card:hover .geom-content-meter {
  opacity: 0.6;
  transform: scale(1.1);
}

/* 27. Aperture Polygon Grid */
.geom-aperture {
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
}

.bento-card:hover .geom-aperture {
  transform: rotate(60deg) scale(1.1);
}

/* 28. Pixel Grid Lattice */
.geom-pixel-grid {
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.geom-pixel-grid .px-dot {
  background: var(--primary-color);
  border-radius: 1px;
  opacity: 0.3;
}

.bento-card:hover .geom-pixel-grid .px-dot {
  animation: px-blink 1s infinite alternate;
}

@keyframes px-blink {
  0% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.9;
  }
}
/* 29. Layer Separation Shield */
.geom-layer-shield {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  transform: rotate(15deg);
  border-radius: 6px;
}

.bento-card:hover .geom-layer-shield {
  transform: rotate(30deg) scale(1.1);
  box-shadow: 0 0 10px var(--primary-color);
}

/* 30. Barcode Laser Beams */
.geom-barcode-beam {
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 3px;
  height: 30px;
}

.geom-barcode-beam .b-line {
  width: 3px;
  background: var(--primary-color);
  border-radius: 1px;
}

.bento-card:hover .geom-barcode-beam .b-line {
  animation: barcode-scan 0.8s infinite alternate;
}

@keyframes barcode-scan {
  0% {
    transform: scaleY(0.7);
  }
  100% {
    transform: scaleY(1.2);
  }
}
/* 31. Wifi Wave Signal */
.geom-wifi-signal {
  top: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  border-top: 3px solid var(--primary-color);
  border-right: 3px solid var(--primary-color);
  border-radius: 0 45px 0 0;
}

.bento-card:hover .geom-wifi-signal {
  animation: wifi-pulse 1.2s infinite alternate;
}

@keyframes wifi-pulse {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 10px var(--primary-color);
  }
}
/* =========================================
   GLOBAL STATS STRIP DESIGN SYSTEM
   ========================================= */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 30px 0 40px;
  width: 100%;
}

.sc {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.sc:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color, #6366f1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.sc-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sc-ico.r, .sc-ico.red, .sc-ico.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.sc-ico.b, .sc-ico.blue, .sc-ico.purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.sc-ico.g, .sc-ico.green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.sc-ico.p, .sc-ico.pink {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.sc-val {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main, #1f2937);
  line-height: 1.2;
}

.sc-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ---------- CUSTOM DROPDOWN (GLOBAL) ---------- */
.custom-dropdown {
  position: relative;
  display: inline-block;
  user-select: none;
  font-family: inherit;
  width: 100%;
}

.cd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 140px;
}

.cd-header:hover, .custom-dropdown.active .cd-header {
  border-color: var(--primary-color, #4f46e5);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.cd-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-body {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 200px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-dropdown.active .cd-body {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cd-list {
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cd-list::-webkit-scrollbar {
  width: 4px;
}

.cd-list::-webkit-scrollbar-thumb {
  background: var(--border-color, #e2e8f0);
  border-radius: 4px;
}

.cd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  cursor: pointer;
  transition: background 0.2s;
}

.cd-item:hover {
  background: var(--bg-body, #f8fafc);
}

.cd-item.active {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary-color, #4f46e5);
}
