:root {
  --bg: #f5f3f8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #5b2a86;
  --primary-dark: #3b0f63;
  --gold: #f2b632;
  --soft-purple: #f3e8ff;
  --shadow: 0 14px 28px rgba(31, 41, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

body {
  min-height: 100vh;
}

.page,
.container,
main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #111827;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #111827;
}

h3 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #111827;
}

p {
  margin: 0 0 16px;
  color: #374151;
  font-size: 17px;
}

a {
  color: var(--primary);
  font-weight: 700;
}

nav,
.nav,
.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}

nav a,
.nav a,
.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  background: #ffffff;
  color: var(--primary-dark);
  text-decoration: none;
  border: 1px solid #d8b4fe;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(91, 42, 134, 0.08);
}

nav a:hover,
.nav a:hover,
.topnav a:hover {
  background: var(--soft-purple);
}

.monitor-grid,
.dashboard-grid,
.cards,
.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
  margin-top: 18px;
}

.card,
.panel,
.monitor-card,
section {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 8px solid var(--primary);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.cue-big,
.current-call,
.callsign-big,
.on-cue,
#currentCall,
#current-callsign {
  width: 100%;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--gold);
  border-radius: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8vw, 86px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  margin: 10px 0 22px;
}

.next-box,
.up-next,
.queue-next,
#upNext,
#nextCall {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: var(--soft-purple);
  color: var(--primary-dark);
  border-radius: 9px;
  font-family: "Courier New", monospace;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.count,
