/* Sslash hosting — brand stylesheet */
:root {
  --primary: #1E88E5;
  --primary-dark: #1565C0;
  --primary-soft: #E3F2FD;
  --accent: #F5A623;
  --accent-dark: #E09100;
  --accent-soft: #FFF3E0;
  --cyan: #4FC3F7;
  --dark: #0B1F33;
  --dark-2: #132F4C;
  --text: #1A2B3C;
  --muted: #5B6B7C;
  --border: #E2E8F0;
  --bg: #F4F7FB;
  --white: #ffffff;
  --success: #16A34A;
  --danger: #DC2626;
  --warning: #D97706;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(11, 31, 51, 0.08);
  --shadow-sm: 0 2px 10px rgba(11, 31, 51, 0.06);
  --font: 'Cairo', 'Tajawal', sans-serif;
  --header-offset: 6.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  direction: rtl;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.container { width: min(1140px, 92%); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.35rem; border-radius: 12px; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .95rem; transition: .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 8px 20px rgba(30,136,229,.28); }
.btn-primary:hover { transform: translateY(-1px); color: #fff; }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: 0 10px 24px rgba(245,166,35,.28); }
.btn-accent:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(245,166,35,.35); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.btn-lg { padding: .9rem 1.55rem; font-size: 1rem; border-radius: 14px; }
.btn-outline-dark { background: #fff; border: 1.5px solid var(--border); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* Cards */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.25rem;
}
.card-hover { transition: .25s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: .4rem; font-weight: 700; font-size: .9rem; }
.form-control, .form-select, textarea.form-control {
  width: 100%; padding: .7rem .95rem; border: 1.5px solid var(--border);
  border-radius: 11px; font-family: inherit; font-size: .95rem; background: #fff;
  transition: border .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
  outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,136,229,.15);
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }

/* Alerts / Toast */
.alert {
  padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 600;
}
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info { background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #90CAF9; }

.toast-wrap {
  position: fixed; top: 1rem; left: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem;
}
.toast {
  min-width: 280px; padding: .85rem 1.1rem; border-radius: 12px; background: #fff;
  box-shadow: var(--shadow); border-right: 4px solid var(--primary); animation: slideIn .3s ease;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

/* Badge */
.badge {
  display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700;
}
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
.badge-accent { background: var(--accent-soft); color: var(--accent-dark); }
.badge-success { background: #DCFCE7; color: #166534; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-muted { background: #F1F5F9; color: #475569; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
table.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data-table th, table.data-table td { padding: .85rem 1rem; text-align: right; border-bottom: 1px solid var(--border); }
table.data-table th { background: #F8FAFC; font-weight: 800; color: var(--muted); white-space: nowrap; }
table.data-table tr:hover td { background: #FAFCFF; }
table.data-table tr:last-child td { border-bottom: 0; }

/* Empty state */
.empty-state {
  text-align: center; padding: 3rem 1.5rem; color: var(--muted);
}
.empty-state h3 { color: var(--text); margin-bottom: .5rem; }

/* Price */
.price-old { text-decoration: line-through; color: var(--muted); margin-left: .4rem; }
.price-new { color: var(--primary); font-weight: 800; font-size: 1.4rem; }
.price-unit { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(11,31,51,.45); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 16px; width: min(520px, 100%);
  box-shadow: var(--shadow); max-height: 90vh; overflow: auto;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.modal-body { padding: 1.25rem; }
.modal-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); display: flex; gap: .5rem; justify-content: flex-start; }

.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 .5rem; }
.section-sub { color: var(--muted); margin: 0 0 2rem; max-width: 560px; }
.section { padding: 4.5rem 0; }
