/* Studio & Customizer Styles - Eye Friendly Light Theme */
.studio-layout {
    display: grid;
    grid-template-columns: 460px 1fr;
    min-height: calc(100vh - 72px);
    height: calc(100vh - 72px);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* Sidebar Editor */
.studio-sidebar {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    position: relative;
    z-index: 20;
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.03);
}

.studio-sidebar::-webkit-scrollbar {
    width: 6px;
}
.studio-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.sidebar-header {
    padding: 1.5rem 1.8rem;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.sidebar-header h2 {
    font-size: 1.4rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header p {
    font-size: 0.88rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.sidebar-content {
    padding: 1.5rem 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #ffffff;
}

/* Accordion Steps */
.editor-step {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.editor-step.active {
    border-color: #fbcfe8;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.08);
}

.step-header {
    padding: 1.1rem 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: #f8fafc;
    transition: background 0.2s ease;
}

.step-header:hover {
    background: #f1f5f9;
}

.step-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 0.96rem;
    color: #0f172a;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.step-chevron {
    color: #64748b;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.editor-step.active .step-chevron {
    transform: rotate(180deg);
}

.step-body {
    padding: 1.3rem;
    border-top: 1px solid #e2e8f0;
    display: none;
    flex-direction: column;
    gap: 1.1rem;
    background: #ffffff;
}

.editor-step.active .step-body {
    display: flex;
}

/* Form Controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    color: #0f172a;
    font-family: inherit;
    font-size: 0.94rem;
    transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

/* Template Selector Radios */
.template-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}

.template-option-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-option-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.template-option-card.selected {
    border-color: #e11d48;
    background: #fff1f2;
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.1);
}

.template-option-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.template-option-info h5 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.template-option-info p {
    font-size: 0.78rem;
    color: #64748b;
}

/* Upload dropzone */
.dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.25s ease;
    color: #475569;
}

.dropzone:hover {
    border-color: #e11d48;
    background: #fff1f2;
    color: #be123c;
}

.dropzone p {
    font-size: 0.88rem;
    color: #64748b;
    margin-top: 0.4rem;
}

/* Photo Cards List in Editor */
.photo-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.photo-item {
    display: flex;
    gap: 0.8rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 0.6rem;
    align-items: center;
    position: relative;
}

.photo-thumb {
    width: 55px;
    height: 55px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.photo-fields {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.photo-fields input {
    padding: 0.35rem 0.6rem;
    font-size: 0.84rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #0f172a;
}

.photo-fields input:focus {
    outline: none;
    border-color: #e11d48;
}

.photo-remove-btn {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.photo-remove-btn:hover {
    background: #dc2626;
    color: #fff;
}

/* Publish bar */
.sidebar-footer {
    padding: 1.2rem 1.8rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.btn-publish {
    width: 100%;
    padding: 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
}

/* Right Pane - Live Simulator Area */
.studio-preview-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    background: radial-gradient(circle at center, #fdf4ff 0%, #f1f5f9 100%);
    overflow: hidden;
}

.preview-toolbar {
    position: absolute;
    top: 1.2rem;
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    z-index: 50;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
}

.preview-tool-btn {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-tool-btn.active, .preview-tool-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

/* Smartphone Mockup Frame */
.device-phone {
    width: 380px;
    height: 720px;
    max-height: 86vh;
    background: #ffffff;
    border: 11px solid #1e293b;
    border-radius: 46px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25), 0 0 30px rgba(225, 29, 72, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
}

.device-phone.mode-desktop {
    width: 90%;
    height: 82vh;
    border-radius: 16px;
    border-width: 6px;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 22px;
    background: #1e293b;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 100;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border: none;
    background: #f8fafc;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.phone-screen::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Modal for Published Link & QR Code */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.share-confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
}

.modal-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    box-shadow: 0 25px 70px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.8), 0 0 60px -15px rgba(225, 29, 72, 0.16);
    width: 92%;
    max-width: 500px;
    padding: 1.85rem 1.85rem 1.7rem 1.85rem;
    text-align: center;
    animation: modernModalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    color: #0f172a;
    max-height: 94vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(203, 213, 225, 0.6) transparent;
    z-index: 1002;
}

.modal-card::-webkit-scrollbar {
    width: 6px;
}

.modal-card::-webkit-scrollbar-track {
    background: transparent;
}

.modal-card::-webkit-scrollbar-thumb {
    background: rgba(203, 213, 225, 0.6);
    border-radius: 999px;
}

@keyframes modernModalPop {
    0% { transform: scale(0.92) translateY(16px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #e11d48;
    transform: rotate(90deg) scale(1.08);
}

.share-modal-badge {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.08) 0%, rgba(244, 63, 94, 0.14) 100%);
    border: 1px solid rgba(225, 29, 72, 0.22);
    color: #e11d48;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.08);
}

.badge-sparkle {
    font-size: 0.9rem;
    animation: sparklePulse 2s infinite ease-in-out;
}

@keyframes sparklePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25) rotate(15deg); }
}

