@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
    --primary: #6c63ff;
    --primary-dark: #5148e5;
    --secondary: #ff7ac8;
    --accent: #74d4ff;
    --yellow: #ffe27a;
    --dark: #171827;
    --muted: #73778c;
    --soft: #f7f7ff;
    --white: #ffffff;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --shadow-soft: 0 24px 70px rgba(76, 72, 140, 0.14);
    --shadow-card: 0 18px 45px rgba(76, 72, 140, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

body {
    min-height: 100vh;
    color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 122, 200, 0.26), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(116, 212, 255, 0.32), transparent 30%),
        radial-gradient(circle at 50% 92%, rgba(255, 226, 122, 0.28), transparent 35%),
        linear-gradient(135deg, #fbfbff 0%, #f4f2ff 45%, #eefaff 100%);
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    z-index: -1;
    opacity: 0.6;
    filter: blur(2px);
}

body::before {
    width: 180px;
    height: 180px;
    left: -50px;
    top: 110px;
    background: linear-gradient(135deg, rgba(255, 122, 200, 0.45), rgba(255, 226, 122, 0.35));
}

body::after {
    width: 220px;
    height: 220px;
    right: -70px;
    bottom: 80px;
    background: linear-gradient(135deg, rgba(116, 212, 255, 0.45), rgba(108, 99, 255, 0.28));
}

.container {
    width: 100%;
    max-width: 1180px;
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: 38px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(22px);
}

.container::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.65), transparent 35%, rgba(255, 255, 255, 0.45)),
        radial-gradient(circle at 100% 0%, rgba(108, 99, 255, 0.08), transparent 35%);
    pointer-events: none;
}

.container::after {
    content: "POSESNAP";
    position: absolute;
    right: -10px;
    top: 14px;
    font-size: 78px;
    font-weight: 800;
    letter-spacing: -4px;
    color: rgba(108, 99, 255, 0.045);
    pointer-events: none;
}

.header {
    position: relative;
    text-align: center;
    margin-bottom: 34px;
    z-index: 1;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.header h1 {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), #23b8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(108, 99, 255, 0.15);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 0 4px 12px rgba(76, 72, 140, 0.06);
}

.back-link:hover {
    background: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.12);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

.header p {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(108, 99, 255, 0.13);
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(76, 72, 140, 0.08);
}

.header p svg {
    width: 17px;
    height: 17px;
    color: var(--primary);
}

.photobooth {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.camera-card,
.result-card {
    padding: 22px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.camera-card {
    position: relative;
}

.result-card {
    display: flex;
    flex-direction: column;
}

.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.card-heading h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.card-heading p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.live-pill {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    font-size: 12px;
    font-weight: 800;
}

.camera-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 28px;
    background:
        radial-gradient(circle at center, rgba(108, 99, 255, 0.18), transparent 35%),
        linear-gradient(135deg, #111321, #23264b);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 20px 45px rgba(23, 24, 39, 0.18);
}

.camera-box::before {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: 2;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

.camera-box::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.08)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 24%, transparent 78%, rgba(0, 0, 0, 0.18));
}

video,
canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

video {
    transform: scaleX(-1);
}

#canvas {
    display: none;
}

.expression-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 36px);
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--dark);
    font-size: 14px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 35px rgba(23, 24, 39, 0.16);
    backdrop-filter: blur(12px);
}

.countdown {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: clamp(76px, 12vw, 132px);
    font-weight: 800;
    color: white;
    background: rgba(23, 24, 39, 0.34);
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(6px);
}

.expression-list {
    display: grid;
    gap: 12px;
}

.live-expression {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 18px;
}

.expression-item {
    position: relative;
    padding: 13px;
    border-radius: 22px;
    background: rgba(247, 247, 255, 0.75);
    border: 1px solid rgba(108, 99, 255, 0.09);
    transition: 0.22s ease;
}

.expression-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 30px rgba(76, 72, 140, 0.08);
}

.expression-item strong {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 13px;
    font-weight: 800;
}

.expr-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.expr-title svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.bar {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(108, 99, 255, 0.09);
}

.bar-fill {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    transition: width 0.32s ease;
}

button {
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.1px;
    transition: 0.22s ease;
    box-shadow: 0 14px 30px rgba(76, 72, 140, 0.13);
}

button svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

