@font-face {
    font-family: EnglishJacket;
    src: url('../fonts/English.ttf') format('truetype');
}

@font-face {
    font-family: ArabicJacket;
    src: url('../fonts/Arabic.ttf') format('truetype');
}

@font-face {
    font-family: QuranJacket;
    src: url('../fonts/Quran.ttf') format('truetype');
}

@font-face {
    font-family: QuoteEnglishJacket;
    src: url('../fonts/QuoteEnglish.ttf') format('truetype');
}

@font-face {
    font-family: QuoteArabicJacket;
    src: url('../fonts/QuoteArabic.ttf') format('truetype');
}

/* ==========================================================================
   Global theme
   ========================================================================== */

:root {
    --bg: #f3f0eb;
    --bg-soft: #faf7f2;
    --card: rgba(255, 255, 255, 0.92);
    --card-solid: #ffffff;

    --text: #15110d;
    --muted: #6f6257;

    --dark: #17120e;
    --dark-2: #2a211a;

    --gold: #c99a43;
    --gold-soft: #f3dfb8;
    --gold-light: #fff6df;

    --border: rgba(45, 34, 25, 0.13);
    --shadow: 0 20px 55px rgba(35, 25, 16, 0.13);
    --shadow-soft: 0 10px 25px rgba(35, 25, 16, 0.08);

    --danger: #b42318;
    --danger-bg: #fff0ed;

    --radius-lg: 22px;
    --radius-md: 15px;
    --radius-sm: 11px;

    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(201, 154, 67, 0.25), transparent 34%),
        radial-gradient(circle at top right, rgba(80, 51, 25, 0.13), transparent 30%),
        linear-gradient(135deg, #f8f2e9 0%, #eee7dd 48%, #f7f3ed 100%);
    min-height: 100vh;
}

img,
video,
canvas {
    max-width: 100%;
}

::selection {
    background: var(--gold-soft);
    color: var(--dark);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 28px 42px;
    background:
        linear-gradient(135deg, rgba(18, 14, 10, 0.98), rgba(42, 31, 20, 0.96)),
        radial-gradient(circle at 20% 20%, rgba(201, 154, 67, 0.4), transparent 32%);
    color: #fff;
    overflow: hidden;
}

.site-header::after {
    content: "";
    position: absolute;
    inset: auto -80px -130px auto;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(201, 154, 67, 0.22);
    filter: blur(4px);
    pointer-events: none;
}

.site-header h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 7px;
    font-size: clamp(25px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.site-header p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 850px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
}

.admin-link,
.button-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 11px 17px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.admin-link:hover,
.button-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   Layout and panels
   ========================================================================== */

