@charset "UTF-8";

/* ============================================
   كلمة للقائد وللوطن
   مدرسة أسامة بن زيد الابتدائية للبنين
   تصميم ملكي فاخر — أحمر + ذهبي + أبيض
   مرن لجميع الأجهزة
   ============================================ */

:root {
  --royal-red: #8B0000;
  --royal-red-deep: #650000;
  --royal-red-light: #A52A2A;
  --gold: #C9A227;
  --gold-light: #E5C158;
  --gold-deep: #9C7A1A;
  --gold-shimmer: #F5DC85;
  --pure-white: #FFFFFF;
  --cream: #FFFCF5;
  --soft-cream: #FBF7EC;
  --ink: #2A1810;
  --ink-soft: #5A4030;
  --gray-soft: #8B7B6E;
  --shadow-warm: rgba(139, 0, 0, 0.08);
  --shadow-gold: rgba(201, 162, 39, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  padding: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* خلفية فاخرة */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at top, rgba(201,162,39,0.06), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(139,0,0,0.04), transparent 60%),
    var(--cream);
}

#lb {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

/* زخارف */
.lb-orn-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  vertical-align: middle;
  flex-shrink: 0;
}

.lb-orn-diamond {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  margin: 0 12px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ============================================
   COVER
   ============================================ */
.lb-cover {
  background: linear-gradient(135deg, var(--pure-white) 0%, var(--soft-cream) 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 6px var(--cream),
    0 0 0 7px var(--gold),
    0 16px 48px var(--shadow-warm);
}

.lb-cover::before {
  content: '';
  position: absolute;
  top: 12px; bottom: 12px; right: 12px; left: 12px;
  border: 1px solid var(--gold-light);
  pointer-events: none;
}

.lb-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, var(--gold-shimmer) 1px, transparent 2px),
    radial-gradient(circle at 80% 70%, var(--gold-shimmer) 1px, transparent 2px),
    radial-gradient(circle at 50% 90%, var(--gold-shimmer) 1px, transparent 2px);
  background-size: 80px 80px, 100px 100px, 60px 60px;
  opacity: 0.15;
  pointer-events: none;
}

/* زوايا مزخرفة */
.lb-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold);
  pointer-events: none;
  z-index: 2;
}

.lb-corner-tr { top: 20px; right: 20px; border-bottom: none; border-left: none; }
.lb-corner-tl { top: 20px; left: 20px; border-bottom: none; border-right: none; }
.lb-corner-br { bottom: 20px; right: 20px; border-top: none; border-left: none; }
.lb-corner-bl { bottom: 20px; left: 20px; border-top: none; border-right: none; }

.lb-crown {
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px var(--shadow-gold));
  line-height: 0;
}

.lb-overline {
  color: var(--royal-red);
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 6px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.lb-portrait {
  width: 140px;
  height: 180px;
  margin: 0 auto 1.5rem;
  position: relative;
  background: linear-gradient(135deg, var(--royal-red-deep), var(--royal-red));
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--gold-light), 0 8px 24px rgba(139, 0, 0, 0.25);
  z-index: 1;
}

.lb-portrait::before {
  content: '';
  position: absolute;
  top: 6px; right: 6px; bottom: 6px; left: 6px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  pointer-events: none;
  z-index: 1;
}

.lb-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.lb-portrait-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  text-align: center;
  padding: 12px;
  font-family: 'Tajawal', 'Cairo', sans-serif;
}

.lb-portrait-placeholder svg {
  margin-bottom: 6px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.lb-portrait-placeholder span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 4px;
  white-space: nowrap;
}

.lb-portrait-placeholder small {
  font-size: 10px;
  opacity: 0.85;
  display: block;
  white-space: nowrap;
}

/* العنوان الرئيسي - كلمة للقائد وللوطن */
.lb-title {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: clamp(32px, 7vw, 56px);
  font-weight: 900;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4em;
  padding: 0 0.5rem;
}

.lb-title-word {
  color: var(--ink);
  white-space: nowrap;
}

.lb-title-accent {
  color: var(--royal-red);
  position: relative;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--royal-red), var(--royal-red-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lb-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0 1rem;
  position: relative;
  z-index: 1;
}

.lb-school-wrap {
  display: inline-block;
  position: relative;
  z-index: 1;
  padding: 8px 24px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  max-width: 100%;
}

.lb-school {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: clamp(11px, 2.5vw, 14px);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   TABS
   ============================================ */
.lb-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 1.25rem;
  background: var(--pure-white);
  border: 1px solid var(--gold);
  position: relative;
  box-shadow: 0 4px 12px var(--shadow-warm);
  overflow: hidden;
}