button:hover {
    transform: translateY(-3px);
    filter: brightness(1.02);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(76, 72, 140, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #30b8ff);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #fff2a3, #ffb86c);
    color: #51351a;
}

.btn-danger {
    background: #fff0f3;
    color: #dc3158;
    border: 1px solid rgba(220, 49, 88, 0.12);
}

.btn-danger-sm {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 20px;
    line-height: 1;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-danger-sm:hover {
    background-color: #fee2e2;
    transform: none;
    filter: none;
}

.clear-history-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff0f3;
    color: #dc3158;
    border: 1px solid rgba(220, 49, 88, 0.15);
}

.clear-history-btn svg {
    width: 14px;
    height: 14px;
}

.controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.download-btn {
    width: 100%;
}

.status-box,
.template-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.bias-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 122, 200, 0.2);
    background: linear-gradient(135deg, rgba(255, 245, 252, 0.95), rgba(247, 247, 255, 0.9));
}

.bias-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.bias-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(108, 99, 255, 0.12);
    box-shadow: none;
    text-align: left;
    cursor: pointer;
    transition: 0.22s ease;
}

.bias-option:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(76, 72, 140, 0.1);
}

.bias-option.active {
    background: rgba(255, 122, 200, 0.12);
    border-color: rgba(255, 122, 200, 0.5);
    box-shadow: 0 12px 28px rgba(255, 122, 200, 0.18);
}

.bias-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #f1f5f9;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.bias-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bias-avatar-none {
    color: #94a3b8;
    background: #f8fafc;
}

.bias-avatar-nct {
    background: linear-gradient(135deg, #ccff00, #10b981);
}

.bias-avatar-bts {
    background: linear-gradient(135deg, #e9d5ff, #a855f7);
}

.bias-avatar-exo {
    background: linear-gradient(135deg, #bae6fd, #0284c7);
}

.bias-avatar-custom {
    background: #fef08a;
    color: #b45309;
}

.bias-upload-option {
    border-style: dashed;
    border-color: rgba(108, 99, 255, 0.25);
}

.bias-option strong {
    display: block;
    margin-bottom: 2px;
    color: var(--dark);
    font-size: 12px;
    font-weight: 800;
}

.bias-option small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

/* Real-Time Live Camera Bias Overlay */
.bias-overlay-container {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 48%;
    height: 90%;
    z-index: 3;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.bias-overlay-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
    animation: biasFloat 4s ease-in-out infinite alternate;
}

@keyframes biasFloat {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-5px) scale(1.01);
    }
}

.status-box {
    background: linear-gradient(135deg, rgba(247, 247, 255, 0.98), rgba(255, 255, 255, 0.88));
}

.template-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 247, 255, 0.9));
}

.status-box h3,
.template-heading h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.status-box h3 svg,
.template-heading h3 svg {
    width: 19px;
    height: 19px;
    color: var(--primary);
}

.status-box p,
.template-heading p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
    font-weight: 500;
}

.template-heading {
    margin-bottom: 14px;
}

.template-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.template-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(247, 247, 255, 0.75);
    border: 1px solid rgba(108, 99, 255, 0.1);
    box-shadow: none;
    text-align: left;
    cursor: pointer;
    transition: 0.25s ease;
}

.template-option::before {
    content: "";
}

.template-option:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 30px rgba(76, 72, 140, 0.1);
}

.template-option.active {
    background: rgba(108, 99, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.35);
    box-shadow: 0 14px 34px rgba(108, 99, 255, 0.13);
}

.template-option strong {
    display: block;
    margin-bottom: 3px;
    color: var(--dark);
    font-size: 13px;
    font-weight: 800;
}

