/* ═══════════════════════════════════════════════════════════
   MEINEPACKS — MEINBRETT v1.0
   Broadcast Center · Push & WhatsApp Opt-in
   ═══════════════════════════════════════════════════════════ */

/* ─── NAV BRETT BUTTON ─── */
.nav-brett { position: relative; }
.nav-brett::after { background: #d4af37; box-shadow: 0 0 10px #d4af37; }
.nav-brett.active { border-color: #d4af37; background: rgba(212,175,55,.08); box-shadow: 0 0 15px rgba(212,175,55,.3), inset 0 0 15px rgba(212,175,55,.05); }
.nav-brett.active .nav-label { color: #d4af37; }
.nav-brett.has-news { animation: brett-pulse .7s ease-in-out infinite !important; border-color: #d4af37 !important; }
.nav-brett.has-news .nav-icon { animation: brett-icon-glow 1.2s ease-in-out infinite !important; filter: drop-shadow(0 0 10px rgba(212,175,55,.8)) !important; }
.nav-brett.has-news .nav-label { color: #d4af37 !important; }
.nav-brett.has-news .brett-badge { animation: badge-brett-pulse .5s ease-in-out infinite !important; }
@keyframes brett-pulse {
  0%,100% { box-shadow: 0 0 8px rgba(212,175,55,.3); border-color: rgba(212,175,55,.6); }
  50% { box-shadow: 0 0 20px rgba(212,175,55,.7), inset 0 0 12px rgba(212,175,55,.15); border-color: #d4af37; }
}
@keyframes brett-icon-glow {
  0%,100% { filter: drop-shadow(0 0 6px rgba(212,175,55,.6)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 14px rgba(212,175,55,1)); transform: scale(1.12); }
}
@keyframes badge-brett-pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
.brett-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: linear-gradient(135deg, #d4af37, #f3e5ab);
  color: #000; font-size: 10px; font-weight: 900;
  border-radius: 9px; display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(212,175,55,.7);
}
.brett-badge.active { display: flex; }

/* ─── BRETT OVERLAY ─── */
.brett-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #070709;
  display: none; flex-direction: column;
  opacity: 0; transition: opacity .3s ease;
}
.brett-overlay.active { display: flex; opacity: 1; }

/* Header */
.brett-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 16px;
  background: linear-gradient(180deg, rgba(212,175,55,.06) 0%, transparent 100%);
  border-bottom: 1px solid rgba(212,175,55,.12);
  flex-shrink: 0;
}
.brett-header-left { display: flex; align-items: center; gap: 12px; }
.brett-logo {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #d4af37, #8a5a00);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(212,175,55,.3);
}
.brett-header-text {}
.brett-header-title {
  font-size: 16px; font-weight: 900; letter-spacing: 2px;
  background: linear-gradient(90deg, #f3e5ab, #d4af37, #8a5a00);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brett-header-sub { font-size: 10px; color: rgba(255,255,255,.35); letter-spacing: 1px; margin-top: 1px; }
.brett-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5); font-size: 14px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.brett-close:active { background: rgba(255,255,255,.12); }

/* Scrollable content */
.brett-content {
  flex: 1; overflow-y: auto; padding: 16px 16px 100px;
  -webkit-overflow-scrolling: touch;
}

/* ─── OPT-IN SECTION ─── */
.brett-optin-section { margin-bottom: 20px; }
.brett-optin-title {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: rgba(255,255,255,.3); text-transform: uppercase;
  margin-bottom: 10px; padding-left: 4px;
}
.brett-optin-card {
  border-radius: 20px; overflow: hidden;
  margin-bottom: 10px;
  border: 1.5px solid rgba(212,175,55,.2);
  background: linear-gradient(145deg, rgba(212,175,55,.05), rgba(0,0,0,0));
}
.brett-optin-inner {
  padding: 16px 18px;
}
.brett-optin-row {
  display: flex; align-items: center; gap: 14px;
}
.brett-optin-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.brett-optin-icon.push { background: linear-gradient(135deg, rgba(0,240,255,.15), rgba(0,240,255,.05)); border: 1px solid rgba(0,240,255,.2); }
.brett-optin-icon.wa { background: linear-gradient(135deg, rgba(37,211,102,.15), rgba(37,211,102,.05)); border: 1px solid rgba(37,211,102,.2); }
.brett-optin-info { flex: 1; }
.brett-optin-label { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.brett-optin-sub { font-size: 11px; color: rgba(255,255,255,.4); line-height: 1.4; }
.brett-optin-btn {
  padding: 10px 16px; border-radius: 50px; border: none; cursor: pointer;
  font-size: 11px; font-weight: 900; letter-spacing: .5px; flex-shrink: 0;
  transition: all .2s;
}
.brett-optin-btn.push { background: linear-gradient(135deg, #00f0ff, #0080ff); color: #000; }
.brett-optin-btn.wa { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; }
.brett-optin-btn.done {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.4); pointer-events: none;
}
.brett-optin-btn:active { transform: scale(.95); }
/* WhatsApp phone input */
.brett-wa-input-wrap {
  display: none; padding: 14px 18px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(37,211,102,.04);
}
.brett-wa-input-wrap.open { display: block; }
.brett-wa-input-row { display: flex; gap: 8px; }
.brett-wa-input {
  flex: 1; background: rgba(255,255,255,.07); border: 1.5px solid rgba(37,211,102,.3);
  border-radius: 12px; padding: 11px 14px; color: #fff;
  font-size: 15px; font-weight: 700; outline: none;
  -webkit-appearance: none;
}
.brett-wa-input::placeholder { color: rgba(255,255,255,.3); font-weight: 400; }
.brett-wa-input:focus { border-color: #25d366; }
.brett-wa-save {
  padding: 11px 18px; background: linear-gradient(135deg, #25d366, #128c7e);
  border: none; border-radius: 12px; color: #fff;
  font-size: 13px; font-weight: 900; cursor: pointer;
}
.brett-wa-save:active { transform: scale(.95); }
.brett-wa-hint { font-size: 10px; color: rgba(255,255,255,.3); margin-top: 8px; line-height: 1.5; }

/* Opted-in status pills */
.brett-optin-status {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 10px 18px 14px;
  border-top: 1px solid rgba(255,255,255,.04);
}
.brett-optin-status.hidden { display: none; }
.brett-status-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 50px;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  background: rgba(0,255,136,.1); border: 1px solid rgba(0,255,136,.2);
  color: #00ff88;
}
.brett-status-pill.wa-pill {
  background: rgba(37,211,102,.1); border-color: rgba(37,211,102,.2); color: #25d366;
}

/* ─── POSTS DIVIDER ─── */
.brett-posts-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding: 0 2px;
}
.brett-posts-title {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: rgba(255,255,255,.3); text-transform: uppercase;
}
.brett-mark-read {
  font-size: 10px; font-weight: 700; color: rgba(212,175,55,.5);
  letter-spacing: .5px; cursor: pointer;
}
.brett-mark-read:active { color: #d4af37; }

/* ─── BROADCAST POSTS ─── */
.brett-post {
  position: relative; border-radius: 22px; overflow: hidden;
  margin-bottom: 12px; cursor: pointer;
  transition: transform .2s ease;
  border: 1.5px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.brett-post:active { transform: scale(.99); }
.brett-post.unread::before {
  content: ''; position: absolute; top: 14px; right: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #d4af37; box-shadow: 0 0 8px #d4af37;
}

/* Post types */
.brett-post.type-live {
  background: linear-gradient(145deg, #160809 0%, #0a0404 100%);
  border: 1.5px solid rgba(255,0,68,.4);
  box-shadow: 0 8px 30px rgba(255,0,68,.15), inset 0 0 40px rgba(255,0,68,.05);
}
.brett-post.type-info {
  background: linear-gradient(145deg, #071510 0%, #040c08 100%);
  border: 1.5px solid rgba(0,255,136,.3);
  box-shadow: 0 8px 30px rgba(0,255,136,.1);
}
.brett-post.type-deal {
  background: linear-gradient(145deg, #16130a 0%, #0c0a04 100%);
  border: 1.5px solid rgba(212,175,55,.4);
  box-shadow: 0 8px 30px rgba(212,175,55,.15), inset 0 0 40px rgba(212,175,55,.05);
}
.brett-post.type-update {
  background: linear-gradient(145deg, #08121a 0%, #040a10 100%);
  border: 1.5px solid rgba(0,240,255,.3);
  box-shadow: 0 8px 30px rgba(0,240,255,.1);
}

/* Post header */
.brett-post-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px;
}
.brett-post-tag {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase;
}
.brett-post-tag-dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.brett-post.type-live .brett-post-tag { color: #ff0044; }
.brett-post.type-live .brett-post-tag-dot { background: #ff0044; box-shadow: 0 0 8px #ff0044; animation: dot-blink .8s ease-in-out infinite; }
.brett-post.type-info .brett-post-tag { color: #00ff88; }
.brett-post.type-info .brett-post-tag-dot { background: #00ff88; box-shadow: 0 0 8px #00ff88; }
.brett-post.type-deal .brett-post-tag { color: #d4af37; }
.brett-post.type-deal .brett-post-tag-dot { background: #d4af37; box-shadow: 0 0 8px #d4af37; }
.brett-post.type-update .brett-post-tag { color: #00f0ff; }
.brett-post.type-update .brett-post-tag-dot { background: #00f0ff; box-shadow: 0 0 8px #00f0ff; }
@keyframes dot-blink { 0%,100% { opacity:1; } 50% { opacity:.3; } }

.brett-post-time { font-size: 10px; color: rgba(255,255,255,.3); font-weight: 600; }

/* Post body */
.brett-post-body { padding: 0 18px 18px; }
.brett-post-title { font-size: 19px; font-weight: 900; color: #fff; margin-bottom: 8px; line-height: 1.3; }
.brett-post-text { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.6; }

/* Post CTA */
.brett-post-cta {
  margin: 0 18px 18px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  font-size: 13px; font-weight: 800; color: rgba(255,255,255,.7);
  cursor: pointer; transition: all .2s;
}
.brett-post.type-deal .brett-post-cta { background: rgba(212,175,55,.08); border-color: rgba(212,175,55,.2); color: #d4af37; }
.brett-post.type-live .brett-post-cta { background: rgba(255,0,68,.08); border-color: rgba(255,0,68,.2); color: #ff0044; }
.brett-post-cta:active { transform: scale(.98); }
.brett-post-cta-arrow { font-size: 16px; }

/* Empty state */
.brett-empty {
  text-align: center; padding: 60px 20px;
}
.brett-empty-icon { font-size: 52px; margin-bottom: 14px; opacity: .5; }
.brett-empty-title { font-size: 16px; font-weight: 800; color: rgba(255,255,255,.3); margin-bottom: 6px; }
.brett-empty-sub { font-size: 12px; color: rgba(255,255,255,.2); line-height: 1.6; }

/* Shimmer loading */
.brett-skeleton {
  height: 120px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(90deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 100%);
  background-size: 200% 100%; animation: brett-shimmer 1.5s infinite;
  margin-bottom: 12px;
}
@keyframes brett-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── FOOTER (fixed inner, above nav) ─── */
.brett-footer-optin {
  position: sticky; bottom: 0; left: 0; right: 0;
  padding: 14px 16px 30px;
  background: linear-gradient(0deg, #070709 70%, transparent 100%);
  display: flex; gap: 8px; flex-shrink: 0;
}
.brett-footer-optin.hidden { display: none; }
.brett-footer-btn {
  flex: 1; padding: 14px 12px; border-radius: 16px; border: none;
  font-size: 12px; font-weight: 900; letter-spacing: .5px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .2s;
}
.brett-footer-btn.push-btn {
  background: linear-gradient(135deg, #00f0ff22, #0040ff22);
  border: 1.5px solid rgba(0,240,255,.3); color: #00f0ff;
}
.brett-footer-btn.wa-btn {
  background: linear-gradient(135deg, #25d36622, #128c7e22);
  border: 1.5px solid rgba(37,211,102,.3); color: #25d366;
}
.brett-footer-btn.active-btn {
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.08); color: rgba(255,255,255,.3);
  pointer-events: none;
}
.brett-footer-btn:active { transform: scale(.97); }
