:root {
  --ai-green: #77b943;
  --ai-green-dark: #5fa02f;
  --ai-red: #e03a2f;
  --ai-page-bg: #e3e3e3;
  --ai-card-bg: #ffffff;
  --ai-field-bg: #e2e2e2;
  --ai-text: #1c1c1c;
  --ai-muted: #8b8b8b;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--ai-text);
  background: var(--ai-page-bg);
}

.logo-font {
  font-family: 'Aref Ruqaa', 'Amiri', serif;
}

.logo-text {
  font-family: 'Aref Ruqaa', 'Amiri', serif;
  font-size: 58px;
  fill: #17181a;
}

.brand-side svg,
.brand svg {
  display: block;
}

.site-header .brand svg,
.site-header .brand img {
  height: 56px;
  width: auto;
}

.brand-side img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===================== LOGIN PAGE ===================== */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 1040px;
  min-height: 620px;
  background: var(--ai-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.login-card .brand-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-card .brand-side img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.login-card .form-side {
  flex: 1;
  padding: 40px 70px 40px 20px;
}

.login-card .form-side h6 {
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 30px;
  color: var(--ai-text);
}

.field-pill {
  width: 100%;
  border: none;
  outline: none;
  background: var(--ai-field-bg);
  border-radius: var(--radius-pill);
  padding: 16px 24px;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--ai-text);
  margin-bottom: 16px;
}

.field-pill::placeholder {
  color: var(--ai-muted);
  letter-spacing: 1px;
}

.btn-ai-green {
  width: 100%;
  background: var(--ai-green);
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 24px;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  margin-top: 14px;
  transition: background 0.2s ease;
}

.btn-ai-green:hover {
  background: var(--ai-green-dark);
  color: #fff;
}

.alert-pill {
  border-radius: 14px;
  font-size: 14px;
}

.text-small {
  font-size: 14px;
}

.login-card-auto {
  min-height: auto;
}

.field-pill--textarea {
  border-radius: 22px;
  resize: none;
}

.register-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ai-text);
}

.register-link:hover {
  color: var(--ai-green-dark);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .login-card {
    flex-direction: column;
    padding: 20px 0;
  }
  .login-card .brand-side img {
    max-width: 200px;
  }
  .login-card .form-side {
    padding: 20px 30px;
    width: 100%;
  }
}

/* ===================== DASHBOARD PAGE ===================== */

.site-header {
  background: #fff;
  padding: 18px 40px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 12px;
}

.site-header .brand img {
  height: 56px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
}

.main-nav a {
  color: var(--ai-text);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5px;
  margin-left: 40px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--ai-green);
  border-bottom-color: var(--ai-green);
}

.dashboard-body {
  background: var(--ai-page-bg);
  min-height: calc(100vh - 92px);
  padding: 40px;
}

.profile-photo {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  min-height: 380px;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 16px;
}

.info-card .name {
  font-weight: 700;
  font-size: 18px;
}

.info-card .info-row {
  display: flex;
  gap: 8px;
  font-size: 15px;
  padding: 4px 0;
}

.info-card .info-label {
  width: 130px;
  color: var(--ai-text);
}

.info-card .info-sep {
  width: 10px;
}

.status-active {
  color: var(--ai-green);
  font-weight: 600;
}

.menu-grid-wrap {
  position: relative;
  height: 100%;
  min-height: 380px;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  height: 100%;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 14px;
  scrollbar-width: thin;
  scrollbar-color: #cfd2d6 transparent;
}

.menu-grid::-webkit-scrollbar {
  width: 6px;
}

.menu-grid::-webkit-scrollbar-thumb {
  background: #cfd2d6;
  border-radius: 6px;
}

.menu-tile {
  background: var(--ai-green);
  border-radius: var(--radius-md);
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  padding: 20px;
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.menu-tile:hover {
  background: var(--ai-green-dark);
  transform: translateY(-2px);
  color: #fff;
}

.notice-bar {
  background: #fff;
  border-radius: var(--radius-md);
  margin-top: 24px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.notice-badge {
  background: var(--ai-green);
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: var(--radius-pill);
  padding: 14px 30px;
  white-space: nowrap;
}

.notice-text {
  font-size: 14px;
  color: var(--ai-text);
  overflow: hidden;
  white-space: nowrap;
}

.notice-text span {
  display: inline-block;
  padding-left: 100%;
  animation: notice-scroll 18s linear infinite;
}

@keyframes notice-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 991px) {
  .dashboard-body {
    padding: 24px;
  }
  .site-header {
    padding: 16px 20px;
  }
  .main-nav a {
    margin-left: 0;
    margin-right: 18px;
    font-size: 13px;
  }
  .menu-grid {
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 575px) {
  .site-header {
    justify-content: center;
    text-align: center;
    padding: 16px;
  }
  .main-nav {
    width: 100%;
    justify-content: center;
  }
  .main-nav a {
    margin: 0 10px;
  }
  .dashboard-body {
    padding: 16px;
  }
  .info-card {
    padding: 14px 18px;
  }
  .menu-tile {
    min-height: 130px;
    font-size: 14px;
    padding: 14px;
  }
}

/* ============== MEMBER CARD / QR VERIFICATION PAGE ============== */

.card-verify-body {
  background: var(--ai-page-bg);
  min-height: calc(100vh - 92px);
  padding: 24px 20px 40px;
  display: flex;
  justify-content: center;
}

.card-verify-wrap {
  width: 100%;
  max-width: 340px;
}

.card-photo {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 20px;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-verify-wrap .btn-ai-green {
  margin-top: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}