.lb-tab {
  flex: 1;
  padding: 14px 12px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: clamp(13px, 3vw, 15px);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.lb-tab-icon {
  color: var(--gold);
  font-size: 13px;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.lb-tab-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-tab:hover {
  color: var(--royal-red);
  background: var(--soft-cream);
}

.lb-tab.active {
  color: var(--pure-white);
  background: linear-gradient(135deg, var(--royal-red), var(--royal-red-deep));
}

.lb-tab.active .lb-tab-icon {
  color: var(--gold-light);
}

.lb-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}

.lb-badge {
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.lb-tab.active .lb-badge {
  background: var(--pure-white);
  color: var(--royal-red);
}

.lb-section { display: none; }
.lb-section.active { display: block; animation: fadeIn 0.4s ease; }

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

/* ============================================
   FORM
   ============================================ */
.lb-form-card {
  background: var(--pure-white);
  border: 1px solid var(--gold);
  padding: 2rem 1.5rem;
  position: relative;
  box-shadow: 0 8px 24px var(--shadow-warm);
}

.lb-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--royal-red), var(--gold), var(--royal-red));
}

.lb-form-card::after {
  content: '';
  position: absolute;
  top: 6px; bottom: 6px; right: 6px; left: 6px;
  border: 1px solid rgba(201, 162, 39, 0.25);
  pointer-events: none;
}

.lb-form-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.lb-form-title {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  color: var(--royal-red);
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 900;
  margin: 0 0 0.5rem;
}

.lb-form-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
}

.lb-form-sub {
  color: var(--gold-deep);
  font-family: 'Amiri', 'Cairo', serif;
  font-size: 14px;
  font-style: italic;
  margin-top: 0.5rem;
}

.lb-info-note {
  background: linear-gradient(135deg, var(--soft-cream), var(--cream));
  border-right: 4px solid var(--gold);
  padding: 12px 16px;
  margin-bottom: 1.5rem;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.lb-note-icon {
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.lb-field {
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.lb-label {
  display: block;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--royal-red);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.lb-input, .lb-select, .lb-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 15px;
  border: 1px solid #E5DCC8;
  background: var(--pure-white);
  color: var(--ink);
  direction: rtl;
  text-align: right;
  border-radius: 0;
  transition: all 0.25s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-weight: 500;
}

.lb-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C9A227' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 12px;
  padding-left: 36px;
  cursor: pointer;
}

.lb-textarea {
  min-height: 130px;
  resize: vertical;
  font-family: 'Amiri', 'Cairo', serif;
  font-size: 17px;
  line-height: 2;
}

.lb-input:focus, .lb-textarea:focus, .lb-select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.lb-counter {
  text-align: left;
  color: var(--gray-soft);
  font-size: 12px;
  margin-top: 6px;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-weight: 600;
}

.lb-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--royal-red), var(--royal-red-deep));
  color: var(--gold-light);
  border: 1px solid var(--gold);
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 3px;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.25);
  -webkit-appearance: none;
  appearance: none;
}

.lb-submit:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--pure-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--shadow-gold);
}

.lb-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   STATS
   ============================================ */
.lb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 1.5rem;
}

.lb-stat {
  background: var(--pure-white);
  border: 1px solid var(--gold);
  padding: 18px 8px;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px var(--shadow-warm);
  min-width: 0;
}

.lb-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--royal-red), var(--gold), var(--royal-red));
}

.lb-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-gold);
}

.lb-stat-icon {
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1;
}

.lb-stat-num {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: clamp(20px, 5vw, 30px);
  font-weight: 900;
  color: var(--royal-red);
  line-height: 1;
  margin-bottom: 6px;
}

.lb-stat-lbl {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 1px;
  font-weight: 700;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* GALLERY HEADER */
.lb-gallery-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0;
}

.lb-gallery-header .lb-orn-line {
  width: clamp(40px, 10vw, 80px);
}

.lb-gallery-title {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  color: var(--royal-red);
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 900;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ============================================
   GALLERY CARDS
   ============================================ */
.lb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1rem;
}

.lb-card {
  background: var(--pure-white);
  padding: 1.75rem 1.5rem 1.25rem;
  position: relative;
  border: 1px solid var(--gold);
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px var(--shadow-warm);
  overflow: hidden;
}

.lb-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--royal-red), var(--gold), var(--royal-red));
}

.lb-card::after {
  content: '';
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  pointer-events: none;
}

.lb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px var(--shadow-gold);
  border-color: var(--royal-red);
}

.lb-card-quote {
  position: absolute;
  top: 10px; left: 14px;
  font-family: 'Amiri', serif;
  color: var(--royal-red);
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  opacity: 0.15;
  transform: scaleX(-1);
}

.lb-card-text {
  font-family: 'Amiri', 'Cairo', serif;
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
  text-align: right;
  padding-top: 0.5rem;
}

.lb-card-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  gap: 6px;
}

.lb-card-divider .lb-orn-line {
  width: 40px;
  height: 1px;
}