.layout {
    width: 100%;
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 30px;
    padding: 30px;
    max-width: 1450px;
    margin: auto;
    animation: pageIn 420ms ease both;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-panel,
.preview-panel,
.success-page {
    min-width: 0;
    background: var(--card);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    padding: 26px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-panel,
.preview-panel {
    animation: cardIn 460ms ease both;
}

.preview-panel {
    overflow: hidden;
    animation-delay: 80ms;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 14px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    color: var(--dark);
    font-size: 20px;
    letter-spacing: -0.02em;
}

h2:first-child {
    margin-top: 0;
}

h2::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(201, 154, 67, 0.18);
}

.hint {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================================================
   Forms
   ========================================================================== */

label {
    display: block;
    font-weight: 800;
    margin: 15px 0 7px;
    color: var(--dark-2);
}

input[type="text"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid rgba(48, 36, 25, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform var(--transition);
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 154, 67, 0.2);
    background: #fff;
}

textarea {
    min-height: 94px;
    resize: vertical;
}

input,
textarea,
select,
button {
    font-size: 16px;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--gold);
    cursor: pointer;
}

.field-group {
    margin-top: 12px;
}

.choice-row,
.option-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.choice-row label,
.option-row label,
.choice {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    font-weight: 800;
    color: var(--dark-2);
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.choice-row label:hover,
.option-row label:hover,
.choice:hover {
    transform: translateY(-1px);
    background: #fff;
    border-color: rgba(201, 154, 67, 0.55);
    box-shadow: var(--shadow-soft);
}

.choice-row input[type="radio"],
.option-row input[type="radio"],
.choice input[type="radio"] {
    accent-color: var(--gold);
}

.choice-row label:has(input:checked),
.option-row label:has(input:checked),
.choice:has(input:checked) {
    background: linear-gradient(135deg, var(--gold-light), #ffffff);
    border-color: var(--gold);
    box-shadow: 0 8px 20px rgba(201, 154, 67, 0.18);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

button,
.secondary,
.submit-btn,
.modal-actions button {
    border: 0;
    border-radius: var(--radius-sm);
    padding: 11px 15px;
    cursor: pointer;
    font-weight: 900;
    min-height: 44px;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
}

button:hover,
.secondary:hover,
.submit-btn:hover,
.modal-actions button:hover {
    transform: translateY(-2px);
}

button:active,
.secondary:active,
.submit-btn:active,
.modal-actions button:active {
    transform: translateY(0);
}

.secondary {
    background: #eee5d9;
    color: var(--dark);
    border: 1px solid rgba(45, 34, 25, 0.08);
}

.secondary:hover {
    background: var(--gold-soft);
    box-shadow: var(--shadow-soft);
}

.submit-btn {
    position: relative;
    width: 100%;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background:
        linear-gradient(135deg, var(--dark), var(--dark-2));
    color: white;
    font-size: 16px;
    box-shadow: 0 16px 32px rgba(23, 18, 14, 0.22);
}

.submit-btn:hover {
    background:
        linear-gradient(135deg, #2a211a, #3b2c1f);
    box-shadow: 0 20px 38px rgba(23, 18, 14, 0.3);
}

.submit-btn.is-loading {
    opacity: 0.86;
    cursor: wait;
}

.submit-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: submitSpin 0.8s linear infinite;
}

.submit-btn.is-loading .submit-spinner {
    display: inline-block;
}

@keyframes submitSpin {
    to {
        transform: rotate(360deg);
    }
}

.small-danger {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 9px 12px;
    border: 1px solid rgba(180, 35, 24, 0.12);
}

.small-danger:hover {
    background: #ffe0da;
    box-shadow: 0 10px 22px rgba(180, 35, 24, 0.12);
}

/* ==========================================================================
   Price box
   ========================================================================== */

.price-box {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(201, 154, 67, 0.35);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, rgba(255, 246, 223, 0.94), rgba(255, 255, 255, 0.88));
    box-shadow: 0 10px 24px rgba(201, 154, 67, 0.12);
}

.price-box h3 {
    margin: 0 0 10px;
    color: var(--dark);
}

.price-box p {
    margin: 7px 0;
}

.price-total {
    font-size: 1.18rem;
}

.price-total strong {
    color: var(--dark);
    font-size: 1.38rem;
}

.price-box small {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    line-height: 1.45;
}

/* ==========================================================================
   Sleeves form list
   ========================================================================== */

.sleeve-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sleeve-list {
    margin-top: 14px;
}

.sleeve-list h3 {
    margin: 16px 0 8px;
    font-size: 16px;
    color: var(--dark);
}

.sleeve-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.75);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.sleeve-row:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(201, 154, 67, 0.45);
}

.sleeve-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   Preview tabs and jacket preview
   ========================================================================== */

.preview-tabs {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    gap: 9px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    padding: 0 0 12px;
}

.tab {
    flex: 1;
    min-width: 105px;
    background: #eee5d9;
    color: var(--dark);
}

.tab.active {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    color: #fff;
    box-shadow: 0 12px 25px rgba(23, 18, 14, 0.2);
}

.jacket-preview {
    position: relative !important;
    width: min(820px, 100%);
    margin: auto;
    display: none;
    background:
        linear-gradient(135deg, #fbfaf8, #f0e8dc);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(45, 34, 25, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--shadow-soft);
}

.jacket-preview.active {
    display: block;
    animation: previewIn 260ms ease both;
}

@keyframes previewIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.jacket-base {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* ==========================================================================
   Back text
   ========================================================================== */

.english-font {
    font-family: EnglishJacket, Arial, sans-serif;
}

.arabic-font {
    font-family: ArabicJacket, Arial, sans-serif;
}

.back-nickname {
    position: absolute;
    top: 100px;
    left: 13%;
    width: 74%;
    text-align: center;
    font-size: 74px;
    line-height: 1.1;
    z-index: 20;
    color: #d1d3d4;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.back-quote {
    position: absolute;
    top: 520px;
    left: 14%;
    width: 72%;
    text-align: center;
    font-size: 38px;
    line-height: 1.25;
    z-index: 20;
    color: #d1d3d4;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.16);
}

.back-nickname.english-font {
    font-size: 74px;
}

.back-nickname.arabic-font {
    top: 80px;
    font-size: 98px;
}

.back-quote.english-font {
    font-family: QuoteEnglishJacket, EnglishJacket, sans-serif !important;
    font-size: 38px;
}

.back-quote.arabic-font {
    font-family: QuoteArabicJacket, ArabicJacket, serif !important;
    font-size: 58px;
}

.back-quote.quran-font {
    font-family: QuranJacket, QuoteArabicJacket, ArabicJacket, serif !important;
    font-size: 54px;
    line-height: 1.65;
    direction: rtl;
}

/* ==========================================================================
   Sleeve preview/editor
   ========================================================================== */

#previewLeft.jacket-preview,
#previewRight.jacket-preview {
    position: relative !important;
    width: min(560px, 100%) !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#previewLeft .jacket-base,
#previewRight .jacket-base {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
}

#previewLeft .sleeve-items-layer,
#previewRight .sleeve-items-layer {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 20 !important;
    overflow: visible !important;
}

.sleeve-editor-item {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: center center;
    cursor: move;
    user-select: none;
    touch-action: none;
    min-width: 40px;
    min-height: 40px;
    transition: outline-color var(--transition), filter var(--transition);
}

.sleeve-editor-item.selected {
    outline: 2px dashed var(--gold);
    outline-offset: 5px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

.sleeve-editor-text {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: center;
    line-height: 1.2;
    font-weight: 900;
    color: #000;
    font-size: 28px;
}

.sleeve-editor-text.arabic-font {
    font-size: 36px;
}

.sleeve-editor-image {
    display: block;
    max-width: 160px;
    max-height: 160px;
    object-fit: contain;
    pointer-events: none;
}

.resize-handle {
    position: absolute;
    width: 17px;
    height: 17px;
    right: -11px;
    bottom: -11px;
    background: var(--gold);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: nwse-resize;
    display: none;
    z-index: 30;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.sleeve-editor-item.selected .resize-handle {
    display: block;
}

/* Old sleeve fixed-position classes kept for compatibility */
.sleeve-preview .sleeve-items-layer {
    position: absolute;
    inset: 0;
    z-index: 20;
}

.sleeve-preview-item {
    position: absolute;
    width: 42%;
    text-align: center;
    font-weight: 800;
    font-size: 24px;
    overflow-wrap: anywhere;
}

.sleeve-preview-item img {
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
}

.pos-1 { top: 120px; left: 29%; }
.pos-2 { top: 220px; left: 29%; }
.pos-3 { top: 320px; left: 29%; }
.pos-4 { top: 420px; left: 29%; }
.pos-5 { top: 520px; left: 29%; }

/* ==========================================================================
   Editor controls
   ========================================================================== */

.editor-controls {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
}

.editor-controls h3 {
    margin: 0 0 8px;
}

.control-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.control-grid label {
    margin: 0;
}

.control-grid input[type="range"] {
    width: 100%;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    background: rgba(19, 14, 10, 0.62);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.modal.active {
    display: flex !important;
    animation: fadeIn 160ms ease both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    width: 430px !important;
    max-width: calc(100vw - 48px) !important;
    max-height: calc(100vh - 48px) !important;
    margin: auto !important;
    padding: 24px !important;
    background: var(--card-solid) !important;
    border-radius: 20px !important;
    overflow-y: auto;
    box-sizing: border-box;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
    animation: modalIn 220ms ease both;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-card h2 {
    margin-top: 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.hidden,
.hidden-file {
    display: none;
}

/* ==========================================================================
   Submit success page previews
   ========================================================================== */

.success-page {
    max-width: 900px;
    margin: 60px auto;
    text-align: center;
}

.success-page .button-link {
    display: inline-flex;
    margin-top: 12px;
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
}

.submitted-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.submitted-preview-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-soft);
}

.submitted-preview-card h2 {
    margin: 0 0 10px;
    border: 0;
    padding: 0;
    font-size: 18px;
    justify-content: center;
}

.submitted-preview-card h2::before {
    display: none;
}

.submitted-preview-card img {
    width: 100%;
    display: block;
    border-radius: 12px;
    background: #fafafa;
    object-fit: contain;
}

.submitted-preview-card img[alt="Left sleeve preview"],
.submitted-preview-card img[alt="Right sleeve preview"] {
    width: 560px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ==========================================================================
   Mobile responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .layout {
        grid-template-columns: 390px minmax(0, 1fr);
        gap: 22px;
        padding: 22px;
    }

    .jacket-preview {
        width: min(700px, 100%);
    }
}

@media (max-width: 900px) {
    .site-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-header h1 {
        font-size: 24px;
    }

    .site-header p {
        font-size: 14px;
    }

    .layout {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 17px;
    }

    .form-panel,
    .preview-panel {
        padding: 17px;
        border-radius: 16px;
    }

    .preview-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .tab {
        width: 100%;
        min-width: 0;
    }

    .jacket-preview {
        width: 100%;
        min-height: auto;
        aspect-ratio: 1 / 1;
    }

    #previewLeft.jacket-preview,
    #previewRight.jacket-preview {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: auto !important;
        min-height: 0 !important;
    }

    #previewLeft .jacket-base,
    #previewRight .jacket-base {
        width: 100% !important;
        height: auto !important;
    }

    .back-nickname {
        top: 10% !important;
        left: 10% !important;
        width: 80% !important;
        font-size: clamp(26px, 8vw, 42px) !important;
        line-height: 1.05 !important;
    }

    .back-nickname.arabic-font {
        top: 8% !important;
        font-size: clamp(32px, 9vw, 50px) !important;
    }

    .back-quote {
        top: 64% !important;
        left: 14% !important;
        width: 72% !important;
        font-size: clamp(14px, 4.8vw, 22px) !important;
        line-height: 1.2 !important;
    }

    .back-quote.arabic-font {
        font-size: clamp(18px, 5.8vw, 30px) !important;
    }

    .back-quote.quran-font {
        font-size: clamp(18px, 5.8vw, 30px) !important;
        line-height: 1.45 !important;
    }

    .choice-row,
    .option-row {
        gap: 8px;
    }

    .sleeve-tools {
        grid-template-columns: 1fr;
    }

    .sleeve-row {
        align-items: flex-start;
    }

    .control-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        align-items: flex-end !important;
        padding: 10px !important;
    }

    .modal-card {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 85vh !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .submitted-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .site-header {
        align-items: stretch;
    }

    .admin-link {
        text-align: center;
    }

    h2 {
        font-size: 19px;
    }

    .form-panel,
    .preview-panel {
        padding: 14px;
    }

    .choice-row label,
    .option-row label,
    .choice {
        flex: 1 1 auto;
        justify-content: center;
        padding: 9px 10px;
    }

    .back-nickname {
        top: 16% !important;
        font-size: clamp(22px, 7vw, 34px) !important;
    }

    .back-nickname.arabic-font {
        top: 14% !important;
        font-size: clamp(28px, 8vw, 42px) !important;
    }

    .back-quote {
        top: 65% !important;
        font-size: clamp(12px, 3.6vw, 18px) !important;
    }

    .back-quote.arabic-font,
    .back-quote.quran-font {
        font-size: clamp(16px, 4.5vw, 24px) !important;
    }

    .sleeve-editor-text {
        font-size: 22px;
    }

    .sleeve-editor-text.arabic-font {
        font-size: 28px;
    }

    .sleeve-editor-image {
        max-width: 120px;
        max-height: 120px;
    }

    .resize-handle {
        width: 22px;
        height: 22px;
        right: -14px;
        bottom: -14px;
    }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
/* ==========================================================================
   BLUE NEON THEME OVERRIDE
   Add this at the very bottom of style.css
   ========================================================================== */

:root {
    --bg: #07111f;
    --bg-soft: #0b1b30;
    --card: rgba(10, 24, 43, 0.82);
    --card-solid: #0d1f35;

    --text: #eaf6ff;
    --muted: #9fb8d6;

    --dark: #06101f;
    --dark-2: #0b2440;

    --gold: #00d9ff;
    --gold-soft: rgba(0, 217, 255, 0.22);
    --gold-light: rgba(0, 217, 255, 0.12);

    --border: rgba(80, 210, 255, 0.22);
    --shadow: 0 24px 70px rgba(0, 120, 255, 0.18);
    --shadow-soft: 0 12px 35px rgba(0, 180, 255, 0.13);

    --danger: #ff4d8d;
    --danger-bg: rgba(255, 77, 141, 0.12);
}

/* Main background */
body {
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(0, 217, 255, 0.28), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(88, 86, 255, 0.28), transparent 32%),
        radial-gradient(circle at 50% 95%, rgba(0, 255, 194, 0.14), transparent 35%),
        linear-gradient(135deg, #050b16 0%, #071a2e 48%, #03101f 100%) !important;
}

/* Header neon glow */
.site-header {
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 217, 255, 0.35), transparent 34%),
        radial-gradient(circle at 80% 10%, rgba(118, 87, 255, 0.25), transparent 30%),
        linear-gradient(135deg, rgba(3, 10, 22, 0.98), rgba(5, 25, 48, 0.96)) !important;
    border-bottom: 1px solid rgba(0, 217, 255, 0.25);
    box-shadow:
        0 0 35px rgba(0, 217, 255, 0.16),
        0 16px 45px rgba(0, 0, 0, 0.35);
}

.site-header::after {
    background: rgba(0, 217, 255, 0.25) !important;
    box-shadow:
        0 0 70px rgba(0, 217, 255, 0.45),
        0 0 120px rgba(96, 85, 255, 0.28);
}

.site-header h1 {
    color: #f4fbff;
    text-shadow:
        0 0 12px rgba(0, 217, 255, 0.55),
        0 0 32px rgba(0, 128, 255, 0.35);
}

.site-header p {
    color: rgba(225, 243, 255, 0.78);
}

/* Panels */
.form-panel,
.preview-panel,
.success-page,
.submitted-preview-card {
    background:
        linear-gradient(145deg, rgba(10, 26, 48, 0.88), rgba(6, 17, 32, 0.82)) !important;
    border: 1px solid rgba(0, 217, 255, 0.22) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 32px rgba(0, 217, 255, 0.10),
        0 22px 60px rgba(0, 0, 0, 0.35) !important;
}

/* Subtle animated glow on panels */
.form-panel,
.preview-panel {
    position: relative;
    overflow: hidden;
}

.form-panel::before,
.preview-panel::before {
    content: "";
    position: absolute;
    inset: -2px;
    pointer-events: none;
    background:
        linear-gradient(
            120deg,
            transparent 0%,
            rgba(0, 217, 255, 0.09) 35%,
            rgba(111, 86, 255, 0.12) 50%,
            transparent 70%
        );
    transform: translateX(-120%);
    animation: neonPanelSweep 6s ease-in-out infinite;
}

@keyframes neonPanelSweep {
    0%, 60% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(120%);
    }
}