.share-modal-title {
    font-size: 1.55rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #0f172a !important;
    margin: 0 0 0.35rem 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.share-modal-desc {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.45;
    margin: 0 auto 0.9rem auto;
    max-width: 440px;
}

.share-modal-retention-notice {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    text-align: left;
    margin-bottom: 0.95rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.07);
}

.smrn-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.smrn-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.smrn-content {
    flex: 1;
}

.smrn-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #78350f;
    display: block;
    margin-bottom: 0.1rem;
}

.smrn-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #92400e;
    line-height: 1.35;
    margin: 0;
}

.share-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 0.9rem 0.8rem 0.75rem 0.8rem;
    margin-bottom: 0.95rem;
}

.qr-img-frame {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.6rem;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qr-img-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.qr-img-frame img {
    width: 155px;
    height: 155px;
    display: block;
    border-radius: 8px;
}

.qr-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
    margin-top: 0.6rem;
    gap: 0.5rem;
}

.qr-scan-hint {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-qr-download {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.btn-qr-download:hover {
    border-color: #e11d48;
    color: #e11d48;
    background: #fff1f2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.15);
}

.share-link-wrapper {
    margin-bottom: 0.95rem;
    text-align: left;
}

.share-link-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    padding: 0 0.2rem;
}

.sl-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
}

.sl-badge-live {
    font-size: 0.68rem;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.share-link-pill {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 0.35rem 0.45rem 0.35rem 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    gap: 0.5rem;
}

.share-link-pill:focus-within {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.share-link-pill input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.btn-copy-action {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.55rem 1.15rem;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.btn-copy-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35);
}

.btn-copy-action:active {
    transform: scale(0.96);
}

.share-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.btn-action-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    padding: 0.82rem 1.15rem;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.32);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-action-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.42);
}

.btn-action-whatsapp .wa-bubble {
    font-size: 1.15rem;
}

.share-row-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.btn-action-view {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff !important;
    padding: 0.72rem 0.95rem;
    border-radius: 13px;
    font-size: 0.86rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
    transition: all 0.2s ease;
}

.btn-action-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
}

.btn-action-test {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #1e293b !important;
    padding: 0.72rem 0.95rem;
    border-radius: 13px;
    font-size: 0.86rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.btn-action-test:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn-action-native-share {
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    padding: 0.65rem 1rem;
    border-radius: 13px;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-native-share:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
}

.share-bmc-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fff7ed 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 15px;
    padding: 0.7rem 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.08);
}

.bmc-box-text {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.bmc-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bmc-cup {
    font-size: 1.15rem;
}

.bmc-content strong {
    font-size: 0.78rem;
    font-weight: 800;
    color: #78350f;
    display: block;
    margin-bottom: 0.1rem;
}

.bmc-content p {
    font-size: 0.72rem;
    color: #92400e;
    margin: 0;
    line-height: 1.35;
}

.bmc-yellow-pill {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
}

.bmc-yellow-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(245, 158, 11, 0.45);
}


