/* ===== Colors ===== */
:root {
  --bg-dark: #000;
  --card-bg: #111;
  --primary: #ffe100;
  --primary-hover: #ffd000;
  --primary-text: #000;
  --text-white: #fff;
  --text-muted: #aaa;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.3);
  --card-radius: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg-dark);
  color: var(--text-white);
}

/* ===== Navbar ===== */
.navbar-edeka {
  background: #111;
  padding: 0.75rem 0;
  border-bottom: 1px solid #222;
}
.navbar-edeka .navbar-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
}
.navbar-logo {
  height: 32px;
  width: auto;
  border-radius: 4px;
}
.navbar-edeka .nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.navbar-edeka .nav-link:hover,
.navbar-edeka .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ===== Hero ===== */
.hero {
  background: #111;
  color: #fff;
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.hero .badge-exclusive {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.hero .hero-sub {
  font-size: 1rem;
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

/* ===== Coupon Cards Grid ===== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.25rem;
  color: #fff;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.coupon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 991px) {
  .coupon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .coupon-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
}

.coupon-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.coupon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
  color: inherit;
  text-decoration: none;
}
.coupon-card .card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.coupon-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.coupon-card:hover .card-img-wrap img {
  transform: scale(1.03);
}
.coupon-card .discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.coupon-card .card-body {
  padding: 0.85rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.coupon-card .card-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: #fff;
}
.coupon-card .card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== Steps Section ===== */
.steps-section {
  background: #111;
  padding: 3rem 0;
}
.step-card {
  text-align: center;
  padding: 1.5rem 1rem;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.step-card h5 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.step-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ===== Send Section ===== */
.send-section {
  background: #111;
  color: #fff;
  padding: 2.5rem 0;
  border-radius: var(--card-radius);
  border: 1px solid #333;
}
.send-section h3 {
  font-weight: 700;
}

/* ===== Buttons ===== */
.btn-edeka {
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.1s;
}
.btn-edeka:hover {
  background: var(--primary-hover);
  color: var(--primary-text);
  transform: translateY(-1px);
}
.btn-edeka:active {
  transform: translateY(0);
}
.btn-edeka:disabled {
  opacity: 0.7;
  transform: none;
}
.btn-edeka-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #555;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-edeka-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: #888;
  color: #fff;
}

/* ===== Send Log ===== */
.log-table {
  background: #111;
  border-radius: var(--card-radius);
  border: 1px solid #333;
  overflow: hidden;
}
.log-table .table {
  margin-bottom: 0;
  color: #fff;
}
.log-table .table thead th {
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
}
.log-table .table td {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  vertical-align: middle;
  border-color: #333;
}

/* ===== Footer ===== */
.footer-edeka {
  background: #111;
  color: rgba(255,255,255,0.5);
  padding: 1.25rem 0;
  font-size: 0.82rem;
  text-align: center;
  border-top: 1px solid #222;
}
.footer-edeka a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.footer-edeka a:hover {
  color: #fff;
}

/* ===== Admin Styles ===== */
.admin-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-card {
  background: #1a1a1a;
  border-radius: var(--card-radius);
  border: 1px solid #333;
  overflow: hidden;
}
.admin-card .card-header {
  background: #222;
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #333;
}
.admin-card .card-body {
  background: #1a1a1a;
}
.admin-table {
  color: #fff;
  --bs-table-bg: #1a1a1a;
  --bs-table-color: #fff;
  --bs-table-border-color: #333;
  --bs-table-striped-bg: #222;
  --bs-table-striped-color: #fff;
  --bs-table-hover-bg: #2a2a2a;
  --bs-table-hover-color: #fff;
}
.admin-table thead {
  background: #222;
}
.admin-table thead th {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #999;
  white-space: nowrap;
  border-color: #333;
  background: #222;
}
.admin-table tbody tr {
  border-color: #333;
}
.admin-table tbody td {
  vertical-align: middle;
  font-size: 0.88rem;
  color: #eee;
  border-color: #333;
}
.admin-table code {
  color: var(--primary);
}
.admin-actions .btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  margin: 1px;
}

/* ===== Inline Name Edit ===== */
.editable-name .name-display {
  cursor: pointer;
  border-bottom: 1px dashed #555;
  padding-bottom: 1px;
}
.editable-name .name-display:hover {
  border-bottom-color: var(--primary);
  color: var(--primary);
}
.editable-name .name-form {
  display: none;
  align-items: center;
  gap: 0.35rem;
}
.editable-name.editing .name-display {
  display: none;
}
.editable-name.editing .name-form {
  display: inline-flex;
}

/* ===== Mobile Phone Cards ===== */
.phone-card-mobile {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: var(--card-radius);
  padding: 1rem;
  color: #eee;
}
.phone-card-mobile code {
  color: var(--primary);
}

/* ===== Misc ===== */
html, body {
  overflow-x: hidden;
}
.alert { border-radius: 10px; }
.form-control, .form-select {
  border-radius: 10px;
  background: #222;
  border-color: #444;
  color: #fff;
}
.form-control:focus, .form-select:focus {
  background: #222;
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(255,225,0,0.15);
}
.form-control::placeholder { color: #777; }
.form-text { color: var(--text-muted); }
.form-label { color: #ddd; }
.badge { font-weight: 600; }
.text-muted { color: var(--text-muted) !important; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
code { color: var(--primary); }
.form-check-input { background-color: #333; border-color: #555; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-label { color: #ddd; }

/* ===== Mobile fixes ===== */
@media (max-width: 575px) {
  .hero { padding: 2rem 0 1.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero .btn-lg { font-size: 0.88rem; padding: 0.5rem 1.2rem; }
  .send-section { padding: 1.5rem 0; }
  .send-section h3 { font-size: 1.15rem; }
  .steps-section { padding: 2rem 0; }
  .section-title { font-size: 1.25rem; }
  .navbar-edeka .navbar-brand { font-size: 0.95rem; }
  .navbar-logo { height: 26px; }
  .navbar-edeka .nav-link { font-size: 0.8rem; padding: 0.3rem 0.6rem; }
  .container { padding-left: 1rem; padding-right: 1rem; }
}
