/*
 * الميدان — Frontend Styles (Light Professional)
 * نظام تصميم فاتح احترافي
 */

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

/* ══════════════════════════════════════════════════════════════
   CSS VARIABLES — Light Theme
   ══════════════════════════════════════════════════════════════ */
:root {
  --al-bg:          #F5F6F8;
  --al-bg2:         #FFFFFF;
  --al-bg3:         #F0F1F4;
  --al-bg4:         #E8EAF0;
  --al-border:      #E2E5EC;
  --al-border2:     #CDD1DC;
  --al-text:        #1A1D27;
  --al-text2:       #5A6074;
  --al-text3:       #9DA3B4;

  --al-gold:        #C27B1A;
  --al-gold-light:  #E09020;
  --al-gold-bg:     #FEF6E7;
  --al-gold-bd:     #F5C86A;

  --al-green:       #1A7A45;
  --al-green-light: #22A05A;
  --al-green-bg:    #EDFAF3;
  --al-green-bd:    #7DD6A8;

  --al-red:         #C0392B;
  --al-red-bg:      #FEF0EE;
  --al-red-bd:      #F5A89E;

  --al-blue:        #1B5FC7;
  --al-blue-bg:     #EEF4FF;
  --al-blue-bd:     #A3BFFA;

  --al-purple:      #6D28D9;
  --al-purple-bg:   #F3EFFE;

  --al-r:           10px;
  --al-r-sm:        7px;
  --al-r-lg:        14px;

  --al-shadow:      0 1px 3px rgba(0,0,0,0.07), 0 2px 8px rgba(0,0,0,0.05);
  --al-shadow-md:   0 4px 20px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --al-shadow-card: 0 0 0 1px var(--al-border), 0 2px 8px rgba(0,0,0,0.05);
}

/* ══════════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════════ */
.al-wrap *, .al-wrap *::before, .al-wrap *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

.al-wrap {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  direction: rtl; text-align: right;
  color: var(--al-text); background: var(--al-bg);
  min-height: 100vh; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  max-width: 920px; margin: 0 auto;
  padding: 28px 20px 60px;
}

/* ══════════════════════════════════════════════════════════════
   PAGE HEADER
   ══════════════════════════════════════════════════════════════ */
