
.admin-page {
  background: #f7f8fa;
  color: #20252d;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
}

.admin-topbar {
  height: 76px;
  padding: 0 35px;
  background: #fff;
  border-bottom: 1px solid #ececec;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #20252d;
  font-weight: 800;
  letter-spacing: .5px;
}

.admin-brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #a17b20;
  margin-top: 4px;
}

.admin-logo {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #d4af37;
  color: white;
  font-size: 25px;
  font-weight: 900;
  border-radius: 12px;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-gold-btn,
.admin-outline-btn {
  border-radius: 8px;
  padding: 11px 17px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.admin-gold-btn {
  border: 1px solid #c49a25;
  background: #d4af37;
  color: #fff;
}

.admin-gold-btn:hover {
  background: #b99020;
}

.admin-outline-btn {
  border: 1px solid #e4d4a3;
  color: #80651b;
  background: #fff;
}

.admin-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}

.admin-sidebar {
  background: #fff;
  border-right: 1px solid #ececec;
  padding: 30px 17px;
  position: relative;
}

.sidebar-heading {
  color: #999;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  margin: 5px 12px 18px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: 9px;
  margin-bottom: 7px;
  color: #59616b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: .2s;
}

.sidebar-link span {
  font-size: 18px;
  color: #b18a25;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #fbf6e8;
  color: #876815;
}

.sidebar-bottom {
  position: absolute;
  bottom: 25px;
  left: 30px;
}

.sidebar-brand-note {
  color: #a17b20;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}

.sidebar-bottom small {
  color: #999;
  font-size: 10px;
}

.admin-content {
  padding: 35px;
  min-width: 0;
  max-width: 1500px;
  width: 100%;
}

.admin-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-eyebrow {
  color: #b18a25;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 9px;
}

.admin-welcome h1 {
  font-size: 29px;
  margin: 0 0 8px;
  color: #20252d;
}

.admin-welcome p:not(.admin-eyebrow) {
  color: #818894;
  font-size: 13px;
}

.admin-date {
  background: #fff;
  border: 1px solid #eee7d5;
  border-radius: 10px;
  padding: 14px 20px;
  text-align: right;
}

.admin-date span,
.admin-date strong {
  display: block;
}

.admin-date span {
  color: #999;
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.admin-date strong {
  color: #a17b20;
  font-size: 12px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 38px;
}

.overview-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: .2s;
}

.overview-card:hover {
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px #00000008;
}

.overview-icon {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #fbf5e4;
  color: #a17b20;
  font-size: 21px;
}

.overview-card h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.overview-card p {
  margin: 0;
  font-size: 11px;
  color: #9299a2;
  line-height: 1.5;
}

.overview-arrow {
  margin-left: auto;
  color: #b18a25;
  font-size: 20px;
}

.admin-section {
  margin-bottom: 35px;
  scroll-margin-top: 95px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.section-heading h2 {
  margin: 0 0 7px;
  font-size: 20px;
}

.section-heading p:not(.admin-eyebrow) {
  margin: 0;
  font-size: 12px;
  color: #9299a2;
}

.section-tag {
  border: 1px solid #eee2bd;
  background: #fffaf0;
  color: #9b7823;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.admin-panel {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px #00000004;
}

.panel-intro {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
}

.panel-intro strong {
  font-size: 13px;
}

.panel-intro p {
  font-size: 12px;
  color: #89919b;
  line-height: 1.7;
  margin-bottom: 0;
}

.admin-card {
  background: #fffdf8;
  border: 1px solid #eee4c9;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 13px;
}

.admin-card h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #292d33;
}

.admin-card p {
  font-size: 13px;
  line-height: 1.6;
}

.admin-card .meta {
  font-size: 11px;
  color: #818894;
  margin: 7px 0;
  line-height: 1.5;
}

.admin-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 17px;
}

.admin-card button,
.admin-panel button.smallbtn {
  border: 1px solid #d4af37;
  border-radius: 7px;
  padding: 10px 14px;
  background: #d4af37;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.admin-card button.danger {
  background: #fff;
  border-color: #e2b5b5;
  color: #bd4444;
}

.admin-card button:disabled,
.admin-panel button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.person {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.person:last-child {
  border-bottom: 0;
}

.person strong {
  font-size: 13px;
}

.person .muted {
  font-size: 11px;
  margin-top: 5px;
  color: #9299a2;
}

.person button.danger {
  background: #fff;
  color: #bd4444;
  border-color: #e2b5b5;
}

.add-country-area {
  border-top: 1px solid #eee;
  padding-top: 20px;
  margin-top: 15px;
}

.add-country-area label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.add-country-controls {
  display: flex;
  gap: 10px;
  max-width: 500px;
}

.add-country-controls select {
  flex: 1;
  min-width: 0;
  border: 1px solid #ddd;
  border-radius: 7px;
  padding: 11px;
  background: #fff;
}

.admin-footer {
  padding: 20px 0;
  border-top: 1px solid #eee;
  color: #a0a5ac;
  font-size: 10px;
  letter-spacing: 1px;
  text-align: center;
}

.admin-denied {
  max-width: 600px;
  margin: 80px auto;
  background: #fff;
  padding: 35px;
  border-radius: 12px;
  text-align: center;
}

.admin-denied h2 {
  color: #bd4444;
}

.admin-denied p {
  color: #777;
}

.admin-denied a {
  color: #a17b20;
}

.admin-page .status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  background: #fff;
  border: 1px solid #d4af37;
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 5px 25px #0002;
}

@media (max-width: 950px) {
  .admin-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .admin-content {
    padding: 25px 18px;
  }

  .admin-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .admin-topbar {
    padding: 0 14px;
    height: 68px;
  }

  .admin-brand {
    font-size: 11px;
  }

  .admin-brand small {
    font-size: 8px;
  }

  .admin-outline-btn {
    display: none;
  }

  .admin-layout {
    display: block;
  }

  .admin-sidebar {
    position: static;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 7px;
    overflow-x: auto;
  }

  .sidebar-heading,
  .sidebar-bottom {
    display: none;
  }

  .sidebar-link {
    white-space: nowrap;
    margin: 0;
    padding: 11px;
    font-size: 11px;
  }

  .admin-content {
    padding: 23px 13px;
  }

  .admin-welcome {
    display: block;
  }

  .admin-date {
    display: inline-block;
    text-align: left;
    margin-top: 12px;
  }

  .admin-welcome h1 {
    font-size: 23px;
  }

  .admin-panel {
    padding: 15px;
  }

  .section-heading h2 {
    font-size: 17px;
  }

  .section-tag {
    display: none;
  }

  .person {
    align-items: flex-start;
  }

  .add-country-controls {
    flex-direction: column;
  }
}
