/* BOB DJ app skin. Loaded only by bobdj_layout, on top of styles.css.
   Dark is the default; [data-theme="light"] is for bright sun. */
body.bobdj-app {
  --bg: #060812; --surface: #0F1426; --surface-2: #171E38; --border: #2A3560;
  --text: #F4F5FA; --muted: #A5ADC4; --faint: #7A839E;
  --accent: #7C6CFF; --gold: #F5C542; --cyan: #3D8BFF; --pink: #FF5C9D; --ok: #2FD283;
  --glow: 0 0 0 1px rgba(124,92,255,.35), 0 10px 40px -10px rgba(124,92,255,.45);
  background: radial-gradient(1100px 520px at 50% -120px, rgba(61,99,255,.30), transparent 70%), radial-gradient(700px 360px at 90% 0, rgba(245,197,66,.08), transparent 70%), var(--bg);
  color: var(--text); font-family: "DM Sans", system-ui, sans-serif;
}
body.bobdj-app[data-theme="light"] {
  --bg: #F6F5FB; --surface: #FFFFFF; --surface-2: #EEEBF9; --border: #D5D0EA;
  --text: #15132B; --muted: #4B4868; --faint: #6E6A8C;
  --accent: #5B3FE0; --gold: #B57A00; --cyan: #0A7F95; --pink: #C21E63; --ok: #0E8A4F;
  --glow: 0 0 0 1px rgba(91,63,224,.25), 0 8px 24px -12px rgba(91,63,224,.35);
  background: radial-gradient(1000px 420px at 50% -120px, rgba(91,63,224,.12), transparent 70%), var(--bg);
}
.bobdj-app .topbar { background: transparent; border: 0; }
.bobdj-app .wrap { max-width: 720px; padding-bottom: 5rem; }
.bobdj-logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none;
  font-family: Unbounded, sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; color: var(--text); }