.al-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px; padding-bottom: 18px;
  border-bottom: 2px solid var(--al-border);
}
.al-page-title {
  font-size: 1.45rem; font-weight: 800;
  color: var(--al-text); letter-spacing: -0.3px;
}
.al-page-date {
  font-size: 0.82rem; color: var(--al-text3);
  background: var(--al-bg2); padding: 5px 13px;
  border-radius: 20px; border: 1px solid var(--al-border);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════ */
.al-card {
  background: var(--al-bg2);
  border: 1px solid var(--al-border);
  border-radius: var(--al-r-lg);
  margin-bottom: 18px;
  box-shadow: var(--al-shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
  animation: al-fadeUp 0.28s ease both;
}
.al-card:hover {
  box-shadow: var(--al-shadow-md);
  border-color: var(--al-border2);
}
.al-card:nth-child(2){animation-delay:.05s} .al-card:nth-child(3){animation-delay:.09s}
.al-card:nth-child(4){animation-delay:.13s} .al-card:nth-child(5){animation-delay:.17s}

.al-card__title {
  font-size: 0.92rem; font-weight: 700; color: var(--al-text);
  padding: 16px 20px; border-bottom: 1px solid var(--al-border);
  background: var(--al-bg3);
  display: flex; align-items: center; gap: 8px;
}

/* ══════════════════════════════════════════════════════════════
   NOTICES
   ══════════════════════════════════════════════════════════════ */
.al-notice {
  padding: 13px 16px; border-radius: var(--al-r);
  font-size: 0.88rem; font-weight: 500; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.55; border: 1px solid transparent;
}
.al-notice--info    { background: var(--al-blue-bg);   border-color: var(--al-blue-bd);  color: var(--al-blue); }
.al-notice--warn    { background: var(--al-gold-bg);   border-color: var(--al-gold-bd);  color: var(--al-gold); }
.al-notice--error   { background: var(--al-red-bg);    border-color: var(--al-red-bd);   color: var(--al-red); }
.al-notice--success { background: var(--al-green-bg);  border-color: var(--al-green-bd); color: var(--al-green); }

/* ══════════════════════════════════════════════════════════════
   PROFILE CARD
   ══════════════════════════════════════════════════════════════ */
.al-profile-card {
  display: flex; align-items: center; gap: 18px; padding: 22px 20px;
}
.al-profile-card--lg {
  gap: 22px; padding: 26px 22px; position: relative;
}
.al-profile-card--lg::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to left, var(--al-gold-bd), var(--al-gold), var(--al-gold-bd));
  border-radius: var(--al-r-lg) var(--al-r-lg) 0 0;
}
.al-avatar {
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--al-border2); flex-shrink: 0;
}
.al-avatar--lg {
  width: 86px; height: 86px;
  border: 3px solid var(--al-gold-bd);
  box-shadow: 0 0 0 4px var(--al-gold-bg);
}
.al-avatar-sm {
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--al-border); flex-shrink: 0;
}
.al-profile-info { flex: 1; min-width: 0; }
.al-profile-name {
  font-size: 1.2rem; font-weight: 800;
  color: var(--al-text); margin-bottom: 5px; letter-spacing: -0.2px;
}
.al-profile-meta {
  font-size: 0.83rem; color: var(--al-text2);
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
}
.al-sep { color: var(--al-border2); }
.al-status--active    { color: var(--al-green-light); font-weight: 700; }
.al-status--pending   { color: var(--al-gold-light);  font-weight: 700; }
.al-status--suspended { color: var(--al-red);          font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   STATS GRID
   ══════════════════════════════════════════════════════════════ */
.al-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 18px;
}
.al-stat {
  background: var(--al-bg2); border: 1px solid var(--al-border);
  border-radius: var(--al-r); padding: 18px 12px; text-align: center;
  transition: all 0.2s; cursor: default;
  position: relative; overflow: hidden;
  animation: al-fadeUp 0.28s ease both;
}
.al-stat::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--al-gold-bd); opacity: 0;
  transition: opacity 0.2s;
}
.al-stat:hover { border-color: var(--al-gold-bd); box-shadow: var(--al-shadow); }
.al-stat:hover::before { opacity: 1; }
.al-stat:nth-child(1){animation-delay:.04s} .al-stat:nth-child(2){animation-delay:.08s}
.al-stat:nth-child(3){animation-delay:.12s} .al-stat:nth-child(4){animation-delay:.16s}
.al-stat:nth-child(5){animation-delay:.20s} .al-stat:nth-child(6){animation-delay:.24s}
.al-stat__val {
  display: block; font-size: 1.75rem; font-weight: 900;
  color: var(--al-text); line-height: 1.1; letter-spacing: -0.5px;
}
.al-stat__lbl {
  display: block; font-size: 0.70rem; color: var(--al-text3);
  margin-top: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════════
   QUICK LINKS
   ══════════════════════════════════════════════════════════════ */
.al-quick-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 20px; }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.al-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 9px 18px; border-radius: var(--al-r);
  font-size: 0.875rem; font-weight: 700; cursor: pointer; border: none;
  text-decoration: none; transition: all 0.17s ease;
  font-family: inherit; letter-spacing: 0.1px; white-space: nowrap;
}
.al-btn--primary {
  background: var(--al-gold); color: #fff;
  box-shadow: 0 1px 4px rgba(194,123,26,0.35);
}
.al-btn--primary:hover {
  background: var(--al-gold-light);
  box-shadow: 0 3px 10px rgba(194,123,26,0.35);
  transform: translateY(-1px);
}
.al-btn--outline {
  background: var(--al-bg2); color: var(--al-text2);
  border: 1px solid var(--al-border2);
}
.al-btn--outline:hover { color: var(--al-text); background: var(--al-bg3); border-color: var(--al-border2); }
.al-btn--sm   { padding: 6px 13px; font-size: 0.81rem; }
.al-btn--full { width: 100%; }
.al-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ══════════════════════════════════════════════════════════════
   FORM
   ══════════════════════════════════════════════════════════════ */
.al-form { display: flex; flex-direction: column; gap: 18px; padding: 22px 20px; }
.al-field { display: flex; flex-direction: column; gap: 6px; }
.al-label { font-size: 0.84rem; font-weight: 700; color: var(--al-text2); }
.al-req { color: var(--al-red); }
.al-input, .al-select, .al-textarea {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--al-border); border-radius: var(--al-r);
  font-size: 0.9rem; font-family: inherit;
  background: var(--al-bg); color: var(--al-text);
  transition: border-color 0.17s, box-shadow 0.17s;
  appearance: none;
}
.al-input::placeholder, .al-textarea::placeholder { color: var(--al-text3); }
.al-input:focus, .al-select:focus, .al-textarea:focus {
  outline: none; border-color: var(--al-gold);
  box-shadow: 0 0 0 3px rgba(194,123,26,0.12);
  background: var(--al-bg2);
}
.al-select--sm { width: auto; padding: 7px 11px; font-size: 0.84rem; }
.al-textarea   { resize: vertical; min-height: 90px; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   UPLOAD
   ══════════════════════════════════════════════════════════════ */
.al-upload-area {
  border: 2px dashed var(--al-border2); border-radius: var(--al-r-lg);
  cursor: pointer; overflow: hidden; min-height: 120px;
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: all 0.2s; background: var(--al-bg3);
}
.al-upload-area:hover { border-color: var(--al-gold); background: var(--al-gold-bg); }
.al-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.al-upload-placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; color: var(--al-text3); font-size: 0.9rem; padding: 24px; pointer-events: none;
}
.al-upload-icon { font-size: 2.4rem; line-height: 1; }
.al-preview { width: 100%; max-height: 260px; object-fit: cover; display: block; }

/* GPS */
.al-gps-box {
  background: var(--al-bg3); border: 1.5px solid var(--al-border);
  border-radius: var(--al-r); padding: 13px 15px;
  font-size: 0.87rem; color: var(--al-text2);
}

/* ══════════════════════════════════════════════════════════════
   TASKS
   ══════════════════════════════════════════════════════════════ */
