/* ================================================================
   GIOCHI & TRADIZIONI — PORTAL STYLESHEET
   Dark Luxury theme with gold, royal blue and emerald accents.
   ================================================================ */

:root {
  --bg-dark: #070a13;
  --bg-card: rgba(15, 23, 42, 0.94);
  --border-gold: rgba(255, 215, 0, 0.4);
  --gold-main: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.5);
  --text-white: #ffffff;
  --text-dim: #94a3b8;
  --font-display: 'Fredoka', cursive, sans-serif;
  --font-body: 'Nunito', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(30, 58, 138, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 15% 40%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(245, 158, 11, 0.12) 0%, transparent 50%);
  color: var(--text-white);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.portal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== HEADER ==================== */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 19, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(255, 215, 0, 0.3);
}

.portal-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  transition: transform 0.2s;
}

.portal-brand:hover .brand-logo-img {
  transform: scale(1.06);
}

.brand-title-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.portal-title-gold {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--gold-main);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.portal-logo-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
}

.portal-logo-text {
  display: flex;
  flex-direction: column;
}

.portal-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.portal-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Pulsante Diventa VIP Header */
.btn-header-vip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 50%, #f59e0b 100%);
  border: 1.5px solid var(--gold-main);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(219, 39, 119, 0.4), 0 0 10px rgba(255, 215, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-header-vip:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(219, 39, 119, 0.6);
}

.vip-crown-anim {
  font-size: 1rem;
}

/* Pulsante Utente Header */
.portal-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  padding: 5px 14px 5px 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.portal-user-btn:hover {
  border-color: var(--gold-main);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  transform: scale(1.02);
}

.portal-user-btn.is-vip-user {
  border-color: var(--gold-main);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(245, 158, 11, 0.25) 100%);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.user-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--gold-main);
}

.user-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-header-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
}

.user-header-tag {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 99px;
}

.user-header-tag.vip-tag {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #000;
}

/* ==================== HERO SECTION ==================== */
.portal-hero {
  position: relative;
  padding: 60px 20px 80px 20px;
  overflow: hidden;
}

.portal-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.portal-badge-gold {
  display: inline-block;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.3) 100%);
  border: 1.5px solid var(--gold-main);
  color: var(--gold-main);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
  letter-spacing: 0.8px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.portal-hero-heading {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffd700 0%, #ff8f00 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 30px;
  max-width: 520px;
}

.portal-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #000000;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  padding: 14px 26px;
  border-radius: 99px;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6), 0 0 20px rgba(255, 215, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero-play:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.75);
}

.hero-btn-tag {
  background: #000;
  color: #ffd700;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}

.btn-hero-explore {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-hero-explore:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hero-art-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid var(--gold-main);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 215, 0, 0.4);
}

.hero-art-img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-art-frame:hover .hero-art-img {
  transform: scale(1.03);
}

.hero-float-badge {
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid var(--gold-main);
  border-radius: 99px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  color: #ffd700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
}

.hero-float-badge.b1 { top: 16px; left: 16px; }
.hero-float-badge.b2 { bottom: 16px; right: 16px; }

/* ==================== VETRINA CATALOGO ==================== */
.portal-catalog-section {
  padding: 50px 0 80px 0;
}

.section-header-center {
  text-align: center;
  margin-bottom: 30px;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--gold-main);
  letter-spacing: 1px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 900;
  margin: 6px 0 8px 0;
}

.section-subtitle {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

.catalog-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.filter-tab-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(255, 215, 0, 0.4);
}

.filter-tab-btn.active {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #000;
  border-color: #ffd700;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Griglia Cards */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.game-card {
  background: var(--bg-card);
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 22px rgba(255, 215, 0, 0.35);
}

.game-card.is-active {
  border-color: #ffd700;
  box-shadow: 0 8px 35px rgba(245, 158, 11, 0.35);
}

.card-status-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.5px;
  z-index: 2;
}

.card-status-tag.active {
  background: rgba(34, 197, 94, 0.3);
  color: #4ade80;
  border: 1.5px solid #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.5);
}

.card-status-tag.coming {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1.5px solid #f59e0b;
}

/* Banner Immagine Logo 3D */
.card-img-banner {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #030712 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.25);
}

.card-game-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:hover .card-game-logo-img {
  transform: scale(1.04);
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #cbd5e1;
  margin-bottom: 16px;
  flex: 1;
}

.card-features {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.card-feat-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
}

.card-footer {
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-card-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  padding: 10px;
  border-radius: 99px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s;
}

.btn-card-play:hover {
  transform: scale(1.02);
}

.btn-card-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 9px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-card-info:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffd700;
  color: #ffd700;
}

/* ==================== FEATURES SECTION ==================== */
.portal-features-section {
  padding: 60px 0;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-box {
  background: var(--bg-card);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
}

.feat-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.feature-box h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffd700;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #94a3b8;
}

/* ==================== MODALI GENERALI ==================== */
.portal-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.portal-modal.hidden {
  display: none !important;
}

.portal-modal-content {
  background: #0f172a;
  border: 2px solid #ffd700;
  border-radius: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 215, 0, 0.4);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

/* ==================== MODALE AUTENTICAZIONE ==================== */
.auth-modal-box {
  max-width: 440px;
  text-align: center;
}

.auth-logo-badge {
  font-size: 2.5rem;
  display: inline-block;
  margin-bottom: 8px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffd700;
  margin-bottom: 4px;
}

