:root {
  --text: #ffffff;
  --muted: #c9c4f2;
  --accent1: #ff2e88;   /* hot pink */
  --accent2: #ff7a00;   /* orange */
  --accent3: #ffe600;   /* yellow */
  --accent4: #00e5a0;   /* green */
  --accent5: #00b3ff;   /* cyan */
  --accent6: #a855f7;   /* violet */
  --glass: rgba(30, 12, 60, 0.35);
  --glass-border: rgba(255, 255, 255, 0.28);
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(130deg, #1a0533, #2b0a54, #123, #2b0a54, #1a0533);
  background-size: 400% 400%;
  animation: bgShift 24s ease infinite;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(255, 46, 136, 0.35), transparent 60%),
    radial-gradient(800px 500px at 85% 0%, rgba(0, 179, 255, 0.30), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(168, 85, 247, 0.30), transparent 60%);
  animation: blobFloat 16s ease-in-out infinite alternate;
}
.wrap { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 56px 24px 48px; }

@keyframes bgShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes blobFloat { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 1; transform: scale(1.12); } }
@keyframes rainbowText {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
@keyframes borderSpin {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Header */
.hero { text-align: center; margin-bottom: 44px; }
.badge {
  display: inline-block; padding: 6px 14px; margin-bottom: 20px;
  border: 1px solid var(--glass-border); border-radius: 999px;
  background: linear-gradient(92deg, rgba(255,46,136,.25), rgba(0,179,255,.25));
  color: #fff; font-size: .8rem; letter-spacing: .04em;
  box-shadow: 0 0 18px rgba(255, 46, 136, 0.35);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(92deg, #ff2e88, #ff7a00, #ffe600, #00e5a0, #00b3ff, #a855f7, #ff2e88);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rainbowText 8s linear infinite;
}
.tagline { margin-top: 14px; color: var(--muted); font-size: 1.05rem; text-shadow: 0 0 12px rgba(168,85,247,.4); }
.tagline a { color: #7df3ff; text-decoration: none; }
.tagline a:hover { text-decoration: underline; }

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card {
  position: relative; overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 22px rgba(0, 179, 255, 0.12);
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, #ff2e88, #ffe600, #00e5a0, #00b3ff, #a855f7, #ff2e88);
  background-size: 300% 300%; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .2s ease;
  animation: borderSpin 4s linear infinite;
}
.card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .18s ease;
  background: radial-gradient(400px 200px at 20% 0%, rgba(255, 46, 136, 0.30), transparent 65%);
}
.card:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 8px 40px rgba(168, 85, 247, 0.45); }
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }
.card h2 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.card .go { position: absolute; right: 18px; top: 18px; color: #ffd9a8; font-size: 1.1rem; }

/* Login */
.login {
  max-width: 360px; margin: 0 auto; padding: 32px 28px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(255, 46, 136, 0.18);
}
.login label { display: block; margin-bottom: 16px; font-size: .82rem; color: var(--muted); }
.login input {
  width: 100%; margin-top: 7px; padding: 11px 13px; font-size: 1rem;
  border-radius: 10px; border: 1px solid var(--glass-border);
  background: rgba(10, 2, 30, 0.45); color: var(--text); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login input:focus { border-color: #ff2e88; box-shadow: 0 0 0 3px rgba(255, 46, 136, 0.25); }

button {
  width: 100%; padding: 12px; font-size: .98rem; font-weight: 700; cursor: pointer;
  color: #fff; border: none; border-radius: 10px;
  background: linear-gradient(92deg, #ff2e88, #ff7a00, #ffe600, #00e5a0, #00b3ff, #a855f7);
  background-size: 300% auto;
  animation: borderSpin 6s linear infinite;
  box-shadow: 0 8px 30px -6px rgba(255, 46, 136, 0.6);
  transition: filter .15s ease, transform .15s ease;
}
button:hover { filter: brightness(1.2); transform: translateY(-1px); }

.error { background: rgba(244, 63, 94, 0.25); border: 1px solid rgba(244, 63, 94, 0.6); color: #ffc2d1; padding: 11px 14px; border-radius: 10px; margin-bottom: 18px; font-size: .9rem; }
.msg { background: rgba(52, 211, 153, 0.2); border: 1px solid rgba(52, 211, 153, 0.5); color: #b7f7dc; padding: 11px 14px; border-radius: 10px; margin-bottom: 18px; font-size: .9rem; }
.userbar { text-align: center; margin-top: 30px; color: var(--muted); font-size: .9rem; }
.userbar a { color: #7df3ff; text-decoration: none; }
.userbar a:hover { text-decoration: underline; }

/* Admin panels */
.panel { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; backdrop-filter: blur(12px); box-shadow: 0 0 22px rgba(0, 179, 255, 0.1); }
.panel h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,0.14); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.inline-form { display: inline; }
.inline-form input, .inline-form select {
  margin: 0 4px; padding: 7px 9px; font-size: .85rem; border-radius: 8px;
  border: 1px solid var(--glass-border); background: rgba(10,2,30,0.45); color: var(--text); outline: none;
}
.inline-form button { width: auto; padding: 7px 12px; font-size: .85rem; }
.actions form { margin-right: 4px; }
.panel a { color: #7df3ff; text-decoration: none; }

/* Photo showcase */
.photo-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; backdrop-filter: blur(12px); box-shadow: 0 0 22px rgba(255, 46, 136, 0.15); }
.photo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: .88rem; color: var(--muted); }
.photo-head .mini-btn { width: auto; padding: 6px 12px; font-size: .8rem; }
.photo-frame { border-radius: 10px; overflow: hidden; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 0 24px rgba(0, 179, 255, 0.25); }
.photo-frame img { display: block; width: 100%; max-height: 200px; object-fit: cover; }
.login-photo { max-width: 480px; margin: 0 auto 20px; }
.login-photo img { max-height: 300px; }

/* Music player */
.music-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; backdrop-filter: blur(12px); box-shadow: 0 0 22px rgba(0, 229, 160, 0.15); }
.music-card.empty { opacity: .6; }
.muted { color: var(--muted); font-size: .82rem; }
.player-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.player-controls .big-btn { width: 48px; height: 48px; border-radius: 50%; font-size: 1.05rem; padding: 0; }
.player-controls button { width: auto; padding: 9px 13px; font-size: .9rem; }
.player-controls select { flex: 1; min-width: 140px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(10,2,30,0.45); color: var(--text); font-size: .88rem; outline: none; }
.progress { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.12); overflow: hidden; margin-bottom: 8px; }
#progress-bar { height: 100%; width: 0%; background: linear-gradient(92deg, #ff2e88, #ffe600, #00e5a0, #00b3ff); background-size: 200% auto; animation: borderSpin 4s linear infinite; transition: width .25s linear; }
.now-playing { color: var(--text); font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 10px rgba(255, 230, 0, 0.35); }

/* Two-column dashboard layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 24px; align-items: start; }
.left-col .hero { padding: 6px 0 22px; text-align: left; }
.left-col .hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.left-col .hero .tagline { font-size: .95rem; }
.left-col .grid { grid-template-columns: 1fr; gap: 12px; }
.left-col .card { padding: 18px 20px; }
.left-col .card h2 { font-size: 1.02rem; }
.left-col .card p { font-size: .86rem; }
.left-col .userbar { text-align: left; margin-top: 18px; }
.right-col { display: flex; flex-direction: column; }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .left-col .hero { text-align: center; }
  .left-col .userbar { text-align: center; }
}
@media (max-width: 600px) { .hero h1 { font-size: 2rem; } table { font-size: .78rem; } }
