/* ===== Rebel Hounds MC ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â Styles ===== */

:root {
  --primary: #c0392b;
  --primary-dark: #922b21;
  --dark: #141414;
  --dark-2: #1e1e1e;
  --dark-3: #262626;
  --text: #e8e8e8;
  --muted: #9a9a9a;
  --border: #333;
  --gold: #d4a017;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

.accent {
  color: var(--primary);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--primary);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  width: 100%;
}

/* ===== DROPDOWN ===== */
.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-item > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
  margin-left: 2px;
  position: static;
}

.nav-item:hover > a::after {
  transform: rotate(180deg);
  width: 0;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 0 0 8px 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 1001;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.nav-item:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

.dropdown li a::after {
  display: none;
}

.dropdown li a:hover {
  background: var(--dark-2);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(192, 57, 43, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 160, 23, 0.08), transparent 50%),
    linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%),
    url('rebel-hounds-patch.png') center/cover no-repeat;
  overflow: hidden;
  padding: 6rem 1.5rem 3rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.65) 0%, rgba(13, 13, 13, 0.5) 50%, rgba(13, 13, 13, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  border: none;
}

.hero-video.hidden {
  display: none !important;
}

.hero-banner {
  width: min(960px, 94%);
  margin: 0 auto 1.5rem;
  display: block;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, black 42%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, black 42%, transparent 78%);
  filter: drop-shadow(0 0 18px rgba(192, 57, 43, 0.35)) drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5));
  animation: bannerGlow 4.5s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
  from { transform: scale(1); opacity: 0.92; filter: drop-shadow(0 0 14px rgba(192, 57, 43, 0.25)) drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5)); }
  to   { transform: scale(1.025); opacity: 1; filter: drop-shadow(0 0 26px rgba(192, 57, 43, 0.55)) drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5)); }
}

.hero-content {
  position: relative;
  max-width: 900px;
  z-index: 2;
}

.hero-tag {
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: 3px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.3rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--text);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--primary);
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 1.6rem;
  text-decoration: none;
  animation: bob 1.8s infinite;
  z-index: 2;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 3px;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary);
}

.section-sub {
  color: var(--muted);
  font-size: 1.15rem;
  margin-top: 0.75rem;
}

/* ===== ABOUT ===== */
.about {
  background: var(--dark-2);
  max-width: none;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
}

.about-text p {
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.about-quote {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  padding: 2rem 2.2rem;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
  background: var(--dark-3);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}

.principles {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.principles h3,
.about-bylaws h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.principle-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.principle-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.principle-card h4 {
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.principle-card p {
  color: var(--muted);
}

.about-bylaws {
  max-width: 820px;
  margin: 0 auto;
}

.about-bylaws p {
  color: var(--muted);
  font-size: 1.1rem;
}

.about-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.about-card p {
  color: var(--muted);
}

/* ===== RULES ===== */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.rule-card {
  background: var(--dark-2);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 4px;
}

.rule-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  margin-right: 0.75rem;
}

.rule-card h4 {
  display: inline;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.rule-card p {
  color: var(--muted);
  margin-top: 0.5rem;
}

.rules-note {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--gold);
  font-weight: 600;
  font-size: 1.05rem;
  font-style: italic;
}

/* ===== ROSTER ===== */
.roster {
  background: var(--dark-2);
  max-width: none;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.member {
  text-align: center;
}

.member-pic {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mh), #0d0d0d);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 2px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.member:hover .member-pic {
  transform: scale(1.03);
  border-color: var(--primary);
}

.member-pic span {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 2px;
}

.member h4 {
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.member-title {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.roster-note {
  text-align: center;
  color: var(--muted);
  margin-top: 2.5rem;
  font-style: italic;
}

/* ===== RECRUITMENT ===== */
.recruit-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.recruit-requirements,
.recruit-form {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}

.recruit-requirements h3,
.recruit-form h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--primary);
}

.recruit-requirements ul {
  list-style: none;
}

.recruit-requirements li {
  padding: 0.5rem 0;
  padding-left: 1.8rem;
  position: relative;
  color: var(--muted);
}

.recruit-requirements li::before {
  content: 'ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Âº';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-block {
  width: 100%;
}

.form-msg {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--gold);
}

/* ===== EVENTS ===== */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.25s ease;
}

.event:hover {
  border-color: var(--primary);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--primary);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  min-width: 64px;
}

.date-day {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.date-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}

.event-info h4 {
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.event-info p {
  color: var(--muted);
}

.event-badge {
  margin-left: auto;
  white-space: nowrap;
  background: var(--dark-3);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--dark-2);
  max-width: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.25s ease;
}