/* =====================================================
   MOBILE APP EXPERIENCE & STYLES
   ===================================================== */

.brand-studio-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    letter-spacing: 0.08em;
    margin-left: 0.3rem;
}

.tag-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
}

.mobile-apk-header {
    display: none;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid #e2e8f0;
    padding: 0.6rem 1rem 0.65rem;
    position: sticky;
    top: 60px;
    z-index: 85;
}

.apk-segmented-bar {
    display: flex;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 3px;
    gap: 4px;
}

.apk-tab-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.apk-tab-pill.active {
    background: linear-gradient(135deg, #e11d48, #db2777);
    color: #fff;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
    font-weight: 700;
}

.apk-live-beacon {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #059669;
    box-shadow: 0 0 8px #059669;
    animation: livePulse 1.8s infinite;
}

.apk-progress-container {
    margin-top: 0.5rem;
}

.apk-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.apk-progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.apk-progress-track {
    height: 100%;
    background: linear-gradient(90deg, #e11d48, #db2777, #d97706);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Mobile Bottom Navigation Dock */
.mobile-apk-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid #e2e8f0;
    z-index: 100;
    padding: 0 0.8rem;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.05);
}

.apk-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.35rem 0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.apk-nav-icon {
    font-size: 1.25rem;
    line-height: 1.2;
    position: relative;
}

.apk-nav-label {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.15rem;
}

.apk-nav-item.active {
    color: #e11d48;
}

.apk-nav-item.active .apk-nav-icon {
    transform: scale(1.15);
}

.apk-nav-publish {
    background: linear-gradient(135deg, #e11d48, #db2777) !important;
    color: #fff !important;
    border-radius: 14px !important;
    padding: 0.45rem 0.6rem !important;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.35);
    transform: translateY(-3px);
}

.apk-beacon-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 6px;
    height: 6px;
    background: #059669;
    border-radius: 50%;
    box-shadow: 0 0 6px #059669;
}

/* Luxury Studio Header Buttons */
.btn-app-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.52rem 1.15rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-family: 'Outfit', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-app-action:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-app-publish {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.4rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #e11d48 0%, #db2777 50%, #9333ea 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: none;
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.35);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-app-publish::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn-app-publish:hover::before {
    left: 140%;
}

.btn-app-publish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(225, 29, 72, 0.55);
}

.mobile-icon-only {
    display: none;
}

/* =====================================================
   RESPONSIVE STUDIO & MOBILE VIEW OVERHAUL (max-width: 900px)
   ===================================================== */
