body {
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    padding: 20px;
    margin: 0;
}

h1, h2, h3 {
    margin-bottom: 15px;
}

a {
    color: inherit;
}

/* ── Inputs ─────────────────────────────────────────────────────────── */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"] {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder {
    color: #666;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="date"]:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.3);
}

.input-with-prefix {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-with-prefix:focus-within {
    border-color: #ff69b4;
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.3);
}

.input-prefix {
    padding: 10px 0 10px 10px;
    color: #666;
    font-size: 16px;
    user-select: none;
}

.input-with-prefix input {
    flex: 1;
    background: none;
    border: none;
    color: #000;
    padding: 10px 10px 10px 2px;
    font-size: 16px;
    outline: none;
}

.input-with-prefix input::placeholder {
    color: #666;
}

.phone-country-code {
    background: transparent;
    border: none;
    border-right: 1px solid #ccc;
    color: #000;
    font-size: 16px;
    padding: 10px 4px 10px 10px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 16px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.btn-pink {
    background: #e91e8a;
    color: #fff;
}

.btn-pink:hover {
    background: #c4176e;
}

.btn-glow {
    animation: btn-glow 2s ease-in-out infinite;
}

.btn-glow:hover {
    background: #d4177d;
}

@keyframes btn-glow {
    0%, 100% { background: #e91e8a; box-shadow: 0 0 8px rgba(233, 30, 138, 0.5), 0 0 16px rgba(233, 30, 138, 0.2); }
    50% { background: #ff4da6; box-shadow: 0 0 16px rgba(233, 30, 138, 1), 0 0 32px rgba(233, 30, 138, 0.7), 0 0 48px rgba(233, 30, 138, 0.3); }
}

.glow-wrap {
    position: relative;
    display: inline-block;
}

.glow-wrap .sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: sparkle-pop 1.8s ease-in-out infinite;
}

.glow-wrap .sparkle:nth-child(2) { animation-delay: 0.4s; }
.glow-wrap .sparkle:nth-child(3) { animation-delay: 0.8s; }
.glow-wrap .sparkle:nth-child(4) { animation-delay: 1.2s; }
.glow-wrap .sparkle:nth-child(5) { animation-delay: 1.5s; }

@keyframes sparkle-pop {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8); }
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #555;
}

.btn-outline:hover {
    border-color: #ff69b4;
    color: #ff69b4;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ── Links ───────────────────────────────────────────────────────────── */

.text-link {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.text-link:hover {
    color: #ff69b4;
}

/* ── Error / Flash ───────────────────────────────────────────────────── */

.error {
    color: #ff4444;
    margin-bottom: 12px;
}

.success {
    color: #66bb6a;
    margin-bottom: 12px;
}

/* ── Form container ──────────────────────────────────────────────────── */

.form-box {
    max-width: 420px;
    margin: 60px auto;
    padding: 20px;
}

.form-box h1 {
    text-align: center;
    margin-bottom: 6px;
}

.form-box .subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 24px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ccc;
}

.form-group input {
    width: 100%;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 40px !important;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: #888;
    width: auto;
    height: auto;
    margin: 0;
}

.password-toggle:hover {
    color: #fff;
    background: none;
}

.form-footer {
    text-align: center;
    margin-top: 16px;
    color: #aaa;
    font-size: 14px;
}

.form-footer a {
    color: #fff;
    text-decoration: underline;
}

.form-footer a:hover {
    color: #ff69b4;
}

/* ── Home page ───────────────────────────────────────────────────────── */

.home-hero {
    text-align: center;
    max-width: 600px;
    margin: 80px auto;
    padding: 0 20px;
}

.home-hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 10px;
    white-space: nowrap;
}

