/* ========================================
   منصة الصفقات العمومية — هوية بصرية جديدة 2026
   Modern Algerian Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* ---- Design Tokens ---- */
:root {
  /* Algerian National Colors */
  --dz-green: #006233;
  --dz-green-deep: #004d28;
  --dz-green-light: #00a651;
  --dz-red: #d21034;
  --dz-gold: #C8A84B;
  --dz-gold-light: #e8c96e;
  --dz-white: #ffffff;

  /* Brand Palette */
  --primary: #006233;
  --primary-light: #00a651;
  --primary-dark: #004d28;
  --accent: #C8A84B;
  --accent-light: #e8c96e;
  --accent-dark: #a07a20;
  --secondary: #1a56db;
  --danger: #d21034;
  --success: #16a34a;
  --warning: #d97706;
  --info: #0891b2;

  /* Surfaces */
  --bg: #f0f4f1;
  --bg-card: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.92);
  --bg-sidebar: #03150c;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);

  /* Zellige mosaic subtle pattern */
  --pattern-dz: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23006233' fill-opacity='0.04'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");

  /* Typography */
  --text-primary: #0f1f16;
  --text-secondary: #4a5e50;
  --text-muted: #8fa494;
  --border: #d8e5db;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 98, 51, 0.06);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 8px 32px rgba(0, 98, 51, 0.18);
  --shadow-card: 0 4px 16px rgba(0, 98, 51, 0.06);

  /* Shape */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Motion */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-body: 'Cairo', 'Tajawal', sans-serif;
}

[data-theme="dark"] {
  --bg: #060f09;
  --bg-card: #0e1d12;
  --bg-nav: rgba(6, 15, 9, 0.92);
  --bg-sidebar: #040c06;
  --glass-bg: rgba(14, 29, 18, 0.78);
  --glass-border: rgba(255, 255, 255, 0.06);
  --text-primary: #e8f5ea;
  --text-secondary: #8db898;
  --text-muted: #4a6651;
  --border: #1a3322;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 8px 32px rgba(0, 166, 81, 0.12);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.45);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--dz-gold));
  border-radius: 4px;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
}

p {
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ════════════════════════════════════════
   NAVBAR  — frosted glass with flag stripe
   ════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

/* Thin tri-color stripe at top of navbar */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      var(--dz-green) 0%, var(--dz-green) 33.3%,
      #ffffff 33.3%, #ffffff 66.6%,
      var(--dz-red) 66.6%, var(--dz-red) 100%);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
  font-size: 1rem;
  color: var(--primary);
  white-space: nowrap;
}

.nav-logo .brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.nav-logo:hover .brand-logo {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(0, 98, 51, 0.09);
}

.nav-links a.active {
  font-weight: 800;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-theme {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-theme:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.08), transparent);
  border-radius: inherit;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--dz-green-deep), var(--dz-green-light));
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 98, 51, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 98, 51, 0.45);
  filter: brightness(1.08);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-light));
  color: #1a1000;
  box-shadow: 0 4px 18px rgba(200, 168, 75, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200, 168, 75, 0.5);
  filter: brightness(1.08);
}