@media (max-width: 900px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-icon-only {
        display: inline-block !important;
    }

    .studio-navbar {
        padding: 0.55rem 0.9rem !important;
        position: sticky;
        top: 0;
        z-index: 95;
    }

    .brand-logo-img {
        height: 38px !important;
        max-width: 190px !important;
    }

    .btn-app-action, .btn-app-publish {
        padding: 0.42rem 0.75rem !important;
        font-size: 0.85rem !important;
        border-radius: 10px !important;
    }

    .mobile-apk-header {
        display: block !important;
    }

    .mobile-apk-bottom-bar {
        display: flex !important;
    }

    .studio-layout {
        display: block !important;
        height: auto !important;
        min-height: calc(100vh - 130px) !important;
        overflow: visible !important;
        padding-bottom: 70px; /* Space for bottom APK dock */
    }

    /* In Editor View: Show Sidebar Form, Hide Preview Pane */
    .studio-layout.view-editor .studio-preview-pane {
        display: none !important;
    }

    .studio-layout.view-editor .studio-sidebar {
        display: flex !important;
        width: 100% !important;
        height: auto !important;
        border-right: none !important;
    }

    /* In Preview View: Hide Sidebar Form, Show Fullscreen App Simulator */
    .studio-layout.view-preview {
        padding-bottom: 64px !important;
        overflow: hidden !important;
        height: calc(100vh - 130px) !important;
    }

    .studio-layout.view-preview .studio-sidebar {
        display: none !important;
    }

    .studio-layout.view-preview .studio-preview-pane {
        display: flex !important;
        width: 100% !important;
        height: calc(100vh - 140px) !important;
        min-height: auto !important;
        max-height: calc(100vh - 140px) !important;
        padding: 0.3rem !important;
        background: #f1f5f9 !important;
        overflow: hidden !important;
    }

    /* Native App Screen Simulator */
    .studio-layout.view-preview .device-phone {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border: 2px solid #cbd5e1 !important;
        border-radius: 20px !important;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
    }

    .studio-layout.view-preview .phone-notch {
        display: none !important;
    }

    .studio-layout.view-preview .phone-screen {
        width: 100% !important;
        height: 100% !important;
        border-radius: 18px !important;
    }

    .preview-toolbar {
        top: 0.6rem !important;
        padding: 0.25rem 0.5rem !important;
        border-radius: 20px !important;
        gap: 0.4rem !important;
    }

    .preview-tool-btn {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.76rem !important;
    }

    /* Sidebar Content & Step Enhancements */
    .sidebar-header {
        padding: 1.1rem 1.1rem 0.6rem !important;
    }

    .sidebar-content {
        padding: 0.8rem 1.1rem !important;
        gap: 0.9rem !important;
    }

    .step-header {
        padding: 0.95rem 1.1rem !important;
        border-radius: var(--radius-md) !important;
    }

    .step-body {
        padding: 1.1rem !important;
    }

    /* Form Fields for Mobile - Prevent auto-zoom */
    .form-input, .form-select, .form-textarea {
        font-size: 16px !important;
        padding: 0.7rem 0.9rem !important;
    }

    /* Template Cards: Playful 2-column grid */
    .template-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }

    .template-card {
        padding: 0.65rem !important;
        border-radius: 16px !important;
    }

    .template-thumb {
        height: 75px !important;
        border-radius: 10px !important;
    }

    .template-card-title {
        font-size: 0.82rem !important;
    }

    .template-card-desc {
        font-size: 0.72rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sidebar-footer {
        padding: 0.9rem 1.1rem !important;
    }
}

/* =====================================================
   UX & MOBILE REFACTOR: STEPPER, FLOATING PREVIEW, BOTTOMSHEET,
   SMART ACCORDION, CATEGORY CHIPS, MINI AUDIO, PHOTO REORDER
   ===================================================== */

/* 1. Mobile Sticky Stepper Lock */
@media (max-width: 900px) {
    .mobile-apk-header {
        display: block !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 95 !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
        border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    }
}

/* 2. Floating Live Preview Button */
.floating-preview-btn {
    display: none;
    position: fixed;
    bottom: 78px;
    right: 18px;
    z-index: 98;
    background: linear-gradient(135deg, #e11d48 0%, #db2777 50%, #9333ea 100%);
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(225, 29, 72, 0.45);
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-preview-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(225, 29, 72, 0.6);
}

.floating-preview-btn:active {
    transform: scale(0.96);
}

.fp-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: livePulse 1.8s infinite;
}

@media (max-width: 1024px) {
    .floating-preview-btn {
        display: inline-flex;
    }
}

/* 3. Mobile BottomSheet Simulator Modal */
.bottomsheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 130;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: flex-end;
}

.bottomsheet-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.bottomsheet-container {
    width: 100%;
    height: 90vh;
    max-height: 90vh;
    background: #0b0f19;
    border-radius: 26px 26px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    touch-action: pan-y;
}

.bottomsheet-overlay.active .bottomsheet-container {
    transform: translateY(0);
}

.bottomsheet-drag-bar {
    width: 100%;
    padding: 12px 0 6px;
    display: flex;
    justify-content: center;
    cursor: grab;
}

.drag-pill {
    width: 46px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.bottomsheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.bottomsheet-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

.fp-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 1.8s infinite;
}

