/* ==========================================================================
   THE CULTURAL FUSION - MODERN DESIGN SYSTEM & RESPONSIVE STYLES
   ========================================================================== */

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

:root {
    --primary: #f97316;
    --primary-hover: #ea580c;
    --primary-dark: #c2410c;
    --primary-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
    --primary-glow: rgba(249, 115, 22, 0.35);

    --secondary-gradient: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);

    --bg-main: #f8fafc;
    --surface-glass: rgba(255, 255, 255, 0.92);
    --surface-card: #ffffff;
    --border-subtle: rgba(226, 232, 240, 0.85);
    --border-glass: rgba(255, 255, 255, 0.7);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --shadow-sm: 0 2px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    --shadow-poster: 0 25px 60px -15px rgba(234, 88, 12, 0.18), 0 12px 28px -10px rgba(15, 23, 42, 0.12);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(254, 243, 199, 0.5) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 237, 213, 0.45) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(254, 215, 170, 0.35) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   APP SHELL & LAYOUT
   ========================================================================== */
.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 24px 60px;
    min-height: 100vh;
}

.app-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    align-items: start;
}

@media (min-width: 1200px) {
    .app-grid {
        grid-template-columns: 420px 1fr;
        gap: 36px;
    }
}

@media (max-width: 991px) {
    .app-container {
        padding: 16px 16px 90px;
    }
    .app-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ==========================================================================
   SIDEBAR / CONTROL PANEL
   ========================================================================== */
.sidebar-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 28px 24px;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header Brand / Logo */
.brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.brand-logo-wrap {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    padding: 6px;
    flex-shrink: 0;
}

.brand-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-info h1 {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--primary-dark);
}

.brand-badge .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.3);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* Steps Progress / Title */
.panel-headline {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Cards */
.form-step-card {
    background: var(--surface-card);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px 18px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.2s ease;
}

.form-step-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.form-step-card.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow), var(--shadow-md);
}

.step-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.step-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    transition: transform 0.25s ease;
}

.form-step-card:hover .step-number {
    transform: scale(1.1);
}

.step-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f1f5f9;
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-status.is-ready {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    transform: scale(1.02);
}

/* Input Fields */
.modern-input-wrap {
    position: relative;
}

.modern-input {
    width: 100%;
    height: 48px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    outline: none;
}

.modern-input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.modern-input.is-invalid {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

/* Custom Upload Dropzone */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.25s ease,
                background-color 0.25s ease,
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease;
}

.upload-dropzone:hover {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.04);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.upload-dropzone.drag-active {
    border-color: var(--primary);
    border-style: solid;
    background: rgba(249, 115, 22, 0.08);
    transform: scale(1.02);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.upload-dropzone.has-photo {
    border-style: solid;
    border-color: #86efac;
    background: #f0fdf4;
    padding: 12px 14px;
    transform: none;
}

.upload-dropzone.is-invalid {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.upload-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.upload-dropzone:hover .upload-icon-circle {
    transform: translateY(-2px);
}

.upload-text-main {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.upload-text-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Hidden Native File Input */
#formFile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

/* Uploaded Photo Preview Bar inside Dropzone */
.uploaded-photo-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.uploaded-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: var(--shadow-sm);
}

.uploaded-info {
    text-align: left;
    flex-grow: 1;
}

.uploaded-info .title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #166534;
}

.uploaded-info .change-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

/* Validation Feedback Alerts */
.field-error-msg {
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Primary Download Button */
.btn-download-master {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    height: 54px;
    width: 100%;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.45);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-download-master::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.7s ease;
}

.btn-download-master:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -5px rgba(234, 88, 12, 0.55);
}

.btn-download-master:hover::after {
    left: 100%;
}

.btn-download-master:active {
    transform: translateY(0);
}