.btn-danger {
  background: linear-gradient(135deg, #900c24, var(--dz-red));
  color: #fff;
  box-shadow: 0 4px 18px rgba(210, 16, 52, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-ghost {
  background: rgba(0, 98, 51, 0.07);
  color: var(--primary);
  border: 1px solid rgba(0, 98, 51, 0.15);
}

.btn-ghost:hover {
  background: rgba(0, 98, 51, 0.14);
}

.btn-sm {
  padding: 0.38rem 0.9rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
}

/* ════════════════════════════════════════
   CARDS
   ════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Premium card with gold accent top border */
.card-premium {
  border-top: 3px solid var(--accent);
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light), var(--accent-dark));
}

/* ════════════════════════════════════════
   BADGES / STATUS
   ════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-active {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.badge-evaluation {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

.badge-awarded {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.badge-cancelled {
  background: rgba(210, 16, 52, 0.1);
  color: var(--dz-red);
}

.badge-closed {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.active {
  background: #16a34a;
  box-shadow: 0 0 6px #16a34a;
  animation: pulse-dot 2s infinite;
}

.status-dot.evaluation {
  background: #d97706;
}

.status-dot.awarded {
  background: #2563eb;
}

.status-dot.cancelled {
  background: var(--dz-red);
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg,
      #002a12 0%,
      #004d28 25%,
      #006233 55%,
      #003d1f 80%,
      #001a0b 100%);
  z-index: 0;
}

/* Radial light overlays */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(200, 168, 75, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 85% 20%, rgba(0, 166, 81, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 90%, rgba(210, 16, 52, 0.07) 0%, transparent 55%);
}

/* Zellige geometric pattern overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cpolygon points='40,4 56,20 72,20 72,36 56,52 56,68 40,76 24,68 24,52 8,36 8,20 24,20' stroke='rgba(255,255,255,0.04)' stroke-width='1' fill='none'/%3E%3Ccircle cx='40' cy='40' r='6' fill='rgba(200,168,75,0.06)'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url('../assets/algiers_landmarks_hero.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  z-index: 1;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
  mix-blend-mode: color-dodge;
}

.bg-pattern {
  background-image: var(--pattern-dz);
  background-attachment: fixed;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem;
  max-width: 1250px;
  margin: 0 auto;
  width: 100%;
}

/* ════════════════════════════════════════
   STATS COUNTER
   ════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--dz-gold), transparent);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.stat-card .stat-number {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #fff;
}

.stat-card .stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.3rem;
  font-weight: 500;
}

.stat-card .stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* ════════════════════════════════════════
   SECTION STYLES
   ════════════════════════════════════════ */
.section {
  padding: 5rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(0, 98, 51, 0.1), rgba(0, 98, 51, 0.05));
  color: var(--primary);
  border: 1px solid rgba(0, 98, 51, 0.2);
  border-radius: 20px;
  padding: 0.28rem 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ════════════════════════════════════════
   TENDER CARD
   ════════════════════════════════════════ */
.tender-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tender-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--dz-green), var(--dz-green-light));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.tender-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(0, 98, 51, 0.22);
}

.tender-card.featured {
  border-color: rgba(200, 168, 75, 0.3);
}

.tender-card.featured::before {
  background: linear-gradient(180deg, var(--accent-dark), var(--accent-light));
}

.tender-card .tc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.tender-card .tc-id {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  font-family: monospace;
}

.tender-card .tc-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.45;
  flex: 1;
}

.tender-card .tc-entity {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

.tender-card .tc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.tender-card .tc-budget {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--primary);
}

.tender-card .tc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

/* ════════════════════════════════════════
   FILTER BAR
   ════════════════════════════════════════ */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.search-input {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-input input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.search-input input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 98, 51, 0.1);
}

.search-input .search-icon {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.9rem;
}

.filter-select {
  padding: 0.65rem 2rem 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.5rem center;
}

.filter-select:focus {
  border-color: var(--primary);
}

/* ════════════════════════════════════════
   SIDEBAR / DASHBOARD
   ════════════════════════════════════════ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 265px 1fr;
  min-height: 100vh;
  padding-top: 68px;
}

.sidebar {
  background: var(--bg-sidebar);
  color: #fff;
  padding: 1.5rem 1rem;
  position: fixed;
  top: 68px;
  right: 0;
  bottom: 0;
  width: 265px;
  overflow-y: auto;
  z-index: 100;
  /* subtle zellige texture */
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 2L38 20L20 38L2 20Z' fill='none' stroke='rgba(255,255,255,0.025)' stroke-width='1'/%3E%3C/svg%3E");
}

/* Flag-colored accent line on sidebar */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg,
      var(--dz-green) 0%, var(--dz-green) 40%,
      var(--dz-gold) 40%, var(--dz-gold) 60%,
      var(--dz-red) 60%, var(--dz-red) 100%);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.25rem;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.87rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-nav a.active {
  background: linear-gradient(135deg, var(--dz-green-deep), var(--primary));
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.sidebar-section {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.3);
  padding: 1rem 0.9rem 0.4rem;
  font-weight: 800;
}

.main-content {
  margin-right: 265px;
  padding: 2rem;
}

/* ════════════════════════════════════════
   NEWS TICKER
   ════════════════════════════════════════ */
.news-ticker {
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.ticker-label {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-light));
  color: #000;
  padding: 0.2rem 0.75rem;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-scroll {
  display: flex;
  gap: 3rem;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}

.ticker-scroll span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

@keyframes ticker {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

/* ════════════════════════════════════════
   NOTIFICATIONS
   ════════════════════════════════════════ */
.notif-panel {
  position: fixed;
  bottom: 90px;
  left: 1.5rem;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.notif-item {
  background: var(--bg-card);
  border-right: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  max-width: 320px;
  pointer-events: auto;
  animation: slideInLeft 0.35s ease;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notif-item.warning {
  border-right-color: var(--warning);
}

.notif-item.info {
  border-right-color: var(--info);
}

.notif-item.success {
  border-right-color: var(--success);
}

/* ════════════════════════════════════════
   CHATBOT
   ════════════════════════════════════════ */
.chatbot-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dz-green-deep), var(--dz-green-light));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 98, 51, 0.45);
  transition: var(--transition);
  z-index: 900;
  animation: float 3s ease-in-out infinite;
}

