/* =============================================
   UAE Projects Board — Style Sheet
   Colors: Navy #1E3A8A | Black #111 | White #fff
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #1E3A8A;
  --orange-dark: #16306e;
  --black: #111111;
  --white: #ffffff;
  --grey-bg: #f5f5f5;
  --grey-border: #e0e0e0;
  --grey-text: #666666;
  --grey-light: #f9f9f9;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
}

html { font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--grey-bg);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-narrow { max-width: 480px; }

/* ---- Header ---- */
.site-header {
  background: var(--orange);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.logo {
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  letter-spacing: -0.3px;
}
.logo:hover { text-decoration: none; color: rgba(255,255,255,0.75); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
}
.nav-link:hover { color: var(--white); text-decoration: none; }

/* ---- Tagline bar ---- */
.tagline-bar {
  background: var(--orange-dark);
  padding: 8px 0 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ---- Trust bar ---- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
  padding: 9px 0;
  font-size: 13px;
  color: var(--grey-text);
  overflow-x: auto;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.trust-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.trust-dot.green { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.2); }

.trust-sep { color: var(--grey-border); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover { background: var(--orange-dark); color: var(--white); }

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
}

/* ---- Category tabs ---- */
.cat-tabs-wrap {
  margin: 16px -16px 4px;
  padding: 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-tabs-wrap::-webkit-scrollbar { display: none; }

.cat-tabs {
  display: flex;
  gap: 8px;
  white-space: nowrap;
  padding-bottom: 4px;
}

.cat-tab {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--white);
  color: var(--grey-text);
  border: 1px solid var(--grey-border);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  flex-shrink: 0;
}
.cat-tab:hover { border-color: var(--orange); color: var(--orange); text-decoration: none; }
.cat-tab.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* ---- Feed ---- */
.feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0 80px;
}

/* ---- Post card ---- */
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-border);
  transition: box-shadow 0.15s;
}
.post-card:hover { box-shadow: var(--shadow-md); }

/* Homepage cards: entire card is tappable */
.home-card { position: relative; cursor: pointer; }
.home-card .post-subject-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.post-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

.post-time {
  font-size: 12px;
  color: var(--grey-text);
}

.cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Category colours */
.cat-materials-required      { background: #FEF3C7; color: #92400E; }
.cat-materials               { background: #FEF3C7; color: #92400E; }
.cat-lighting                { background: #FEF9C3; color: #713F12; }
.cat-custom-furniture--joinery { background: #EDE9FE; color: #4C1D95; }
.cat-fit-out-services        { background: #DBEAFE; color: #1E3A8A; }
.cat-staffing--freelancers   { background: #D1FAE5; color: #065F46; }
.cat-job-vacancy             { background: #FCE7F3; color: #831843; }
.cat-job-vacancies           { background: #FCE7F3; color: #831843; }
.cat-industry-talk           { background: #FED7AA; color: #C2410C; }
.cat-other                   { background: #F3F4F6; color: #374151; }

.post-subject {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--black);
}

.post-preview {
  font-size: 14px;
  color: var(--grey-text);
  line-height: 1.55;
  margin-bottom: 12px;
}

.post-images {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.post-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-border);
}

.post-footer {
  display: flex;
  justify-content: flex-end;
}

/* ---- Replies ---- */
.replies-section {
  border-top: 1px solid var(--grey-border);
  margin-top: 12px;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reply-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
}

.reply-username {
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
}

.reply-time {
  font-size: 11px;
  color: var(--grey-text);
  align-self: center;
}

.reply-text {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  margin: 0;
}

.reply-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--grey-border);
}

.reply-input {
  flex: 1;
  font-family: inherit;
  font-size: 13px;
  padding: 7px 11px;
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-sm);
  background: var(--grey-light);
  color: var(--black);
  outline: none;
  transition: border-color 0.15s;
}
.reply-input:focus { border-color: var(--orange); background: var(--white); }

.reply-submit {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.reply-submit:hover { background: var(--orange-dark); }
.reply-submit:disabled { opacity: 0.5; cursor: default; }

/* ---- Post subject link (feed) ---- */
.post-subject-link {
  color: var(--black);
  text-decoration: none;
}
.post-subject-link:hover {
  color: var(--orange);
  text-decoration: none;
}

/* ---- Post detail page ---- */
.post-detail-wrap {
  padding: 16px 0 80px;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--grey-text);
  margin-bottom: 14px;
  text-decoration: none;
}
.back-link:hover { color: var(--orange); text-decoration: none; }

.post-detail-card {
  margin-bottom: 20px;
}

.post-detail-subject {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
  color: var(--black);
}

.post-detail-body {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 14px;
  white-space: pre-wrap;
}

.post-detail-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.post-detail-img {
  max-width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-border);
}

.replies-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.replies-standalone {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--grey-border);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.reply-form-standalone {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--grey-border);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  border-top: none;
  margin-top: 0;
  padding-top: 12px;
}

.reply-login-note {
  font-size: 13px;
  color: var(--grey-text);
  margin-top: 8px;
}

/* ---- Show/hide password ---- */
.input-reveal {
  position: relative;
  display: flex;
}
.input-reveal input {
  flex: 1;
  padding-right: 60px;
}
.reveal-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 12px;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  cursor: pointer;
  font-family: inherit;
}
.reveal-btn:hover { color: var(--orange-dark); }

/* ---- Footer layout ---- */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-brand { font-weight: 600; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.4); }

/* ---- Landing page ---- */
.home-hero {
  background: var(--white);
  color: var(--black);
  padding: 60px 0 52px;
  text-align: center;
  border-bottom: 1px solid var(--grey-border);
}

.home-hero-inner {
  max-width: 600px;
}

.home-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.home-sub {
  font-size: 15px;
  color: var(--grey-text);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Homepage category nav bar (ecommerce style) ---- */
.home-cats-bar {
  background: var(--white);
  border-bottom: 2px solid var(--grey-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 52px;
  z-index: 90;
}
.home-cats-bar::-webkit-scrollbar { display: none; }

.home-cats-inner {
  display: flex;
  white-space: nowrap;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

.home-cat-btn {
  display: inline-block;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #444;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.home-cat-btn:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
  text-decoration: none;
}

.cat-hot-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #FEF3C7;
  color: #92400E;
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 5px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Mobile: wrap all categories into a visible grid instead of scrolling */
@media (max-width: 599px) {
  .home-cats-bar {
    overflow-x: visible;
  }
  .home-cats-inner {
    flex-wrap: wrap;
    white-space: normal;
    padding: 10px 12px 8px;
    gap: 6px;
    justify-content: center;
  }
  .home-cat-btn {
    white-space: nowrap;
    flex-shrink: 1;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 600;
    border-bottom: none;
    margin-bottom: 0;
    border-radius: 20px;
    background: rgba(30, 58, 138, 0.07);
    border: 1.5px solid rgba(30, 58, 138, 0.25);
    color: var(--orange);
  }
  .home-cat-btn:hover {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
    border-bottom-color: var(--orange);
  }
}

.home-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg { padding: 12px 26px; font-size: 15px; }

.btn-white {
  background: var(--white);
  color: var(--black);
}
.btn-white:hover {
  background: #f0f0f0;
  color: var(--black);
  text-decoration: none;
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  text-decoration: none;
  border-color: rgba(255,255,255,0.65);
}

.btn-outline-navy {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
}
.btn-outline-navy:hover {
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
}

/* how it works strip */
.home-how {
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
  padding: 48px 0 52px;
  text-align: center;
}

.home-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
}

.home-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.home-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.home-step-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--black);
}

.home-step-text span {
  font-size: 13px;
  color: var(--grey-text);
  line-height: 1.55;
}

@media (min-width: 600px) {
  .home-title { font-size: 36px; }
  .home-steps { flex-direction: row; gap: 40px; justify-content: center; }
  .home-step { flex: 0 1 240px; flex-direction: column; align-items: center; gap: 12px; }
  .home-step-num { width: 36px; height: 36px; font-size: 15px; }
}

/* ---- Floating Action Button ---- */
.fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 28px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(30,58,138,0.4);
  z-index: 50;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  line-height: 1;
}
.fab:hover { background: var(--orange-dark); color: var(--white); text-decoration: none; transform: scale(1.07); }