.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.contact-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.contact-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.contact-card p {
  color: var(--muted);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 3px solid var(--primary);
  background: #0d0d0d;
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer p {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ===== PORTAL PAGE ===== */
.portal-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(192, 57, 43, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 160, 23, 0.08), transparent 50%),
    linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  padding: 8rem 1.5rem 3rem;
  border-bottom: 2px solid var(--primary);
}

.portal-hero-inner {
  position: relative;
  max-width: 900px;
}

.portal-hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  object-fit: cover;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 30px rgba(192, 57, 43, 0.35);
}

.portal-page .section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* ===== PATCH HOLDERS ===== */
.patch-gate {
  display: flex;
  justify-content: center;
}

.patch-gate-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.patch-gate-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
  margin-bottom: 1rem;
}

.patch-gate-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--gold);
}

.patch-gate-sub {
  color: var(--muted);
  margin: 0.5rem 0 1.5rem;
}

.patch-form {
  text-align: left;
}

.patch-area {
  max-width: 1000px;
  margin: 0 auto;
}

.patch-area-head {
  text-align: center;
  margin-bottom: 2rem;
}

.patch-area-head h3 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 2px;
}

.patch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.patch-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.patch-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.patch-card p {
  color: var(--muted);
  flex: 1;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.patch-bylaws {
  margin-top: 2rem;
}

.patch-bylaws-head {
  text-align: center;
  margin-bottom: 1rem;
}

.patch-bylaws-head h4 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--gold);
}

.patch-pdf {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.patch-pdf iframe {
  width: 100%;
  height: 72vh;
  min-height: 480px;
  border: 0;
  border-radius: 4px;
  background: #fff;
}

.patch-bylaws > .btn {
  display: inline-block;
}
.patch-area-foot {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* ===== PORTAL LOGIN GATE BACKGROUND ===== */
.portal-login-bg {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(13, 13, 13, 0.85) 0%, rgba(13, 13, 13, 0.75) 50%, rgba(13, 13, 13, 0.92) 100%),
    url('rebel-hounds-patch.png') center/cover no-repeat;
  background-color: var(--dark);
}

.portal-login-bg .patch-gate-card {
  position: relative;
  z-index: 2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(30, 30, 30, 0.85);
  border: 1px solid rgba(192, 57, 43, 0.3);
}

/* ===== PORTAL BANNER ===== */
.portal-banner {
  background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.portal-banner-text h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--gold);
}

.portal-banner-text p {
  color: var(--muted);
  margin-top: 0.25rem;
}

.portal-banner-badge {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===== PORTAL SUB-NAV ===== */
.portal-sub-nav {
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

.portal-sub-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.portal-sub-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem 1.25rem;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.portal-sub-nav a:hover {
  color: var(--text);
}

.portal-sub-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ===== PORTAL DASHBOARD GRID ===== */
.portal-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.portal-dash-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.portal-dash-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.portal-dash-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.portal-dash-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.portal-dash-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== MAP PAGE ===== */
.map-container {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--dark-2);
}

.map-container iframe {
  width: 100%;
  height: 75vh;
  min-height: 500px;
  border: 0;
  display: block;
}

.map-placeholder {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--muted);
}

.map-placeholder h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-item:hover {
  border-color: var(--primary);
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay p {
  color: #fff;
  font-size: 0.9rem;
}

.gallery-upload-area {
  background: var(--dark-2);
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  transition: border-color 0.2s ease;
}

.gallery-upload-area:hover {
  border-color: var(--primary);
}

.gallery-upload-area p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.gallery-upload-area .btn {
  margin-bottom: 1rem;
}

.gallery-upload-preview {
  max-width: 400px;
  margin: 1rem auto;
  border-radius: 8px;
  overflow: hidden;
  display: none;
}

.gallery-upload-preview img {
  width: 100%;
  display: block;
}

/* ===== GALLERY WEBHOOK CONFIG ===== */
.gallery-webhook-config {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.gallery-webhook-config label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--muted);
}

.webhook-row {
  display: flex;
  gap: 0.5rem;
}

.webhook-row input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.webhook-row input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ===== GALLERY FILE UPLOAD ===== */
.gallery-file-upload {
  margin-bottom: 1rem;
}

.gallery-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.gallery-file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dark-3);
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--muted);
  font-weight: 600;
}

.gallery-file-label:hover {
  border-color: var(--primary);
  color: var(--text);
}

.gallery-file-icon {
  font-size: 1.3rem;
}

.gallery-upload-or {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--primary);
}

/* ===== VIDEO GRID ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.video-card:hover {
  border-color: var(--primary);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
}

.video-card-info {
  padding: 1rem;
}

.video-card-info h4 {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.video-card-info p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ===== CONTENT PAGES ===== */
.content-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.content-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.content-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.content-card ul {
  list-style: none;
  margin-top: 0.5rem;
}

.content-card li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--muted);
}