.btn-download-master .download-icon {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.btn-download-master:hover .download-icon {
    transform: translateY(2px);
}

/* Sidebar Footer Info */
.sidebar-footer {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-top: 10px;
}

.sidebar-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sidebar-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ==========================================================================
   POSTER PREVIEW CANVAS AREA
   ========================================================================== */
.poster-stage-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Main Top Header */
.main-page-header {
    width: 100%;
    text-align: center;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    box-shadow: var(--shadow-sm);
}

.main-page-header h2 {
    font-family: 'Noto Serif Gujarati', serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
    margin: 0;
}

.main-page-header p {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

/* Framed Poster Display */
.poster-frame-wrapper {
    position: relative;
    max-width: 650px;
    width: 100%;
    border-radius: var(--radius-md);
    background: #ffffff;
    padding: 12px;
    box-shadow: var(--shadow-poster);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
}

/* Capture DOM Element (Scales gracefully) */
.poster_prev {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #ffffff;
    line-height: 0;
}

/* Poster Background Image */
.poster_img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Embedded Profile Photo on Poster */
#profile_img {
    position: absolute;
    z-index: 100;
    display: none;
    object-fit: cover;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#profile_img.animate-pop {
    animation: photoSnapIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes photoSnapIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    60% {
        opacity: 1;
        transform: scale(1.03);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Embedded User Name Text on Poster */
#user_name_prev {
    position: absolute;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    font-weight: 600;
    font-family: 'Poppins', system-ui, sans-serif !important;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: keep-all;
    box-sizing: border-box;
    pointer-events: none;
}

/* ==========================================================================
   MOBILE STICKY BOTTOM BAR (ALWAYS ACCESSIBLE)
   ========================================================================== */
.mobile-sticky-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    z-index: 9999;
}

@media (max-width: 991px) {
    .mobile-sticky-action-bar {
        display: block;
    }
    .sidebar-panel .btn-download-master {
        display: none; /* Hide in sidebar on mobile to avoid duplication */
    }
}

/* ==========================================================================
   CROPPER MODAL (PERFECT MOBILE & DESKTOP VIEW)
   ========================================================================== */
.image_prev_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.image_prev_modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cropper_card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.45);
    max-width: 460px;
    width: 100%;
    padding: 18px 18px;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.9);
    transform: scale(0.92) translateY(12px);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.image_prev_modal.active .cropper_card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cropper_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.cropper_header h5 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cropper_viewport_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f172a; /* Dark studio backdrop makes photo stand out */
    border-radius: var(--radius-md);
    padding: 8px;
    margin: 10px 0 6px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

#upload-demo {
    margin: 0 auto;
}

/* Croppie Container & Slider Customization */
.croppie-container {
    padding: 0;
}

.croppie-container .cr-boundary {
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.croppie-container .cr-viewport {
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.55);
}

.croppie-container .cr-slider-wrap {
    width: 100%;
    margin: 10px auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.croppie-container .cr-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80%;
    max-width: 240px;
    height: 6px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}

.croppie-container .cr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.4);
    border: 2px solid #ffffff;
    transition: transform 0.15s ease;
}

.croppie-container .cr-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s ease;
}

.tool-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--text-primary);
}

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

.cropper_footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.btn-crop-save {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    height: 44px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px -2px rgba(234, 88, 12, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-crop-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -2px rgba(234, 88, 12, 0.5);
}

.btn-crop-cancel {
    background: #f1f5f9;
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-sm);
    height: 44px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-crop-cancel:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

/* ==========================================================================
   LOADER OVERLAY
   ========================================================================== */
#loader_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

#loader_container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modern-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS (MOBILE VIEW PERFECTION)
   ========================================================================== */
@media (max-width: 576px) {
    .main-page-header h2 {
        font-size: 1.6rem;
    }

    .image_prev_modal {
        padding: 8px;
    }

    .cropper_card {
        padding: 12px 12px;
        border-radius: 16px;
        max-height: 98vh;
    }

    .cropper_header h5 {
        font-size: 0.96rem;
    }

    .tool-btn {
        height: 30px;
        padding: 0 10px;
        font-size: 0.76rem;
    }

    .cropper_viewport_wrapper {
        padding: 4px;
        margin: 8px 0 4px;
    }

    .cropper_footer {
        margin-top: 6px;
        padding-top: 6px;
        gap: 8px;
    }

    .btn-crop-save, .btn-crop-cancel {
        height: 40px;
        font-size: 0.88rem;
    }
}

/* ==========================================================================
   VALIDATION ERROR MODAL DIALOG
   ========================================================================== */
.validation_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.validation_modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.validation_card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.45);
    max-width: 440px;
    width: 100%;
    padding: 28px 22px 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
    transform: scale(0.92) translateY(12px);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.validation_modal.active .validation_card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Attention Highlights & Shake Keyframes */
@keyframes attentionShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.attention-shake {
    animation: attentionShake 0.4s ease-in-out;
}

@keyframes attentionPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.attention-pulse {
    animation: attentionPulse 1.2s infinite;
}

.validation_icon_circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fef2f2;
    border: 2px solid #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 14px;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15);
}

.validation_title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.validation_subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.4;
}

.validation_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
    text-align: left;
}

.val-item {
    background: #fff5f5;
    border: 1.5px solid #fed7d7;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.val-item-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.val-item-content .title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #991b1b;
    margin-bottom: 2px;
}

.val-item-content .desc {
    font-size: 0.8rem;
    font-weight: 600;
    color: #7f1d1d;
    line-height: 1.35;
}

.btn-validation-action {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    height: 48px;
    width: 100%;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(234, 88, 12, 0.4);
    transition: all 0.2s ease;
}

.btn-validation-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -5px rgba(234, 88, 12, 0.5);
}

.btn-validation-action:active {
    transform: translateY(0);
}

/* ==========================================================================
   CONTENT PROTECTION & ANTI-COPY STYLES
   ========================================================================== */
body, 
body *:not(input):not(textarea) {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

input, 
textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}