:root {
    --bg-overlay: rgba(25, 10, 40, 0.85);
    --card-bg: rgba(45, 20, 75, 0.6);
    --accent-purple: #9d4edd;
    --light-purple: #e0aaff;
    --text-main: #ffffff;
    --text-muted: #c77dff;
    --button-disabled: #3c165a;
    --button-enabled: #7b2cbf;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), 
                      url('lily.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: backgroundFloat 20s ease-in-out infinite;
}

body.photobooth-mode {
    overflow-y: auto;
    align-items: flex-start;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.14), transparent 16%),
                radial-gradient(circle at 80% 25%, rgba(157,78,221,0.18), transparent 20%),
                radial-gradient(circle at 50% 80%, rgba(255,182,193,0.12), transparent 22%);
    pointer-events: none;
    opacity: 0.95;
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.75;
    z-index: 0;
}

.container {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42);
    position: relative;
    z-index: 10;
    animation: cardRise 0.85s ease-out forwards;
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.password-box {
    margin-bottom: 1.5rem;
    text-align: left;
}

.password-box label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.password-input {
    width: 100%;
    padding: 1rem;
    background: rgba(20, 10, 35, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.password-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.3);
}

.unlock-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    color: #ffffff;
    background-color: var(--button-enabled);
    box-shadow: 0 10px 28px rgba(123, 44, 191, 0.38);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
    animation: buttonGlow 3.5s ease-in-out infinite;
}

.unlock-btn:hover:not(:disabled) {
    background-color: var(--accent-purple);
    transform: translateY(-2px) scale(1.005);
    box-shadow: 0 16px 34px rgba(157, 78, 221, 0.48);
}

.unlock-btn:active:not(:disabled) {
    transform: translateY(0);
}

.photobooth-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    cursor: pointer;
    color: #fff;
    background: rgba(123, 44, 191, 0.95);
    box-shadow: 0 12px 30px rgba(123, 44, 191, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.photobooth-btn:hover {
    background: linear-gradient(135deg, #8d3bfe, #ca8cff);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(157, 78, 221, 0.42);
}

.unlock-btn:disabled {
    background-color: var(--button-disabled);
    cursor: not-allowed;
    box-shadow: none;
}

.social-media {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.social-icon {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--light-purple);
    transform: translateY(-3px);
}

.photo-album-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.photo-paper {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    padding: 10px 10px 30px 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    border-radius: 8px;
    width: 130px;
    height: 160px;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(0) rotate(var(--initial-rot, 0deg));
    animation: photoEntrance 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards, floatDrift 9s ease-in-out infinite 1.6s;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

.photo-wrapper {
    width: 100%;
    height: 110px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.photo-paper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(1) hue-rotate(250deg) saturate(2) contrast(0.9) blur(4px);
    transition: filter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.photo-paper:hover {
    transform: scale(1.15) rotate(0deg) translateY(-8px) !important;
    z-index: 50 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.photo-paper:hover img {
    filter: blur(0px);
}

.photo-note {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: #190a28;
    font-weight: 600;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-1  { top: 5%;   left: 3%;   --initial-rot: -5deg;  animation-delay: 0.1s;   z-index: 2; }
.photo-2  { top: 40%;  left: 3%;   --initial-rot: 5deg;   animation-delay: 0.3s;   z-index: 3; }
.photo-3  { bottom: 5%;left: 3%;   --initial-rot: -3deg;  animation-delay: 0.5s;   z-index: 2; }
.photo-4  { top: 22%;  left: 17%;  --initial-rot: 4deg;   animation-delay: 0.2s;   z-index: 1; }
.photo-5  { bottom: 22%; left: 17%; --initial-rot: -4deg;  animation-delay: 0.4s;   z-index: 1; }

.photo-6  { top: 5%;   right: 3%;  left: auto; --initial-rot: 5deg;   animation-delay: 0.15s;  z-index: 2; }
.photo-7  { top: 40%;  right: 3%;  left: auto; --initial-rot: -5deg;  animation-delay: 0.35s;  z-index: 3; }
.photo-8  { bottom: 5%;right: 3%;  left: auto; --initial-rot: 3deg;   animation-delay: 0.55s;  z-index: 2; }
.photo-9  { top: 22%;  right: 17%; left: auto; --initial-rot: -4deg;  animation-delay: 0.25s;  z-index: 1; }
.photo-10 { bottom: 22%; right: 17%; left: auto; --initial-rot: 4deg;   animation-delay: 0.45s;  z-index: 1; }

@keyframes photoEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.92) rotate(var(--initial-rot, 0deg));
        filter: blur(16px) contrast(1.4) saturate(0);
    }
    50% {
        opacity: 0.6;
        filter: blur(8px) contrast(1.2) saturate(0.6);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(var(--initial-rot, 0deg));
        filter: blur(0px) contrast(1) saturate(1);
    }
}

@keyframes floatDrift {
    0% {
        transform: translateY(0) rotate(var(--initial-rot, 0deg));
    }
    50% {
        transform: translateY(-8px) rotate(calc(var(--initial-rot, 0deg) + 1deg));
    }
    100% {
        transform: translateY(0) rotate(var(--initial-rot, 0deg));
    }
}

@keyframes backgroundFloat {
    0%, 100% {
        background-position: center center;
    }
    50% {
        background-position: 48% 52%;
    }
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(123, 44, 191, 0.4);
    }
    50% {
        box-shadow: 0 14px 40px rgba(157, 78, 221, 0.45);
    }
}

@media (max-width: 768px) {
    .photo-paper {
        width: 80px;
        height: 100px;
        padding: 5px 5px 15px 5px;
    }
    .photo-wrapper {
        height: 65px;
    }
    .photo-note {
        font-size: 0.5rem;
        margin-top: 3px;
    }
}

.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 5, 25, 0.95);
    z-index: 100;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.preview-modal.show {
    display: flex;
    opacity: 1;
}

.modal-paper {
    background: var(--light-purple);
    padding: 20px 20px 60px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

.modal-wrapper {
    width: 100%;
    height: auto;
    max-height: 70vh;
    overflow: hidden;
    background: #000;
}

.modal-paper img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.modal-note {
    font-size: 1.2rem;
    color: #190a28;
    font-weight: 700;
    margin-top: 15px;
    text-align: center;
    word-break: break-word;
}

.photobooth-page {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(var(--bg-overlay), rgba(25, 10, 40, 0.98)), url('lily.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 5rem 1rem 3rem;
    position: relative;
    animation: pageFadeIn 0.85s ease-out;
}

.top-bar {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.16);
    transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.28);
    transform: translateX(-2px);
}

.booth-panel {
    width: 100%;
    max-width: 760px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    z-index: 10;
    margin: 0 auto;
}

.card {
    background: rgba(18, 8, 45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
    border-radius: 28px;
    backdrop-filter: blur(24px);
    padding: 1.4rem;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    animation: cardRise 0.8s ease forwards;
}

.camera-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.camera-frame {
    width: 100%;
    aspect-ratio: 2 / 3;
    min-height: 300px;
    max-height: 520px;
    background: #08020f;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(255,255,255,0.16);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 26px 70px rgba(0, 0, 0, 0.35);
}

.camera-frame::before {
    content: none;
}

.camera-panel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.camera-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.24));
}