.al-tasks-list { display: flex; flex-direction: column; }
.al-task {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--al-border);
  transition: background 0.15s; background: transparent;
}
.al-task:last-child { border-bottom: none; }
.al-task:hover { background: var(--al-bg3); }
.al-task--done { opacity: 0.52; }
.al-task__info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.al-task__name { font-weight: 700; font-size: 0.93rem; color: var(--al-text); }
.al-task__desc { font-size: 0.81rem; color: var(--al-text2); line-height: 1.4; }
.al-task__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.al-tag {
  background: var(--al-bg3); border: 1px solid var(--al-border2);
  border-radius: 5px; padding: 2px 8px;
  font-size: 0.73rem; color: var(--al-text2); font-weight: 600;
}
.al-task__action { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.al-task__progress { font-size: 0.76rem; color: var(--al-text3); font-weight: 600; }
.al-badge--done {
  background: var(--al-green-bg); color: var(--al-green);
  border: 1px solid var(--al-green-bd); border-radius: 6px;
  padding: 4px 10px; font-size: 0.76rem; font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════
   FILTERS
   ══════════════════════════════════════════════════════════════ */
.al-filters { padding: 0; margin-bottom: 18px; }
.al-filters__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px 20px; }

/* ══════════════════════════════════════════════════════════════
   RANKING TABLE
   ══════════════════════════════════════════════════════════════ */
.al-ranking-card { padding: 0; }
.al-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.al-table thead tr { background: var(--al-bg3); }
.al-table th {
  padding: 11px 16px; text-align: right; font-weight: 700;
  color: var(--al-text3); font-size: 0.73rem;
  border-bottom: 2px solid var(--al-border);
  letter-spacing: 0.6px; text-transform: uppercase;
}
.al-table td {
  padding: 13px 16px; border-bottom: 1px solid var(--al-border);
  color: var(--al-text); vertical-align: middle;
}
.al-table tr:last-child td { border-bottom: none; }
.al-table tbody tr { transition: background 0.14s; }
.al-table tbody tr:hover { background: var(--al-bg3); }
.al-rank-cell { font-size: 1.05rem; text-align: center; width: 50px; font-weight: 800; }
.al-user-cell { display: flex; align-items: center; gap: 11px; }
.al-user-cell span { font-weight: 600; font-size: 0.9rem; }
.al-pts-cell { white-space: nowrap; font-weight: 800; font-size: 0.95rem; color: var(--al-gold); }
.al-row--me {
  background: var(--al-gold-bg) !important;
  border-right: 3px solid var(--al-gold) !important;
}
.al-me-badge {
  background: var(--al-gold-bg); color: var(--al-gold);
  border: 1px solid var(--al-gold-bd); border-radius: 5px;
  padding: 2px 7px; font-size: 0.70rem; font-weight: 700; margin-right: 6px;
}
.al-trust-bar {
  display: inline-block; width: 60px; height: 5px;
  background: var(--al-bg4); border-radius: 3px;
  vertical-align: middle; margin-left: 7px; overflow: hidden;
}
.al-trust-bar__fill {
  display: block; height: 100%;
  background: linear-gradient(to left, var(--al-green-light), var(--al-green));
  border-radius: 3px;
}

/* ══════════════════════════════════════════════════════════════
   FEED
   ══════════════════════════════════════════════════════════════ */
.al-feed { display: flex; flex-direction: column; }
.al-feed-item { padding: 0; }
.al-feed-item + .al-feed-item { border-top: 1px solid var(--al-border); }
.al-feed-item__header { display: flex; align-items: center; gap: 13px; padding: 16px 20px 10px; }
.al-feed-item__meta { flex: 1; min-width: 0; }
.al-feed-item__name { display: block; font-weight: 700; font-size: 0.92rem; color: var(--al-text); margin-bottom: 2px; }
.al-feed-item__sub  { display: block; font-size: 0.78rem; color: var(--al-text2); }
/* روابط الاسم والصورة للملف الشخصي */
.al-feed-item__name-link { text-decoration: none; color: inherit; }
.al-feed-item__name-link:hover .al-feed-item__name { color: var(--al-primary, #2563eb); text-decoration: underline; }
.al-feed-item__avatar-link { display: inline-block; flex-shrink: 0; border-radius: 50%; transition: opacity .15s; }
.al-feed-item__avatar-link:hover { opacity: .82; }
.al-feed-item__pts {
  font-weight: 800; color: var(--al-green); white-space: nowrap;
  background: var(--al-green-bg); border: 1px solid var(--al-green-bd);
  padding: 4px 10px; border-radius: 20px; font-size: 0.82rem;
}
.al-feed-item__note { font-size: 0.87rem; color: var(--al-text2); padding: 0 20px 13px; line-height: 1.6; }
.al-feed-img { width: 100%; max-height: 240px; object-fit: cover; display: block; }
.al-feed-item__footer { padding: 9px 20px 15px; font-size: 0.76rem; color: var(--al-text3); }

/* ══════════════════════════════════════════════════════════════
   BADGES PAGE
   ══════════════════════════════════════════════════════════════ */
.al-progress-card { padding: 20px 22px; }
.al-progress-header {
  display: flex; justify-content: space-between;
  font-size: 0.86rem; color: var(--al-text2); font-weight: 600; margin-bottom: 10px;
}
.al-progress-bar {
  background: var(--al-bg4); border-radius: 99px;
  height: 8px; overflow: hidden;
}
.al-progress-bar__fill {
  height: 100%;
  background: linear-gradient(to left, var(--al-gold-light), var(--al-gold));
  border-radius: 99px; transition: width 0.5s ease;
}
.al-progress-pct { font-size: 0.78rem; color: var(--al-gold); margin-top: 5px; display: block; text-align: left; font-weight: 700; }

.al-badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; padding: 18px 20px; }
.al-badge-card {
  border: 1px solid var(--al-border); border-radius: var(--al-r);
  padding: 18px 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: var(--al-bg2); transition: all 0.2s;
}
.al-badge-card:hover:not(.al-badge-card--locked) {
  border-color: var(--al-gold-bd); transform: translateY(-2px); box-shadow: var(--al-shadow-md);
}
.al-badge-card--locked  { opacity: 0.38; filter: grayscale(0.9); }
.al-badge-card--earned  { background: var(--al-gold-bg); border-color: var(--al-gold-bd); }
.al-badge-card__icon    { font-size: 2.2rem; line-height: 1; }
.al-badge-card__name    { font-size: 0.83rem; font-weight: 700; color: var(--al-text); }
.al-badge-card--earned .al-badge-card__name { color: var(--al-gold); }
.al-badge-card__desc    { font-size: 0.71rem; color: var(--al-text3); line-height: 1.45; }
.al-badge-card__status--earned { font-size: 0.71rem; color: var(--al-green); font-weight: 700; }
.al-badge-card__status--locked { font-size: 0.85rem; color: var(--al-text3); }
.al-badge-card__xp { font-size: 0.70rem; color: var(--al-purple); font-weight: 700; background: var(--al-purple-bg); padding: 2px 7px; border-radius: 20px; }

/* Badges (profile row) */
.al-badges-row { display: flex; flex-wrap: wrap; gap: 9px; padding: 16px 20px; }
.al-badge-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 11px 9px; background: var(--al-bg3); border: 1px solid var(--al-border);
  border-radius: var(--al-r); min-width: 72px; text-align: center; transition: all 0.18s;
}
.al-badge-item:hover { border-color: var(--al-gold-bd); transform: translateY(-2px); box-shadow: var(--al-shadow); }
.al-badge-icon  { font-size: 1.55rem; line-height: 1; }
.al-badge-name  { font-size: 0.70rem; font-weight: 700; color: var(--al-text2); }
.al-badge-item--gold    { border-color: var(--al-gold-bd);    background: var(--al-gold-bg); }
.al-badge-item--silver  { border-color: #C8CDD8;               background: #F6F7FA; }
.al-badge-item--special { border-color: var(--al-blue-bd);    background: var(--al-blue-bg); }

/* ACTIVITY LIST */
.al-activity-list { list-style: none; padding: 0 20px; margin: 0; display: flex; flex-direction: column; }
.al-activity-item {
  display: flex; align-items: center; gap: 11px;
  font-size: 0.87rem; padding: 12px 0;
  border-bottom: 1px solid var(--al-border); color: var(--al-text2);
}
.al-activity-item:last-child { border-bottom: none; }
.al-activity-task  { flex: 1; color: var(--al-text); font-weight: 500; }
.al-activity-pts   { font-weight: 800; color: var(--al-green); white-space: nowrap; }
.al-activity-date  { color: var(--al-text3); white-space: nowrap; font-size: 0.76rem; }

/* PAGINATION */
.al-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px 0 8px; }
.al-pagination__info { font-size: 0.83rem; color: var(--al-text3); font-weight: 600; }

/* PILLS */
.al-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 0.73rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; border: 1px solid transparent; }
.al-pill-gold   { background: var(--al-gold-bg);  color: var(--al-gold);         border-color: var(--al-gold-bd); }
.al-pill-green  { background: var(--al-green-bg); color: var(--al-green);        border-color: var(--al-green-bd); }
.al-pill-red    { background: var(--al-red-bg);   color: var(--al-red);          border-color: var(--al-red-bd); }
.al-pill-blue   { background: var(--al-blue-bg);  color: var(--al-blue);         border-color: var(--al-blue-bd); }
.al-pill-gray   { background: var(--al-bg3);      color: var(--al-text2);        border-color: var(--al-border2); }