.lb-card-divider .lb-orn-diamond {
  font-size: 8px;
  margin: 0;
}

.lb-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 0.75rem;
  position: relative;
}

.lb-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-red), var(--royal-red-deep));
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.2);
}

.lb-card-info {
  flex: 1;
  min-width: 0;
}

.lb-card-author {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.lb-card-role {
  font-size: 11px;
  color: var(--royal-red);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  display: inline-block;
  padding: 2px 8px;
  background: var(--soft-cream);
  border: 1px solid var(--gold-light);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-soft);
  font-size: 14px;
  background: var(--pure-white);
  border: 1px dashed var(--gold);
  font-family: 'Amiri', 'Cairo', serif;
  font-style: italic;
}

/* ============================================
   ADMIN
   ============================================ */
.lb-admin-header {
  background: linear-gradient(135deg, var(--royal-red-deep), var(--royal-red));
  color: var(--pure-white);
  margin-bottom: 1.25rem;
  border: 1px solid var(--gold);
  position: relative;
  box-shadow: 0 6px 18px var(--shadow-warm);
}

.lb-admin-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.lb-admin-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.lb-admin-overline {
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.lb-admin-h1 {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 900;
  margin: 0;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.lb-logout {
  color: var(--pure-white);
  text-decoration: none;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid var(--gold);
  padding: 9px 18px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.lb-logout:hover {
  background: var(--gold);
  color: var(--royal-red-deep);
}

.lb-admin-banner {
  background: linear-gradient(135deg, var(--royal-red), var(--royal-red-deep));
  color: var(--gold-light);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
  border: 1px solid var(--gold);
  position: relative;
  flex-wrap: wrap;
  gap: 8px;
}

.lb-admin-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}

.lb-pending-card, .lb-approved-card {
  background: var(--pure-white);
  border: 1px solid var(--gold);
  padding: 1.5rem 1.25rem;
  margin-bottom: 12px;
  position: relative;
  box-shadow: 0 4px 12px var(--shadow-warm);
}

.lb-pending-card::before, .lb-approved-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.lb-pending-card::before {
  background: linear-gradient(90deg, var(--gold), var(--royal-red), var(--gold));
}

.lb-approved-card::before {
  background: linear-gradient(90deg, #2d5016, var(--gold), #2d5016);
}

.lb-pending-text, .lb-approved-text {
  font-family: 'Amiri', 'Cairo', serif;
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: right;
}

.lb-pending-meta, .lb-approved-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 8px;
}

.lb-pending-author, .lb-approved-author {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.lb-pending-role, .lb-approved-role {
  font-size: 11px;
  color: var(--royal-red);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 3px;
  font-family: 'Tajawal', 'Cairo', sans-serif;
}

.lb-pending-date, .lb-approved-date {
  font-size: 12px;
  color: var(--gray-soft);
  font-family: 'Tajawal', 'Cairo', sans-serif;
}

.lb-pending-actions, .lb-approved-actions {
  display: flex;
  gap: 8px;
}

.lb-btn-approve, .lb-btn-reject, .lb-btn-delete {
  flex: 1;
  padding: 11px 8px;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 1px solid;
  background: transparent;
  transition: all 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.lb-btn-approve { color: #2d5016; border-color: #2d5016; }
.lb-btn-approve:hover { background: #2d5016; color: var(--pure-white); }
.lb-btn-reject, .lb-btn-delete { color: var(--royal-red); border-color: var(--royal-red); }
.lb-btn-reject:hover, .lb-btn-delete:hover { background: var(--royal-red); color: var(--pure-white); }

/* ============================================
   LOGIN
   ============================================ */
.lb-login-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.lb-login-card {
  background: var(--pure-white);
  border: 2px solid var(--gold);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow:
    0 0 0 6px var(--cream),
    0 0 0 7px var(--gold),
    0 16px 48px var(--shadow-warm);
}

.lb-login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--royal-red), var(--gold), var(--royal-red));
}

.lb-login-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--royal-red), var(--royal-red-deep));
  color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

.lb-login-title {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: clamp(22px, 5vw, 26px);
  font-weight: 900;
  color: var(--royal-red);
  margin: 0 0 0.5rem;
}

.lb-login-sub {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 0 0 1rem;
  font-family: 'Amiri', 'Cairo', serif;
  font-style: italic;
}

.lb-login-error {
  background: linear-gradient(135deg, #FFF5F5, #FFEBEB);
  color: var(--royal-red);
  border: 1px solid var(--royal-red);
  padding: 11px;
  margin-bottom: 1.25rem;
  font-size: 13px;
  font-weight: 700;
}

.lb-back-link {
  display: block;
  margin-top: 1.5rem;
  color: var(--gold-deep);
  text-decoration: none;
  font-size: 13px;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.lb-back-link:hover { color: var(--royal-red); }

/* ============================================
   FOOTER
   ============================================ */
.lb-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 12px;
  color: var(--gray-soft);
  letter-spacing: 0.5px;
}

.lb-footer-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.lb-footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.lb-footer-sep { color: var(--gold); }

.lb-admin-link {
  color: var(--royal-red);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.lb-admin-link:hover { color: var(--gold-deep); }

/* ============================================
   TOAST
   ============================================ */
.lb-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, var(--royal-red-deep), var(--royal-red));
  color: var(--gold-light);
  padding: 13px 26px;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid var(--gold);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  text-align: center;
  box-shadow: 0 8px 24px rgba(139, 0, 0, 0.3);
}

.lb-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.lb-toast.error {
  background: linear-gradient(135deg, #5C1E1E, #3D0E0E);
  color: #FFB3B3;
  border-color: #FF6B6B;
}

/* ============================================
   RESPONSIVE — جوال
   ============================================ */
@media (max-width: 640px) {
  body { padding: 10px; }

  .lb-cover {
    padding: 2.5rem 1rem 2rem;
    box-shadow:
      0 0 0 4px var(--cream),
      0 0 0 5px var(--gold),
      0 12px 36px var(--shadow-warm);
  }

  .lb-corner { width: 22px; height: 22px; }
  .lb-corner-tr, .lb-corner-tl { top: 12px; }
  .lb-corner-br, .lb-corner-bl { bottom: 12px; }
  .lb-corner-tr, .lb-corner-br { right: 12px; }
  .lb-corner-tl, .lb-corner-bl { left: 12px; }

  .lb-cover::before {
    top: 8px; bottom: 8px; right: 8px; left: 8px;
  }

  .lb-overline { letter-spacing: 3px; font-size: 10px; }
  .lb-school-wrap { padding: 6px 14px; }

  .lb-portrait { width: 120px; height: 160px; }
  .lb-portrait-placeholder svg { width: 36px; height: 36px; }

  .lb-form-card { padding: 1.5rem 1rem; }

  .lb-tab {
    padding: 11px 6px;
    gap: 5px;
    letter-spacing: 0;
  }
  .lb-tab-icon { font-size: 11px; }
  .lb-badge { font-size: 10px; padding: 1px 6px; min-width: 18px; }

  .lb-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .lb-card { padding: 1.5rem 1.1rem 1.1rem; }
  .lb-card-text { font-size: 15px; }
  .lb-card-avatar { width: 42px; height: 42px; font-size: 13px; }

  .lb-admin-header-inner {
    flex-direction: column;
    padding: 1.1rem 1.25rem;
    text-align: center;
  }

  .lb-admin-banner {
    flex-direction: column;
    text-align: center;
    padding: 12px;
  }

  .lb-pending-actions, .lb-approved-actions {
    flex-direction: column;
  }

  .lb-pending-meta, .lb-approved-meta {
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
  }

  .lb-login-card {
    padding: 2rem 1.5rem;
    box-shadow:
      0 0 0 4px var(--cream),
      0 0 0 5px var(--gold),
      0 12px 36px var(--shadow-warm);
  }

  .lb-toast {
    bottom: 16px;
    padding: 11px 20px;
    font-size: 12px;
  }
}

/* جوالات صغيرة جداً */
@media (max-width: 380px) {
  body { padding: 8px; }

  .lb-cover { padding: 2rem 0.75rem 1.5rem; }
  .lb-portrait { width: 100px; height: 135px; }
  .lb-overline { letter-spacing: 2px; }

  .lb-form-card { padding: 1.25rem 0.85rem; }

  .lb-tab {
    flex-direction: column;
    gap: 2px;
    padding: 10px 4px;
  }
  .lb-tab-text { font-size: 11px; }
  .lb-tab-icon { font-size: 10px; }

  .lb-stat { padding: 14px 6px; }
  .lb-stat-num { font-size: 22px; }
  .lb-stat-lbl { font-size: 10px; }

  .lb-card { padding: 1.25rem 1rem; }
  .lb-card-meta { gap: 10px; }
  .lb-card-avatar { width: 38px; height: 38px; font-size: 12px; }

  .lb-card-quote { font-size: 36px; }

  .lb-toast {
    font-size: 11px;
    padding: 10px 16px;
    max-width: calc(100vw - 16px);
  }
}

/* أجهزة كبيرة */
@media (min-width: 1200px) {
  body { padding: 32px; }
  .lb-cover { padding: 4rem 2rem 3rem; }
}

/* PRINT */
@media print {
  .page-bg, .lb-tabs, .lb-submit, .lb-logout,
  .lb-pending-actions, .lb-approved-actions,
  .lb-form-card, .lb-toast { display: none !important; }
  body { background: white; padding: 0; }
}
