/* ── PALETTE DEFINITIONS SAMPLING RECOVERED VERBATIM FROM ORIGINAL AS3 FLEX CONFIGS ── */
:root {
  --msp-purple-deep:   #541C41;   /* Signature dark panel accents */
  --msp-purple-darker: #241726;   /* Page deep background structure */
  --msp-pink:          #BD1655;   /* Primary user actions interface fill */
  --msp-pink-light:    #FF6599;   /* Title highlights top level header glow */
  --msp-pink-deep:     #993366;   
  --msp-purple-glow:   #B804B5;   /* Accent interactive element borders */
  --msp-paper:         #F4F2F0;   
  --msp-cream:         #FFF7E4;   
  --msp-white:         #FFFFFF;
  --msp-black:         #000000;
  --msp-vip-gold-hi:   #E8C547;   /* VIP warm gold border gradient element highlights */
  --msp-vip-gold:      #B58F2C;   
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(8, 10, 20, 0.4) 0%, rgba(36, 23, 38, 0.95) 100%);
  background-color: var(--msp-purple-darker);
  color: var(--msp-white);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
}

/* ── LAYOUT SHELL ARCHITECTURE ── */
.msp-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.msp-shell.is-logged-out {
  align-items: center;
  justify-content: center;
  padding-top: 4em;
}

/* ── TOP NAVIGATION BAR ── */
.msp-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  background: linear-gradient(180deg, #2c1b46 0%, #1a1130 100%);
  border-bottom: 3px solid #0d0817;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .3);
}
.msp-region {
  color: var(--msp-vip-gold-hi);
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .5);
}
.msp-tabs {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.msp-tab {
  padding: 8px 16px;
  text-decoration: none;
  color: var(--msp-white);
  font-weight: bold;
  border-radius: 10px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
  transition: background .15s ease;
}
.msp-tab:hover { background: rgba(255, 255, 255, .1); }
.msp-tab.is-active {
  background: linear-gradient(180deg, var(--msp-pink-light) 0%, var(--msp-pink-deep) 100%);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}

.msp-currency {
  display: flex;
  gap: 8px;
}
.msp-curr {
  padding: 4px 10px;
  background: linear-gradient(180deg, #4a2456 0%, #2a1330 100%);
  border-radius: 14px;
  font-size: 12px;
}

.msp-logout button {
  background: linear-gradient(180deg, #A45E73, #953A6C);
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 6px 14px;
  font-weight: bold;
  cursor: pointer;
}

/* ── SPLIT PANEL MAIN CONTENT SHELL ── */
.msp-body {
  flex: 1 1 auto;
  display: flex;
  gap: 20px;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.msp-sidebar { flex: 0 0 220px; }
.msp-main { flex: 1 1 auto; min-width: 0; }

.msp-avatar-card {
  background: linear-gradient(180deg, #4a1a48 0%, #2a0e28 100%);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  border: 2px solid var(--msp-pink-light);
}
.profile-avatar-empty {
  width: 100%;
  aspect-ratio: 1/1;
  background: #120714 url('https://placehold.co/150x150/120714/FF6599?text=MovieStar') no-repeat center;
  background-size: cover;
  border-radius: 10px;
}
.msp-name { font-weight: bold; font-size: 16px; margin-top: 10px; color: white; }

/* ── LOGIN INTERFACE COMPONENT CARD ── */
.msp-login-screen { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.msp-login-card {
  background: linear-gradient(180deg, var(--msp-purple-deep) 0%, #2A0E28 100%);
  border-radius: 16px;
  border: 2px solid var(--msp-pink-light);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.msp-login-card-header {
  background: linear-gradient(180deg, var(--msp-pink-light) 0%, var(--msp-pink-deep) 100%);
  padding: 12px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
}
.msp-login-form { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.msp-field { display: flex; flex-direction: column; gap: 6px; }
.msp-field-label { color: var(--msp-pink-light); font-weight: bold; font-size: 12px; }
.msp-login-form input, .msp-login-form select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--msp-pink-deep);
  background: var(--msp-purple-darker);
  color: white;
}
.msp-login-btn {
  background: linear-gradient(180deg, #a7cf11 0%, #618902 100%);
  border: 2px solid #d4f742;
  padding: 12px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.msp-login-btn:hover { filter: brightness(1.1); }
.msp-login-disclaimer { font-size: 11px; opacity: 0.7; text-align: center; line-height: 1.4; }

/* ── INTERACTION UTILS ── */
.buttonPink { background: linear-gradient(180deg, var(--msp-pink-light), var(--msp-pink)); border: none; padding: 8px 16px; color: white; font-weight: bold; border-radius: 6px; cursor: pointer; }
.buttonGreen { background: linear-gradient(180deg, #a7cf11, #618902); border: none; padding: 8px 16px; color: white; font-weight: bold; border-radius: 6px; cursor: pointer; }
.forum-frame, .msg-frame { background: rgba(26, 17, 48, 0.85); border-radius: 12px; border: 2px solid var(--msp-purple-glow); padding: 15px; min-height: 400px; }
.pg { background: var(--msp-pink); padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; }
.msp-corner { position: fixed; bottom: 12px; right: 12px; background: rgba(0,0,0,0.6); padding: 6px 12px; border-radius: 20px; border: 1px solid var(--msp-pink-light); }