/* TOAST */
.al-toast {
  position: fixed; bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--al-text); color: #fff;
  border-radius: var(--al-r); padding: 12px 20px;
  display: flex; align-items: center; gap: 9px;
  font-size: 0.88rem; font-weight: 600; z-index: 9999;
  box-shadow: var(--al-shadow-md);
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap;
}
.al-toast.show { transform: translateX(-50%) translateY(0); }

/* ANIMATIONS */
@keyframes al-fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* SCROLLBAR */
.al-wrap ::-webkit-scrollbar       { width: 5px; height: 5px; }
.al-wrap ::-webkit-scrollbar-track { background: var(--al-bg3); }
.al-wrap ::-webkit-scrollbar-thumb { background: var(--al-border2); border-radius: 3px; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .al-wrap { padding: 14px 12px 44px; }
  .al-stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .al-badges-grid { grid-template-columns: repeat(2, 1fr); }
  .al-filters__row { flex-direction: column; align-items: stretch; }
  .al-select--sm { width: 100%; }
  .al-profile-card { flex-direction: column; text-align: center; padding: 18px; }
  .al-profile-meta { justify-content: center; }
  .al-quick-links { flex-direction: column; }
  .al-btn--primary, .al-btn--outline { width: 100%; justify-content: center; }
  .al-page-title { font-size: 1.2rem; }
  .al-task { flex-direction: column; align-items: flex-start; gap: 10px; }
  .al-task__action { flex-direction: row; align-items: center; gap: 10px; }
  .al-form { padding: 16px; }
  .al-feed-item__header { padding: 14px 16px 9px; }
  .al-feed-item__note   { padding: 0 16px 11px; }
  .al-feed-item__footer { padding: 7px 16px 13px; }
}

