/* =====================================================
   BRIGHTLET KIDS – style.css  (Full Fresh Rewrite)
   ===================================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
  --color-red:        #ff6b6b;
  --color-red-light:  #ff9e9e;
  --color-blue:       #4ecdc4;
  --color-blue-light: #8be0d9;
  --color-green:      #56c271;
  --color-green-light:#c2e6d5;
  --color-yellow:     #ffd166;
  --color-yellow-light:#fff5cc;
  --color-purple:     #9d8df1;
  --color-orange:     #ffb347;
  --color-orange-light:#ffd580;
  --bg-color:         #f5faff;
  --font-main:        'Comic Sans MS','Chalkboard SE','Nunito','Quicksand',sans-serif;
  --shadow:           0 8px 20px rgba(0,0,0,0.12);
  --radius:           20px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; user-select: none; -webkit-user-select: none; }
html, body { width:100%; height:100%; overflow:hidden; }
body {
  font-family: var(--font-main);
  background: var(--bg-color);
  color: #333;
  touch-action: manipulation;
}

/* ---------- SCROLLBARS ---------- */
*::-webkit-scrollbar       { width: 18px; }
*::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 10px; }
*::-webkit-scrollbar-thumb { background: var(--color-purple); border-radius: 10px; border: 4px solid #f0f0f0; }

/* ---------- APP LAYOUT ---------- */
#app { width:100vw; height:100vh; position:relative; overflow:hidden; }

.screen {
  position: absolute; top:0; left:0;
  width:100%; height:100%;
  display: none;
  flex-direction: column;
  animation: fadeIn 0.25s ease;
  background: var(--bg-color);
  background-image: radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 30px 30px;
}
.screen.active { display: flex; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn     { from { opacity:0; transform:scale(0.97); } to { opacity:1; transform:scale(1); } }
@keyframes bounce     { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-15px); } }
@keyframes popIn      { 0% { transform:scale(0) rotate(-15deg); opacity:0; } 80% { transform:scale(1.15) rotate(3deg); opacity:1; } 100% { transform:scale(1) rotate(0); opacity:1; } }
@keyframes pop        { 0% { transform:scale(0.8); } 50% { transform:scale(1.15); } 100% { transform:scale(1); } }
@keyframes spin       { 100% { transform:rotate(360deg); } }
@keyframes yayPop     { 0% { transform:translate(-50%,-50%) scale(0); opacity:0; } 60% { transform:translate(-50%,-50%) scale(1.3); opacity:1; } 100% { transform:translate(-50%,-50%) scale(1); opacity:1; } }
@keyframes confettiFall { 0% { transform:translate(0,0) rotate(0deg); opacity:1; } 100% { transform:translate(var(--cx),var(--cy)) rotate(720deg); opacity:0; } }
@keyframes simonFlash { 0%,100% { filter:brightness(1); } 50% { filter:brightness(1.8); } }
@keyframes cardBounce { 0% { transform:scale(0.7); } 80% { transform:scale(1.05); } 100% { transform:scale(1); } }
@keyframes celebrate  { 0%,100% { transform:scale(1) rotate(0); } 25% { transform:scale(1.25) rotate(-8deg); } 75% { transform:scale(1.25) rotate(8deg); } }
@keyframes balloonRise { 0% { bottom:-120px; opacity:1; } 85% { opacity:1; } 100% { bottom:110%; opacity:0; } }

.anim-dance { animation: bounce 0.7s infinite; display:inline-block; }