/* Headings */
h2 {
    color: #eaf6ff !important;
    border-bottom-color: rgba(0, 217, 255, 0.22) !important;
    text-shadow: 0 0 14px rgba(0, 217, 255, 0.22);
}

h2::before {
    background: #00d9ff !important;
    box-shadow:
        0 0 0 5px rgba(0, 217, 255, 0.13),
        0 0 18px rgba(0, 217, 255, 0.75) !important;
}

label {
    color: #d8efff !important;
}

.hint,
.price-box small {
    color: var(--muted) !important;
}

/* Inputs */
input[type="text"],
input[type="password"],
textarea,
select {
    color: #eaf6ff !important;
    background: rgba(4, 16, 31, 0.78) !important;
    border: 1px solid rgba(0, 217, 255, 0.24) !important;
    box-shadow: 0 0 0 rgba(0, 217, 255, 0);
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: rgba(190, 220, 245, 0.45);
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #00d9ff !important;
    background: rgba(6, 24, 44, 0.95) !important;
    box-shadow:
        0 0 0 4px rgba(0, 217, 255, 0.14),
        0 0 24px rgba(0, 217, 255, 0.25) !important;
}

/* Radio option pills */
.choice-row label,
.option-row label,
.choice {
    color: #dff5ff !important;
    background: rgba(6, 22, 41, 0.72) !important;
    border-color: rgba(0, 217, 255, 0.22) !important;
}

