/* Spinline Portugal Proven Master CSS V2 (#0b051b dark, #22c55e neon green, #eab308 gold) */
:root {
  --bg-app: #0b051b;
  --bg-sidebar: #12082b;
  --bg-card: #190c38;
  --bg-card-hover: #25124d;
  --border-line: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(34, 197, 94, 0.4);
  
  --green-neon: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.35);
  --gold-accent: #eab308;
  --text-primary: #ffffff;
  --text-muted: #a39bbd;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}

body.spinline-app {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  display: flex;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 85% 0%, rgba(34, 197, 94, 0.12), transparent 45rem),
    radial-gradient(circle at 10% 50%, rgba(234, 179, 8, 0.10), transparent 40rem);
}

a { color: var(--green-neon); text-decoration: none; }
a:hover { color: #4ade80; }

img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* Sidebar Navigation */
.sidebar {
  width: 240px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-line);
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}
.sidebar-logo { margin-bottom: 2rem; padding-left: 0.5rem; }
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(34, 197, 94, 0.12);
  color: #fff;
}

/* Main Content Wrapper */
.main-wrapper {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: calc(100% - 240px);
}

/* Header */
.header {
  background: rgba(18, 8, 43, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-line);
  padding: 0.8rem 2rem;
  position: sticky;
  top: 0;
  z-index: 90;
}
.header-container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.mobile-brand { display: none; }
.header-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}
.status-dot { color: var(--green-neon); animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.header-actions { display: flex; gap: 0.8rem; }
.btn-login {
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-block;
  text-align: center;
}
.btn-register {
  background: var(--green-neon);
  color: #0b051b;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 0 15px var(--green-glow);
  display: inline-block;
  text-align: center;
}
.btn-register.large { padding: 0.9rem 2.2rem; font-size: 1rem; }

/* Container */
.container { max-width: 1140px; width: 100%; margin: 0 auto; padding: 2rem 1.5rem; }

/* HERO SECTION - Controlled 3D Banner Size */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0 2.5rem;
}
.hero-content { width: 100%; min-width: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.badge { background: rgba(255,255,255,0.06); border: 1px solid var(--border-line); padding: 0.35rem 0.8rem; border-radius: 6px; font-size: 0.78rem; color: var(--gold-accent); font-weight: 600; }

.hero-title {
  font-size: clamp(1.8rem, 3.8vw, 3.2rem) !important;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
}
.hero-lead { color: var(--text-muted); font-size: 1.05rem; margin-top: 0.8rem; line-height: 1.55; word-wrap: break-word; }
.hero-actions-row { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; align-items: center; }
.hero-3d-banner { width: 100%; max-width: 420px; border-radius: 16px; border: 1px solid var(--green-neon); box-shadow: 0 0 30px var(--green-glow); display: block; margin: 0 auto; }

/* PROMO DECK - 3 OFFER CARDS SHELL */
.promo-deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 2rem 0 3rem; }

.card-promo {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.card-promo.left-card { order: 1; }
.card-promo.center-card { order: 2; border-color: var(--green-neon); box-shadow: 0 0 22px var(--green-glow); }
.card-promo.right-card { order: 3; }

.promo-card-graphic {
  width: 100% !important;
  max-height: 120px !important;
  object-fit: cover !important;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-line);
}
.promo-tag { font-size: 0.72rem; font-weight: 800; color: var(--green-neon); text-transform: uppercase; margin-bottom: 0.5rem; }
.promo-tag.gold { color: var(--gold-accent); }
.promo-title { font-size: 1.08rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.3; color: #fff; }
.promo-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.45; }
.btn-action {
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.7rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  display: block;
  width: 100%;
}
.btn-action.primary { background: var(--green-neon); color: #0b051b; font-weight: 800; box-shadow: 0 0 15px var(--green-glow); }

/* Trust & Payments Bar */
.trust-bar { background: var(--bg-card); border-radius: 12px; padding: 1.2rem 1.5rem; margin-bottom: 2.5rem; border: 1px solid var(--border-line); }
.badges-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: 1rem; font-size: 0.78rem; color: var(--gold-accent); font-weight: 700; }
.payments-row { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; align-items: center; }
.payments-row img { height: 26px !important; max-width: 90px !important; object-fit: contain !important; }

