* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: linear-gradient(180deg, #f5faf7, #fff);
  color: #142820;
}
.admin-app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px;
}
.login-card {
  margin-top: 70px;
  background: white;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.admin-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0b6b46, #10a86c);
  color: white;
  font-weight: 900;
  font-size: 24px;
}
.login-card h1 {
  margin: 0;
  color: #0b4b34;
}
.login-card p {
  margin: 6px 0 18px;
  color: #7b8c85;
}
input {
  width: 100%;
  border: 1px solid #dfe9e5;
  background: #f9fcfb;
  padding: 14px;
  border-radius: 16px;
  margin-bottom: 10px;
  font-size: 15px;
}
button,
.preview-btn {
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  background: #0b6b46;
  color: white;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.hidden {
  display: none;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 16px;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}
.admin-header h1 {
  font-size: 22px;
  margin: 0;
  color: #0b4b34;
}
.admin-header p {
  font-size: 12px;
  margin: 5px 0 0;
  color: #71827b;
}
.preview-btn {
  background: #173d31;
  font-size: 12px;
  padding: 10px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.stat-card {
  background: white;
  padding: 16px;
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
}
.stat-card strong {
  display: block;
  font-size: 28px;
  color: #0b6b46;
}
.stat-card span {
  font-size: 12px;
  color: #687b73;
}
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: sticky;
  top: 8px;
  z-index: 5;
  background: rgba(245, 250, 247, 0.85);
  backdrop-filter: blur(10px);
  padding: 8px 0;
}
.admin-tabs button {
  background: white;
  color: #315347;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  padding: 11px 6px;
  font-size: 12px;
}
.admin-tabs button.active {
  background: #0b6b46;
  color: white;
}
.panel {
  display: none;
  background: white;
  border-radius: 26px;
  padding: 14px;
  margin-top: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}
.panel.active {
  display: block;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.panel-head h2 {
  margin: 0;
  color: #0b4b34;
}
.panel-head button {
  font-size: 12px;
}
.offer-form {
  display: none;
  background: #f5faf7;
  border: 1px solid #e1ede8;
  padding: 12px;
  border-radius: 22px;
  margin-bottom: 12px;
}
.offer-form.show {
  display: block;
}
.offer-form h3 {
  margin: 0 0 10px;
  color: #0b4b34;
}
.upload-box {
  height: 110px;
  border: 2px dashed #aac8bd;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #6d857b;
  background: white;
  margin-bottom: 10px;
  font-size: 13px;
}
.two-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
label {
  display: block;
  margin: 8px 0;
  font-size: 14px;
  color: #304d43;
}
label input {
  width: auto;
  margin: 0 0 0 6px;
}
.save-btn,
.cancel-btn {
  width: 100%;
  margin-top: 8px;
}
.cancel-btn {
  background: #eef5f2;
  color: #29483d;
}
.cards-list,
.media-list {
  display: grid;
  gap: 10px;
}
.admin-offer-card {
  display: grid;
  grid-template-columns: 70px 1fr 64px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #edf2f0;
  border-radius: 22px;
  background: #fcfefd;
}
.admin-offer-card.inactive {
  opacity: 0.55;
}
.thumb{
    width:70px;
    height:70px;
    border-radius:12px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f4f4f4;
  }
  .thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

.info h3 {
  font-size: 14px;
  margin: 0 0 4px;
}
.info p {
  font-size: 13px;
  margin: 0 0 6px;
  color: #0b6b46;
  font-weight: 800;
}
.pill {
  display: inline-block;
  font-size: 10px;
  background: #fff1c7;
  color: #644100;
  padding: 4px 7px;
  border-radius: 999px;
}
.pill.green {
  background: #e4f7ee;
  color: #0b6b46;
}
.pill.gray {
  background: #edf2f0;
  color: #66756e;
}
.actions {
  display: grid;
  gap: 6px;
}
.actions button {
  padding: 8px 4px;
  font-size: 11px;
  background: #eef5f2;
  color: #29483d;
}
.actions .delete {
  background: #ffe8e8;
  color: #b51d1d;
}
.media-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 13px;
  background: #f8fbfa;
  border: 1px solid #edf2f0;
  border-radius: 18px;
  font-size: 14px;
}
.media-item button {
  padding: 7px 8px;
  font-size: 11px;
  background: #173d31;
}
.event-card {
  background: #f8fbfa;
  border-radius: 22px;
  padding: 14px;
}
.theme-grid {
  display: grid;
  gap: 10px;
}
.theme-grid label {
  background: #f8fbfa;
  border: 1px solid #edf2f0;
  border-radius: 18px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.theme-grid input {
  width: 52px;
  height: 36px;
  padding: 2px;
  margin: 0;
}
.theme-preview {
  margin-top: 14px;
  background: #f7faf6;
  border-radius: 22px;
  padding: 14px;
}
.mini-offer {
  background: white;
  border-radius: 18px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}
.mini-offer span {
  background: #e92424;
  color: white;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}
.mini-offer strong {
  display: block;
  margin-top: 10px;
  color: #0b6b46;
  font-size: 34px;
}
.mini-offer small {
  color: #0b6b46;
  font-weight: 800;
}
.empty-admin {
  text-align: center;
  padding: 18px;
  color: #758980;
  background: #f8fbfa;
  border-radius: 18px;
}
@media (max-width: 390px) {
  .admin-app {
    padding: 10px;
  }
  .admin-tabs button {
    font-size: 11px;
  }
  .admin-offer-card {
    grid-template-columns: 58px 1fr 58px;
  }
  .thumb {
    height: 58px;
    font-size: 30px;
  }
}

input[type="color"] {
    width: 100%;
    height: 44px;
    padding: 3px;
    border-radius: 14px;
    border: 2px solid #dfe9e5;
    background: white;
  }
