* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  background: #f0f0f0;
  color: #222;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
#app-header {
  background: #f00;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

#app-header img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

#app-header h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex: 1;
}

.header-menu {
  font-size: 28px;
  color: #fff;
  flex-shrink: 0;
}


/* ── Content wrapper ── */
#app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 16px 16px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.footer-section {
  margin-top: auto;
  padding-top: 16px;
}

/* ── Login contact ── */
.login-contact {
  margin-top: 32px;
  text-align: center;
}

.login-contact-label {
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
}

.login-contact-btns {
  display: flex;
  gap: 10px;
}

.login-contact-btn {
  flex: 1;
  padding: 14px 6px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  line-height: 1.6;
  font-family: 'Montserrat', Arial, sans-serif;
}

.login-contact-wa    { background: #25D366; color: #fff; }
.login-contact-wa:active { background: #1ea855; color: #fff; }
.login-contact-sms   { background: #007AFF; color: #fff; }
.login-contact-sms:active { background: #0062cc; color: #fff; }
.login-contact-email { background: #e74c3c; color: #fff; }
.login-contact-email:active { background: #c0392b; color: #fff; }

/* ── Profile card ── */
.profile-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.09);
  cursor: pointer;
}

.profile-card img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid #eee;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 3px;
}

.profile-info p {
  font-size: 13px;
  color: #888;
  line-height: 1.4;
}

.profile-edit-link {
  font-size: 13px;
  color: #f00;
  margin-top: 4px;
  display: block;
}

/* ── Alerts ── */
.alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #f00;
}

.alert-warning {
  background: #fef9c3;
  color: #7c6014;
  border-left: 4px solid #f59e0b;
}

/* ── Notification cards ── */
.notification-card {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #2c3e50;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Stat cards ── */
.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.09);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.stat-text {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.stat-text strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 2px;
}

/* ── Club intro ── */
.club-intro {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.09);
  border-left: 4px solid #f00;
}

.club-intro-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 14px;
}

.club-intro-text {
  font-size: 14px;
  color: #f00;
  font-weight: 600;
  margin-bottom: 10px;
}

.club-intro-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.club-intro-list li {
  font-size: 13px;
  color: #555;
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.club-icon {
  font-size: 15px;
  flex-shrink: 0;
}

/* ── Menu ── */
.menu-section {
  margin-top: 10px;
  margin-bottom: 4px;
}

.menu-section-label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  padding-left: 4px;
}

.menu-list {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.09);
  margin-bottom: 16px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid #f2f2f2;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
}

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

.menu-item:active {
  background: #f8f8f8;
}

.menu-item .menu-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.menu-item .menu-label {
  flex: 1;
}

.menu-item .menu-arrow {
  color: #ccc;
  font-size: 15px;
}

.menu-item .badge {
  background: #f00;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* ── Footer ── */
#app-footer {
  display: flex;
  gap: 8px;
  padding: 16px 0 8px;
  margin-top: 8px;
}

.footer-btn {
  flex: 1;
  padding: 9px 4px;
  border: none;
  border-radius: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.footer-btn.home {
  background: #2c3e50;
  color: #fff;
}

.footer-btn.reload {
  background: #e8e8e8;
  color: #444;
}

.footer-btn.esci {
  background: #f00;
  color: #fff;
}

.footer-btn.esci:active { background: #cc0000; }

.esci-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: #f00;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
}

.esci-btn:active { background: #cc0000; }

.footer-text {
  text-align: center;
  font-size: 12px;
  font-style: italic;
  color: #aaa;
  padding: 12px 0 8px;
  border-top: 1px solid #e8e8e8;
  line-height: 1.7;
}

/* ── Tables (existing pages) ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

td, th {
  font-size: 13px !important;
  padding: 3px 4px;
  vertical-align: middle;
  line-height: 1.4;
}

th {
  font-weight: 700;
  color: #2c3e50;
  border-bottom: 2px solid #eee;
  font-size: 13px !important;
}

h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px !important;
  font-weight: 700;
  color: #2c3e50;
  margin: 8px 0 12px;
}

h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px !important;
  font-weight: 700;
  color: #2c3e50;
  margin: 14px 0 8px;
}

/* ── Form elements (existing pages) ── */
input[type=text], input[type=password], input[type=email],
select, textarea {
  font-size: 16px !important;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #222;
  margin-bottom: 10px;
  font-family: inherit;
  display: block;
}

input[type=submit], input[type=button] {
  font-size: 15px !important;
  width: 100%;
  padding: 14px;
  background: #f00;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  display: block;
}

input[type=submit]:active, input[type=button]:active {
  background: #cc0000;
}

input[type=checkbox] {
  width: 20px !important;
  height: 20px !important;
  margin: 0 8px 0 0;
  vertical-align: middle;
}

select {
  width: 100%;
}

textarea {
  height: 120px;
  resize: vertical;
}

hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 16px 0;
}

/* ── Campionati: override bgcolor inline ── */
td[bgcolor="#FE0000"], td[bgcolor="#fe0000"] {
  background-color: #f00 !important;
  padding: 10px 12px !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
td[bgcolor="#FE0000"] font, td[bgcolor="#fe0000"] font {
  color: #fff !important;
}

td[bgcolor="#AAAAAA"] {
  background-color: #2c3e50 !important;
  color: #fff !important;
  padding: 8px 12px !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 11px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

tr.genova-match td {
  color: #2c3e50;
}

td[bgcolor="#FFFF00"] {
  background-color: #fff8e1 !important;
  color: #7c6014 !important;
  padding: 7px 12px !important;
  font-size: 13px !important;
  font-weight: 600;
  border-left: 3px solid #f59e0b;
}