/* ══════════════════════════════════════════════════════════════
   ONBOARDING PAGE — [almidan_onboarding]
   ══════════════════════════════════════════════════════════════ */

.al-onboarding-wrap {
  max-width: 560px !important;
  padding-top: 40px !important;
}

/* Progress Steps */
.al-onboarding-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.al-onboarding-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--al-text3);
  font-weight: 600;
}

.al-ob-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--al-bg3);
  border: 2px solid var(--al-border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--al-text3);
}

.al-onboarding-step--done .al-ob-step-num {
  background: var(--al-green-bg);
  border-color: var(--al-green-bd);
  color: var(--al-green);
}

.al-onboarding-step--active .al-ob-step-num {
  background: var(--al-gold);
  border-color: var(--al-gold);
  color: #fff;
  box-shadow: 0 0 0 4px var(--al-gold-bg);
}

.al-onboarding-step--active {
  color: var(--al-gold);
}

.al-onboarding-step--done {
  color: var(--al-green);
}

.al-onboarding-step-line {
  flex: 1;
  height: 2px;
  background: var(--al-border);
  margin: 0 10px;
  margin-bottom: 22px;
  min-width: 40px;
}

.al-onboarding-step-line--done {
  background: var(--al-green-bd);
}

/* Onboarding Card */
.al-onboarding-card {
  padding: 0 !important;
}

.al-onboarding-header {
  text-align: center;
  padding: 32px 24px 24px;
  border-bottom: 1px solid var(--al-border);
  background: var(--al-bg3);
}

.al-onboarding-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 12px;
}

.al-onboarding-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--al-text);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.al-onboarding-sub {
  font-size: 0.88rem;
  color: var(--al-text2);
  margin: 0;
}

/* ── بطاقات اختيار نوع الحساب ─────────────────────────── */
.al-ob-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 28px 24px 32px;
}

.al-ob-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  background: var(--al-bg3);
  border: 2px solid var(--al-border2);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
  text-align: center;
  font-family: inherit;
  color: var(--al-text);
}

.al-ob-type-card:hover {
  border-color: var(--al-gold);
  box-shadow: 0 4px 20px var(--al-gold-bg);
  transform: translateY(-2px);
}

.al-ob-type-card:active {
  transform: translateY(0);
}

.al-ob-type-icon {
  font-size: 2.6rem;
  line-height: 1;
}

.al-ob-type-card strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--al-text);
}

.al-ob-type-desc {
  font-size: 0.78rem;
  color: var(--al-text3);
  line-height: 1.4;
}

/* ── زر الرجوع لاختيار النوع ─────────────────────────── */
.al-ob-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 24px 0;
  padding: 6px 0;
  background: none;
  border: none;
  color: var(--al-text3);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s;
}

.al-ob-back-btn:hover {
  color: var(--al-gold);
}

/* ── حقل اختياري — label خفيف ────────────────────────── */
.al-ob-optional {
  font-size: 0.78rem;
  color: var(--al-text3);
  font-weight: 400;
}

@media (max-width: 480px) {
  .al-ob-type-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   الملف الشخصي — بطاقات الأنشطة والتقييمات
   ════════════════════════════════════════════════════════════════════════ */

/* ── Profile Header ── */
.al-profile-avatar-wrap {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}
.al-verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 18px;
    line-height: 1;
    background: #fff;
    border-radius: 50%;
}
.al-trust-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.al-trust-label {
    font-size: 12px;
    color: var(--al-muted);
    white-space: nowrap;
}
.al-trust-bar--lg {
    height: 8px;
    flex: 1;
    max-width: 160px;
}
.al-trust-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--al-accent);
}
.al-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 14px;
}
.al-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--al-text);
    margin: 0;
}
.al-count-badge {
    background: var(--al-accent);
    color: #fff;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
}

/* ── Activity Card ── */
.al-activities-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.al-activity-card {
    padding: 16px 18px;
    transition: box-shadow .2s;
}
.al-activity-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.al-activity-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.al-activity-card__task {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}
.al-activity-icon {
    font-size: 16px;
}
.al-activity-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.al-activity-card__time {
    font-size: 12px;
    color: var(--al-muted);
}
.al-chip--pts {
    background: rgba(var(--al-accent-rgb, 180,83,9), .1);
    color: var(--al-accent);
    font-weight: 700;
}

