/* ═══════════════════════════════════════════
   Extended Styles for MatchMonks
   Extracted from inline styles for maintainability
   ═══════════════════════════════════════════ */

/* ═══ More Page ═══ */
.more-profile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rxl);
  padding: 20px;
  margin: 12px 0 16px;
  box-shadow: var(--sh-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.more-profile:hover {
  border-color: var(--border-s);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 41, 0.08);
}

.more-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #E74C3C, #C0392B);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 10px rgba(231, 76, 60, 0.25);
  flex-shrink: 0;
  position: relative;
}

.more-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.more-user-info {
  flex: 1;
  min-width: 0;
}

.more-user-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.more-user-sub {
  font-size: 12px;
  color: var(--t3);
  margin-top: 1px;
}

.more-user-arrow {
  color: var(--t4);
  font-size: 18px;
  flex-shrink: 0;
}

.more-section {
  margin-bottom: 20px;
}

.more-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--t3);
  padding: 0 4px 8px;
}

.more-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: var(--sh-xs);
}

.more-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}

.more-item:last-child {
  border-bottom: none;
}

.more-item:hover {
  background: var(--hover);
}

.more-item-ic {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.more-item-ic.red {
  background: var(--brand-sub);
  color: var(--brand);
}

.more-item-ic.green {
  background: var(--green-sub);
  color: var(--green);
}

.more-item-ic.amber {
  background: var(--amber-sub);
  color: var(--amber);
}

.more-item-ic.blue {
  background: rgba(8, 145, 178, 0.06);
  color: var(--info);
}

.more-item-ic.purple {
  background: rgba(124, 58, 237, 0.06);
  color: #7C3AED;
}

.more-item-ic.gray {
  background: var(--elevated);
  color: var(--t3);
}

.more-item-body {
  flex: 1;
  min-width: 0;
}

.more-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
}

.more-item-desc {
  font-size: 11px;
  color: var(--t3);
  margin-top: 1px;
}

.more-item-arrow {
  color: var(--t4);
  font-size: 14px;
  flex-shrink: 0;
}

.more-item-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--rfl);
  background: var(--brand);
  color: #fff;
  flex-shrink: 0;
}

.more-item-badge.coming {
  background: var(--elevated);
  color: var(--t3);
}

.more-item-toggle {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--border-s);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.more-item-toggle.on {
  background: var(--brand);
}

.more-item-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform 0.2s;
}

.more-item-toggle.on::after {
  transform: translateX(18px);
}

.more-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 16px;
}

.more-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--sh-xs);
}

.more-stat-val {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
}

.more-stat-lbl {
  font-size: 10px;
  color: var(--t3);
  font-weight: 600;
  margin-top: 2px;
}

.more-footer {
  text-align: center;
  padding: 24px 16px 16px;
  color: var(--t4);
  font-size: 11px;
}

.more-footer a {
  color: var(--t3);
  text-decoration: underline;
}

.more-ver {
  font-family: var(--mono);
  font-size: 10px;
  margin-top: 4px;
  color: var(--t4);
}

/* ═══ Language Picker ═══ */
.lang-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 41, 0.4);
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: lpFadeIn 0.2s ease-out;
}

@keyframes lpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lang-picker {
  background: var(--white);
  border-radius: 16px 16px 0 0;
  padding: 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 -4px 24px rgba(15, 23, 41, 0.15);
  animation: lpSlideUp 0.25s ease-out;
}

@keyframes lpSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.lang-picker-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 0 4px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: var(--rl);
  cursor: pointer;
  transition: background 0.12s;
  border: 1.5px solid transparent;
}

.lang-option:hover {
  background: var(--hover);
}

.lang-option.on {
  background: var(--brand-sub);
  border-color: rgba(231, 76, 60, 0.2);
}

.lang-flag {
  font-size: 22px;
}

.lang-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.lang-check {
  color: var(--brand);
  font-weight: 700;
  font-size: 16px;
}

/* ═══ Toast Notification ═══ */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--t1);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--rfl);
  font-size: 13px;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══ Auth Modal ═══ */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 41, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: authFadeIn 0.2s ease-out;
}

@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal {
  background: var(--white);
  border-radius: 20px;
  padding: 28px 24px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 16px 48px rgba(15, 23, 41, 0.2);
  animation: authSlideUp 0.25s ease-out;
  position: relative;
}

@keyframes authSlideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--t3);
  margin-top: 4px;
}