.choice-row label:hover,
.option-row label:hover,
.choice:hover {
    background: rgba(0, 217, 255, 0.12) !important;
    border-color: rgba(0, 217, 255, 0.65) !important;
    box-shadow:
        0 0 16px rgba(0, 217, 255, 0.2),
        0 10px 24px rgba(0, 0, 0, 0.25) !important;
}

.choice-row label:has(input:checked),
.option-row label:has(input:checked),
.choice:has(input:checked) {
    color: #ffffff !important;
    background:
        linear-gradient(135deg, rgba(0, 217, 255, 0.24), rgba(95, 86, 255, 0.20)) !important;
    border-color: #00d9ff !important;
    box-shadow:
        0 0 12px rgba(0, 217, 255, 0.45),
        0 0 28px rgba(0, 122, 255, 0.22) !important;
}

.choice-row input[type="radio"],
.option-row input[type="radio"],
.choice input[type="radio"],
input[type="range"] {
    accent-color: #00d9ff;
}

/* Buttons */
.secondary {
    color: #eaf6ff !important;
    background: rgba(0, 217, 255, 0.11) !important;
    border: 1px solid rgba(0, 217, 255, 0.28) !important;
}

.secondary:hover {
    background: rgba(0, 217, 255, 0.22) !important;
    box-shadow:
        0 0 18px rgba(0, 217, 255, 0.24),
        0 12px 28px rgba(0, 0, 0, 0.28) !important;
}