.bottomsheet-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.bottomsheet-close-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.08);
}

.bottomsheet-body {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #030712;
    position: relative;
}

.bottomsheet-iframe-wrapper {
    width: 100%;
    height: 100%;
}

.bottomsheet-screen {
    width: 100%;
    height: 100%;
    border: none;
}

/* 4. Smart Accordion & Step Navigation Actions */
.step-title-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.step-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.step-badge-check {
    display: none;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.45);
    margin-left: 0.35rem;
}

.step-badge-check.visible {
    display: inline-flex;
}

.step-summary-line {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
    padding-left: 1.85rem;
}

.step-nav-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.3rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.btn-step-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-step-next {
    background: linear-gradient(135deg, #e11d48, #db2777);
    color: #ffffff;
    border: none;
    box-shadow: 0 3px 12px rgba(225, 29, 72, 0.3);
}

.btn-step-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(225, 29, 72, 0.45);
}

.btn-step-prev {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-step-prev:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}

.btn-step-finish {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    box-shadow: 0 3px 14px rgba(16, 185, 129, 0.35);
}

.btn-step-finish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-step-quick-finish {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 3px 14px rgba(139, 92, 246, 0.35);
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.btn-step-quick-finish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
    color: #ffffff;
}

.btn-quick-finish-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-quick-finish-badge:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.55);
}

.optional-tag {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 0.35rem;
    font-style: italic;
}

/* 5. Category Filter Chips & Dynamic Recommendation */
.template-filter-chips {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.55rem;
    margin-bottom: 0.85rem;
    scrollbar-width: none;
}

.template-filter-chips::-webkit-scrollbar {
    display: none;
}

.tpl-chip {
    padding: 0.38rem 0.85rem;
    border-radius: 20px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tpl-chip:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.tpl-chip.active {
    background: #fff1f2;
    border-color: #f43f5e;
    color: #be123c;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.16);
}

.template-option-card {
    position: relative;
    transition: all 0.25s ease;
}

.template-option-card.card-hidden {
    display: none !important;
}

.template-option-card.recommended-card {
    border-color: #f59e0b !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.35) !important;
}

.template-recommend-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.45);
    letter-spacing: 0.03em;
    z-index: 3;
    animation: recommendPulse 2s infinite ease-in-out;
}

@keyframes recommendPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* 6. Mini Audio Player Preview */
.music-select-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-mini-audio {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
}

.btn-mini-audio:hover {
    background: #fff1f2;
    border-color: #f43f5e;
    transform: scale(1.05);
}

.btn-mini-audio.playing {
    background: linear-gradient(135deg, #e11d48, #db2777);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(225, 29, 72, 0.4);
}

.mini-wave-bars {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.mini-wave-bars span {
    width: 3px;
    background: #ffffff;
    border-radius: 2px;
    animation: miniWave 1s infinite ease-in-out;
}

.mini-wave-bars span:nth-child(1) { height: 6px; animation-delay: 0s; }
.mini-wave-bars span:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.mini-wave-bars span:nth-child(3) { height: 8px; animation-delay: 0.4s; }

@keyframes miniWave {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

.btn-mini-audio.playing .mini-audio-icon {
    display: none;
}

.btn-mini-audio.playing .mini-wave-bars {
    display: flex;
}

/* ==========================================================================
   7. Photo Guide, Dropzone Upgrade & Structured Photo Item Cards
   ========================================================================== */
.photo-guide-banner {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.07) 0%, rgba(244, 63, 94, 0.03) 100%);
    border: 1px solid rgba(225, 29, 72, 0.22);
    border-radius: 16px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.15rem;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.04);
}

.guide-banner-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.guide-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 2px;
}

.guide-title-text strong {
    display: block;
    font-size: 0.94rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.guide-title-text p {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
    margin: 0;
}

.guide-steps-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.guide-step-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.3rem 0.65rem;
    font-size: 0.76rem;
    color: #334155;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.guide-step-chip .chip-num {
    background: #e11d48;
    color: #ffffff;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
}