.home-hero .tagline {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.home-hero .cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-hero .cta-buttons .btn {
    min-width: 130px;
    font-size: 18px;
    padding: 12px 28px;
}

/* ── Dashboard ───────────────────────────────────────────────────────── */

.dashboard {
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.party-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.party-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s;
    gap: 10px;
}

.party-card:hover {
    border-color: #ff69b4;
}

.party-card-info .party-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.party-card-info .party-meta {
    color: #aaa;
    font-size: 13px;
}

.party-roles {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.role-badge {
    background: #222;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 12px;
    white-space: nowrap;
}

.role-badge.admin {
    border-color: #e91e8a;
    color: #e91e8a;
}

.empty-state {
    text-align: center;
    color: #555;
    padding: 40px 0;
}

/* ── Party page ──────────────────────────────────────────────────────── */

.party-page {
    max-width: 640px;
    margin: 0 auto;
}

.party-page-header {
    margin-bottom: 30px;
}

.party-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.party-title-row h1 {
    margin: 0;
    font-size: clamp(1.4rem, 5vw, 2rem);
}

.party-date-row {
    color: #aaa;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-block {
    margin-bottom: 20px;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 16px 20px;
}

.section-collapsible {
    user-select: none;
}

.section-chevron {
    display: inline-block;
    font-size: 18px;
    color: #888;
    margin-right: 0;
    transition: transform 0.2s;
    cursor: pointer;
    padding: 4px;
}

.section-chevron:hover {
    color: #e91e8a;
}

.section-collapsed .section-chevron {
    transform: rotate(-90deg);
}

.section-collapsed + .section-body {
    display: none;
}

.section-collapsed {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-body {
    padding-left: 20px;
}

.subsection {
    margin-top: 28px;
}

.subsection:first-child {
    margin-top: 12px;
}

.subsection-title {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 6px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
    margin-bottom: 0;
    gap: 8px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin: 0;
}

.add-role-btn {
    background: none;
    border: 1px solid #333;
    color: #aaa;
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.add-role-btn:hover {
    border-color: #e91e8a;
    color: #e91e8a;
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #000;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #222;
}

.delete-party-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.delete-party-box {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
}

.day-of-info-content {
    font-size: 14px;
    color: #ddd;
    line-height: 1.5;
}

.day-of-info-content a {
    color: #e91e8a;
    text-decoration: underline;
}

.day-of-info-content h3 {
    font-size: 18px;
    margin: 6px 0 4px;
    color: #fff;
}

.day-of-info-content p {
    margin: 0;
}

.day-of-info-content ul, .day-of-info-content ol {
    margin: 4px 0;
    padding-left: 20px;
}

.day-of-info-editable {
    min-height: 80px;
    padding: 10px;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
}

.day-of-info-editable:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.3);
}

.day-of-info-editable a {
    color: #e91e8a;
    text-decoration: underline;
}

.day-of-info-editable h3 {
    font-size: 18px;
    margin: 6px 0 4px;
}

.day-of-info-editable p {
    margin: 0;
}

.day-of-info-editable ul, .day-of-info-editable ol {
    margin: 4px 0;
    padding-left: 20px;
}

.call-times-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.call-time-item {
    padding: 4px 0;
}

@media (max-width: 600px) {
    .call-times-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.performer-type-tag {
    display: inline-block;
    font-size: 12px;
    color: #e91e8a;
    background: rgba(233, 30, 138, 0.1);
    border: 1px solid rgba(233, 30, 138, 0.3);
    border-radius: 10px;
    padding: 1px 8px;
    margin-left: 6px;
}

.member-row.drag-over {
    border-color: #e91e8a;
    box-shadow: 0 0 6px rgba(233, 30, 138, 0.4);
}

.member-row[draggable="true"] {
    cursor: grab;
}

.member-row[draggable="true"]:active {
    cursor: grabbing;
}

.member-link-status {
    font-size: 11px;
    border-radius: 8px;
    padding: 1px 8px;
    flex-shrink: 0;
    align-self: center;
}

.member-link-status.linked {
    color: #66bb6a;
    background: #1b3a2d;
}

.member-link-status.manual {
    color: #cca854;
    background: #3a2f1b;
}

.member-row-self {
    border-color: rgba(233, 30, 138, 0.4);
    animation: self-row-glow 3s ease-in-out infinite;
    position: relative;
    overflow: visible;
}

.member-row-self .sparkle {
    display: block;
}

@keyframes self-row-glow {
    0%, 100% { box-shadow: 0 0 4px rgba(233, 30, 138, 0.2); }
    50% { box-shadow: 0 0 10px rgba(233, 30, 138, 0.5); }
}

.member-row .member-name {
    font-size: 15px;
}

.member-row .member-role {
    font-size: 12px;
    color: #888;
}

.member-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-headline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-instagram {
    font-size: 12px;
    color: #e1306c;
    text-decoration: none;
}

.member-instagram:hover {
    text-decoration: underline;
}

.member-details {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-phone {
    font-size: 12px;
    color: #ddd;
}

.member-collections {
    margin-top: 6px;
}

/* Member detail lightbox */
.member-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    cursor: pointer;
    padding: 20px;
    overflow-y: auto;
}

.member-lightbox {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    cursor: default;
    position: relative;
}

.member-lightbox-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.member-lightbox-close:hover {
    color: #fff;
}

.member-lightbox h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.member-lightbox .lb-instagram {
    color: #e1306c;
    text-decoration: none;
    font-size: 14px;
}

.member-lightbox .lb-instagram:hover {
    text-decoration: underline;
}

.member-lightbox .lb-phone {
    font-size: 14px;
    color: #ddd;
    margin-top: 6px;
}

.member-lightbox .lb-set-info {
    font-size: 14px;
    color: #ddd;
    margin-top: 6px;
}

.lb-contact-row > .lb-field-view {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lb-contact-sep {
    color: #555;
}

.lb-copy-btn {
    font-size: 11px;
    background: none;
    color: #ddd;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 1px 8px;
    cursor: pointer;
    margin-left: 4px;
}

.lb-copy-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #666;
}

.member-lightbox .lb-collections {
    margin-top: 8px;
}

.lb-field {
    margin-top: 6px;
}

.lb-empty {
    font-size: 13px;
    color: #999;
}

.lb-field-edit label {
    display: block;
    font-size: 12px;
    color: #ddd;
    margin-bottom: 2px;
}

.lb-section {
    background: #111;
    border-radius: 8px;
    padding: 10px 12px;
}

.lb-section-header {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lb-section-chevron {
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s;
    color: #888;
}

.lb-section-chevron:hover {
    color: #e91e8a;
}

.lb-section-chevron.collapsed {
    transform: rotate(-90deg);
}

.lb-section-body {
    margin-top: 8px;
    border-top: 2px solid #333;
    padding-top: 8px;
}

.lb-account-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.lb-account-claimed {
    background: #1b3a2d;
    color: #66bb6a;
    border: 1px solid #2e5e3f;
}

.lb-account-manual {
    background: #3a2f1b;
    color: #cca854;
    border: 1px solid #5e4a2e;
}

.lb-pencil {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
    margin-left: 6px;
    display: none;
}

.lb-pencil:hover {
    color: #e91e8a;
}

.member-lightbox.edit-mode .lb-pencil:not(.lb-pay-pencil) {
    display: inline-block;
}

.lb-payment.pay-edit-mode .lb-pay-pencil {
    display: inline-block;
}

#general-info-body.general-edit-mode .gi-pencil {
    display: inline-block;
}

.lb-inline-field {
    margin-top: 6px;
}

.lb-inline-view {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    min-height: 24px;
}

.lb-inline-edit {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    align-items: center;
}

.lb-inline-edit > .input-with-prefix,
.lb-inline-edit > input[type="text"],
.lb-inline-edit > input[type="tel"] {
    width: 100%;
    flex-basis: 100%;
}

.lb-input {
    width: 100%;
    font-size: 14px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #000;
    box-sizing: border-box;
}

.lb-input::placeholder {
    color: #666;
}

.photo-collection {
    margin-bottom: 12px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 12px 14px;
}

.collection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
    position: relative;
}

.collection-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.collection-download-btn {
    font-size: 11px;
    background: none;
    color: #ddd;
    border: 1px solid #444;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
}

.collection-download-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #666;
}

.collection-name-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.collection-name {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
}

.collection-rename-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    line-height: 1;
}