.submit-btn,
.success-page .button-link {
    background:
        linear-gradient(135deg, #00d9ff, #0066ff 48%, #6a5cff) !important;
    color: #ffffff !important;
    box-shadow:
        0 0 18px rgba(0, 217, 255, 0.45),
        0 0 38px rgba(0, 102, 255, 0.25),
        0 16px 36px rgba(0, 0, 0, 0.35) !important;
    position: relative;
    overflow: hidden;
}

.submit-btn::before,
.success-page .button-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transform: skewX(-18deg);
    animation: neonButtonSweep 3.5s ease-in-out infinite;
}

@keyframes neonButtonSweep {
    0%, 45% {
        left: -120%;
    }

    100% {
        left: 140%;
    }
}

.submit-btn:hover,
.success-page .button-link:hover {
    box-shadow:
        0 0 24px rgba(0, 217, 255, 0.7),
        0 0 55px rgba(0, 102, 255, 0.38),
        0 18px 42px rgba(0, 0, 0, 0.4) !important;
}

/* Danger button */
.small-danger {
    color: #ffdce8 !important;
    background: rgba(255, 77, 141, 0.12) !important;
    border: 1px solid rgba(255, 77, 141, 0.3) !important;
}

.small-danger:hover {
    background: rgba(255, 77, 141, 0.22) !important;
    box-shadow: 0 0 18px rgba(255, 77, 141, 0.25) !important;
}