.guideline-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.guideline-head,
.guideline-body,
.guideline-foot {
    border: 2px dashed rgba(255, 255, 255, 0.75);
    border-radius: 24px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 20px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(1px);
}

.guideline-head {
    width: 78%;
    height: 24%;
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: -2px;
}

.guideline-body {
    width: 78%;
    height: 38%;
    border-top: none;
    border-bottom: none;
    border-radius: 0;
}

.guideline-foot {
    width: 78%;
    height: 24%;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: -2px;
}

.countdown-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    text-shadow: 0 0 35px rgba(0,0,0,0.7);
    background: rgba(0, 0, 0, 0.36);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.countdown-overlay.visible {
    opacity: 1;
    transform: scale(1);
}

.controls {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.9rem;
}

.photo-btn,
.download-btn,
.secondary-btn {
    width: 100%;
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #8f3afc, #d78cff);
    box-shadow: 0 18px 45px rgba(123, 44, 191, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, background-color 0.22s ease;
    animation: buttonGlow 4s ease-in-out infinite alternate;
}

.secondary-btn {
    background: rgba(255,255,255,0.12);
    color: #fff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255,255,255,0.16);
    animation: none;
}

.photo-btn:hover:not(:disabled),
.download-btn:hover:not(:disabled),
.secondary-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 24px 60px rgba(123, 44, 191, 0.32);
    filter: saturate(1.1);
}

.photo-btn:active,
.download-btn:active,
.secondary-btn:active {
    transform: translateY(0) scale(0.98);
}

.photo-btn:disabled,
.download-btn:disabled,
.secondary-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.filter-row,
.background-upload {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(28, 12, 96, 0.95), rgba(64, 21, 152, 0.92));
    border: 1px solid rgba(147, 79, 255, 0.32);
    border-radius: 24px;
    padding: 0.9rem 1rem;
    box-shadow: 0 20px 45px rgba(17, 6, 52, 0.24);
}