.bobdj-logo b { color: var(--gold); font-weight: 800; }
.bobdj-o { display: inline-block; width: 1.05em; height: 1.05em; border-radius: 50%; margin: 0 -.02em; flex: none;
  background: radial-gradient(circle, #F5C542 0 11%, #f4f4f8 12% 16%, #0b0b12 17% 62%, #262638 63% 66%, #0b0b12 67%);
  box-shadow: 0 0 0 .13em #f4f4f8, 0 0 .9em .1em rgba(90,110,255,.75); }
.bobdj-logo { gap: .04em; }
.bob-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; flex: none;
  border: 2px solid var(--gold); box-shadow: 0 0 0 3px rgba(124,92,255,.5), 0 0 26px rgba(90,110,255,.55); }
.hero-row { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.hero-row h1 { margin: 0; }
.bobdj-app .page-head h1, .bobdj-app h1 { font-family: Unbounded, sans-serif; font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.1; letter-spacing: -.01em; }
.bobdj-app h1 .hl { background: linear-gradient(90deg, var(--gold), #ffb35c); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.bobdj-app .section-head { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 .6rem; }
.bobdj-app .card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: 0 8px 30px -18px rgba(0,0,0,.6); }
.bobdj-app .card h2, .bobdj-app .card h3 { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 1.02rem; }
.bobdj-app a { color: var(--accent); }
.bobdj-app .btn { border-radius: 999px; font-weight: 700; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.bobdj-app .btn-primary { background: linear-gradient(135deg, #8a6bff, #6a47f0); border: 0; color: #fff; box-shadow: var(--glow); }
.bobdj-app input, .bobdj-app select, .bobdj-app textarea { background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; padding: .65rem .8rem; font: inherit; width: 100%; }
.bobdj-app input:focus, .bobdj-app select:focus, .bobdj-app textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.bobdj-app input[type="checkbox"] { width: auto; }
.bobdj-app label { display: block; margin: .7rem 0 .2rem; font-weight: 600; font-size: .9rem; }
.bobdj-app label.check { display: flex; gap: .55rem; align-items: center; font-weight: 500; }
.bobdj-app .faint, .bobdj-app .sub { color: var(--muted); }
.bobdj-app .footer { color: var(--faint); }
/* tabs */
.bobdj-tabs { display: flex; gap: .4rem; overflow-x: auto; margin: 0 0 1.25rem; padding-bottom: .25rem; }
.bobdj-tabs a { padding: .45rem .9rem; border-radius: 999px; white-space: nowrap; text-decoration: none; }
.bobdj-tabs a { border: 1px solid var(--border); background: var(--surface); color: var(--muted); opacity: 1; font-weight: 700; }
.bobdj-tabs a.active { background: linear-gradient(135deg, #8a6bff, #6a47f0); color: #fff; border-color: transparent; box-shadow: var(--glow); }
/* badges become pills like the previews */
.bobdj-app .badge { border-radius: 999px; border: 1.5px solid currentColor; background: transparent; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; font-size: .68rem; padding: .25rem .7rem; }
.bobdj-app .badge.good { color: var(--ok); }
.bobdj-app .badge.warn { color: var(--gold); }
/* stat tiles */
.stat-tile { display: block; text-decoration: none; color: var(--text) !important; border-radius: 16px; padding: .9rem 1rem;
  background: var(--surface); border: 1.5px solid var(--c, var(--border)); box-shadow: 0 0 22px -12px var(--c, transparent); text-align: left; }
.stat-tile .n { font-family: Unbounded, sans-serif; font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-tile .l { color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
/* gig rows with a date chip */
.gig-card { display: flex; align-items: center; gap: .9rem; padding: .8rem .9rem; margin-bottom: .6rem; text-decoration: none;
  color: var(--text) !important; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.gig-card:hover { border-color: var(--accent); }
.gig-card .grow { flex: 1; min-width: 0; }
.gig-card .nm { font-weight: 800; }
.chip { display: flex; flex-direction: column; align-items: center; min-width: 3.1rem; line-height: 1.05; }
.chip .dw { font-size: .68rem; font-weight: 800; color: var(--accent); letter-spacing: .08em; }
.chip .mo { font-family: Unbounded, sans-serif; font-weight: 700; font-size: .95rem; }
.chip .dd { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 1.1rem; }
.money-tile { border-radius: 16px; padding: 1rem; background: var(--surface); border: 1px solid var(--border); }
.money-tile .n { font-family: Unbounded, sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.money-tile .l { color: var(--faint); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.theme-toggle { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px;
  padding: .35rem .7rem; font-weight: 700; cursor: pointer; }
.bobdj-app .rowlist { list-style: none; padding: 0; margin: 0; }
.bobdj-app .rowlist li { display: flex; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.bobdj-app .rowlist li:last-child { border-bottom: 0; }
@media (max-width: 520px) { .stat-grid { gap: .5rem; } .stat-tile { padding: .7rem; } .stat-tile .n { font-size: 1.6rem; } }
@media (max-width: 560px) { .bobdj-app .topbar .small { display: none; } }
.bobdj-tabs { scrollbar-width: none; }
.bobdj-tabs::-webkit-scrollbar { display: none; }
.bobdj-app a.bobdj-logo { color: var(--text); }
.bobdj-app a.bobdj-logo b { color: var(--gold); }
.stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.money-tile { min-width: 0; padding: .8rem .7rem; }
.money-tile .n { font-size: clamp(1rem, 4.6vw, 1.5rem); overflow-wrap: anywhere; }
.money-tile .l { font-size: .62rem; letter-spacing: .06em; }

/* App shell: sidebar on wide screens, top tab strip on narrow ones */
.bobdj-shell { display: flex; align-items: flex-start; }
.bobdj-side { display: none; }
body.has-side .bobdj-shell { max-width: 1180px; margin: 0 auto; gap: 1.5rem; padding: 0 1rem; }
body.has-side .wrap { max-width: none; padding-left: 0; padding-right: 0; flex: 1; min-width: 0; }
@media (min-width: 900px) {
  body.has-side .bobdj-side { display: flex; flex-direction: column; justify-content: space-between;
    width: 210px; flex: none; position: sticky; top: 1.2rem; align-self: flex-start;
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: .9rem;
    min-height: calc(100vh - 6rem); }
  body.has-side .bobdj-tabs { display: none; }
}
.bobdj-side a, .bobdj-tabs a.locked { display: flex; align-items: center; gap: .6rem; }
.bobdj-side a { padding: .6rem .8rem; border-radius: 12px; color: var(--muted); text-decoration: none;
  font-weight: 700; margin-bottom: .15rem; }
.bobdj-side a .ico { width: 1.3em; text-align: center; opacity: .85; }
.bobdj-side a.active { background: linear-gradient(135deg, #8a6bff, #6a47f0); color: #fff; }
.bobdj-side a.locked { color: var(--faint); }
.bobdj-side a .lockmark { margin-left: auto; opacity: .7; font-size: .8em; }
.side-lower { border-top: 1px solid var(--border); margin-top: .6rem; padding-top: .6rem; }
.bobdj-tabs a.locked { opacity: .6; }
.bobdj-tabs a .lockmark { margin-left: .3em; }

/* Home dashboard: hero band, stat grid, panels */
.dash-hero { position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 1.2rem;
  min-height: 190px; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.dash-hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,8,18,.92), rgba(6,8,18,.55) 55%, rgba(6,8,18,.25)); }
.dash-hero-in { position: relative; padding: 1.3rem 1.5rem; z-index: 1; }
.dash-hero .eyebrow { color: var(--gold); font-weight: 800; letter-spacing: .12em; font-size: .72rem;
  text-transform: uppercase; }
.dash-hero h1 { margin: .15rem 0 0; color: #fff; }
.dash-hero p { color: #d7dae8; margin: .2rem 0 0; }
.stat-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 640px) { .stat-grid.four { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.link-card { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.link-card .linkbox { flex: 1; min-width: 14rem; }
.dash-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 760px) { .dash-cols { grid-template-columns: 1fr; } }
.next-up-photo { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; margin-bottom: .6rem;
  background: var(--surface-2); }
.locked-card { position: relative; opacity: .92; }
.locked-card h3 { display: flex; align-items: center; gap: .5rem; }
.locked-card .badge { font-size: .6rem; }
.setup-card { display: flex; align-items: center; gap: .8rem; }
.setup-card .ico { font-size: 1.4rem; }
.bob-mascot { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px; object-fit: cover; }
.empty-bob { display: flex; align-items: center; gap: .7rem; }
.empty-bob img { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px; object-fit: cover; }
.header-bob { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; margin-right: .1rem; }