/* Price card */
.price-box {
    background:
        linear-gradient(135deg, rgba(0, 217, 255, 0.13), rgba(106, 92, 255, 0.10)) !important;
    border-color: rgba(0, 217, 255, 0.36) !important;
    box-shadow:
        0 0 18px rgba(0, 217, 255, 0.14),
        inset 0 0 24px rgba(0, 217, 255, 0.04) !important;
}

.price-box h3,
.price-total strong {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.38);
}

/* Sleeve rows */
.sleeve-row {
    background: rgba(5, 18, 34, 0.72) !important;
    border-color: rgba(0, 217, 255, 0.18) !important;
}

.sleeve-row:hover {
    border-color: rgba(0, 217, 255, 0.55) !important;
    box-shadow:
        0 0 18px rgba(0, 217, 255, 0.15),
        0 12px 28px rgba(0, 0, 0, 0.25) !important;
}

/* Preview tabs */
.preview-tabs {
    background: rgba(10, 24, 43, 0.88) !important;
}

.tab {
    color: #dff5ff !important;
    background: rgba(0, 217, 255, 0.10) !important;
    border: 1px solid rgba(0, 217, 255, 0.18) !important;
}

.tab:hover {
    background: rgba(0, 217, 255, 0.18) !important;
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.17);
}

.tab.active {
    background:
        linear-gradient(135deg, #00d9ff, #0066ff 55%, #6a5cff) !important;
    color: #ffffff !important;
    box-shadow:
        0 0 18px rgba(0, 217, 255, 0.45),
        0 0 34px rgba(0, 102, 255, 0.24) !important;
}

/* Preview area */
.jacket-preview {
    background:
        radial-gradient(circle at center, rgba(0, 217, 255, 0.10), transparent 55%),
        linear-gradient(135deg, rgba(4, 14, 28, 0.96), rgba(9, 26, 47, 0.92)) !important;
    border-color: rgba(0, 217, 255, 0.24) !important;
    box-shadow:
        inset 0 0 35px rgba(0, 217, 255, 0.06),
        0 0 24px rgba(0, 217, 255, 0.12),
        0 20px 50px rgba(0, 0, 0, 0.35) !important;
}

/* Back text glow */
.back-nickname,
.back-quote {
    color: #d8f7ff !important;
    text-shadow:
        0 0 8px rgba(0, 217, 255, 0.75),
        0 0 22px rgba(0, 122, 255, 0.55),
        0 2px 8px rgba(0, 0, 0, 0.45) !important;
}

/* Sleeve selected item */
.sleeve-editor-item.selected {
    outline-color: #00d9ff !important;
    filter:
        drop-shadow(0 0 8px rgba(0, 217, 255, 0.65))
        drop-shadow(0 8px 15px rgba(0, 0, 0, 0.25)) !important;
}

.resize-handle {
    background: #00d9ff !important;
    box-shadow:
        0 0 10px rgba(0, 217, 255, 0.9),
        0 0 22px rgba(0, 102, 255, 0.4) !important;
}

/* Modal */
.modal {
    background: rgba(1, 7, 17, 0.72) !important;
    backdrop-filter: blur(10px);
}

.modal-card {
    background:
        linear-gradient(145deg, rgba(12, 31, 55, 0.98), rgba(6, 18, 35, 0.98)) !important;
    color: var(--text) !important;
    border: 1px solid rgba(0, 217, 255, 0.25) !important;
    box-shadow:
        0 0 30px rgba(0, 217, 255, 0.18),
        0 30px 80px rgba(0, 0, 0, 0.55) !important;
}

/* Success preview cards */
.submitted-preview-card {
    background:
        linear-gradient(145deg, rgba(12, 31, 55, 0.88), rgba(6, 18, 35, 0.84)) !important;
}

.submitted-preview-card img {
    background: rgba(4, 14, 28, 0.85) !important;
    border: 1px solid rgba(0, 217, 255, 0.16);
}

/* Floating neon background orbs */
body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(16px);
    opacity: 0.32;
    animation: neonFloat 9s ease-in-out infinite alternate;
}

body::before {
    left: -130px;
    top: 160px;
    background: rgba(0, 217, 255, 0.38);
}

body::after {
    right: -140px;
    bottom: 120px;
    background: rgba(106, 92, 255, 0.42);
    animation-delay: -3s;
}

@keyframes neonFloat {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(24px, -32px, 0) scale(1.12);
    }
}

/* Neon pulse on active preview */
.jacket-preview.active {
    animation:
        previewIn 260ms ease both,
        previewNeonPulse 3.6s ease-in-out infinite;
}