.filter-row label,
.background-upload label {
    font-size: 0.95rem;
    color: #f3ecff;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.option-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 1;
}

.pill-btn {
    min-width: 48px;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #f5e9ff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.pill-btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.14);
}

.pill-btn.active {
    background: linear-gradient(135deg, #8f3afc, #d78cff);
    border-color: rgba(255,255,255,0.36);
    box-shadow: 0 12px 28px rgba(123, 44, 191, 0.24);
}

.filter-row select,
.background-upload input {
    width: auto;
    min-width: 170px;
    flex: 1;
    padding: 0.95rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(5, 4, 25, 0.98);
    color: #fff;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.8rem;
}

.filter-row select:focus,
.background-upload input:focus {
    border-color: rgba(157, 78, 221, 0.95);
    box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.18);
    background: rgba(12, 7, 40, 0.98);
}

.filter-row select {
    min-height: 50px;
}

.filter-row select:focus,
.background-upload input:focus {
    border-color: rgba(157, 78, 221, 0.75);
    box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.14);
}

.note-text {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.result-panel h2 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.print-layout {
    background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.14) 30%), url('photobooth-bg.jpg') center/cover no-repeat;
    background-blend-mode: normal;
    border-radius: 20px;
    padding: 0;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 600 / 1800;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 28px 90px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    justify-content: flex-start;
}

.print-layout::before,
.print-layout::after {
    content: none;
}

.strip-logo {
    width: 100%;
    max-width: 320px;
    min-height: 96px;
    border-radius: 12px;
    background: transparent;
    color: transparent;
    pointer-events: none;
}

.result-frame {
    width: 100%;
    aspect-ratio: 520 / 390;
    background: transparent;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.25s ease;
}


.result-frame:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.result-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    background: transparent;
}

.result-frame img:not([src=""]) {
    display: block;
}

@media (max-width: 720px) {
    .print-layout {
        max-width: 320px;
        width: 100%;
        aspect-ratio: 600 / 1800;
        min-height: auto;
        padding: 0;
    }

    .result-frame {
        width: 100%;
        aspect-ratio: 520 / 390;
        min-height: auto;
    }
}

.download-area {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.download-area .secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
}

@media (max-width: 1024px) {
    .booth-panel {
        grid-template-columns: 1fr;
    }

    .print-layout {
        min-height: 360px;
    }
}

@media (max-width: 720px) {
    .photobooth-page {
        padding: 0.9rem 0.75rem 1.5rem;
        align-items: flex-start;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .card {
        padding: 1rem;
        border-radius: 22px;
    }

    .camera-frame {
        min-height: 220px;
        aspect-ratio: 3 / 4;
    }

    .print-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .result-frame {
        min-height: 200px;
    }

    .photo-btn,
    .download-btn {
        font-size: 0.97rem;
        padding: 0.95rem 1rem;
    }
}

@keyframes pageFadeIn {
    0% { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes cardRise {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Jobs message modal + button */
.message-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-size: 1.02rem;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #8f3afc, #d78cff);
    box-shadow: 0 12px 30px rgba(123, 44, 191, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(157, 78, 221, 0.42);
}

.message-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 5, 25, 0.9);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.message-modal-paper {
    width: 100%;
    max-width: 520px;
    background: rgba(224, 170, 255, 0.2);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 28px 90px rgba(0,0,0,0.45);
    overflow: hidden;
}

.message-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(143, 58, 252, 0.55), rgba(215, 140, 255, 0.35));
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.message-modal-header h2 {
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
}

.message-close {
    border: none;
    background: rgba(255,255,255,0.14);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.message-close:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.22);
}

.message-form {
    padding: 1.1rem 1.2rem 1.2rem;
    display: grid;
    gap: 0.75rem;
}

.message-label {
    text-align: left;
    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.02em;
}

.message-form input,
.message-form textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(5, 4, 25, 0.92);
    color: #fff;
    outline: none;
    font-family: inherit;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.message-form textarea {
    min-height: 120px;
    resize: vertical;
}

.message-form input:focus,
.message-form textarea:focus {
    border-color: rgba(157, 78, 221, 0.95);
    box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.18);
}

.message-submit {
    width: 100%;
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #8f3afc, #d78cff);
    box-shadow: 0 18px 45px rgba(123, 44, 191, 0.28);
    transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.message-submit:hover {
    transform: translateY(-2px);
    filter: saturate(1.15);
}

.message-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.message-hint {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    text-align: left;
}