.collection-rename-btn:hover {
    color: #fff;
}

.collection-rename-input {
    font-size: 12px;
    padding: 2px 6px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #111;
    color: #fff;
}

.collection-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
    max-height: 258px;
    overflow-y: auto;
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 8px;
}

.collection-photos::-webkit-scrollbar {
    width: 6px;
}

.collection-photos::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.collection-photos::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.collection-photos::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.photo-thumb-wrap {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.dup-msg-wrap {
    flex-basis: 100%;
}

.dup-msg {
    display: inline-block;
    background: #000;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
}

.photo-dup-pulse {
    animation: dup-pulse 1.6s ease-in-out 3;
}

@keyframes dup-pulse {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 8px 2px rgba(233, 30, 138, 0.8); }
}

.photo-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.video-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    pointer-events: none;
}

.collection-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

.collection-photo:hover {
    opacity: 0.8;
}

.photo-delete-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 14px;
    line-height: 1;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.photo-thumb-wrap:hover .photo-delete-btn {
    display: flex;
}

.collection-delete-btn {
    font-size: 11px;
    background: none;
    color: #e44;
    border: 1px solid #e44;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
}

.collection-delete-btn:hover {
    background: rgba(238, 68, 68, 0.15);
    color: #ff5555;
    border-color: #ff5555;
}