/* ---- Auth / Form pages ---- */
.auth-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 28px auto;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-border);
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 14px;
  color: var(--grey-text);
  margin-bottom: 22px;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--grey-text);
  margin-top: 18px;
}

/* ---- Forms ---- */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--black);
}

.label-hint {
  font-weight: 400;
  color: var(--grey-text);
  font-size: 12px;
}

.field-hint {
  font-size: 12px;
  color: var(--grey-text);
  margin-top: 5px;
  line-height: 1.5;
}

.otp-input {
  font-size: 24px !important;
  letter-spacing: 8px;
  text-align: center;
  font-family: monospace !important;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.15);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group input[type="file"] {
  padding: 8px 12px;
  color: var(--grey-text);
  cursor: pointer;
}

.form-feedback {
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
}
.form-feedback.success { color: #16a34a; }
.form-feedback.error   { color: #dc2626; }

/* ---- Alerts ---- */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 14px;
}
.alert p { margin-bottom: 4px; }
.alert p:last-child { margin-bottom: 0; }
.alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  max-width: 520px;
  position: relative;
  animation: slideUp 0.22s ease;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--grey-text);
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--black); }

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 14px;
  color: var(--grey-text);
  margin-bottom: 18px;
}

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--grey-text);
}
.empty-state p { margin-bottom: 20px; font-size: 16px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--orange-dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  font-size: 13px;
  padding: 16px 0;
  margin-top: 20px;
}
.footer-sep { margin: 0 6px; }

/* ---- Success banner ---- */
.success-banner {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 12px 0 4px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* ---- Homepage latest posts feed ---- */
.home-latest {
  padding: 32px 0 40px;
  background: var(--grey-bg);
}

.home-latest-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--black);
}

.home-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.home-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--grey-border);
}

.view-more-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
}
.view-more-link:hover { text-decoration: underline; }

.read-post-link {
  font-size: 13px;
  color: var(--grey-text);
  text-decoration: none;
}
.read-post-link:hover { color: var(--orange); text-decoration: none; }

.home-view-all {
  text-align: center;
  padding-top: 8px;
}

/* ---- Wide container (board pages) ---- */
.container-wide { max-width: 860px; }

/* ---- Category badge in post-meta (right side) ---- */
.post-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
}
.post-meta-right .cat-badge {
  margin-bottom: 0;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Post count label ---- */
.post-count-label {
  font-size: 13px;
  color: var(--grey-text);
  padding: 10px 0 2px;
  font-weight: 500;
}

/* ---- Show more link ---- */
.show-more-link {
  color: var(--orange);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}
.show-more-link:hover { text-decoration: underline; }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 0 48px;
}
.page-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--grey-border);
  color: var(--orange);
  text-decoration: none;
  transition: all 0.15s;
}
.page-btn:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  text-decoration: none;
}
.page-info { font-size: 13px; color: var(--grey-text); }

.archive-note {
  text-align: center;
  font-size: 13px;
  color: var(--grey-text);
  padding: 20px 0 32px;
  border-top: 1px solid var(--grey-border);
  margin-top: 16px;
}

/* ---- Desktop tweaks ---- */
@media (min-width: 600px) {
  .modal-overlay {
    align-items: center;
  }
  .modal-box {
    border-radius: var(--radius);
    max-width: 460px;
    margin: 0 16px;
  }
  .auth-box {
    padding: 36px 32px;
  }
}