.auth-sub {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.btn-google-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #1f2937;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s, background 0.15s;
}

.btn-google-login:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.google-svg-icon {
  width: 22px;
  height: 22px;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.auth-divider span {
  padding: 0 10px;
}

.auth-tabs {
  display: flex;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: #1e293b;
  color: #ffd700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.auth-input-group {
  text-align: left;
  margin-bottom: 14px;
}

.auth-input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 5px;
}

.auth-input-group input {
  width: 100%;
  background: rgba(30, 41, 59, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.auth-input-group input:focus {
  border-color: #ffd700;
}

.btn-auth-submit {
  width: 100%;
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #000;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
}

.btn-auth-submit.btn-reg {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.4);
}

/* ==================== MODALE PROFILO (SALDO DENTRO) ==================== */
.profile-modal-box {
  max-width: 480px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
}

.profile-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid var(--gold-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.profile-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-edit-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--gold-main);
  color: #000;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.profile-names {
  display: flex;
  flex-direction: column;
}

.prof-user-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
}

.prof-user-email {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.prof-status-badge {
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 99px;
  width: fit-content;
}

.prof-status-badge.is-regular {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.prof-status-badge.is-vip {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #000;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Card Saldo Protetto nel Profilo */
.profile-wallet-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1.5px solid var(--gold-main);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.pw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pw-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #94a3b8;
}

.pw-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.pw-actions {
  display: flex;
  gap: 10px;
}

.btn-pw-bonus {
  flex: 1;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px;
  border-radius: 99px;
  cursor: pointer;
}

.btn-pw-refill {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffd700;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px;
  border-radius: 99px;
  cursor: pointer;
}

.btn-pw-refill:hover {
  background: rgba(255, 215, 0, 0.2);
}

/* Banner Promo VIP */
.profile-vip-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(219, 39, 119, 0.3) 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.5);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.pv-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  color: #ffd700;
}

.pv-info p {
  font-size: 0.78rem;
  color: #e2e8f0;
  margin-top: 2px;
}

.btn-prof-upgrade-vip {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 14px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* Statistiche */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.p-stat-box {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}

.p-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
}

.p-stat-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 700;
}

.text-win { color: #4ade80 !important; }
.text-gold { color: #ffd700 !important; }
.text-lose { color: #f87171 !important; }

.profile-footer-actions {
  text-align: center;
}

.btn-logout {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-logout:hover {
  text-decoration: underline;
}

/* ==================== MODALE PIANI ABBONAMENTO VIP ==================== */
.vip-modal-box {
  max-width: 680px;
}

.vip-header {
  text-align: center;
  margin-bottom: 20px;
}

.vip-crown-large {
  font-size: 3rem;
  display: inline-block;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7));
}

.vip-modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffd700;
}

.vip-modal-subtitle {
  font-size: 0.92rem;
  color: #cbd5e1;
}

.vip-perks-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
}

.vip-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.perk-icon {
  font-size: 1.4rem;
}

.perk-text {
  display: flex;
  flex-direction: column;
}

.perk-text strong {
  font-size: 0.85rem;
  color: #ffd700;
}

.perk-text span {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.3;
}

.vip-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.vip-plan-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.vip-plan-card:hover {
  transform: translateY(-4px);
  border-color: #ffd700;
}

.vip-plan-card.featured {
  border-color: #38bdf8;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.vip-plan-card.best-value {
  border-color: #ffd700;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.18) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.35);
}

.plan-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 900;
  color: #94a3b8;
  margin-bottom: 6px;
}

.plan-badge.popular-tag { color: #38bdf8; }
.plan-badge.best-tag { color: #ffd700; }

.plan-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 4px;
}

.price-curr {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffd700;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
}

.price-period {
  font-size: 0.7rem;
  color: #94a3b8;
}

.plan-coins-bonus {
  font-size: 0.75rem;
  font-weight: 800;
  color: #4ade80;
  margin-bottom: 16px;
}

.btn-subscribe-plan {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  padding: 8px;
  border-radius: 99px;
  cursor: pointer;
  margin-top: auto;
  transition: all 0.15s;
}

.btn-subscribe-plan:hover {
  background: #fff;
  color: #000;
}

.btn-subscribe-plan.btn-gold {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #000;
  border: none;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-subscribe-plan.btn-gold:hover {
  transform: scale(1.03);
}

/* ==================== MODALE DETTAGLI GIOCO ==================== */
.modal-game-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-game-logo-box {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #ffd700;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  flex-shrink: 0;
}

.modal-game-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-game-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffd700;
}

.modal-section {
  margin-bottom: 16px;
}

.modal-section h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #38bdf8;
  margin-bottom: 6px;
}

.modal-section p, .modal-section li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.modal-section ol, .modal-section ul {
  padding-left: 20px;
}

/* ==================== FOOTER ==================== */
.portal-footer {
  padding: 40px 0 25px 0;
  background: #05070d;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffd700;
}

.footer-brand p {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.88rem;
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffd700;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.78rem;
  color: #475569;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 860px) {
  .portal-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .portal-hero-desc {
    margin: 0 auto 30px auto;
  }

  .portal-hero-actions {
    justify-content: center;
  }

  .portal-hero-heading {
    font-size: 2.4rem;
  }

  .vip-plans-grid {
    grid-template-columns: 1fr;
  }

  .vip-perks-list {
    grid-template-columns: 1fr;
  }
}