/* Sections & Typography */
.section-block { margin-bottom: 3rem; width: 100%; min-width: 0; }
.section-title { font-size: 1.45rem; font-weight: 800; margin-bottom: 1.2rem; color: #fff; border-bottom: 2px solid rgba(34,197,94,0.3); padding-bottom: 0.4rem; hyphens: none !important; word-break: normal !important; }
.link-all { color: var(--green-neon); font-size: 0.88rem; font-weight: 700; }

.text-content p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.65; margin-bottom: 1.2rem; word-wrap: break-word; }
.text-content h2 { font-size: 1.45rem; font-weight: 800; margin: 2rem 0 1rem; color: #fff; border-bottom: 2px solid rgba(34,197,94,0.3); padding-bottom: 0.4rem; hyphens: none !important; }
.text-content h3 { font-size: 1.2rem; color: var(--green-neon); margin: 1.8rem 0 0.8rem; font-weight: 800; hyphens: none !important; }
.text-content ul, .text-content ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--text-muted); }
.text-content li { margin-bottom: 0.5rem; line-height: 1.55; }
.text-content img { max-width: 380px !important; border-radius: 12px; margin: 1.2rem auto; display: block; border: 1px solid var(--border-line); }

/* Table */
.table-wrapper { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border-line); border-radius: 12px; background: var(--bg-card); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--border-line); font-size: 0.9rem; color: var(--text-muted); }
th { background: rgba(255,255,255,0.04); color: var(--gold-accent); font-weight: 700; }

/* Slot Grid */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 1rem; }
.slot-card { background: var(--bg-card); border-radius: 10px; overflow: hidden; border: 1px solid var(--border-line); }
.slot-card img { width: 100% !important; max-height: 150px !important; aspect-ratio: 1/1; object-fit: cover !important; display: block; }
.slot-info { padding: 0.6rem; text-align: center; }
.slot-name { font-size: 0.88rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-provider { font-size: 0.75rem; color: var(--text-muted); }

/* Author Card */
.author-card, .author-box { display: flex; gap: 1.5rem; align-items: center; background: var(--bg-card); border: 1px solid var(--border-line); border-radius: 16px; padding: 1.5rem; margin-top: 2rem; }
.author-avatar { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--green-neon); object-fit: cover; flex-shrink: 0; }
.author-info h4, .author-name { font-size: 1.1rem; font-weight: 800; color: #fff; }
.author-role { font-size: 0.82rem; color: var(--green-neon); font-weight: 700; margin-bottom: 0.4rem; }
.author-bio { font-size: 0.88rem; color: var(--text-muted); }

/* Footer */
.footer, .mega-footer { background: #060212; border-top: 1px solid var(--border-line); padding: 2.5rem 0 1.5rem; color: var(--text-muted); font-size: 0.82rem; position: relative !important; }
.footer-top-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-line); }
.footer-title { color: #fff; font-size: 0.95rem; font-weight: 800; margin-bottom: 1rem; text-transform: uppercase; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: #fff; }
.footer-legal { border-top: 1px solid var(--border-line); padding-top: 1.2rem; text-align: center; font-size: 0.78rem; }

/* Mobile Brand Logo Fix */
.mobile-brand { display: none; }
@media (max-width: 900px) {
  .sidebar { display: none !important; position: static !important; }
  .main-wrapper { margin-left: 0 !important; width: 100% !important; display: block !important; position: relative !important; }
  .header { padding: 0.8rem 1rem; position: sticky !important; top: 0 !important; z-index: 100 !important; }
  .container { padding: 1rem 0.8rem !important; }
  
  .mobile-brand { display: flex !important; align-items: center !important; flex-shrink: 0 !important; visibility: visible !important; opacity: 1 !important; }
  .mobile-brand img { display: block !important; width: 115px !important; height: auto !important; max-height: 32px !important; visibility: visible !important; opacity: 1 !important; }
  
  .header-status-badge { display: none !important; }
  
  .hero-section { grid-template-columns: 1fr !important; text-align: center; }
  .hero-title { font-size: 1.5rem !important; line-height: 1.25 !important; }
  .hero-actions-row { flex-direction: column; width: 100%; gap: 0.8rem; }
  .hero-actions-row a { width: 100% !important; display: block; text-align: center; }
  .hero-3d-banner { max-width: 260px !important; margin: 1.2rem auto 0; }
  
  .promo-deck { grid-template-columns: 1fr !important; }
  .card-promo.center-card { order: -1 !important; }
  .card-promo.left-card { order: 1 !important; }
  .card-promo.right-card { order: 2 !important; }
  
  .footer-top-row { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .author-card, .author-box { flex-direction: column; text-align: center; }
}