/* ── Media Image ── */
.al-activity-card__media {
    margin: 10px 0;
    border-radius: 10px;
    overflow: hidden;
}
.al-activity-card__img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform .3s;
}
.al-activity-card__img:hover {
    transform: scale(1.02);
}

/* ── Note ── */
.al-activity-card__note {
    font-size: 14px;
    color: var(--al-text-sec, #555);
    margin: 8px 0;
    line-height: 1.6;
}

/* ── Reactions ── */
.al-reactions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--al-border, #e5e7eb);
}
.al-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--al-border, #e5e7eb);
    background: var(--al-bg-soft, #f9fafb);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all .18s;
    color: var(--al-text);
}
.al-reaction-btn:hover:not(:disabled) {
    border-color: var(--al-accent);
}
.al-reaction-btn--up.al-reaction-btn--active {
    background: #d1fae5;
    border-color: #059669;
    color: #065f46;
}
.al-reaction-btn--down.al-reaction-btn--active {
    background: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
}
.al-reaction-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.al-reaction-icon {
    font-size: 16px;
    line-height: 1;
}
.al-reaction-count {
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}
.al-reaction-view {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--al-muted);
}
.al-reaction-own-note {
    font-size: 12px;
    color: var(--al-muted);
}
.al-reaction-login-cta {
    font-size: 13px;
    color: var(--al-muted);
    text-decoration: none;
}
.al-reaction-login-cta .al-link {
    color: var(--al-accent);
    font-weight: 600;
}
.al-link {
    color: var(--al-accent);
    text-decoration: underline;
    cursor: pointer;
}

/* ── Load More ── */
.al-load-more-wrap {
    text-align: center;
    margin-top: 20px;
}

/* ── Feed Item Footer with reactions ── */
.al-feed-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--al-border, #e5e7eb);
}
.al-feed-item__footer .al-reactions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* ════════════════════════════════════════════════════════════════
   التعليقات
   ════════════════════════════════════════════════════════════════ */