.content-card li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== INVENTORY ===== */

/* --- Toolbar --- */
.inv-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.inv-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
  position: relative;
}

.inv-search-icon {
  color: var(--muted);
  font-size: 1rem;
  flex-shrink: 0;
}

.inv-search {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.inv-search:focus {
  outline: none;
  border-color: var(--primary);
}

.inv-search-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  line-height: 1;
}

.inv-search-clear.visible {
  display: block;
}

.inv-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.inv-sort-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  margin-right: 0.25rem;
}

.inv-sort-btn {
  padding: 0.3rem 0.6rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.inv-sort-btn:hover {
  color: var(--text);
  border-color: var(--primary);
}

.inv-sort-btn.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

/* --- Drag and Drop --- */
.inv-item[draggable="true"] {
  cursor: grab;
}

.inv-item[draggable="true"]:active {
  cursor: grabbing;
}

.inv-item.dragging {
  opacity: 0.4;
  border-color: var(--gold);
  border-style: dashed;
}

.inv-items.drag-over {
  background: rgba(191, 64, 64, 0.06);
  border-radius: 6px;
  outline: 2px dashed var(--primary);
  outline-offset: 4px;
}

.inv-drop-placeholder {
  border: 2px dashed var(--gold);
  border-radius: 8px;
  min-height: 52px;
  background: rgba(212, 175, 55, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  grid-column: 1 / -1;
}

/* --- Move button on item --- */
.inv-btn-move {
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.inv-btn-move:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* --- Move Modal extras --- */
.inv-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.inv-select:focus {
  outline: none;
  border-color: var(--primary);
}

.inv-move-item-preview {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.inv-move-item-preview .inv-move-name {
  font-weight: 600;
  color: var(--text);
}

.inv-move-item-preview .inv-move-qty {
  color: var(--gold);
  font-size: 0.85rem;
}

/* --- Search hidden item --- */
.inv-item.search-hidden {
  display: none !important;
}

.inv-storage.search-hidden,
.inv-section.search-hidden {
  display: none !important;
}

.inv-storage {
  margin-bottom: 2.5rem;
}

.inv-storage-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--gold);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.inv-section {
  margin-bottom: 1.5rem;
}

.inv-section-title {
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.inv-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.inv-item {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.2s ease;
  position: relative;
}

.inv-item:hover {
  border-color: var(--primary);
}

.inv-item-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--dark-3);
}

.inv-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inv-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.inv-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inv-item-qty {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

.inv-item-actions {
  display: flex;
  gap: 0.3rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.inv-item:hover .inv-item-actions {
  opacity: 1;
}

.inv-btn-edit,
.inv-btn-del {
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.inv-btn-edit:hover {
  color: var(--text);
  border-color: var(--primary);
}

.inv-btn-del:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.inv-item-add {
  border-style: dashed;
  justify-content: center;
  cursor: pointer;
}

.inv-add-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.inv-add-btn:hover {
  color: var(--primary);
}

.inv-add-section {
  margin-top: 0.75rem;
}

.inv-add-storage {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ===== INVENTORY MODAL ===== */
.inv-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.inv-modal.open {
  opacity: 1;
  visibility: visible;
}

.inv-modal-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.inv-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.inv-modal-head h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--gold);
}

.inv-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.inv-modal-close:hover {
  color: var(--primary);
}

/* ===== INVENTORY LOGIN BAR ===== */
.inv-login-bar {
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.inv-login-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.inv-login-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.inv-login-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.inv-login-form input {
  padding: 0.5rem 0.75rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 160px;
}

.inv-login-form input:focus {
  outline: none;
  border-color: var(--primary);
}
/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    background: var(--dark);
    height: 100vh;
    width: 70%;
    max-width: 320px;
    padding: 5rem 2rem;
    gap: 0.5rem;
    border-left: 3px solid var(--primary);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-item > .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-top: none;
    border-radius: 0;
    padding: 0 0 0 1.25rem;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-item.dropdown-open > .dropdown {
    max-height: 500px;
  }

  .nav-item > a::after {
    transition: transform 0.3s ease;
  }

  .nav-item.dropdown-open > a::after {
    transform: rotate(180deg);
  }

  .dropdown li a {
    padding: 0.5rem 1rem;
  }

  .recruit-wrap {
    grid-template-columns: 1fr;
  }

  .portal-nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    background: var(--dark);
    height: 100vh;
    width: 70%;
    max-width: 320px;
    padding: 5rem 2rem;
    gap: 0.5rem;
    border-left: 3px solid var(--primary);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .portal-nav-links.open {
    right: 0;
  }
}

@media (max-width: 600px) {
  .event {
    flex-wrap: wrap;
  }

  .event-badge {
    margin-left: 0;
  }

  .hero-stats {
    gap: 2rem;
  }
}

/* ===== SPREADSHEET INVENTORY — Card Panel Layout ===== */
.portal-page .section:has(.ss-storage) {
  max-width: 1600px;
  padding: 2rem 2.5rem;
}

/* -- Storage Card -- */
.ss-storage {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ss-storage-header {
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-2) 100%);
  border-bottom: 2px solid var(--primary);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ss-storage-header h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin: 0;
}

.ss-storage-body {
  padding: 1.25rem 1.5rem;
}

/* -- Sections Grid (side by side) -- */
.ss-sections-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.ss-section {
  flex: 1 1 0;
  min-width: 280px;
  max-width: 500px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.ss-section-header {
  background: var(--dark-3);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}

.ss-section-header h4 {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
  margin: 0;
  font-weight: 600;
}

.ss-table-wrap {
  overflow-x: auto;
}

.ss-table {
  width: 100%;
  border-collapse: collapse;
}

.ss-table thead th {
  background: var(--dark-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 1;
}

.ss-table tbody tr {
  border-bottom: 1px solid rgba(51, 51, 51, 0.4);
  transition: background 0.15s ease;
}

.ss-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.012);
}

.ss-table tbody tr:last-child {
  border-bottom: none;
}

.ss-table tbody tr:hover {
  background: rgba(191, 64, 64, 0.07);
}

.ss-table tbody tr.dragging {
  opacity: 0.3;
  background: rgba(212, 175, 55, 0.1);
}

.ss-table.drag-over {
  outline: 2px dashed var(--primary);
  outline-offset: -2px;
}

/* Columns */
.ss-col-drag { width: 28px; }
.ss-col-name { }
.ss-col-qty { width: 70px; text-align: center; }
.ss-col-actions { width: 60px; text-align: center; }

/* Cells */
.ss-cell-drag {
  text-align: center;
  padding: 0;
  width: 28px;
}

.ss-handle {
  cursor: grab;
  color: var(--muted);
  font-size: 0.9rem;
  user-select: none;
  padding: 0.5rem 0;
  transition: color 0.15s ease;
  display: block;
  opacity: 0.4;
}

.ss-table tbody tr:hover .ss-handle {
  opacity: 1;
}

.ss-handle:hover {
  color: var(--gold);
}

.ss-handle:active {
  cursor: grabbing;
}

.ss-cell {
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  position: relative;
  min-height: 38px;
  vertical-align: middle;
}

.ss-cell:hover {
  background: rgba(191, 64, 64, 0.06);
}

.ss-cell-name {
  min-width: 140px;
}

.ss-cell-qty {
  text-align: center;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
}

.ss-display {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* Inline edit input */
.ss-edit-input {
  width: 100%;
  padding: 0.3rem 0.5rem;
  background: var(--dark-2);
  border: 2px solid var(--primary);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  box-sizing: border-box;
}

.ss-cell-qty .ss-edit-input {
  text-align: center;
  width: 65px;
}

/* Action buttons */
.ss-cell-actions {
  text-align: center;
  padding: 0.3rem 0.4rem;
  white-space: nowrap;
}

.ss-btn {
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 24px;
  height: 24px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
  opacity: 0;
}

.ss-table tbody tr:hover .ss-btn {
  opacity: 1;
}

.ss-btn:hover {
  color: var(--text);
  border-color: var(--primary);
}

.ss-btn-del:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.ss-btn-move:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* Add row */
.ss-add-row {
  border-top: 1px dashed var(--border) !important;
  cursor: pointer;
}

.ss-add-row:hover {
  background: rgba(191, 64, 64, 0.04) !important;
}

.ss-add-cell {
  color: var(--muted);
  font-style: italic;
  font-size: 0.8rem;
}

.ss-add-placeholder {
  opacity: 0.5;
  transition: all 0.15s ease;
}

.ss-add-row:hover .ss-add-placeholder {
  opacity: 1;
  color: var(--primary);
}

/* Section add button */
.ss-add-section-row {
  padding: 0.75rem 0 0.25rem;
}

/* Storage add button */
.ss-add-storage-row {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Responsive — stack sections vertically on small screens */
@media (max-width: 900px) {
  .portal-page .section:has(.ss-storage) {
    padding: 1.5rem 1rem;
  }

  .ss-storage-header {
    padding: 0.75rem 1rem;
  }

  .ss-storage-body {
    padding: 1rem;
  }

  .ss-sections-grid {
    flex-direction: column;
  }

  .ss-section {
    min-width: 100%;
    max-width: 100%;
  }

  .ss-col-drag { display: none; }
  .ss-cell-drag { display: none; }
  .ss-col-actions { width: 55px; }
  .ss-cell { padding: 0.4rem 0.5rem; }
  .ss-btn { opacity: 1; }
}