.chatbot-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(0, 98, 51, 0.6);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

.chatbot-window {
  position: fixed;
  bottom: 90px;
  left: 1.5rem;
  width: 360px;
  max-height: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 900;
  overflow: hidden;
  transform-origin: bottom left;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.chatbot-window.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--dz-green-deep), var(--primary));
  color: #fff;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-header h4 {
  font-size: 0.95rem;
}

.chatbot-header p {
  font-size: 0.75rem;
  opacity: 0.8;
}

.chatbot-avatar {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.55;
  animation: fadeInUp 0.2s ease;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}

.chatbot-input-area {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}

.chatbot-input-area input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.84rem;
  background: var(--bg);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.chatbot-input-area input:focus {
  border-color: var(--primary);
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.5rem;
}

.chat-suggestion-btn {
  padding: 0.3rem 0.7rem;
  background: rgba(0, 98, 51, 0.07);
  border: 1px solid rgba(0, 98, 51, 0.15);
  border-radius: 20px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.chat-suggestion-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ════════════════════════════════════════
   FORMS
   ════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-label span.required {
  color: var(--danger);
  margin-right: 0.2rem;
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 98, 51, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ════════════════════════════════════════
   STEPS
   ════════════════════════════════════════ */
.steps-bar {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  gap: 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 2.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
  transition: var(--transition);
  z-index: 1;
}

.step-item.active .step-circle {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 98, 51, 0.08);
}

.step-item.done .step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: var(--transition);
}

.step-line.done {
  background: var(--primary);
}

.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 0.4rem;
}

.step-item.active .step-label,
.step-item.done .step-label {
  color: var(--primary);
}

/* ════════════════════════════════════════
   FILE UPLOAD
   ════════════════════════════════════════ */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.file-upload-area:hover {
  border-color: var(--primary);
  background: rgba(0, 98, 51, 0.04);
}

.file-upload-area.drag-over {
  border-color: var(--primary);
  background: rgba(0, 98, 51, 0.08);
}

.file-upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

/* ════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.animate-fade-up {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-fade {
  animation: fadeIn 0.4s ease forwards;
}

.animate-slide-in {
  animation: slideInRight 0.5s ease forwards;
}

/* ════════════════════════════════════════
   GRID LAYOUTS
   ════════════════════════════════════════ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* ════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover,
.page-btn.active {
  background: linear-gradient(135deg, var(--dz-green-deep), var(--primary));
  color: #fff;
  border-color: var(--primary);
}

/* ════════════════════════════════════════
   ALERTS
   ════════════════════════════════════════ */
.alert {
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid;
}

.alert-info {
  background: rgba(8, 145, 178, 0.08);
  border-color: rgba(8, 145, 178, 0.2);
  color: #0369a1;
}

.alert-warning {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.2);
  color: #92400e;
}

.alert-success {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.2);
  color: #166534;
}

.alert-danger {
  background: rgba(210, 16, 52, 0.08);
  border-color: rgba(210, 16, 52, 0.2);
  color: #7f0620;
}

/* ════════════════════════════════════════
   LAWS MODAL
   ════════════════════════════════════════ */
.laws-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #003d1f, var(--primary));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 98, 51, 0.45);
  transition: var(--transition);
  z-index: 900;
}

.laws-btn:hover {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 10px 32px rgba(0, 98, 51, 0.6);
}

.laws-btn .laws-btn-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-sidebar);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.laws-btn:hover .laws-btn-tooltip {
  opacity: 1;
}

.laws-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.laws-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.laws-modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateY(40px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
}

.laws-overlay.open .laws-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.laws-modal-header {
  background: linear-gradient(135deg, #003d1f 0%, #006233 60%, #1a56db 100%);
  padding: 1.5rem 1.75rem 1rem;
  position: relative;
  flex-shrink: 0;
}

.laws-modal-header h2 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.laws-modal-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
}

.laws-modal-close {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.laws-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.laws-search-wrap {
  padding: 1rem 1.75rem 0;
  flex-shrink: 0;
}

.laws-search-wrap input {
  width: 100%;
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.laws-search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 98, 51, 0.1);
}

.laws-search-wrap .laws-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.laws-search-container {
  position: relative;
}

.laws-tabs {
  display: flex;
  gap: 0;
  padding: 0.75rem 1.75rem 0;
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
}

.laws-tab {
  padding: 0.6rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
}

.laws-tab:hover {
  color: var(--primary);
}