.al-comments-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--al-border, #e5e7eb);
}
.al-comments-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.al-comment {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.al-avatar-xs {
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.al-comment-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--al-bg-soft, #f9fafb);
    padding: 8px 10px;
    border-radius: 10px;
    flex: 1;
}
.al-comment-name  { font-size: 13px; font-weight: 700; }
.al-comment-text  { font-size: 14px; line-height: 1.5; }
.al-comment-time  { font-size: 11px; color: var(--al-muted); }
.al-comment-form  { display: flex; gap: 8px; margin-top: 8px; }
.al-comment-input { flex: 1; }

/* ════════════════════════════════════════════════════════════════
   أزرار الإجراءات (تعليق + إبلاغ)
   ════════════════════════════════════════════════════════════════ */
.al-feed-item__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: auto;
}
.al-action-btn {
    background: none;
    border: 1.5px solid var(--al-border, #e5e7eb);
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    color: var(--al-muted);
    transition: all .18s;
}
.al-action-btn:hover { border-color: var(--al-accent); color: var(--al-accent); }
.al-action-btn--active { background: var(--al-accent); color: #fff; border-color: var(--al-accent); }
.al-action-btn--report { color: #dc2626; border-color: #fca5a5; }
.al-action-btn--report:hover { background: #fee2e2; border-color: #dc2626; }

/* ════════════════════════════════════════════════════════════════
   Modal الإبلاغ
   ════════════════════════════════════════════════════════════════ */
.al-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.al-modal {
    background: var(--al-surface, #fff);
    border-radius: 16px;
    padding: 28px 24px;
    width: min(480px, 94vw);
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.al-modal__title  { font-size: 18px; font-weight: 700; margin: 0 0 18px; }
.al-modal__actions { display: flex; gap: 10px; margin-top: 18px; }

/* ════════════════════════════════════════════════════════════════
   الإشعارات
   ════════════════════════════════════════════════════════════════ */
.al-notif-bell {
    position: relative;
    font-size: 22px;
    text-decoration: none;
    padding: 4px;
}
.al-notif-badge {
    position: absolute;
    top: -2px; left: -2px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
}
.al-notif-list { display: flex; flex-direction: column; gap: 10px; }
.al-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    transition: background .15s;
}
.al-notif-item--unread { background: rgba(var(--al-accent-rgb,180,83,9),.06); border-right: 3px solid var(--al-accent); }
.al-notif-icon  { font-size: 22px; flex-shrink: 0; }
.al-notif-body  { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.al-notif-msg   { font-size: 14px; font-weight: 500; }
.al-notif-time  { font-size: 12px; color: var(--al-muted); }

/* ════════════════════════════════════════════════════════════════
   المتابعة
   ════════════════════════════════════════════════════════════════ */
.al-follow-btn { min-width: 100px; }

/* ════════════════════════════════════════════════════════════════
   التحليلات
   ════════════════════════════════════════════════════════════════ */
.al-level-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 20px;
}
.al-level-badge    { display: flex; align-items: center; gap: 12px; }
.al-level-icon     { font-size: 36px; line-height: 1; }
.al-level-name     { font-size: 20px; font-weight: 800; display: block; }
.al-level-num      { font-size: 12px; color: var(--al-muted); }
.al-level-max      { font-size: 14px; color: var(--al-accent); font-weight: 700; }
.al-level-progress { flex: 1; min-width: 160px; }
.al-level-progress__bar  { height: 8px; background: var(--al-border,#e5e7eb); border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.al-level-progress__fill { height: 100%; background: var(--al-accent); border-radius: 99px; transition: width .4s; }

.al-chart-wrap { position: relative; width: 100%; height: 220px; }
.al-top-tasks  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.al-top-task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--al-bg-soft,#f9fafb);
    border-radius: 10px;
}
.al-top-task-rank  { font-weight: 800; font-size: 16px; color: var(--al-accent); min-width: 28px; }
.al-top-task-name  { flex: 1; font-size: 14px; font-weight: 600; }
.al-top-task-meta  { font-size: 12px; color: var(--al-muted); white-space: nowrap; }

.al-reactions-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.al-rxn-up, .al-rxn-down {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.al-rxn-icon   { font-size: 22px; }
.al-rxn-val    { font-size: 20px; font-weight: 800; }
.al-rxn-lbl    { font-size: 11px; color: var(--al-muted); }
.al-rxn-ratio-bar {
    flex: 1; height: 10px;
    background: #fee2e2;
    border-radius: 99px; overflow: hidden;
    min-width: 80px;
}
.al-rxn-ratio-fill { height: 100%; background: #059669; border-radius: 99px; }
.al-rxn-ratio-val  { font-size: 13px; font-weight: 700; color: #059669; }

/* ════════════════════════════════════════════════════════════════
   المقارنة
   ════════════════════════════════════════════════════════════════ */
.al-compare-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: start;
    margin-top: 20px;
}
.al-compare-vs {
    font-size: 22px; font-weight: 900;
    color: var(--al-muted);
    align-self: center;
    padding-top: 60px;
}
.al-compare-header {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    padding: 20px 16px;
    text-align: center;
}
.al-compare-header h3 { margin: 0; font-size: 16px; }
.al-level-tag {
    font-size: 13px; font-weight: 600;
    background: var(--al-bg-soft,#f9fafb);
    padding: 3px 10px; border-radius: 20px;
}
.al-compare-stats { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.al-compare-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--al-bg-soft,#f9fafb);
    font-size: 14px;
}
.al-compare-row--win { background: rgba(5,150,105,.1); font-weight: 700; }
.al-compare-val    { font-weight: 700; min-width: 50px; }
.al-compare-label  { flex: 1; color: var(--al-muted); font-size: 12px; text-align: center; }
.al-compare-win-badge { color: #059669; font-weight: 900; font-size: 16px; }
@media (max-width: 600px) {
    .al-compare-grid { grid-template-columns: 1fr; }
    .al-compare-vs { padding-top: 0; text-align: center; }
}
/* ════════════════════════════════════════════════════════════════
   Following Feed tag
   ════════════════════════════════════════════════════════════════ */
.al-following-empty {
    text-align: center; padding: 40px 20px;
    color: var(--al-muted);
}
.al-following-empty a { color: var(--al-accent); font-weight: 600; }

/* ════════════════════════════════════════════════════════════════
   Level badge on profile
   ════════════════════════════════════════════════════════════════ */
.al-me-badge {
    background: var(--al-accent);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 6px;
    font-weight: 600;
    vertical-align: middle;
}

/* ══════════════════════════════════════════════════════════════
   إضافات: اسم + واتساب + تخصص + ترويسة الأدمن
   ══════════════════════════════════════════════════════════════ */

/* صف الاسم مع زر واتساب */
.al-feed-item__name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* رابط واتساب */
.al-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e9fdf0;
    color: #128c4a;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #b7f0cc;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}
.al-wa-link:hover {
    background: #25D366;
    color: #fff;
    transform: scale(1.03);
}
.al-wa-link svg { flex-shrink: 0; }
.al-wa-link:hover svg path { fill: #fff; }

/* التخصص في السطر الثاني */
.al-feed-spec {
    color: var(--al-primary, #B45309);
    font-weight: 700;
    font-size: 12px;
}

/* ترويسة الأدمن */
.al-feed-admin-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-right: 4px solid #F59E0B;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
}
.al-feed-admin-banner a {
    color: #B45309;
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════
   لوحة الترتيب الاحترافية — Ranking v2
   ══════════════════════════════════════════════════════════════ */

.al-ranking-wrap { max-width: 780px; margin: 0 auto; }

/* Hero */
.al-rnk-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.al-rnk-hero__icon { font-size: 2.4rem; line-height: 1; }
.al-rnk-hero__title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 4px;
}
.al-rnk-hero__sub { font-size: 13px; color: #64748b; margin: 0; }

/* Filters */
.al-rnk-filters {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
}
.al-rnk-filters__row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.al-rnk-period-tabs {
    display: flex;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.al-rnk-tab {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: background .15s, color .15s;
    border-left: 1px solid #e2e8f0;
}
.al-rnk-tab:last-child { border-left: none; }
.al-rnk-tab--active {
    background: #C27B1A;
    color: #fff;
}
.al-rnk-tab:hover:not(.al-rnk-tab--active) {
    background: #FEF6E7;
    color: #C27B1A;
}
.al-rnk-selects { display: flex; gap: 8px; flex-wrap: wrap; }

/* Podium */
.al-rnk-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 28px 20px 0;
}
.al-pod {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px 20px;
    min-width: 140px;
    position: relative;
    transition: transform .2s, box-shadow .2s;
    text-align: center;
}
.al-pod:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.al-pod--first  {
    border-color: #F59E0B;
    background: linear-gradient(160deg, #fffbeb 0%, #fff 100%);
    box-shadow: 0 4px 16px rgba(245,158,11,.15);
    padding-top: 24px;
    z-index: 2;
}
.al-pod--second { order: -1; }
.al-pod--third  { order: 1; }
.al-pod--me     { border-color: #C27B1A !important; box-shadow: 0 0 0 3px #FEF6E7 !important; }

.al-pod__crown {
    position: absolute;
    top: -22px;
    font-size: 1.6rem;
    animation: al-bounce 2s ease-in-out infinite;
}
@keyframes al-bounce {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}
.al-pod__medal  { font-size: 1.5rem; margin-bottom: 4px; }
.al-pod__avatar-wrap { position: relative; }
.al-pod__avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    object-fit: cover;
}
.al-pod--first .al-pod__avatar  { border-color: #F59E0B; width: 72px; height: 72px; }
.al-pod__name  { font-size: 14px; font-weight: 800; color: #1e293b; margin-top: 4px; }
.al-pod__spec  { font-size: 11px; color: #C27B1A; font-weight: 600; }
.al-pod__pts   { font-size: 1.15rem; font-weight: 900; color: #C27B1A; }
.al-pod__pts span { font-size: 11px; color: #94a3b8; font-weight: 500; }
.al-pod__trust { font-size: 12px; font-weight: 600; }

/* List rows */
.al-rnk-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.al-rnk-row {
    display: grid;
    grid-template-columns: 48px 1fr 1fr 52px;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 12px 16px;
    transition: box-shadow .15s, border-color .15s;
}
.al-rnk-row:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); border-color: #e2e8f0; }
.al-rnk-row--top  { border-right: 4px solid #C27B1A; }
.al-rnk-row--me   {
    border-color: #F5C86A;
    background: linear-gradient(135deg, #FEF6E7 0%, #fff 100%);
    box-shadow: 0 0 0 1px #F5C86A;
}

/* Rank cell */
.al-rnk-row__rank {
    font-size: 1.3rem;
    text-align: center;
    line-height: 1;
}
.al-rnk-num {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    width: 30px; height: 30px;
    border-radius: 50%;
    line-height: 30px;
    text-align: center;
}

/* User cell */
.al-rnk-row__user { display: flex; align-items: center; gap: 10px; }
.al-rnk-row__avatar-wrap { position: relative; flex-shrink: 0; }
.al-rnk-row__avatar { border-radius: 50%; object-fit: cover; }
.al-me-dot {
    position: absolute;
    bottom: 0; left: 0;
    width: 10px; height: 10px;
    background: #C27B1A;
    border-radius: 50%;
    border: 2px solid #fff;
}
.al-rnk-row__info  { display: flex; flex-direction: column; gap: 2px; }
.al-rnk-row__name  { font-size: 14px; font-weight: 700; color: #1e293b; }
.al-rnk-row__spec  { font-size: 11px; color: #C27B1A; font-weight: 600; }
.al-rnk-row__city  { font-size: 11px; color: #94a3b8; font-weight: 500; }
.al-rnk-row__meta  { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* Profile link styles in ranking */
.al-rnk-row__name-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed #C27B1A;
    transition: color .15s, border-color .15s;
}
.al-rnk-row__name-link:hover {
    color: #C27B1A;
    border-bottom-style: solid;
}
.al-pod__name-link {
    color: inherit;
    text-decoration: none;
}
.al-pod__name-link:hover { color: #C27B1A; }
.al-rnk-row__avatar--link { transition: transform .15s, box-shadow .15s; }
.al-rnk-row__avatar--link:hover { transform: scale(1.08); box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* Points bar */
.al-rnk-row__bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.al-rnk-row__bar {
    flex: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
}
.al-rnk-row__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #C27B1A, #E09020);
    border-radius: 99px;
    transition: width .5s ease;
}
.al-bar--gold { background: linear-gradient(90deg, #C27B1A, #E09020, #F5C86A); }
.al-rnk-row__pts {
    font-size: 13px;
    font-weight: 800;
    color: #C27B1A;
    white-space: nowrap;
    min-width: 40px;
    text-align: left;
}

/* Trust ring SVG */
.al-trust-ring { flex-shrink: 0; }

/* Responsive */
@media (max-width: 600px) {
    .al-rnk-row { grid-template-columns: 36px 1fr 1fr 44px; gap: 8px; padding: 10px 12px; }
    .al-rnk-podium { gap: 8px; padding: 20px 8px 0; }
    .al-pod { min-width: 100px; padding: 12px 10px 16px; }
    .al-pod__avatar { width: 50px; height: 50px; }
    .al-pod--first .al-pod__avatar { width: 58px; height: 58px; }
    .al-rnk-filters__row { flex-direction: column; align-items: flex-start; }
    .al-rnk-period-tabs { flex-wrap: wrap; }
}