.confirmed-count,
.stat {
  font-size: 20px;
  font-weight: 900;
  color: #4b5563;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 8px solid var(--primary);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

label {
  display: block;
  margin: 16px 0 6px;
  font-weight: 800;
  color: #374151;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  font-size: 16px;
  background: #ffffff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button,
input[type="submit"],
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
.btn:hover {
  background: var(--primary-dark);
}

footer,
.footer {
  margin-top: 38px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 900px) {
  .monitor-grid,
  .dashboard-grid,
  .cards,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .page,
  .container,
  main {
    width: min(100% - 24px, 760px);
    padding-top: 18px;
  }

  nav,
  .nav,
  .topnav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  nav a,
  .nav a,
  .topnav a {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .page,
  .container,
  main {
    width: min(100% - 18px, 480px);
  }

  .card,
  .panel,
  .monitor-card,
  section,
  form {
    padding: 18px;
  }

  nav,
  .nav,
  .topnav {
    grid-template-columns: 1fr;
  }
}

/* RODE NET circular logo bar */
.rodenet-logo-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 16px 12px;
    background: #111;
    border-bottom: 4px solid #f5c542;
}

.rodenet-logo {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    border: 4px solid #f5c542;
    box-shadow: 0 5px 18px rgba(0,0,0,.35);
}

@media(max-width:700px) {
    .rodenet-logo-bar {
        gap: 12px;
        padding: 12px 8px;
    }

    .rodenet-logo {
        width: 72px;
        height: 72px;
    }
}

/* Centered header with side logos */
.rodenet-logo-bar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: clamp(12px, 3vw, 34px) !important;
    width: 100% !important;
    padding: 14px clamp(14px, 5vw, 74px) !important;
    background: #111 !important;
    border-bottom: 4px solid #f5c542 !important;
}

.rodenet-logo-bar .rodenet-logo:first-child {
    justify-self: start !important;
}

.rodenet-logo-bar .rodenet-logo:last-child {
    justify-self: end !important;
}

.rodenet-header-center {
    min-width: 0 !important;
    text-align: center !important;
}

.rodenet-header-center h1 {
    margin: 0 !important;
    color: #f5c542 !important;
    font-size: clamp(28px, 5vw, 56px) !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.rodenet-header-center p {
    margin: 6px 0 0 !important;
    color: #ffffff !important;
    font-size: clamp(14px, 2vw, 20px) !important;
    font-weight: 900 !important;
}

.rodenet-logo {
    width: clamp(72px, 10vw, 120px) !important;
    height: clamp(72px, 10vw, 120px) !important;
    border-radius: 50% !important;
    object-fit: contain !important;
    padding: 6px !important;
    background: #f2f2f2 !important;
    border: 4px solid #f5c542 !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.35) !important;
}

.rodenet-monitor-third-logo {
    display: block !important;
    width: clamp(58px, 8vw, 92px) !important;
    height: clamp(58px, 8vw, 92px) !important;
    margin: 8px auto 0 !important;
    border-radius: 50% !important;
    object-fit: contain !important;
    padding: 5px !important;
    background: #f2f2f2 !important;
    border: 3px solid #f5c542 !important;
}

@media(max-width:700px) {
    .rodenet-logo-bar {
        padding: 10px 12px !important;
        gap: 8px !important;
    }

    .rodenet-logo {
        width: 62px !important;
        height: 62px !important;
        padding: 4px !important;
        border-width: 3px !important;
    }

    .rodenet-monitor-third-logo {
        width: 54px !important;
        height: 54px !important;
    }
}

/* RODE NET welcome header layout */
.rodenet-top-band {
    height: 130px;
    background: #000;
}

.rodenet-welcome-header {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 190px;
    align-items: center;
    gap: 24px;
    padding: 34px clamp(22px, 4vw, 60px);
    background: #fff;
    color: #000;
}

.rodenet-welcome-logo {
    width: clamp(110px, 11vw, 170px);
    height: clamp(110px, 11vw, 170px);
    border-radius: 50%;
    object-fit: contain;
    justify-self: center;
}

.rodenet-welcome-title {
    text-align: center;
    min-width: 0;
}

.rodenet-welcome-title h1 {
    margin: 0;
    color: #000;
    font-size: clamp(30px, 4.4vw, 58px);
    line-height: 1.1;
    font-weight: 900;
}

.rodenet-welcome-title p {
    margin: 20px 0 0;
    color: #000;
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1;
    font-weight: 400;
    letter-spacing: .02em;
}

.qsl-participation-note {
    max-width: 1200px;
    margin: 34px auto 80px;
    padding: 0 18px;
    color: #000;
    text-align: center;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.2;
    font-weight: 400;
}

@media(max-width:760px) {
    .rodenet-top-band {
        height: 58px;
    }

    .rodenet-welcome-header {
        grid-template-columns: 72px minmax(0, 1fr) 72px;
        gap: 10px;
        padding: 18px 12px;
    }

    .rodenet-welcome-logo {
        width: 68px;
        height: 68px;
    }

    .rodenet-welcome-title h1 {
        font-size: clamp(20px, 5vw, 30px);
    }

    .rodenet-welcome-title p {
        margin-top: 8px;
        font-size: clamp(20px, 5vw, 30px);
    }

    .qsl-participation-note {
        margin: 28px auto 50px;
        font-size: clamp(24px, 6vw, 34px);
    }
}

/* RODE NET welcome header layout */
.rodenet-top-band {
    height: 130px;
    background: #000;
}

.rodenet-welcome-header {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 190px;
    align-items: center;
    gap: 24px;
    padding: 34px clamp(22px, 4vw, 60px);
    background: #fff;
    color: #000;
}

.rodenet-welcome-logo {
    width: clamp(110px, 11vw, 170px);
    height: clamp(110px, 11vw, 170px);
    border-radius: 50%;
    object-fit: contain;
    justify-self: center;
}

.rodenet-welcome-title {
    text-align: center;
    min-width: 0;
}

.rodenet-welcome-title h1 {
    margin: 0;
    color: #000;
    font-size: clamp(30px, 4.4vw, 58px);
    line-height: 1.1;
    font-weight: 900;
}

.rodenet-welcome-title p {
    margin: 20px 0 0;
    color: #000;
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1;
    font-weight: 400;
    letter-spacing: .02em;
}

.qsl-participation-note {
    max-width: 1200px;
    margin: 34px auto 80px;
    padding: 0 18px;
    color: #000;
    text-align: center;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.2;
    font-weight: 400;
}

@media(max-width:760px) {
    .rodenet-top-band {
        height: 58px;
    }

    .rodenet-welcome-header {
        grid-template-columns: 72px minmax(0, 1fr) 72px;
        gap: 10px;
        padding: 18px 12px;
    }

    .rodenet-welcome-logo {
        width: 68px;
        height: 68px;
    }

    .rodenet-welcome-title h1 {
        font-size: clamp(20px, 5vw, 30px);
    }

    .rodenet-welcome-title p {
        margin-top: 8px;
        font-size: clamp(20px, 5vw, 30px);
    }

    .qsl-participation-note {
        margin: 28px auto 50px;
        font-size: clamp(24px, 6vw, 34px);
    }
}

/* Smaller command/check-in header logos */
.rodenet-command-header,
.rodenet-welcome-header {
    grid-template-columns: 130px minmax(0, 1fr) 130px !important;
    padding: 28px clamp(22px, 4vw, 60px) !important;
}

.rodenet-command-logo,
.rodenet-welcome-logo {
    width: clamp(86px, 8vw, 122px) !important;
    height: clamp(86px, 8vw, 122px) !important;
}

@media(max-width:760px) {
    .rodenet-command-header,
    .rodenet-welcome-header {
        grid-template-columns: 58px minmax(0, 1fr) 58px !important;
        padding: 14px 10px !important;
    }

    .rodenet-command-logo,
    .rodenet-welcome-logo {
        width: 54px !important;
        height: 54px !important;
    }
}

/* FINAL Self Check-In header/logo fix */
.rodenet-welcome-header {
    display: grid !important;
    grid-template-columns: 115px minmax(0, 1fr) 115px !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 26px 34px !important;
    background: #ffffff !important;
    color: #000000 !important;
}

.rodenet-welcome-logo {
    width: 105px !important;
    height: 105px !important;
    max-width: 105px !important;
    max-height: 105px !important;
    border-radius: 50% !important;
    object-fit: contain !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.rodenet-welcome-title {
    text-align: center !important;
}

.rodenet-welcome-title h1 {
    margin: 0 !important;
    color: #000000 !important;
    font-size: clamp(28px, 4vw, 52px) !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
}

.rodenet-welcome-title p {
    margin: 16px 0 0 !important;
    color: #000000 !important;
    font-size: clamp(26px, 3.4vw, 46px) !important;
    line-height: 1 !important;
    font-weight: 400 !important;
}

@media(max-width:760px) {
    .rodenet-welcome-header {
        grid-template-columns: 58px minmax(0, 1fr) 58px !important;
        gap: 8px !important;
        padding: 16px 10px !important;
    }

    .rodenet-welcome-logo {
        width: 54px !important;
        height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
    }

    .rodenet-welcome-title h1 {
        font-size: clamp(18px, 5vw, 28px) !important;
    }

    .rodenet-welcome-title p {
        margin-top: 8px !important;
        font-size: clamp(20px, 5vw, 30px) !important;
    }
}
