.nb-hero { width: 100%; height: calc(22vh + var(--site-header-h, 0px)); min-height: 180px; background: url('/images/main-gallery/main1.jpg?v8') center/cover no-repeat; position: relative; display: flex; align-items: center; margin-top: calc(-1 * var(--site-header-h, 0px)); }
.nb-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.78), rgba(0,0,0,0.58)); }
.nb-hero::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 25%; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 100%); pointer-events: none; }
.nb-hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; text-align: center; }
.nb-hero-title { color: #ffc107; font-size: 2rem; font-weight: 400; margin: 0 0 6px; font-family: 'M PLUS Rounded 1c', 'Poppins', sans-serif; }
.nb-hero-desc { color: rgba(255,255,255,0.9); font-size: 1.05rem; margin: 0; max-width: 720px; margin-left: auto; margin-right: auto; }
.nb-hero-credits { margin-top: 6px; color: rgba(255,255,255,0.85); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
.nb-hero-credits i { color: #ffc107; }

.nb-login-info { background: #fff; color: #000; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 0.95rem; text-align: center; }
.nb-login-info a { color: #000; text-decoration: underline; font-weight: 400; }
.nb-login-info a:hover { text-decoration: underline; }

/* Inline form, single row */
.nb-form-row { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.nb-form-row .form-control,
.nb-form-row .form-select { height: 44px; }
.nb-prompt { flex: 1 1 auto; min-width: 320px; }
.nb-prompt textarea { height: 44px; resize: none; overflow-y: hidden; scrollbar-width: none; }
.nb-prompt textarea::-webkit-scrollbar { display: none; }
.nb-aspect { flex: 0 0 120px; margin-left: auto; display: flex; align-items: center; }
.nb-file { flex: 0 0 auto; }
.nb-actions { display: flex; gap: 6px; }
.nb-actions .btn { height: 44px; display: inline-flex; align-items: center; font-weight: 400; padding: 0 16px; line-height: 1; font-size: 0.9rem; gap: 14px; }
.nb-generate-btn { justify-content: space-between; min-width: 150px; border-radius: 999px; }
.nb-btn-left { display: inline-flex; align-items: center; gap: 8px; }
.nb-btn-credit { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); font-weight: 600; font-size: 0.85rem; }
.nb-btn-credit i { color: #ffc107; }

@media (max-width: 992px) {
  .nb-form-row { flex-wrap: wrap; }
  .nb-prompt { min-width: 100%; }
  .nb-file { flex-basis: 100%; }
}

/* Force single-column layout for this module */
.hero-grid { grid-template-columns: 1fr !important; }

/* Generate button border (darker yellow) */
.hero-form .btn-warning { border: 2px solid #d4a700 !important; }
.hero-form .btn-warning:hover { border-color: #d4a700 !important; }
/* Override outline-light hover to yellow */
.hero-form .btn-outline-light:hover { background: #ffc107; color: #000; border-color: #d4a700; }

/* Preview adjustments */
.hero-preview { position: relative; }
#resultImg { max-height: 520px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 768px) {
  #resultImg { max-height: 380px; }
}
.nb-download { position: absolute; top: 10px; right: 10px; z-index: 2; background: #2b2b2b; color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.nb-download:hover { background: #353535; color: #fff; border-color: rgba(255,255,255,0.3); }

/* Image fullscreen modal */
.nb-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.nb-modal.d-none { display: none; }
.nb-modal-img { max-width: 92vw; max-height: 92vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }

/* Previous images grid */
.nb-history { padding: 12px 12px; }
.nb-history-title { color: #ffc107; font-family: 'M PLUS Rounded 1c', sans-serif; font-weight: 400; font-size: 1.6rem; margin: 0 0 16px; text-align: center; letter-spacing: 0.3px; }
/* Masonry (Pinterest-like) */
.nb-grid { column-count: 5; column-gap: 12px; }
.nb-card { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; position: relative; display: inline-block; width: 100%; margin: 0 0 12px; break-inside: avoid; transition: opacity 0.2s ease, transform 0.2s ease; }
.nb-card-removing { opacity: 0; transform: scale(0.97); }
.nb-card img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.nb-history-loading { text-align: center; margin-top: 12px; color: rgba(255,255,255,0.65); letter-spacing: 0.06em; font-size: 0.9rem; }
.nb-card-dl { position: absolute; top: 8px; right: 8px; z-index: 2; background: #2b2b2b; color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; height: 30px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.nb-card-dl:hover { background: #353535; color: #fff; border-color: rgba(255,255,255,0.3); }
/* Send to competition button */
.nb-card-send { position: absolute; top: 8px; right: 50px; z-index: 2; background: #2b2b2b; color: #ffc107; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; height: 30px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.nb-card-send:hover { background: #353535; color: #ffcd39; border-color: rgba(255,255,255,0.3); }
.nb-card-delete { position: absolute; top: 8px; right: 94px; z-index: 2; background: #2b2b2b; color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; height: 30px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.nb-card-delete:hover { background: #353535; color: #fff; border-color: rgba(255,255,255,0.3); }
.nb-card-delete i { pointer-events: none; }

/* Competition picker popup styling */
.nb-comp-popup { background: #ffc107 !important; color: #000 !important; border-radius: 14px !important; }
.nb-comp-popup .swal2-title { color: #000 !important; font-family: 'M PLUS Rounded 1c', 'Poppins', sans-serif; }
.nb-comp-popup .swal2-html-container { text-align: left !important; }
.nb-comp-popup .swal2-html-container label { background: rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.2); border-radius: 10px; padding: 8px 10px; margin: 6px 0; font-family: 'Roboto Mono', monospace; display: flex; align-items: center; gap: 8px; color: #000; }
.nb-comp-popup .swal2-html-container input[type=\"radio\"] { accent-color: #000; }
.nb-comp-confirm { background: #36b654 !important; color: #fff !important; border: 1px solid rgba(0,0,0,0.2) !important; border-radius: 9999px !important; font-family: 'M PLUS Rounded 1c', 'Poppins', sans-serif !important; }
.nb-comp-confirm:hover { background: #2fa34a !important; }
.nb-comp-cancel { background: #2b2b2b !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.2) !important; border-radius: 9999px !important; }
/* base is 5 columns; below are responsive downsizes */
@media (max-width: 1200px) { .nb-grid { column-count: 4; } }
@media (max-width: 992px) { .nb-grid { column-count: 3; } }
@media (max-width: 768px) { .nb-grid { column-count: 2; } }
@media (max-width: 480px) { .nb-grid { column-count: 1; } }

/* Custom file input */
.nb-file { position: relative; display: flex; align-items: center; }
.nb-file-input { display: none; }
.nb-file-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; line-height: 44px; background: #2b2b2b; color: rgba(255,255,255,0.92); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; cursor: pointer; white-space: nowrap; font-size: 0.9rem; margin: 0; }
.nb-file-btn i { color: rgba(255,255,255,0.9); }
.nb-file-btn:hover { background: #333333; color: #ffffff; border-color: rgba(255,255,255,0.2); }
.nb-file-indicator { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; margin-left: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.9); font-size: 0.85rem; }
.nb-file-indicator i { color: #ffc107; }
.nb-file-count { font-weight: 500; }
.nb-file-clear { background: transparent; border: none; color: rgba(255,255,255,0.7); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.nb-file-clear:hover { background: rgba(255,255,255,0.12); color: #fff; }

@media (max-width: 768px) {
  .nb-file { flex-wrap: wrap; gap: 8px; }
  .nb-file-indicator { width: 100%; margin-left: 0; justify-content: space-between; }
}

@media (max-width: 768px) {
  .nb-hero-title { font-size: 1.6rem; }
  .nb-hero-desc { font-size: 0.95rem; }
  .nb-hero-credits { font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .nb-hero-title { font-size: 1.5rem; }
  .nb-hero-desc { font-size: 0.9rem; }
  .nb-hero-credits { font-size: 0.8rem; }
}