.template-option small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.template-preview {
    width: 42px;
    min-width: 42px;
    height: 58px;
    padding: 5px;
    border-radius: 12px;
    display: grid;
    gap: 4px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.template-preview span {
    display: block;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
}

.template-cute {
    background:
        radial-gradient(circle at top left, rgba(255, 122, 200, 0.35), transparent 45%),
        linear-gradient(180deg, #ffffff, #fff0f8);
    border: 1px solid rgba(255, 122, 200, 0.25);
}

.template-starlove {
    background:
        radial-gradient(circle at top right, rgba(255, 196, 235, 0.45), transparent 45%),
        linear-gradient(180deg, #fff7fb, #ffeefa);
    border: 1px solid rgba(255, 134, 198, 0.25);
}

.template-sakura {
    background:
        radial-gradient(circle at top left, rgba(255, 176, 209, 0.35), transparent 45%),
        linear-gradient(180deg, #fffdfd, #fff4f7);
    border: 1px solid rgba(245, 160, 190, 0.25);
}

.template-moonlight {
    background:
        radial-gradient(circle at top right, rgba(174, 162, 255, 0.38), transparent 45%),
        linear-gradient(180deg, #faf8ff, #f2eeff);
    border: 1px solid rgba(140, 120, 255, 0.25);
}

.template-y2k {
    background:
        radial-gradient(circle at top left, rgba(164, 235, 255, 0.4), transparent 45%),
        linear-gradient(180deg, #ffffff, #eefcff);
    border: 1px solid rgba(97, 203, 255, 0.25);
}

.template-noir {
    background: linear-gradient(180deg, #27242d, #121116);
    border: 1px solid rgba(255, 122, 200, 0.28);
}

.template-bloom {
    background:
        radial-gradient(circle at top left, rgba(170, 255, 210, 0.35), transparent 45%),
        linear-gradient(180deg, #ffffff, #effff7);
    border: 1px solid rgba(89, 197, 146, 0.25);
}

.template-chrome {
    background: linear-gradient(180deg, #ffffff, #ececf4);
    border: 1px solid rgba(160, 160, 180, 0.35);
}

.template-midnight {
    background:
        radial-gradient(circle at top right, rgba(116, 212, 255, 0.18), transparent 40%),
        linear-gradient(180deg, #1d2235, #101422);
    border: 1px solid rgba(116, 212, 255, 0.25);
}

.template-daisy {
    background:
        radial-gradient(circle at top left, rgba(255, 214, 112, 0.35), transparent 45%),
        linear-gradient(180deg, #fffdf7, #fff7df);
    border: 1px solid rgba(255, 193, 7, 0.28);
}

.preview-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.09), rgba(255, 122, 200, 0.12)), #ffffff;
    color: var(--muted);
    text-align: center;
    font-weight: 700;
    border: 1px solid rgba(108, 99, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.86);
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    padding: 20px;
}

.preview-placeholder svg {
    width: 42px;
    height: 42px;
    opacity: 0.55;
    color: var(--primary);
}

.preview-placeholder span {
    font-size: 14px;
    font-weight: 600;
}

.preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.strip-area {
    padding: 16px;
    border-radius: 26px;
    background: rgba(247, 247, 255, 0.75);
    border: 1px solid rgba(108, 99, 255, 0.08);
    margin-bottom: 18px;
}

.strip-info {
    text-align: center;
    margin-bottom: 14px;
}

.strip-info h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 5px;
}

.strip-info p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 500;
}

.photo-strip {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #f7f7ff);
    border: 1px solid rgba(108, 99, 255, 0.12);
    box-shadow: 0 18px 45px rgba(76, 72, 140, 0.13);
    display: grid;
    gap: 10px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.photo-strip::before,
.photo-strip::after {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 0;
    letter-spacing: 8px;
    opacity: 0.95;
}

.photo-strip::before {
    top: 10px;
    font-size: 18px;
}

.photo-strip::after {
    bottom: 10px;
    font-size: 16px;
}

.strip-title,
.strip-footer,
.strip-slot {
    position: relative;
    z-index: 1;
}

.strip-title {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 4px 0;
}

.strip-footer {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 0;
}

.strip-slot {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(45, 44, 78, 0.08);
}

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

.retake-btn {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    box-shadow: none;
}

.retake-btn:hover {
    transform: none;
    filter: none;
    opacity: 1;
}

.strip-slot:hover .retake-btn {
    opacity: 1;
}

.retake-btn svg {
    width: 15px;
    height: 15px;
    margin-right: 6px;
}

.photo-strip.cute {
    background:
        radial-gradient(circle at top left, rgba(255, 122, 200, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 190, 220, 0.15), transparent 32%),
        linear-gradient(180deg, #fffefe, #fff4fb);
}

.photo-strip.cute::before {
    content: "✦ · ✧ · ✦";
}

.photo-strip.cute::after {
    content: "✧ · ✦ · ✧";
}

.photo-strip.cute .strip-title {
    color: #ff5cad;
}

.photo-strip.cute .strip-slot {
    background: linear-gradient(135deg, rgba(255, 122, 200, 0.10), rgba(255, 205, 228, 0.18)), #ffffff;
    border: 1px dashed rgba(255, 92, 173, 0.28);
}

.photo-strip.cute .strip-footer {
    color: #cc4b90;
}

.photo-strip.starlove {
    background:
        radial-gradient(circle at top right, rgba(255, 176, 226, 0.22), transparent 36%),
        linear-gradient(180deg, #fffdfd, #fff0f8);
}

.photo-strip.starlove::before {
    content: "✧ · ✦ · ✧";
}

.photo-strip.starlove::after {
    content: "✦ · ✧ · ✦";
}

.photo-strip.starlove .strip-title {
    color: #f04ca2;
}

.photo-strip.starlove .strip-slot {
    background: linear-gradient(135deg, rgba(255, 171, 214, 0.12), rgba(255, 244, 250, 0.18)), #ffffff;
    border: 1px dashed rgba(240, 76, 162, 0.28);
}

.photo-strip.starlove .strip-footer {
    color: #d04b8f;
}

.photo-strip.sakura {
    background:
        radial-gradient(circle at top left, rgba(255, 193, 205, 0.22), transparent 36%),
        radial-gradient(circle at bottom right, rgba(229, 255, 239, 0.20), transparent 36%),
        linear-gradient(180deg, #fffefe, #fff7f9);
}

.photo-strip.sakura::before {
    content: "✦ · ✿ · ✦";
}

.photo-strip.sakura::after {
    content: "✿ · ✦ · ✿";
}

.photo-strip.sakura .strip-title {
    color: #df6f97;
}

.photo-strip.sakura .strip-slot {
    background: linear-gradient(135deg, rgba(255, 205, 219, 0.12), rgba(227, 255, 239, 0.12)), #ffffff;
    border: 1px dashed rgba(223, 111, 151, 0.28);
}

.photo-strip.sakura .strip-footer {
    color: #b96b88;
}

.photo-strip.moonlight {
    background:
        radial-gradient(circle at top right, rgba(164, 150, 255, 0.22), transparent 36%),
        radial-gradient(circle at bottom left, rgba(221, 209, 255, 0.18), transparent 34%),
        linear-gradient(180deg, #fbfaff, #f3efff);
}

.photo-strip.moonlight::before {
    content: "✧ · ✦ · ✧";
}

.photo-strip.moonlight::after {
    content: "✦ · ✧ · ✦";
}

.photo-strip.moonlight .strip-title {
    color: #7e5bef;
}

.photo-strip.moonlight .strip-slot {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.10), rgba(221, 209, 255, 0.18)), #ffffff;
    border: 1px dashed rgba(126, 91, 239, 0.28);
}

.photo-strip.moonlight .strip-footer {
    color: #6e50d6;
}

.photo-strip.y2k {
    background:
        radial-gradient(circle at top left, rgba(116, 212, 255, 0.20), transparent 36%),
        radial-gradient(circle at bottom right, rgba(255, 122, 200, 0.14), transparent 34%),
        linear-gradient(180deg, #ffffff, #f1fbff);
}

.photo-strip.y2k::before {
    content: "✦ · ✧ · ✦";
}

.photo-strip.y2k::after {
    content: "✧ · ✦ · ✧";
}

.photo-strip.y2k .strip-title {
    color: #27a4de;
}

.photo-strip.y2k .strip-slot {
    background: linear-gradient(135deg, rgba(116, 212, 255, 0.16), rgba(255, 122, 200, 0.08)), #ffffff;
    border: 1px dashed rgba(39, 164, 222, 0.28);
}

.photo-strip.y2k .strip-footer {
    color: #4c8fc5;
}

.photo-strip.noir {
    background:
        radial-gradient(circle at top right, rgba(255, 122, 200, 0.16), transparent 34%),
        linear-gradient(180deg, #24212a, #141219);
    border-color: rgba(255, 255, 255, 0.10);
}

.photo-strip.noir::before {
    content: "✦ · ✧ · ✦";
}

.photo-strip.noir::after {
    content: "✧ · ✦ · ✧";
}

.photo-strip.noir .strip-title {
    color: #ff8ac5;
}

.photo-strip.noir .strip-slot {
    background: linear-gradient(135deg, rgba(255, 122, 200, 0.10), rgba(255, 255, 255, 0.02)), #1d1a24;
    border: 1px dashed rgba(255, 138, 197, 0.35);
    color: #d6d6e4;
}

.photo-strip.noir .strip-footer {
    color: #f0b0d4;
}

.photo-strip.bloom {
    background:
        radial-gradient(circle at top left, rgba(112, 215, 158, 0.20), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 192, 203, 0.16), transparent 34%),
        linear-gradient(180deg, #ffffff, #f0fff7);
}

.photo-strip.bloom::before {
    content: "✦ · ✿ · ✦";
}

.photo-strip.bloom::after {
    content: "✿ · ✦ · ✿";
}

.photo-strip.bloom .strip-title {
    color: #24a06d;
}

.photo-strip.bloom .strip-slot {
    background: linear-gradient(135deg, rgba(112, 215, 158, 0.12), rgba(255, 214, 229, 0.10)), #ffffff;
    border: 1px dashed rgba(36, 160, 109, 0.28);
}

.photo-strip.bloom .strip-footer {
    color: #2f8a67;
}

.photo-strip.chrome {
    background:
        radial-gradient(circle at top right, rgba(255, 199, 227, 0.16), transparent 34%),
        linear-gradient(180deg, #fafafc, #ededf4);
}

.photo-strip.chrome::before {
    content: "✦ · ✧ · ✦";
}

.photo-strip.chrome::after {
    content: "✧ · ✦ · ✧";
}

.photo-strip.chrome .strip-title {
    color: #7f7f9a;
}

.photo-strip.chrome .strip-slot {
    background: linear-gradient(135deg, rgba(220, 220, 230, 0.24), rgba(255, 214, 235, 0.14)), #ffffff;
    border: 1px dashed rgba(127, 127, 154, 0.32);
}

.photo-strip.chrome .strip-footer {
    color: #9b6c8d;
}

.photo-strip.midnight {
    background:
        radial-gradient(circle at top left, rgba(116, 212, 255, 0.10), transparent 34%),
        radial-gradient(circle at bottom right, rgba(180, 130, 255, 0.12), transparent 34%),
        linear-gradient(180deg, #1d2335, #0f1522);
    border-color: rgba(255, 255, 255, 0.10);
}

.photo-strip.midnight::before {
    content: "✧ · ✦ · ✧";
}

.photo-strip.midnight::after {
    content: "✦ · ✧ · ✦";
}

.photo-strip.midnight .strip-title {
    color: #8fd9ff;
}

.photo-strip.midnight .strip-slot {
    background: linear-gradient(135deg, rgba(116, 212, 255, 0.08), rgba(180, 130, 255, 0.06)), #1c2333;
    border: 1px dashed rgba(143, 217, 255, 0.34);
    color: #dce8ff;
}

.photo-strip.midnight .strip-footer {
    color: #c2d9ff;
}

.photo-strip.daisy {
    background:
        radial-gradient(circle at top left, rgba(255, 225, 118, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 193, 7, 0.16), transparent 34%),
        linear-gradient(180deg, #fffef6, #fff6d7);
}

.photo-strip.daisy::before {
    content: "✦ · ✿ · ✦";
}

.photo-strip.daisy::after {
    content: "✿ · ✦ · ✿";
}

.photo-strip.daisy .strip-title {
    color: #d29216;
}

.photo-strip.daisy .strip-slot {
    background: linear-gradient(135deg, rgba(255, 225, 118, 0.18), rgba(255, 244, 190, 0.20)), #ffffff;
    border: 1px dashed rgba(210, 146, 22, 0.30);
}

.photo-strip.daisy .strip-footer {
    color: #b07e1d;
}

.history-section {
    margin-top: 32px;
}

.history-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.history-item {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.history-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    filter: none;
}

.history-item:active {
    transform: translateY(0);
    box-shadow: none;
}

.history-item.active {
    border-color: #ff5cad;
    background-color: #fff0f8;
}

.history-item div strong {
    display: block;
    font-size: 16px;
    color: #1a202c;
}

.history-item div small {
    color: #718096;
}

.history-item .btn-danger-sm {
    opacity: 0.6;
}

.history-item:hover .btn-danger-sm {
    opacity: 1;
}

.no-history-text {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 24px 0;
}

@media (max-width: 920px) {
    body {
        align-items: flex-start;
        padding: 18px;
    }

    .container {
        padding: 22px;
        border-radius: 30px;
    }

    .container::after {
        display: none;
    }

    .photobooth {
        grid-template-columns: 1fr;
    }

    .header {
        margin-bottom: 24px;
    }

    .header h1 {
        letter-spacing: -2px;
    }

    .header p {
        font-size: 13px;
        border-radius: 18px;
    }
}

@media (max-width: 720px) {
    .card-heading {
        flex-direction: column;
    }

    .live-expression {
        grid-template-columns: 1fr;
    }

    .live-pill {
        align-self: flex-start;
    }
}

@media (max-width: 560px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 16px;
        border-radius: 24px;
    }

    .camera-card,
    .result-card {
        padding: 14px;
        border-radius: 24px;
    }

    .camera-box,
    .preview-box {
        border-radius: 20px;
    }

    .controls {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .expression-badge {
        left: 12px;
        bottom: 12px;
        font-size: 12px;
        padding: 9px 12px;
    }

    .status-box,
    .template-box {
        border-radius: 20px;
    }

    .template-options {
        grid-template-columns: 1fr;
    }
}