/* Upgraded Dropzone & Action Button */
.btn-select-photos-action {
    background: #e11d48;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.55rem 1.15rem;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.65rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.btn-select-photos-action:hover {
    background: #be123c;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.45);
}

/* Photo Status Bar */
.photo-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.85rem 0 0.65rem;
    padding: 0 0.2rem;
}

.photo-count-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
}

.photo-count-badge.count-good {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.photo-count-badge.count-warn {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.photo-status-hint {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 500;
}

/* Photo Empty State */
.photo-empty-state {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 2.2rem 1.5rem;
    text-align: center;
    color: #64748b;
    margin-bottom: 0.85rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.empty-state-icon {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.empty-state-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.35rem;
}

.empty-state-text {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0 auto;
    max-width: 320px;
    line-height: 1.45;
}

/* Structured Photo Card */
.photo-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.9rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    transition: all 0.2s ease;
}

.photo-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.photo-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.55rem;
}

.photo-cover-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.photo-order-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.photo-item-body {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.photo-thumb-wrap {
    width: 84px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-thumb {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    object-fit: cover !important;
    object-position: center !important;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    user-drag: none !important;
    pointer-events: none !important;
}

.photo-thumb-actions {
    display: flex;
    gap: 4px;
    width: 84px;
    margin-top: 6px;
}

.photo-btn-replace,
.photo-btn-replace-camera {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 3px 2px;
    font-size: 0.65rem;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.photo-btn-replace:hover,
.photo-btn-replace-camera:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.photo-btn-replace-camera {
    background: rgba(225, 29, 72, 0.08);
    border-color: rgba(225, 29, 72, 0.28);
    color: #e11d48;
}

.photo-btn-replace-camera:hover {
    background: rgba(225, 29, 72, 0.16);
    color: #be123c;
    border-color: #e11d48;
}

.photo-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.photo-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.photo-field-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
}

.photo-field-label .label-req {
    color: #e11d48;
}

.photo-field-label .label-opt {
    font-size: 0.7rem;
    font-weight: 500;
    color: #94a3b8;
}

.photo-caption-input,
.photo-date-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    color: #0f172a;
    transition: all 0.2s ease;
}

.photo-caption-input:focus,
.photo-date-input:focus {
    background: #ffffff;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
    outline: none;
}

.photo-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.25rem;
}

.photo-quick-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1px 7px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.photo-quick-chip:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #e11d48;
}

.photo-reorder-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.photo-btn-reorder {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.72rem;
    color: #475569;
    transition: all 0.15s ease;
}

.photo-btn-reorder:hover:not(:disabled) {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.photo-btn-cover {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #92400e;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.photo-btn-cover:hover {
    background: #fde68a;
}

.photo-remove-btn {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.15s ease;
}

.photo-remove-btn:hover {
    background: #dc2626;
    color: #ffffff;
}

/* 8. AI Prompt Chips */
.ai-prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.ai-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
    padding: 0.32rem 0.65rem;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-chip:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: #a855f7;
    color: #ffffff;
    transform: translateY(-1px);
}

