:root {
    --color-bg: #12131a; /*#042323;*/
    --color-surface: #1c1e29;
    --color-surface-alt: #23263380;
    --color-primary: #092a5e; // #204a46; /* #ff4d6d; */
    --color-primary-light: #c2d25d; /* #d43a58;*/
    --color-text: #f5f5f7;
    --color-muted: #a4a6b3;
    --color-border: #33364a;
    --color-darkgreen: #092a5e;
    --color-light-yellow: #fcf8e3;
    --color-light-red: #ebcccc;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--color-primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header { background: var(--color-darkgreen); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--color-text); }
.brand:hover { text-decoration: none; }
.main-nav a { margin-left: 1.5rem; color: var(--color-muted); }
.main-nav a.active, .main-nav a:hover { color: var(--color-text); }
.cart-link { position: relative; }
.badge { background: var(--color-primary); color: #fff; border-radius: 999px; padding: 0 0.4rem; font-size: 0.75rem; margin-left: 0.3rem; }
.nav-user { margin-left: 1.5rem; color: var(--color-muted); }

.nav-dropdown { display: inline-block; position: relative; margin-left: 1.5rem; }
.nav-dropdown summary.nav-user { margin-left: 0; cursor: pointer; list-style: none; }
.nav-dropdown summary.nav-user::-webkit-details-marker { display: none; }
.nav-dropdown summary.nav-user::after { content: ' \25BE'; }
.nav-dropdown[open] summary.nav-user::after { content: ' \25B4'; }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    min-width: 140px;
    padding: 0.4rem 0;
    z-index: 10;
}
.nav-dropdown-menu a { display: block; padding: 0.4rem ; color: var(--color-muted); }
.nav-dropdown-menu a:hover { color: var(--color-text); }

main.container { padding: 2rem 1.5rem 4rem; }

.hero { text-align: center; padding: 3rem 1rem; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero p { color: var(--color-muted); margin-bottom: 1.5rem; }

.section { margin-bottom: 3rem; }
.section h2 { border-bottom: 1px solid var(--color-border); padding-bottom: 0.5rem; }

.richtext-content p { margin: 0 0 1rem; }
.richtext-content ul, .richtext-content ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.richtext-content h1, .richtext-content h2, .richtext-content h3, .richtext-content h4 { margin: 1.5rem 0 0.75rem; }
.richtext-content blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--color-border); color: var(--color-muted); }
.richtext-content a { color: var(--color-primary-light); }

.band-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.band-card { background: var(--color-darkgreen); border: 1px solid var(--color-border); border-radius: 10px; padding: 1rem; }
.band-card img { width: 100%; object-fit: cover; border-radius: 6px; margin-bottom: 0.75rem; }
.band-card .genre { color: var(--color-primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

.btn { display: inline-block; padding: 0.6rem 1.2rem; border-radius: 6px; border: none; cursor: pointer; font-size: 1rem; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-light); color: #000;}
.btn-secondary { background: var(--color-surface-alt); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-link { background: none; border: none; color: var(--color-primary-light); cursor: pointer; padding: 0; font: inherit; }
.btn-danger { background: #a4243b; color: #fff; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--color-border); text-align: left; }
td.none { border-bottom: 0px; }
th { color: var(--color-light-yellow); font-weight: 600; }

thead { background: var(--color-primary); }

tr.total-row {  border-top: 2px solid var(--color-muted); border-bottom: none; font-weight: bold; }

tr.early-bird { color:#000; background-color: #d9edf7; }
tr.early-bird a, tr.early-bird .btn-link{ color:#000; font-weight: bold; }

tr.admin { color:#000; background-color: #dff0d8; }
tr.admin a, tr.admin .btn-link{ color:#000; font-weight: bold; }

tr.member { color:#000; background-color: #fcf8e3; }
tr.member a, tr.member.btn-link { color:#000; font-weight: bold ; }

tr.inactive { color:#000; background-color: #ebcccc; }
tr.inactive a, tr.inactive .btn-link{ color:#000; font-weight: bold; }

tr .btn-link:hover, tr.early-bird .btn:hover, tr.admin .btn:hover, tr.member .btn:hover, tr.inactive .btn:hover { text-decoration: underline; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="time"], input[type="date"], input[type="datetime-local"], select, textarea {
    background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text);
    padding: 0.5rem 0.6rem; border-radius: 6px; width: 100%; max-width: 320px; margin-bottom: 1rem;
}
label { display: block; font-weight: 600; margin-bottom: 0.25rem; }

.checkout-form { max-width: 420px; margin-top: 2rem; }

.alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-error { background: #4a1c26; color: #ffb3c0; border: 1px solid #a4243b; }
.alert-success { background: #16321f; color: #9be3ac; border: 1px solid #2e7d46; }

.site-footer { border-top: 1px solid var(--color-border); padding: 1.5rem; color: var(--color-muted); text-align: center; }

/* Admin */
.admin-body { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: var(--color-surface); border-right: 1px solid var(--color-border); padding: 1.5rem 1rem; }
.admin-sidebar a { display: block; padding: 0.5rem 0.75rem; border-radius: 6px; color: var(--color-muted); margin-bottom: 0.25rem; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: var(--color-surface-alt); color: var(--color-text); text-decoration: none; }
.admin-content { flex: 1; padding: 2rem; max-width: 1080px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; padding: 1.25rem; }
.stat-card .value { font-size: 1.8rem; font-weight: 700; }
.stat-card .label { color: var(--color-muted); font-size: 0.85rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; max-width: 640px; }
.form-grid .full { grid-column: 1 / -1; }
.login-box { max-width: 360px; margin: 4rem auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; padding: 2rem; }

.richtext-toolbar { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.richtext-toolbar button {
    background: var(--color-surface-alt); border: 1px solid var(--color-border); color: var(--color-text);
    border-radius: 6px; padding: 0.3rem 0.6rem; cursor: pointer; font-size: 0.85rem;
}
.richtext-toolbar button:hover { background: var(--color-surface); }
.richtext-editable {
    background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text);
    border-radius: 6px; padding: 0.75rem; min-height: 220px; max-width: 100%; margin-bottom: 1rem;
}
.richtext-editable p { margin: 0 0 1rem; }
.richtext-editable:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }

.profile-img {
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
  display: block;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

.logo-img {
  width: 65px;
  height: 65px;
  margin: 0 auto 0px;
  display: block;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
  }
  .main-nav.open { display: flex; }
  .main-nav a { margin-left: 0; padding: 0.5rem 0; }
  .nav-dropdown { margin-left: 0; width: 100%; }
  .nav-dropdown summary.nav-user { margin-left: 0; padding: 0.5rem 0; }
  .nav-dropdown-menu { position: static; margin-top: 0; border: none; padding: 0 0 0 1rem; }
}