/* ---------- HEADER ---------- */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  min-height: 65px;
  flex-shrink: 0;
}
header h1, header h2 { font-size: 1.6rem; }
.title-text { font-size: 2.2rem; background:linear-gradient(135deg,#9d8df1,#4ecdc4); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

main { flex-grow:1; overflow-y:auto; display:flex; flex-direction:column; min-height:0; }

/* ---------- BUTTONS ---------- */
button { font-family: var(--font-main); border: none; cursor: pointer; }
button:active { opacity: 0.8; transform: scale(0.96); }

.back-btn {
  background: rgba(255,255,255,0.8); border: 3px solid #ddd;
  border-radius: 50px; padding: 8px 16px;
  font-size: 1.3rem; font-weight: bold;
  min-width: 60px; min-height: 50px;
  box-shadow: var(--shadow);
}
.icon-btn {
  background: rgba(255,255,255,0.8); border: 3px solid #ddd;
  border-radius: 50%; width: 54px; height: 54px;
  font-size: 1.5rem; box-shadow: var(--shadow);
}
.action-btn {
  background: var(--color-purple); color: white;
  border-radius: 50px; padding: 12px 22px;
  font-size: 1.35rem; font-weight: bold;
  box-shadow: var(--shadow); border: none;
  min-height: 52px;
}
.action-btn.bg-green  { background: var(--color-green); }
.action-btn.bg-yellow { background: var(--color-yellow); color:#333; }
.action-btn.bg-red    { background: var(--color-red); }
.action-btn.bg-red-light   { background: var(--color-red-light); }
.action-btn.bg-blue-light  { background: var(--color-blue-light); color:#333; }
.action-btn.bg-green-light { background: var(--color-green-light); color:#333; }
.tool-btn {
  background: #f0f0f0; border: 2px solid #ddd; border-radius: 15px;
  padding: 8px 16px; font-size: 1.1rem; font-weight: bold;
  min-height: 44px;
}
.tool-btn.active { background: var(--color-purple); color:#fff; border-color: var(--color-purple); }

/* ---------- HOME MENU GRID ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 20px;
  overflow-y: auto;
}
.menu-btn {
  border-radius: var(--radius); padding: 20px 15px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; box-shadow: var(--shadow);
  border: none; color: white; min-height: 120px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.menu-btn:active { transform: scale(0.94); box-shadow: 0 3px 8px rgba(0,0,0,0.15); }
.menu-btn .btn-icon { font-size: 3.5rem; line-height: 1; }
.menu-btn .btn-text { font-size: 1.4rem; font-weight: bold; text-align: center; }
.bg-red    { background: linear-gradient(135deg,#ff6b6b,#ee0979); }
.bg-blue   { background: linear-gradient(135deg,#4ecdc4,#0a9396); }
.bg-green  { background: linear-gradient(135deg,#56c271,#1a8a3c); }
.bg-yellow { background: linear-gradient(135deg,#ffd166,#f5a623); color:#333!important; }
.bg-orange { background: linear-gradient(135deg,#ffb347,#e06b00); }
.bg-purple { background: linear-gradient(135deg,#9d8df1,#6c43e0); }
.bg-red-light   { background: linear-gradient(135deg,#ff9e9e,#ff6b6b); }
.bg-blue-light  { background: linear-gradient(135deg,#8be0d9,#4ecdc4); color:#333!important; }
.bg-green-light { background: linear-gradient(135deg,#c2e6d5,#56c271); color:#333!important; }

/* ---------- GRIDS (Alphabet / Numbers) ---------- */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  gap: 12px; padding: 18px;
  overflow-y: auto;
}
.grid-item {
  background: white; border-radius: 16px;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: bold; color: var(--color-purple);
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.15s;
  border: 3px solid transparent;
}
.grid-item:active { transform: scale(0.9); }
.grid-item:hover  { border-color: var(--color-purple); }

/* ---------- MODALS ---------- */
.modal {
  position: fixed; top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  backdrop-filter: blur(3px);
}
.modal.hidden { display: none; }
.modal-content {
  border-radius: 30px; padding: 30px 25px;
  max-width: 500px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: popIn 0.35s cubic-bezier(0.175,0.885,0.32,1.275);
}
.modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

.bg-red-light   { background: #ffe5e5; }
.bg-blue-light  { background: #e0fafa; }
.bg-yellow-light{ background: #fff8e1; }
.bg-green-light { background: #e5f9ee; }

/* Letter / Number detail */
.letter-display { font-size: 6rem; font-weight: bold; text-align:center; color:var(--color-red); line-height:1; }
.object-display { font-size: 5rem; text-align:center; margin: 10px 0; display:block; }
.word-display   { font-size: 2.8rem; font-weight: bold; text-align:center; color:#555; margin-bottom: 5px; }
.number-display { font-size: 7rem; font-weight: bold; text-align:center; color:var(--color-blue); line-height:1; }
.counters-display { font-size: 2.5rem; text-align:center; word-break:break-all; margin: 10px 0; }

/* ---------- TABS ---------- */
.tabs { display:flex; justify-content:center; gap:12px; padding:14px; flex-shrink:0; }
.tab-btn { padding:10px 25px; font-size:1.2rem; border-radius:30px; background:#fff; border:3px solid #ddd; font-weight:bold; }
.tab-btn.active { background:var(--color-purple); color:#fff; border-color:var(--color-purple); }
.tab-view { flex-grow:1; overflow-y:auto; display:flex; flex-direction:column; min-height:0; }

/* ---------- COUNT GAME ---------- */
.math-card {
  background: white; margin: 12px; padding: 16px; border-radius: 25px;
  box-shadow: var(--shadow); display:flex; flex-direction:column;
  flex:1; min-height:0; text-align:center;
}
#count-objects,
.count-objects-grid {
  display: flex;
  justify-content: center;
  align-content: flex-start;
  gap: 4px;
  flex-wrap: wrap;
  flex-grow: 1;
  padding: 8px;
  overflow-y: auto;
  min-height: 0;
}

/* Simon 8-colour grid: smaller text per cell */
.simon-half span { font-size: clamp(1.1rem, 3.5vw, 1.8rem); }

/* ---------- MEMORY MATCH ---------- */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px; padding: 12px;
  max-width: 500px; width: 100%; margin: 0 auto;
}
.card { aspect-ratio:1; cursor:pointer; perspective:1200px; }
.card-inner {
  position:relative; width:100%; height:100%;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
  box-shadow: var(--shadow); border-radius: 18px;
}
.card.flipped .card-inner, .card.matched .card-inner { transform: rotateY(180deg); -webkit-transform: rotateY(180deg); }
.card-front, .card-back {
  position:absolute; width:100%; height:100%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 18px;
  display:flex; align-items:center; justify-content:center;
}
.card-front {
  background: linear-gradient(135deg, var(--color-purple), var(--color-blue));
  color: white; font-size: 2.5rem; font-weight:bold;
  z-index: 2;
}
.card-back {
  background: white; font-size: 3.5rem;
  transform: rotateY(180deg); -webkit-transform: rotateY(180deg);
  border: 4px solid var(--color-green);
}
.card.matched {
  opacity: 0.65; pointer-events:none;
}
.card.matched .card-back {
  background: #e5f9ee; border-color: var(--color-green);
  animation: celebrate 0.6s ease;
}

/* ---------- SHAPE DRAG & DROP ---------- */
.shape-piece {
  width:110px; height:110px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:4rem; cursor:grab; box-shadow:var(--shadow);
  touch-action:none; transition:transform 0.15s;
}
.shape-piece:active { transform:scale(1.2); cursor:grabbing; }

.shape-target {
  width:120px; height:120px; border-radius:18px;
  display:flex; align-items:center; justify-content:center;
  font-size:3.5rem; color:#bbb;
  border:5px dashed #ccc; background:rgba(255,255,255,0.5);
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.shape-target.drop-hover { border-color:var(--color-green); background:#e5f9ee; transform:scale(1.08); }
.shape-target.matched-ok { border:5px solid var(--color-green); background:#e5f9ee; animation:celebrate 0.5s ease; }

/* Yay feedback */
.yay-text {
  position:absolute; font-size:3.5rem; font-weight:bold;
  color:var(--color-green); text-shadow:2px 2px 0 #fff;
  animation: yayPop 0.5s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
  pointer-events:none; z-index:50; left:50%; top:50%;
}

/* ---------- CONFETTI ---------- */
.confetti-bit {
  position:absolute; width:12px; height:12px; border-radius:4px;
  animation: confettiFall 1s ease-out forwards;
  pointer-events:none;
}

/* ---------- GAME ARENA (Bubbles / Balloons / Fish) ---------- */
.sprite {
  position:absolute; font-size:6rem; cursor:pointer;
  user-select:none; transition:transform 0.2s cubic-bezier(0.175,0.885,0.32,1.275);
  animation: popIn 0.5s ease-out;
}
.sprite:active { transform:scale(0.8); }
.glow-bubble {
  width:140px; height:140px; border-radius:50%;
  border:6px solid rgba(255,255,255,0.9);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.85), rgba(100,200,255,0.4));
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 25px rgba(0,0,0,0.12), inset -5px -5px 15px rgba(255,255,255,0.5);
  font-size:2rem; font-weight:bold;
}

/* ---------- SPINNER WHEEL ---------- */
.spinner-seg {
  position:absolute; width:50%; height:50%;
  transform-origin:100% 100%; overflow:hidden;
}
.spinner-seg-label {
  position:absolute; bottom:14px; right:14px;
  font-size:0.95rem; font-weight:bold; color:white;
  text-shadow:1px 1px 3px rgba(0,0,0,0.5);
  white-space:nowrap; pointer-events:none;
}

/* ---------- FLASHCARDS ---------- */
.flashcard-bg-0 { background:linear-gradient(135deg,#f8b500,#f97316); }
.flashcard-bg-1 { background:linear-gradient(135deg,#76c442,#16864a); }
.flashcard-bg-2 { background:linear-gradient(135deg,#4ecdc4,#1a6b8a); }
.flashcard-bg-3 { background:linear-gradient(135deg,#c084fc,#7c3aed); }
.flashcard-bg-4 { background:linear-gradient(135deg,#f87171,#b91c1c); }
.flashcard-bg-5 { background:linear-gradient(135deg,#fb923c,#ea580c); }
.flashcard-bg-6 { background:linear-gradient(135deg,#34d399,#047857); }
.flashcard-bg-7 { background:linear-gradient(135deg,#60a5fa,#2563eb); }
#flashcard-text { color:white; text-shadow:2px 2px 4px rgba(0,0,0,0.3); }

/* ---------- SIMON SAYS ---------- */
.simon-half {
  flex:1; display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.simon-half span { font-size:4.5rem; font-weight:bold; color:white; text-shadow:3px 3px 0 rgba(0,0,0,0.2); pointer-events:none; text-align:center; line-height:1.3; }
.simon-half:active { filter:brightness(1.4); }
.simon-flash { animation: simonFlash 0.4s ease; }

/* ---------- CANVAS / DRAWING ---------- */
canvas { background:#fff; border:4px solid var(--color-purple); border-radius:18px; cursor:crosshair; box-shadow:var(--shadow); touch-action:none; }
.canvas-container { padding:12px; display:flex; flex-direction:column; justify-content:center; align-items:center; flex-grow:1; gap:10px; }
.draw-header { justify-content:space-between; }
.toolbar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:center; }
input[type="color"] { width:44px; height:44px; border:none; border-radius:8px; cursor:pointer; }

/* ---------- STARS / REWARDS ---------- */
.stars-counter { background:#fff; padding:6px 14px; border-radius:20px; font-weight:bold; font-size:1.2rem; box-shadow:var(--shadow); }
.game-stats    { background:rgba(255,255,255,0.7); padding:6px 12px; border-radius:20px; font-weight:bold; font-size:1.1rem; }

.overlay {
  position:fixed; top:0; left:0; width:100%; height:100%;
  background:rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; z-index:1000;
}
.overlay.hidden { display:none; }
.reward-content {
  background:#fff; padding:35px 50px; border-radius:30px;
  text-align:center; animation:popIn 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
  box-shadow:0 20px 60px rgba(0,0,0,0.2);
}

/* ---------- WORKSHEETS ---------- */
#worksheet-content { flex:1; width:100%; display:flex; justify-content:center; align-items:center; padding:0 15px 15px; overflow:hidden; }
.html-worksheet { background:white; border-radius:22px; box-shadow:var(--shadow); padding:30px 25px; width:100%; max-width:650px; text-align:center; animation:fadeIn 0.3s ease; }

/* ---------- PRINT ---------- */
@media print {
  body * { visibility: hidden; }
  #worksheet-content, #worksheet-content * { visibility: visible !important; }
  #worksheet-content {
    position:fixed; top:0; left:0; width:100vw; height:100vh;
    display:flex; align-items:center; justify-content:center;
    padding: 0;
  }
  #worksheet-content img { width:100%; height:100%; object-fit:contain; border:none !important; border-radius:0 !important; box-shadow:none !important; }
}

/* =====================================================
   RESPONSIVE  –  Tablet  (≤ 768px)
   ===================================================== */
@media (max-width: 768px) {
  header h1, header h2 { font-size: 1.3rem; }
  .title-text { font-size: 1.8rem; }
  .menu-btn { min-height: 100px; padding: 15px 10px; }
  .menu-btn .btn-icon { font-size: 2.8rem; }
  .menu-btn .btn-text { font-size: 1.2rem; }
  .grid-item  { font-size: 1.6rem; }
  .letter-display { font-size:5rem; }
  .number-display { font-size:5rem; }
  .object-display { font-size:4rem; }
  .word-display   { font-size:2.2rem; }
  .counters-display { font-size:2rem; }
  .action-btn { font-size:1.2rem; padding:10px 18px; min-height:46px; }
  .memory-grid { grid-template-columns: repeat(4,1fr); gap:8px; padding:10px; }
  .card-front { font-size:2rem; }
  .card-back  { font-size:3rem; }
  #flashcard-emoji { font-size:7rem; }
  #flashcard-text  { font-size:2.2rem; }
  .simon-half span { font-size:clamp(1.2rem, 4vw, 2.5rem); }
  #simon-prompt { font-size:2.5rem !important; padding:10px 12px; }
}

/* =====================================================
   RESPONSIVE  –  Phone  (≤ 480px)
   ===================================================== */
@media (max-width: 480px) {
  /* Header */
  header { padding:8px 12px; min-height:56px; }
  header h1, header h2 { font-size: 1.1rem; }
  .title-text { font-size: 1.5rem; }
  .back-btn { font-size:1.1rem; padding:6px 12px; min-width:48px; min-height:42px; }
  .icon-btn  { width:44px; height:44px; font-size:1.2rem; }
  .game-stats{ font-size:0.95rem; padding:4px 8px; }
  .stars-counter { font-size:1rem; padding:4px 10px; }

  /* Menu grid – single column on tiny phones */
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
  .menu-btn  { min-height: 90px; padding: 12px 8px; border-radius: 16px; }
  .menu-btn .btn-icon { font-size: 2.4rem; }
  .menu-btn .btn-text { font-size: 1.05rem; }

  /* Grids */
  .grid-container { grid-template-columns: repeat(auto-fill,minmax(58px,1fr)); gap:8px; padding:10px; }
  .grid-item { font-size:1.4rem; }

  /* Modals */
  .modal-content { padding:20px 16px; }
  .letter-display { font-size:4rem; }
  .number-display { font-size:4.5rem; }
  .object-display { font-size:3.5rem; }
  .word-display   { font-size:1.9rem; }
  .counters-display { font-size:1.7rem; }
  .action-btn { font-size:1.1rem; padding:9px 16px; min-height:44px; }

  /* Memory */
  .memory-grid { grid-template-columns: repeat(4,1fr); gap:6px; padding:8px; }
  .card-front  { font-size:1.6rem; }
  .card-back   { font-size:2.4rem; }

  /* Shape drop */
  .shape-piece  { width:85px !important; height:85px !important; }
  .shape-target { width:95px !important;  height:95px !important; }
  #shape-sources, #shape-targets { gap:12px !important; }

  /* Flashcards */
  #flashcard-emoji { font-size:5.5rem; }
  #flashcard-text  { font-size:1.8rem; padding:14px; }

  /* Simon Says */
  .simon-half span { font-size:clamp(1rem, 5vw, 1.8rem); line-height: 1.2; }
  #simon-prompt { font-size:1.8rem !important; }

  /* Canvas / Draw */
  .toolbar { gap:5px; }
  .tool-btn { padding:6px 10px; font-size:0.95rem; }
  input[type="color"] { width:36px; height:36px; }

  /* Star game */
  #tap-star { font-size:7rem !important; }

  /* Worksheets */
  .html-worksheet { padding:20px 14px; }
  #worksheet-content { padding:0 8px 8px; }
}

/* ---------- MODERN LOGIN BUTTONS ---------- */
.wa-support-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px;
  background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
  color: #fff; text-decoration: none; border-radius: 12px;
  font-weight: 600; font-size: 1.05rem; letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
  margin-bottom: 20px; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.wa-support-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: all 0.5s; }
.wa-support-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.wa-support-btn:hover::before { left: 100%; }

.social-links-row {
  display: flex; gap: 8px; justify-content: center; flex-wrap: nowrap; width: 100%;
}
.social-icon-btn {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 10px; color: #fff; text-decoration: none; font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: all 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
}
.social-icon-btn:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25); filter: brightness(1.1);
}
.social-icon-btn.etsy { background: #F1641E; }
.social-icon-btn.youtube { background: #FF0000; }
.social-icon-btn.facebook { background: #1877F2; }
.social-icon-btn.tiktok { background: #000000; }
.social-icon-btn.instagram { background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-icon-btn.pinterest { background: #E60023; }
.social-icon-btn.whatsapp { background: #25D366; }

/* Improve master enter studio button as well */
.enter-studio-btn {
  width: 100%; padding: 14px; font-size: 1.25rem; font-weight: bold; border-radius: 12px; border: none;
  background: linear-gradient(135deg,#ff6b6b,#ee0979); color: #fff; text-transform: uppercase; letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(238,9,121,0.3); cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.enter-studio-btn::after { content:''; position:absolute; top:0; left:-100%; width:100%; height:100%; background:linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition:all 0.5s; }
.enter-studio-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(238,9,121,0.5); filter: brightness(1.05); }
.enter-studio-btn:hover::after { left: 100%; }
.enter-studio-btn:active { transform: scale(0.97); }

/* =====================================================
   LOCK SCREEN (NEW DESIGN)
   ===================================================== */
.ls-card {
  position:relative; z-index:10;
  background:rgba(255,255,255,0.12);
  backdrop-filter:blur(24px);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:32px;
  padding:36px 32px 28px;
  width:min(420px, 94vw);
  max-height:92vh;
  display:flex; flex-direction:column;
  box-shadow:0 32px 64px rgba(0,0,0,0.3);
  animation:popIn 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
  overflow-y:auto; overflow-x:hidden;
}

.ls-card::-webkit-scrollbar { width: 6px; }
.ls-card::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 10px; }
.ls-card::-webkit-scrollbar-track { background: transparent; }

.ls-brand { text-align:center; margin-bottom:28px; }
.ls-logo-wrap { display:inline-block; padding:12px; border-radius:18px; background:rgba(255,255,255,0.15); margin-bottom:12px; }
.ls-title { font-size:2rem; color:#fff; font-weight:900; letter-spacing:-0.5px; margin-bottom:4px; text-shadow:0 2px 10px rgba(0,0,0,0.3); }
.ls-subtitle { color:rgba(255,255,255,0.8); font-size:0.95rem; font-weight:600; }

.ls-btn {
  width:100%; border:none; border-radius:16px; padding:14px;
  font-size:1.1rem; font-weight:800; font-family:inherit;
  cursor:pointer; transition:all 0.2s; display:flex; align-items:center; justify-content:center; gap:10px;
}
.ls-btn:active { transform:scale(0.97); }
.ls-btn-primary { background:linear-gradient(135deg,#fff,#f8fafc); color:#4f46e5; box-shadow:0 8px 20px rgba(0,0,0,0.2); }
.ls-btn-primary:hover { box-shadow:0 12px 24px rgba(0,0,0,0.3); transform:translateY(-2px); }

.ls-btn-ghost { background:rgba(255,255,255,0.1); border:2px solid rgba(255,255,255,0.3); color:#fff; }
.ls-btn-ghost:hover { background:rgba(255,255,255,0.2); border-color:rgba(255,255,255,0.5); }

.ls-btn-teal { background:linear-gradient(135deg,#2dd4bf,#0d9488); color:#fff; box-shadow:0 8px 20px rgba(13,148,136,0.3); }
.ls-btn-green { background:linear-gradient(135deg,#22c55e,#16a34a); color:#fff; box-shadow:0 8px 20px rgba(22,163,74,0.3); }

.ls-btn-back {
  width:100%; padding:10px; background:none; border:none; color:rgba(255,255,255,0.6);
  font-size:0.95rem; font-weight:600; cursor:pointer; margin-top:12px; font-family:inherit;
  display:flex; justify-content:center; gap:6px; align-items:center;
}
.ls-btn-back:hover { color:#fff; }

.ls-divider {
  display:flex; align-items:center; margin:16px 0; color:rgba(255,255,255,0.5); font-size:0.85rem; font-weight:600; text-transform:uppercase; letter-spacing:1px;
}
.ls-divider::before, .ls-divider::after { content:''; flex:1; height:1px; background:rgba(255,255,255,0.2); margin:0 12px; }

.ls-hint { text-align:center; color:rgba(255,255,255,0.45); font-size:0.8rem; margin-top:8px; font-weight:500; }

.ls-tabs { display:flex; gap:8px; background:rgba(0,0,0,0.2); padding:6px; border-radius:14px; margin-bottom:20px; }
.ls-tab { flex:1; padding:10px; border:none; background:transparent; color:rgba(255,255,255,0.6); border-radius:10px; font-weight:700; font-size:0.95rem; cursor:pointer; transition:all 0.2s; font-family:inherit; }
.ls-tab.active { background:#fff; color:#4f46e5; box-shadow:0 4px 12px rgba(0,0,0,0.1); }

.ls-input-wrap { position:relative; margin-bottom:12px; }
.ls-inp-icon { position:absolute; left:16px; top:50%; transform:translateY(-50%); color:rgba(255,255,255,0.5); font-size:1.1rem; }
.ls-input {
  width:100%; padding:14px 16px 14px 44px; border-radius:14px;
  background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2);
  color:#fff; font-size:1.05rem; font-family:inherit; outline:none; transition:all 0.2s;
}
.ls-input::placeholder { color:rgba(255,255,255,0.4); }
.ls-input:focus { background:rgba(255,255,255,0.18); border-color:rgba(255,255,255,0.6); box-shadow:0 0 0 4px rgba(255,255,255,0.1); }
.ls-eye-btn { position:absolute; right:12px; top:50%; transform:translateY(-50%); background:none; border:none; color:rgba(255,255,255,0.4); font-size:1.1rem; cursor:pointer; padding:4px;}
.ls-eye-btn:hover { color:#fff; }

.ls-msg { min-height:20px; color:#fca5a5; font-size:0.9rem; font-weight:600; text-align:center; margin-bottom:10px; }

.ls-wa-link { display:block; text-align:center; color:rgba(255,255,255,0.7); font-size:0.9rem; margin:12px 0; text-decoration:none; font-weight:600; transition:color 0.2s; }
.ls-wa-link:hover { color:#fff; }

.ls-footer { margin-top:24px; padding-top:20px; border-top:1px solid rgba(255,255,255,0.15); }
.ls-wa-btn {
  display:flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:12px;
  background:linear-gradient(135deg,#25d366,#128c7e); color:#fff; border-radius:14px;
  font-weight:700; font-size:1.05rem; text-decoration:none; margin-bottom:16px; box-shadow:0 6px 16px rgba(37,211,102,0.3);
  transition:transform 0.2s, box-shadow 0.2s;
}
.ls-wa-btn:hover { transform:translateY(-2px); box-shadow:0 10px 20px rgba(37,211,102,0.4); }

.ls-social-row { display:flex; justify-content:center; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.ls-social-icon {
  display:flex; align-items:center; justify-content:center; width:38px; height:38px;
  border-radius:12px; color:#fff; font-size:1.1rem; text-decoration:none; transition:transform 0.2s, opacity 0.2s;
}
.ls-social-icon:hover { transform:translateY(-3px); opacity:0.9; }
.ls-etsy { background:#F1641E; }
.ls-youtube { background:#FF0000; }
.ls-facebook { background:#1877F2; }
.ls-tiktok { background:#000; }
.ls-instagram { background:linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.ls-pinterest { background:#E60023; }

.ls-copyright { text-align:center; color:rgba(255,255,255,0.45); font-size:0.75rem; line-height:1.5; font-weight:500; }

@keyframes blobFloat {
  0%,100% { transform:translate(0,0) scale(1); }
  33% { transform:translate(30px,-50px) scale(1.1); }
  66% { transform:translate(-20px,20px) scale(0.9); }
}