.delete-confirm {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 13px;
    color: #fff;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px 12px;
    z-index: 10;
    white-space: nowrap;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.btn-xs {
    font-size: 11px;
    padding: 2px 8px;
}

.add-photo-row, .new-collection-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.add-photo-row input, .new-collection-row input {
    flex: 1;
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #1a1a1a;
    color: #fff;
}

.new-collection-error {
    font-size: 12px;
    color: #ff4444;
}

.add-photo-row input::placeholder, .new-collection-row input::placeholder {
    color: #ccc;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
}

.lightbox-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: default;
}

.lightbox-img {
    max-width: 80vw;
    max-height: 75vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-caption {
    color: #fff;
    font-size: 15px;
    text-align: center;
    margin-top: 8px;
}

.lightbox-caption-edit {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
}

.lightbox-caption-input {
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    width: 250px;
    max-width: 60vw;
}

.lightbox-caption-input::placeholder {
    color: #888;
}

.lightbox-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.lightbox-action-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}

.lightbox-action-btn:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-delete-btn {
    background: rgba(238, 68, 68, 0.3);
}

.lightbox-delete-btn:hover {
    background: rgba(238, 68, 68, 0.5);
}

.lightbox-close-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 36px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-counter {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.dj-set-info {
    font-size: 12px;
    color: #ddd;
}

.dj-edit-btn {
    flex-shrink: 0;
    font-size: 11px;
    padding: 3px 8px;
}

.empty-section {
    color: #444;
    font-size: 14px;
    font-style: italic;
    padding: 4px 12px;
}

/* ── Modal ───────────────────────────────────────────────────────────── */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-box {
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #888;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

/* ── Inline edit ─────────────────────────────────────────────────────── */

.edit-inline {
    display: none;
    align-items: center;
    gap: 6px;
}

.edit-inline input {
    padding: 4px 8px;
    font-size: inherit;
    border-radius: 4px;
}

/* ── Nav bar ─────────────────────────────────────────────────────────── */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #1a1a1a;
    flex-wrap: wrap;
    gap: 10px;
}

.navbar .site-name {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
}

.navbar .site-name:hover {
    color: #ff69b4;
}

.navbar .nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.navbar .nav-right a {
    color: #aaa;
    text-decoration: none;
}

.navbar .nav-right a:hover {
    color: #fff;
}

/* ── Join prompt ─────────────────────────────────────────────────────── */

.join-box {
    max-width: 420px;
    margin: 80px auto;
    text-align: center;
    padding: 0 20px;
}

.join-box h1 {
    margin-bottom: 8px;
}

.join-box .join-sub {
    color: #aaa;
    margin-bottom: 30px;
}

.join-box .join-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 500px) {
    .party-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .invite-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .invite-row .invite-url {
        width: 100%;
    }
}