.auth-close {
  position: absolute;
  top: -4px;
  right: 0;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--t3);
  padding: 4px;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.2s;
  background: var(--bg, #f8f9fb);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--brand);
}

.auth-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(145deg, #E74C3C, #C0392B);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 12px rgba(231, 76, 60, 0.3);
  margin-top: 4px;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.35);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-error {
  background: var(--red, #EF4444)11;
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #DC2626;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  text-align: center;
}

.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--t3);
}

.auth-switch a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: 12px;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ═══ Unread Badge ═══ */
.msg-badge {
  background: var(--brand, #E74C3C);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 4px;
  display: inline-block;
  min-width: 14px;
  text-align: center;
}

/* ═══ TipEdge Banner ═══ */
.tipedge-banner {
  position: fixed;
  right: 20px;
  top: 80px;
  width: 200px;
  background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
  border-radius: 16px;
  padding: 30px 20px 40px;
  box-shadow: 0 8px 32px rgba(231, 76, 60, 0.3);
  z-index: 900;
  transition: all 0.3s ease;
  display: none;
}

@media (min-width: 1200px) {
  .tipedge-banner {
    display: block;
  }
  .shell {
    margin-right: 240px;
  }
}

.tipedge-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(231, 76, 60, 0.4);
}

.tipedge-banner-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.tipedge-banner-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.tipedge-banner-logo {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 18px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tipedge-banner-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.tipedge-banner-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 4px;
  font-weight: 500;
}

.tipedge-banner-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
}

.tipedge-banner-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #E74C3C;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tipedge-banner-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.tipedge-banner-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-align: center;
  margin-top: 12px;
  backdrop-filter: blur(10px);
}

/* ═══ User Profile Button (Header) ═══ */
.hdr-user-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}

.hdr-user-btn:hover {
  border-color: var(--brand);
}

/* ═══ Notification Toggle Button ═══ */
.notif-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--elevated);
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--t2);
  transition: all 0.2s ease;
  font-family: var(--font);
  white-space: nowrap;
  height: 30px;
}

.notif-btn:hover {
  background: var(--hover);
  border-color: var(--border-s);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.notif-btn.on {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.notif-btn.on:hover {
  background: #059669;
  border-color: #059669;
}

.notif-btn.blocked {
  background: var(--red-sub);
  color: var(--red);
  border-color: rgba(220, 38, 38, 0.2);
  cursor: not-allowed;
}

.notif-btn.blocked:hover {
  transform: none;
}

.notif-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Mobile: Show only icon */
@media (max-width: 640px) {
  .notif-btn span {
    display: none;
  }
  .notif-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    justify-content: center;
  }
}

/* ═══ Calendar Search ═══ */
.cal-search-wrap {
  position: relative;
  margin-bottom: 12px;
}

.cal-search {
  width: 100%;
  padding: 10px 14px;
  padding-right: 36px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.2s;
  background: var(--white);
}

.cal-search:focus {
  outline: none;
  border-color: var(--brand);
}

.cal-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--elevated);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--t3);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.cal-search-clear:hover {
  background: var(--border-s);
  color: var(--t2);
}

/* ═══ Calendar Toast ═══ */
.cal-toast {
  position: sticky;
  top: 0;
  background: var(--info);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--rl);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  z-index: 10;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══ Loading & Empty States ═══ */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  min-height: 300px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: 300px;
  color: var(--t3);
}

.empty-ic {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-t {
  font-size: 15px;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 6px;
}

.empty-s {
  font-size: 13px;
  color: var(--t3);
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
}

/* ═══ Error State ═══ */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 300px;
}

.error-ic {
  width: 64px;
  height: 64px;
  background: var(--red-sub);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
}

.error-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 8px;
}

.error-desc {
  font-size: 13px;
  color: var(--t3);
  text-align: center;
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.error-retry {
  padding: 10px 24px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--rl);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}

.error-retry:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* ═══ Skeleton Loading ═══ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--elevated) 0%,
    var(--hover) 50%,
    var(--elevated) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--r);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-match {
  height: 72px;
  margin-bottom: 8px;
  border-radius: var(--rl);
}

.skeleton-league-header {
  height: 48px;
  margin-bottom: 4px;
  border-radius: var(--r);
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-text.sm {
  height: 12px;
  width: 60%;
}

/* ═══ Live Error Toast ═══ */
.live-error-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #DC3545;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  max-width: 90%;
  text-align: center;
}

.live-error-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .live-error-toast {
    top: 10px;
    font-size: 13px;
    padding: 10px 16px;
  }
}