/* 9. Draft Resume Toast / Banner */
.draft-resume-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(225, 29, 72, 0.4);
    border-radius: 16px;
    padding: 0.85rem 1.15rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    animation: draftSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes draftSlideDown {
    from { transform: translateY(-15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.draft-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.draft-banner-icon {
    font-size: 1.5rem;
}

.draft-banner-text strong {
    color: #ffffff;
    font-size: 0.88rem;
    display: block;
}

.draft-banner-text p {
    color: #94a3b8;
    font-size: 0.78rem;
    margin: 0.15rem 0 0;
}

.draft-banner-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.btn-draft-resume {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.btn-draft-resume:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-draft-discard {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-draft-discard:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* ==========================================================================
   10. Studio Modal Mode (When Wizard is opened in Iframe Modal)
   ========================================================================== */
body.studio-modal-mode {
    padding-top: 0 !important;
    background: #070913 !important;
    overflow-x: hidden;
}

body.studio-modal-mode .content-wrapper {
    padding-top: 0 !important;
}

body.studio-modal-mode .studio-layout {
    min-height: calc(100vh - 48px);
    height: calc(100vh - 48px);
}

@media (max-width: 1024px) {
    body.studio-modal-mode .studio-layout {
        min-height: calc(100vh - 98px);
        height: auto;
    }
}

.studio-modal-compact-bar {
    height: 48px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 110;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.modal-compact-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    color: #f8fafc;
}

.modal-compact-brand strong {
    color: #fb7185;
}

.modal-compact-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-modal-inner-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    margin-left: 0.25rem;
}

.btn-modal-inner-close:hover {
    background: #e11d48;
    border-color: #e11d48;
    color: #ffffff;
    transform: scale(1.08);
}

.modal-compact-home-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.modal-compact-home-btn:hover {
    background: rgba(14, 165, 233, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
    transform: scale(1.08);
}

.btn-modal-compact-home {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    height: 34px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 0.75rem;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-modal-compact-home:hover {
    background: rgba(14, 165, 233, 0.22);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   11. 7-Day Storage Retention Warning Notice in Studio
   ========================================================================== */
.studio-retention-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(225, 29, 72, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.studio-retention-notice::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #f59e0b, #e11d48);
}

.retention-notice-left {
    flex-shrink: 0;
}

.retention-notice-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.retention-notice-body {
    flex: 1;
    min-width: 0;
}

.retention-notice-body strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 2px;
}

.retention-notice-body p {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.35;
    margin: 0;
}


/* ==========================================
   Music Source Selector (Step 3: Studio)
   ========================================== */
.music-source-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.35rem;
    background: #f1f5f9;
    padding: 0.35rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    margin-top: 0.35rem;
    margin-bottom: 0.85rem;
}

.music-src-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.55rem 0.35rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

.music-src-btn .src-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.music-src-btn:hover {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.65);
}

.music-src-btn.active {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.music-src-btn[data-source="youtube"].active {
    color: #dc2626;
}

.music-src-btn[data-source="spotify"].active {
    color: #15803d;
}

.music-src-btn[data-source="voice"].active {
    color: #e11d48;
}

/* Voice Recorder Component (10s max personal voice recording) */
.voice-recorder-card {
    background: #ffffff;
    border: 1.5px solid rgba(225, 29, 72, 0.2);
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.05);
    margin-top: 0.5rem;
}

.voice-rec-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.voice-rec-pill {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: rgba(225, 29, 72, 0.08);
    color: #e11d48;
    border: 1px solid rgba(225, 29, 72, 0.25);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.voice-rec-desc {
    font-size: 0.86rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.voice-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Circular 10s Countdown Container */
.voice-countdown-circle-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
}

.voice-countdown-svg {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.voice-circle-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 6;
}

.voice-circle-bar {
    fill: none;
    stroke: #e11d48;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 326.7; /* 2 * PI * 52 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear, stroke 0.2s ease;
}

.btn-voice-circle-center {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e11d48 0%, #db2777 100%);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
    outline: none;
}

.btn-voice-circle-center:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.45);
}

.btn-voice-circle-center.recording {
    background: #ef4444;
    animation: voiceCenterPulse 1s infinite;
}

@keyframes voiceCenterPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.voice-center-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.voice-countdown-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.voice-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.8rem;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-top: 0.4rem;
}

.rec-red-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: blinkDot 0.8s infinite;
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* 10-Second Progress Track */
.voice-progress-track {
    width: 100%;
    max-width: 260px;
    height: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.voice-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #e11d48 80%, #dc2626 100%);
    border-radius: 999px;
    transition: width 0.1s linear;
}

/* Live Animated Waveform Bars */
.voice-live-waves {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px;
    margin-bottom: 1.15rem;
}

.voice-live-waves span {
    width: 4px;
    height: 8px;
    background: #e11d48;
    border-radius: 999px;
    animation: waveBounce 0.8s ease-in-out infinite alternate;
}

.voice-live-waves span:nth-child(2) { animation-delay: 0.1s; height: 14px; }
.voice-live-waves span:nth-child(3) { animation-delay: 0.2s; height: 22px; }
.voice-live-waves span:nth-child(4) { animation-delay: 0.3s; height: 18px; }
.voice-live-waves span:nth-child(5) { animation-delay: 0.4s; height: 26px; }
.voice-live-waves span:nth-child(6) { animation-delay: 0.15s; height: 16px; }
.voice-live-waves span:nth-child(7) { animation-delay: 0.25s; height: 28px; }
.voice-live-waves span:nth-child(8) { animation-delay: 0.35s; height: 12px; }
.voice-live-waves span:nth-child(9) { animation-delay: 0.05s; height: 20px; }
.voice-live-waves span:nth-child(10) { animation-delay: 0.22s; height: 15px; }

@keyframes waveBounce {
    0% { height: 6px; }
    100% { height: 30px; }
}

.voice-rec-controls-row {
    display: flex;
    gap: 0.65rem;
    width: 100%;
    max-width: 320px;
    justify-content: center;
}

.btn-voice-cta {
    background: linear-gradient(135deg, #e11d48 0%, #db2777 100%);
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-voice-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.4);
}

.btn-voice-stop {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

/* Voice Preview Card */
.voice-preview-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    text-align: left;
}

.voice-playback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.voice-playback-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.voice-success-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.badge-source-voice {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 999px;
}

.voice-playback-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.85rem;
}

.btn-voice-play {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-voice-play:hover {
    background: #be123c;
    transform: scale(1.02);
}

.voice-audio-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
    height: 24px;
}

.voice-audio-bars .vbar {
    flex: 1;
    height: 6px;
    background: #cbd5e1;
    border-radius: 999px;
    transition: height 0.15s ease, background 0.15s ease;
}

.voice-audio-bars.playing .vbar {
    background: #e11d48;
    animation: barBounce 0.5s ease-in-out infinite alternate;
}

.voice-audio-bars.playing .vbar:nth-child(2) { animation-delay: 0.1s; }
.voice-audio-bars.playing .vbar:nth-child(3) { animation-delay: 0.2s; }
.voice-audio-bars.playing .vbar:nth-child(4) { animation-delay: 0.15s; }
.voice-audio-bars.playing .vbar:nth-child(5) { animation-delay: 0.25s; }
.voice-audio-bars.playing .vbar:nth-child(6) { animation-delay: 0.05s; }

@keyframes barBounce {
    0% { height: 4px; }
    100% { height: 20px; }
}

.voice-playback-actions {
    display: flex;
    gap: 1rem;
}

.btn-voice-link {
    background: none;
    border: none;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0;
}

.btn-voice-link:hover {
    color: #0f172a;
    text-decoration: underline;
}

.btn-voice-link.text-danger {
    color: #dc2626;
}

.btn-voice-link.text-danger:hover {
    color: #991b1b;
}

.voice-upload-fallback {
    margin-top: 1rem;
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    width: 100%;
}

.btn-text-link {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.18s;
}

.btn-text-link:hover {
    color: #0f172a;
}

.badge-source-yt {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.45rem;
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.4rem;
}

.badge-source-sp {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.45rem;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.4rem;
}

.music-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-input-clear {
    position: absolute;
    right: 0.6rem;
    background: #cbd5e1;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #475569;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-input-clear:hover {
    background: #94a3b8;
    color: #0f172a;
}

.music-url-status {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.music-url-status.valid {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #15803d;
}

.music-url-status.invalid {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #b91c1c;
}

.music-source-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.76rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    margin-top: 0.55rem;
    line-height: 1.4;
}

.music-source-hint .hint-icon {
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.spotify-embed-preview {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

@media (max-width: 480px) {
    .music-source-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.35rem;
    }
    .music-src-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
}