@keyframes previewNeonPulse {
    0%, 100% {
        box-shadow:
            inset 0 0 35px rgba(0, 217, 255, 0.05),
            0 0 18px rgba(0, 217, 255, 0.10),
            0 20px 50px rgba(0, 0, 0, 0.35);
    }

    50% {
        box-shadow:
            inset 0 0 45px rgba(0, 217, 255, 0.09),
            0 0 34px rgba(0, 217, 255, 0.22),
            0 20px 50px rgba(0, 0, 0, 0.35);
    }
}

/* Mobile adjustment */
@media (max-width: 900px) {
    .preview-tabs {
        background: rgba(10, 24, 43, 0.94) !important;
    }

    body::before,
    body::after {
        width: 240px;
        height: 240px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    .form-panel::before,
    .preview-panel::before,
    .submit-btn::before,
    .success-page .button-link::before,
    .jacket-preview.active {
        animation: none !important;
    }
}
/* ==========================================================================
   Wider neon border boxes
   Add after the blue neon theme override
   ========================================================================== */

.form-panel,
.preview-panel,
.success-page,
.submitted-preview-card,
.modal-card,
.price-box,
.sleeve-row,
.jacket-preview {
    border-width: 2px !important;
}

/* Stronger glowing border for the main panels */
.form-panel,
.preview-panel,
.success-page {
    box-shadow:
        0 0 0 1px rgba(0, 217, 255, 0.18) inset,
        0 0 36px rgba(0, 217, 255, 0.18),
        0 0 70px rgba(0, 102, 255, 0.12),
        0 24px 70px rgba(0, 0, 0, 0.38) !important;
}

/* Slightly thicker input borders too */
input[type="text"],
input[type="password"],
textarea,
select {
    border-width: 2px !important;
}

/* Thicker radio/option border pills */
.choice-row label,
.option-row label,
.choice,
.tab,
.secondary,
.small-danger {
    border-width: 2px !important;
}

/* More obvious active selected options */
.choice-row label:has(input:checked),
.option-row label:has(input:checked),
.choice:has(input:checked),
.tab.active {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 0 16px rgba(0, 217, 255, 0.62),
        0 0 36px rgba(0, 102, 255, 0.32),
        0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Wider glowing border around jacket preview */
.jacket-preview {
    border-color: rgba(0, 217, 255, 0.38) !important;
    box-shadow:
        inset 0 0 38px rgba(0, 217, 255, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 30px rgba(0, 217, 255, 0.18),
        0 20px 55px rgba(0, 0, 0, 0.38) !important;
}
/* ==========================================================================
   Remove neon from jacket text + lighten jacket preview box
   ========================================================================== */

/* Remove glow from nickname and quote only */
.back-nickname,
.back-quote {
    text-shadow: none !important;
}

/* Keep the text clean and readable */
.back-nickname,
.back-quote {
    color: #d1d3d4 !important;
}

/* Make the jacket preview background lighter */
.jacket-preview {
    background:
        radial-gradient(circle at center, rgba(0, 217, 255, 0.08), transparent 55%),
        linear-gradient(135deg, #eaf6ff 0%, #dcecff 48%, #f7fbff 100%) !important;

    border-color: rgba(0, 145, 255, 0.42) !important;

    box-shadow:
        inset 0 0 28px rgba(255, 255, 255, 0.55),
        0 0 24px rgba(0, 145, 255, 0.18),
        0 18px 45px rgba(0, 0, 0, 0.28) !important;
}

/* Keep sleeve preview background transparent so sleeves do not get a box */
#previewLeft.jacket-preview,
#previewRight.jacket-preview {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}
/* ==========================================================================
   Glowing copyable support number
   ========================================================================== */

.support-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-left: 6px;
    padding: 4px 10px;

    border: 1px solid rgba(0, 217, 255, 0.45);
    border-radius: 999px;

    background: rgba(0, 217, 255, 0.12);
    color: #eafaff;

    font: inherit;
    font-weight: 900;
    letter-spacing: 0.02em;

    cursor: pointer;

    text-shadow:
        0 0 8px rgba(0, 217, 255, 0.95),
        0 0 18px rgba(0, 102, 255, 0.65);

    box-shadow:
        0 0 10px rgba(0, 217, 255, 0.35),
        inset 0 0 12px rgba(0, 217, 255, 0.09);

    animation: supportNumberGlow 2.2s ease-in-out infinite;
}

.support-copy:hover {
    transform: translateY(-1px) scale(1.03);
    background: rgba(0, 217, 255, 0.22);
    border-color: rgba(0, 217, 255, 0.9);

    box-shadow:
        0 0 16px rgba(0, 217, 255, 0.65),
        0 0 34px rgba(0, 102, 255, 0.42),
        inset 0 0 14px rgba(0, 217, 255, 0.12);
}

.support-copy.copied {
    color: #ffffff;
    background: linear-gradient(135deg, #00d9ff, #0066ff);
    border-color: #00d9ff;
}

.copy-phone-status {
    display: inline-block;
    margin-left: 8px;
    color: #89f7ff;
    font-size: 0.9em;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.7);
}

@keyframes supportNumberGlow {
    0%, 100% {
        text-shadow:
            0 0 7px rgba(0, 217, 255, 0.72),
            0 0 16px rgba(0, 102, 255, 0.44);

        box-shadow:
            0 0 8px rgba(0, 217, 255, 0.28),
            inset 0 0 10px rgba(0, 217, 255, 0.07);
    }

    50% {
        text-shadow:
            0 0 12px rgba(0, 217, 255, 1),
            0 0 28px rgba(0, 102, 255, 0.72);

        box-shadow:
            0 0 18px rgba(0, 217, 255, 0.56),
            0 0 36px rgba(0, 102, 255, 0.28),
            inset 0 0 13px rgba(0, 217, 255, 0.13);
    }
}
/* ==========================================================================
   Remove blue borders from saved preview images
   Submit page + admin preview
   ========================================================================== */

/* Submit success page preview cards/images */
.submitted-preview-card,
.submitted-preview-card img,
.jacket-preview-result,
.sleeve-preview-result {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Keep the card clean but still separated */
.submitted-preview-card {
    background: transparent !important;
    padding: 10px !important;
}

/* Admin preview images */
.preview-grid img,
.preview-card img,
.admin-preview img,
.design-preview img {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Remove borders from admin preview containers too */
.preview-grid,
.preview-card,
.admin-preview,
.design-preview {
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Do NOT affect the live editor jacket box */
.preview-panel .jacket-preview {
    border-color: rgba(0, 145, 255, 0.42) !important;
}
/* ==========================================================================
   Remove blue glow/borders from submitted/admin preview images
   and move mobile nickname upward
   ========================================================================== */

/* Remove blue border/glow around saved preview images on submit page */
.success-page .submitted-preview-card img,
.success-page .jacket-preview-result,
.success-page .sleeve-preview-result {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Keep the preview cards clean */
.success-page .submitted-preview-card {
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: none !important;
}

/* Remove blue borders/glows from admin preview images */
.preview-grid img,
.preview-card img,
.admin-preview img,
.design-preview img {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* If the admin preview card itself has glow, remove only that glow */
.preview-grid,
.preview-card,
.admin-preview,
.design-preview {
    box-shadow: none !important;
}

/* Remove captured blue jacket-preview border from new saved previews */
#previewFront.jacket-preview,
#previewBack.jacket-preview {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Keep sleeve previews clean too */
#previewLeft.jacket-preview,
#previewRight.jacket-preview {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Move nickname up on mobile by about 20px */
@media (max-width: 700px) {
    .back-nickname {
        top: calc(10% - 10px) !important;
    }

    .back-nickname.arabic-font {
        top: calc(8% - 10px) !important;
    }
}

@media (max-width: 420px) {
    .back-nickname {
        top: calc(16% - 10px) !important;
    }

    .back-nickname.arabic-font {
        top: calc(14% - 20px) !important;
    }
}
/* ==========================================================================
   Sleeve patch capture fix
   Ensures sleeve patches appear in submit/admin saved previews
   ========================================================================== */

#previewLeft.jacket-preview,
#previewRight.jacket-preview {
    position: relative !important;
    overflow: visible !important;
}

#previewLeft .jacket-base,
#previewRight .jacket-base {
    position: relative !important;
    z-index: 1 !important;
}

#previewLeft .sleeve-items-layer,
#previewRight .sleeve-items-layer {
    position: absolute !important;
    inset: 0 !important;
    z-index: 999 !important;
    pointer-events: auto !important;
    overflow: visible !important;
}

#previewLeft .sleeve-editor-item,
#previewRight .sleeve-editor-item {
    position: absolute !important;
    z-index: 1000 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#previewLeft .sleeve-editor-image,
#previewRight .sleeve-editor-image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* ==========================================================================
   Capture visibility fix
   Keeps live preview visible for html2canvas screenshots
   ========================================================================== */

.preview-panel #previewFront.jacket-preview,
.preview-panel #previewBack.jacket-preview {
    display: none;
    position: relative !important;
    width: min(820px, 100%) !important;
    min-height: 1px !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at center, rgba(0, 217, 255, 0.08), transparent 55%),
        linear-gradient(135deg, #eaf6ff 0%, #dcecff 48%, #f7fbff 100%) !important;
}

.preview-panel #previewFront.jacket-preview.active,
.preview-panel #previewBack.jacket-preview.active {
    display: block !important;
}

.preview-panel #previewFront .jacket-base,
.preview-panel #previewBack .jacket-base {
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.preview-panel #previewBack .back-nickname,
.preview-panel #previewBack .back-quote {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 20 !important;
}