.laws-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.laws-modal-body {
  overflow-y: auto;
  padding: 1.25rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.law-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  transition: var(--transition);
  border-right: 4px solid var(--primary);
  cursor: default;
  animation: fadeIn 0.3s ease;
}

.law-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(0, 98, 51, 0.3);
}

.law-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.law-card-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(0, 98, 51, 0.1);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.law-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  flex: 1;
}

.law-card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.law-card-summary {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.law-card-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.law-article-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-weight: 600;
}

.law-article-chip.law-section-header {
  width: 100%;
  background: linear-gradient(135deg, rgba(0, 98, 51, 0.1), rgba(200, 168, 75, 0.08));
  border-color: rgba(0, 98, 51, 0.25);
  color: var(--primary);
  font-weight: 900;
  font-size: 0.76rem;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  margin-top: 0.4rem;
}

.law-card-status {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.law-status-active {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.law-status-amended {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

.law-status-repealed {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.laws-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.laws-empty div:first-child {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.laws-modal-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 0.85rem 1.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   CHART CONTAINER
   ════════════════════════════════════════ */
.chart-container {
  position: relative;
  height: 300px;
}

.chart-container.sm {
  height: 200px;
}

/* ════════════════════════════════════════
   MISC UTILITIES
   ════════════════════════════════════════ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.text-primary {
  color: var(--primary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-900 {
  font-weight: 900 !important;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.p-2 {
  padding: 1rem;
}

.w-100 {
  width: 100%;
}

/* Algerian flag inline widget */
.flag-dz {
  display: inline-flex;
  align-items: stretch;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  height: 20px;
}

.flag-dz .f-green {
  background: #006233;
  width: 14px;
}

.flag-dz .f-white {
  background: #fff;
  width: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #d21034;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width:900px) {
  .nav-links {
    display: none;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    margin-right: 0;
    padding: 1.25rem;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width:640px) {
  .filter-bar {
    flex-direction: column;
  }

  .search-input {
    min-width: 0;
    width: 100%;
  }

  .chatbot-window {
    width: calc(100vw - 3rem);
  }

  h1 {
    font-size: 1.75rem;
  }

  .laws-modal {
    max-height: 95vh;
    border-radius: var(--radius-lg);
  }

  .laws-modal-header,
  .laws-modal-body,
  .laws-search-wrap,
  .laws-tabs {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .laws-btn {
    bottom: 5.5rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
}

/* ════════════════════════════════════════
   PAYMENT MODAL & MERGED ICONS
   ════════════════════════════════════════ */
.pay-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pay-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.pay-modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
}

.pay-overlay.open .pay-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pay-modal-header {
  background: linear-gradient(135deg, #003d1f, #006233, #004d28);
  padding: 1.5rem 1.75rem 1.25rem;
  color: #fff;
  position: relative;
}

.pay-modal-header h2 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
}

.pay-modal-header p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.3rem;
}

.pay-modal-close {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.pay-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.pay-modal-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.card-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.card-type-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--bg);
  position: relative;
}

.card-type-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-type-option.active {
  border-color: var(--primary);
  background: rgba(0, 98, 51, 0.06);
}

.pay-card-preview {
  width: 100%;
  max-width: 380px;
  height: 210px;
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  color: #fff;
  font-family: 'Courier New', monospace;
  position: relative;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transition: background 0.4s;
}

.pay-card-preview.cib-card {
  background: linear-gradient(135deg, #003d1f 0%, #006233 45%, #1a56db 100%);
}

.pay-card-preview.gold-card {
  background: linear-gradient(135deg, #6d4c00 0%, #b8860b 40%, #daa520 70%, #f0c040 100%);
}

.pay-card-chip {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.pay-card-num {
  font-size: 1.15rem;
  letter-spacing: 3px;
  margin-bottom: 0.8rem;
}

.pay-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.pay-card-label {
  font-size: 0.58rem;
  opacity: 0.7;
}

.pay-card-value {
  font-size: 0.82rem;
  margin-top: 0.1rem;
}

.pay-amount-display {
  background: linear-gradient(135deg, rgba(0, 98, 51, 0.06), rgba(0, 98, 51, 0.02));
  border: 1.5px solid rgba(0, 98, 51, 0.2);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.pay-amount-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

.pay-processing-modal,
.pay-success-modal {
  text-align: center;
  padding: 2rem;
  display: none;
}

.pay-spin {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

.merged-spec-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(0, 98, 51, 0.1);
  border-radius: 8px;
  font-size: 1.2rem;
}

.merged-spec-icon .pay-overlay-icon {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 0.7rem;
  background: var(--primary);
  color: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-card);
}