/*
 * Photo Card Studio styles — ported verbatim from the redesign
 * project's static demo (potoCard/potocard.html), theme presets and
 * layout unchanged. Loaded via theme_asset('theme/css/photo-card.css')
 * from resources/views/frontend/photo-card/style1.blade.php.
 */
            :root {
                --bg-main: #0b0f17;
                --bg-panel: #131b26;
                --bg-panel-alt: #1a2332;
                --border-color: rgba(255, 255, 255, 0.08);
                --border-focus: #e11d48;
                --text-main: #f1f5f9;
                --text-muted: #94a3b8;
                --text-dim: #64748b;
                --primary: #e11d48;
                --primary-hover: #f43f5e;
                --accent: #38bdf8;
                --success: #10b981;
                --radius-lg: 16px;
                --radius-md: 12px;
                --radius-sm: 8px;
                --shadow-studio: 0 20px 40px -15px rgba(0, 0, 0, 0.7);

                /* Card Live Theme Variables */
                --card-bg-gradient: linear-gradient(145deg, #700b18 0%, #38040b 60%, #1f0105 100%);
                --card-primary-color: #e11d48;
                --card-accent-color: #ffd166;
                --card-text-color: #ffffff;
                --card-subtitle-color: #fda4af;
                --card-meta-bg: rgba(255, 255, 255, 0.12);
                --card-meta-text: #ffffff;
                --card-bar-bg: #880e1c;
                --card-bar-text: #ffffff;
                --card-cta-color: #fbbf24;
                --card-font-family: "Noto Serif Bengali", serif;
            }

            * {
                box-sizing: border-box;
                margin: 0;
                padding: 0;
            }

            body {
                background: var(--bg-main);
                color: var(--text-main);
                font-family: "Hind Siliguri", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
                min-height: 100vh;
                display: flex;
                flex-direction: column;
                overflow-x: hidden;
            }

            /* Custom Scrollbar */
            ::-webkit-scrollbar {
                width: 6px;
                height: 6px;
            }
            ::-webkit-scrollbar-track {
                background: var(--bg-main);
            }
            ::-webkit-scrollbar-thumb {
                background: var(--bg-panel-alt);
                border-radius: 4px;
            }
            ::-webkit-scrollbar-thumb:hover {
                background: var(--primary);
            }

            /* =========================================================
               HEADER / TOPBAR
            ========================================================= */
            .studio-header {
                background: rgba(19, 27, 38, 0.85);
                backdrop-filter: blur(12px);
                -webkit-backdrop-filter: blur(12px);
                border-bottom: 1px solid var(--border-color);
                position: sticky;
                top: 0;
                z-index: 100;
                padding: 12px 24px;
            }
            .studio-header__inner {
                max-width: 1500px;
                margin: 0 auto;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 16px;
            }
            .studio-brand {
                display: flex;
                align-items: center;
                gap: 14px;
                text-decoration: none;
                color: var(--text-main);
            }
            .studio-brand img {
                height: 32px;
                width: auto;
                object-fit: contain;
            }
            .studio-badge {
                background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(225, 29, 72, 0.05));
                border: 1px solid rgba(225, 29, 72, 0.4);
                color: #ff6b81;
                font-size: 11px;
                font-weight: 700;
                padding: 3px 8px;
                border-radius: 20px;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }
            .header-actions {
                display: flex;
                align-items: center;
                gap: 12px;
            }
            .btn-outline-back {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                color: var(--text-muted);
                text-decoration: none;
                font-size: 13px;
                font-weight: 600;
                padding: 7px 14px;
                border-radius: var(--radius-sm);
                border: 1px solid var(--border-color);
                background: rgba(255, 255, 255, 0.03);
                transition: all 0.2s ease;
            }
            .btn-outline-back:hover {
                color: #fff;
                border-color: var(--primary);
                background: rgba(225, 29, 72, 0.1);
            }

            /* =========================================================
               MAIN STUDIO LAYOUT
            ========================================================= */
            .studio-container {
                max-width: 1500px;
                margin: 0 auto;
                padding: 24px;
                width: 100%;
                flex: 1;
                display: grid;
                grid-template-columns: 460px 1fr;
                gap: 28px;
                align-items: start;
            }

            @media (max-width: 1080px) {
                .studio-container {
                    grid-template-columns: 1fr;
                }
            }

            /* Reader mode: no builder panel exists in the DOM at all (guest/non-admin
               view), so the stage becomes a single centered column instead of the
               second half of a two-column grid. */
            .studio-container.pc-reader-mode {
                grid-template-columns: minmax(0, 640px);
                justify-content: center;
            }

            /* =========================================================
               LEFT PANEL: CONTROLS & EDITOR
            ========================================================= */
            .studio-panel {
                background: var(--bg-panel);
                border: 1px solid var(--border-color);
                border-radius: var(--radius-lg);
                box-shadow: var(--shadow-studio);
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }

            /* Tabs */
            .panel-tabs {
                display: flex;
                background: var(--bg-panel-alt);
                border-bottom: 1px solid var(--border-color);
                padding: 6px 8px 0;
                gap: 4px;
                overflow-x: auto;
            }
            .panel-tab {
                flex: 1;
                min-width: 90px;
                padding: 10px 12px;
                background: transparent;
                border: none;
                color: var(--text-muted);
                font-size: 13px;
                font-weight: 600;
                font-family: inherit;
                border-radius: 8px 8px 0 0;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 6px;
                transition: all 0.2s ease;
                white-space: nowrap;
            }
            .panel-tab:hover {
                color: var(--text-main);
                background: rgba(255, 255, 255, 0.04);
            }
            .panel-tab.active {
                color: #fff;
                background: var(--bg-panel);
                border-top: 2px solid var(--primary);
                font-weight: 700;
            }

            /* Tab Content */
            .tab-content {
                padding: 20px;
                max-height: calc(100vh - 180px);
                overflow-y: auto;
            }
            .tab-pane {
                display: none;
                flex-direction: column;
                gap: 18px;
            }
            .tab-pane.active {
                display: flex;
            }

            /* Form Elements */
            .form-group {
                display: flex;
                flex-direction: column;
                gap: 7px;
            }
            .form-label {
                font-size: 12px;
                font-weight: 600;
                color: var(--text-muted);
                display: flex;
                align-items: center;
                justify-content: space-between;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }
            .form-label span.hint {
                font-size: 11px;
                color: var(--text-dim);
                text-transform: none;
                font-weight: normal;
            }
            .form-control,
            .form-textarea,
            .form-select {
                background: var(--bg-panel-alt);
                border: 1px solid var(--border-color);
                border-radius: var(--radius-sm);
                color: var(--text-main);
                font-family: inherit;
                font-size: 14px;
                padding: 10px 12px;
                outline: none;
                transition: border-color 0.2s, box-shadow 0.2s;
                width: 100%;
            }
            .form-control:focus,
            .form-textarea:focus,
            .form-select:focus {
                border-color: var(--primary);
                box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
            }
            .form-textarea {
                resize: vertical;
                min-height: 80px;
                line-height: 1.5;
            }

            /* Quick Chips */
            .chips-wrapper {
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
                margin-top: 4px;
            }
            .chip-btn {
                background: rgba(255, 255, 255, 0.05);
                border: 1px solid var(--border-color);
                color: var(--text-muted);
                font-size: 12px;
                padding: 4px 10px;
                border-radius: 20px;
                cursor: pointer;
                font-family: inherit;
                transition: all 0.15s ease;
            }
            .chip-btn:hover {
                background: rgba(225, 29, 72, 0.15);
                border-color: var(--primary);
                color: #fff;
            }
            .chip-btn.active {
                background: var(--primary);
                border-color: var(--primary);
                color: #fff;
            }

            /* Upload Dropzone */
            .dropzone {
                border: 2px dashed rgba(255, 255, 255, 0.15);
                border-radius: var(--radius-md);
                padding: 20px;
                text-align: center;
                background: rgba(255, 255, 255, 0.02);
                cursor: pointer;
                transition: all 0.2s ease;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 8px;
                position: relative;
            }
            .dropzone:hover,
            .dropzone.dragover {
                border-color: var(--primary);
                background: rgba(225, 29, 72, 0.05);
            }
            .dropzone i {
                font-size: 28px;
                color: var(--primary);
            }
            .dropzone p {
                font-size: 13px;
                color: var(--text-muted);
            }
            .dropzone span {
                font-size: 11px;
                color: var(--text-dim);
            }
            .dropzone input[type="file"] {
                position: absolute;
                inset: 0;
                opacity: 0;
                cursor: pointer;
                width: 100%;
                height: 100%;
            }

            /* Sample News Image Selector */
            .sample-photos-grid {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                gap: 8px;
                margin-top: 6px;
            }
            .sample-photo-item {
                position: relative;
                aspect-ratio: 16/10;
                border-radius: 6px;
                overflow: hidden;
                border: 2px solid transparent;
                cursor: pointer;
                transition: all 0.2s;
            }
            .sample-photo-item img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }
            .sample-photo-item:hover {
                transform: scale(1.04);
                border-color: var(--accent);
            }
            .sample-photo-item.active {
                border-color: var(--primary);
                box-shadow: 0 0 0 2px var(--primary);
            }
            .sample-photo-item span {
                position: absolute;
                bottom: 0;
                inset-inline: 0;
                background: rgba(0, 0, 0, 0.7);
                color: #fff;
                font-size: 10px;
                padding: 2px 4px;
                text-align: center;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            /* Theme Selector Grid */
            .theme-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            .theme-section-title {
                grid-column: span 2;
                font-size: 11px;
                font-weight: 700;
                color: var(--accent);
                text-transform: uppercase;
                letter-spacing: 0.8px;
                padding-top: 6px;
                border-top: 1px solid var(--border-color);
                margin-top: 4px;
                display: flex;
                align-items: center;
                gap: 6px;
            }
            .theme-card {
                padding: 10px;
                border-radius: var(--radius-md);
                border: 2px solid var(--border-color);
                background: var(--bg-panel-alt);
                cursor: pointer;
                display: flex;
                align-items: center;
                gap: 10px;
                transition: all 0.2s ease;
            }
            .theme-card:hover {
                border-color: rgba(255, 255, 255, 0.3);
                transform: translateY(-2px);
            }
            .theme-card.active {
                border-color: var(--primary);
                background: rgba(225, 29, 72, 0.1);
            }
            .theme-preview {
                width: 38px;
                height: 38px;
                border-radius: 8px;
                flex-shrink: 0;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
                background-size: cover;
                background-position: center;
            }
            .theme-info {
                display: flex;
                flex-direction: column;
                gap: 2px;
                overflow: hidden;
            }
            .theme-title {
                font-size: 12px;
                font-weight: 700;
                color: var(--text-main);
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .theme-desc {
                font-size: 10px;
                color: var(--text-dim);
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            /* Aspect Ratio Selector */
            .ratio-grid {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                gap: 8px;
            }
            .ratio-btn {
                background: var(--bg-panel-alt);
                border: 1px solid var(--border-color);
                border-radius: var(--radius-sm);
                padding: 10px 4px;
                color: var(--text-muted);
                font-size: 11px;
                font-weight: 600;
                cursor: pointer;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 6px;
                font-family: inherit;
                transition: all 0.2s;
            }
            .ratio-btn:hover {
                border-color: rgba(255, 255, 255, 0.3);
                color: #fff;
            }
            .ratio-btn.active {
                border-color: var(--primary);
                background: rgba(225, 29, 72, 0.12);
                color: #fff;
            }
            .ratio-box {
                border: 1.5px solid currentColor;
                border-radius: 3px;
            }
            .ratio-box.r1-1 {
                width: 22px;
                height: 22px;
            }
            .ratio-box.r4-5 {
                width: 20px;
                height: 25px;
            }
            .ratio-box.r16-9 {
                width: 28px;
                height: 16px;
            }
            .ratio-box.r-compact {
                width: 18px;
                height: 24px;
            }

            /* Sliders and Toggles */
            .slider-group {
                display: flex;
                align-items: center;
                gap: 12px;
            }
            .slider-input {
                flex: 1;
                accent-color: var(--primary);
            }
            .slider-val {
                font-size: 12px;
                font-weight: 700;
                color: var(--text-muted);
                width: 40px;
                text-align: right;
            }

            .toggle-row {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 10px 12px;
                background: var(--bg-panel-alt);
                border-radius: var(--radius-sm);
                border: 1px solid var(--border-color);
            }
            .toggle-label {
                font-size: 13px;
                font-weight: 600;
                color: var(--text-main);
                display: flex;
                align-items: center;
                gap: 8px;
            }
            .toggle-switch {
                position: relative;
                width: 44px;
                height: 24px;
            }
            .toggle-switch input {
                opacity: 0;
                width: 0;
                height: 0;
            }
            .toggle-slider {
                position: absolute;
                cursor: pointer;
                inset: 0;
                background-color: rgba(255, 255, 255, 0.15);
                transition: 0.3s;
                border-radius: 24px;
            }
            .toggle-slider:before {
                position: absolute;
                content: "";
                height: 18px;
                width: 18px;
                left: 3px;
                bottom: 3px;
                background-color: white;
                transition: 0.3s;
                border-radius: 50%;
            }
            .toggle-switch input:checked + .toggle-slider {
                background-color: var(--primary);
            }
            .toggle-switch input:checked + .toggle-slider:before {
                transform: translateX(20px);
            }

            /* Preset Samples Button Bar */
            .preset-quick-bar {
                display: flex;
                gap: 8px;
                margin-bottom: 12px;
            }
            .btn-sample-load {
                background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0.05));
                border: 1px solid rgba(56, 189, 248, 0.3);
                color: var(--accent);
                font-size: 12px;
                font-weight: 700;
                padding: 7px 12px;
                border-radius: var(--radius-sm);
                cursor: pointer;
                display: inline-flex;
                align-items: center;
                gap: 6px;
                font-family: inherit;
                transition: all 0.2s;
                flex: 1;
                justify-content: center;
            }
            .btn-sample-load:hover {
                background: rgba(56, 189, 248, 0.25);
                color: #fff;
            }

            /* =========================================================
               RIGHT PANEL: LIVE PREVIEW & EXPORT STAGE
            ========================================================= */
            .studio-stage {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 20px;
                position: sticky;
                top: 75px;
            }

            /* Stage Controls Bar */
            .stage-bar {
                width: 100%;
                background: var(--bg-panel);
                border: 1px solid var(--border-color);
                border-radius: var(--radius-md);
                padding: 10px 16px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                flex-wrap: wrap;
                gap: 12px;
            }
            .stage-info {
                display: flex;
                align-items: center;
                gap: 12px;
                font-size: 12px;
                color: var(--text-muted);
            }
            .stage-badge {
                display: inline-flex;
                align-items: center;
                gap: 4px;
                background: rgba(255, 255, 255, 0.06);
                padding: 3px 8px;
                border-radius: 4px;
                font-weight: 600;
            }

            .stage-actions {
                display: flex;
                align-items: center;
                gap: 10px;
            }
            .btn-copy {
                background: var(--bg-panel-alt);
                border: 1px solid var(--border-color);
                color: var(--text-main);
                font-size: 13px;
                font-weight: 600;
                padding: 8px 16px;
                border-radius: var(--radius-sm);
                cursor: pointer;
                display: inline-flex;
                align-items: center;
                gap: 8px;
                font-family: inherit;
                transition: all 0.2s ease;
            }
            .btn-copy:hover {
                background: rgba(255, 255, 255, 0.1);
                border-color: rgba(255, 255, 255, 0.3);
            }
            .btn-download {
                background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
                border: none;
                color: #fff;
                font-size: 14px;
                font-weight: 700;
                padding: 9px 22px;
                border-radius: var(--radius-sm);
                cursor: pointer;
                display: inline-flex;
                align-items: center;
                gap: 8px;
                font-family: inherit;
                box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4);
                transition: all 0.2s ease;
            }
            .btn-download:hover {
                background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
                box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6);
                transform: translateY(-1px);
            }
            .btn-download:disabled,
            .btn-copy:disabled {
                opacity: 0.55;
                cursor: not-allowed;
                transform: none;
            }

            /* Preview Viewport */
            .preview-viewport {
                width: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 16px;
                background: radial-gradient(circle at 50% 50%, #151e2b 0%, #0b0f17 100%);
                border-radius: var(--radius-lg);
                border: 1px solid var(--border-color);
                box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
                overflow: hidden;
            }

            /* =========================================================
               THE PHOTO CARD (TARGET CAPTURE CONTAINER)
            ========================================================= */
            .pc-shell {
                position: relative;
                box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
                border-radius: 14px;
                overflow: hidden;
                background: #000;
                transition: width 0.3s ease, min-height 0.3s ease;
                width: 420px;
                max-width: 100%;
            }

            /* Aspect Ratio Modifiers */
            .pc-shell.ratio-1-1 {
                width: 420px;
            }
            .pc-shell.ratio-4-5 {
                width: 380px;
            }
            .pc-shell.ratio-16-9 {
                width: 520px;
            }
            .pc-shell.ratio-compact {
                width: 360px;
            }

            /* Card Container */
            .pc-card {
                position: relative;
                width: 100%;
                background: var(--card-bg-gradient);
                color: var(--card-text-color);
                font-family: var(--card-font-family);
                display: flex;
                flex-direction: column;
                overflow: hidden;
                user-select: none;
            }

            /* Background Graphic / Watermark */
            .pc-card__bg-pattern {
                position: absolute;
                inset: 0;
                opacity: 0.08;
                pointer-events: none;
                background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.4) 1px, transparent 0);
                background-size: 20px 20px;
                z-index: 0;
            }
            .pc-card__watermark {
                position: absolute;
                right: -20px;
                bottom: 40px;
                width: 180px;
                opacity: 0.05;
                pointer-events: none;
                filter: grayscale(1) brightness(2);
                z-index: 0;
            }

            /* Card Content Layout */
            .pc-card__body {
                position: relative;
                z-index: 1;
                display: flex;
                flex-direction: column;
                height: 100%;
            }

            /* Top Meta Bar: Category, Date, Logo */
            .pc-card__header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 14px 18px 10px;
                gap: 12px;
            }
            .pc-card__meta-group {
                display: flex;
                align-items: center;
                gap: 8px;
                flex-wrap: wrap;
            }
            .pc-card__category {
                background: var(--card-primary-color);
                color: #fff;
                font-size: 11px;
                font-weight: 800;
                padding: 3px 10px;
                border-radius: 4px;
                letter-spacing: 0.5px;
                text-transform: uppercase;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
            }
            .pc-card__date {
                font-size: 11px;
                color: var(--card-subtitle-color);
                font-weight: 500;
                display: inline-flex;
                align-items: center;
                gap: 4px;
            }
            .pc-card__logo {
                height: 28px;
                max-width: 140px;
                display: flex;
                align-items: center;
                justify-content: flex-end;
            }
            .pc-card__logo img {
                height: 100%;
                width: auto;
                object-fit: contain;
                filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
            }

            /* Top QR Verify Badge (Amar Desh Style) */
            .pc-card__qr-verify {
                display: none;
                flex-direction: column;
                align-items: center;
                gap: 2px;
            }
            .pc-card__qr-verify span {
                font-size: 9px;
                color: #b91c1c;
                font-weight: 700;
            }
            .pc-card__qr-verify svg,
            .pc-card__qr-verify img {
                width: 38px;
                height: 38px;
                border-radius: 3px;
                background: #fff;
                padding: 2px;
            }

            /* News Photo Area */
            .pc-card__photo-container {
                padding: 0 16px;
                position: relative;
            }
            .pc-card__photo-frame {
                position: relative;
                width: 100%;
                height: 210px;
                border-radius: 10px;
                overflow: hidden;
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
                background: #111;
            }
            .pc-card__photo-img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
                transition: transform 0.3s;
            }
            .pc-card__tag-badge {
                position: absolute;
                top: 10px;
                left: 10px;
                background: rgba(225, 29, 72, 0.95);
                color: #fff;
                font-size: 11px;
                font-weight: 800;
                padding: 3px 9px;
                border-radius: 4px;
                backdrop-filter: blur(4px);
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
                display: flex;
                align-items: center;
                gap: 5px;
            }

            /* Sub-headline / Highlight tag */
            .pc-card__subheadline {
                display: none;
                font-size: 14px;
                font-weight: 700;
                color: #84cc16;
                line-height: 1.4;
                margin-bottom: 4px;
            }

            /* Headline & Text Section */
            .pc-card__content {
                padding: 14px 18px 10px;
                display: flex;
                flex-direction: column;
                gap: 8px;
                text-align: left;
            }
            .pc-card__headline {
                font-size: 21px;
                font-weight: 800;
                line-height: 1.35;
                color: var(--card-text-color);
                text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
                letter-spacing: -0.2px;
                word-break: break-word;
            }

            /* Lime/Green Ribbon (Azadi Style) */
            .pc-card__ribbon {
                display: none;
                background: #86efac;
                color: #064e3b;
                font-size: 12px;
                font-weight: 800;
                text-align: center;
                padding: 5px;
                letter-spacing: 0.5px;
            }

            /* Call To Action Row */
            .pc-card__cta-row {
                display: flex;
                align-items: center;
                justify-content: space-between;
                position: relative;
                padding: 0 18px 10px;
                font-size: 12px;
            }
            .pc-card__cta {
                color: var(--card-cta-color);
                font-weight: 800;
                display: inline-flex;
                align-items: center;
                gap: 4px;
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
            }
            .pc-card__reporter {
                font-size: 11px;
                color: var(--card-subtitle-color);
                opacity: 0.85;
                margin-left: auto;
            }

            /* Theme 1: Jugantor Specific Bottom Bar */
            .pc-card__jugantor-footer {
                display: none;
                align-items: center;
                justify-content: space-between;
                padding: 12px 18px 14px;
                background: #140003;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
            }
            .pc-card__jugantor-left {
                display: flex;
                flex-direction: column;
                gap: 2px;
            }
            .pc-card__jugantor-cta {
                font-size: 12px;
                font-weight: 700;
                color: #f1f5f9;
            }
            .pc-card__jugantor-url {
                font-size: 11px;
                color: #cbd5e1;
                letter-spacing: 1px;
            }
            .pc-card__jugantor-logo {
                height: 28px;
                display: flex;
                align-items: center;
            }
            .pc-card__jugantor-logo img {
                height: 100%;
                width: auto;
                object-fit: contain;
                filter: brightness(0) invert(1);
            }

            /* Theme 4: Azadi Specific Bottom White Footer */
            .pc-card__azadi-footer {
                display: none;
                align-items: center;
                justify-content: space-between;
                padding: 8px 18px;
                background: #ffffff;
                color: #0f172a;
                border-top: 1px solid #e2e8f0;
            }
            .pc-card__azadi-date {
                font-size: 12px;
                font-weight: 700;
                color: #0f172a;
            }
            .pc-card__azadi-logo {
                height: 28px;
                display: flex;
                align-items: center;
            }
            .pc-card__azadi-logo img {
                height: 100%;
                width: auto;
                object-fit: contain;
                filter: none;
            }

            /* Social Media Badges Bar (Barta Bazar Style) */
            .pc-card__social-bar {
                display: none;
                background: #ffffff;
                padding: 8px 12px;
                border-top: 1px solid #e2e8f0;
                justify-content: space-around;
                align-items: center;
                gap: 6px;
            }
            .pc-card__social-item {
                display: inline-flex;
                align-items: center;
                gap: 4px;
                font-size: 10px;
                font-weight: 700;
                color: #1e293b;
            }
            .pc-card__social-icon {
                width: 18px;
                height: 18px;
                border-radius: 3px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                color: #fff;
                font-size: 10px;
            }
            .pc-card__social-icon.fb { background: #1877f2; }
            .pc-card__social-icon.yt { background: #ff0000; }
            .pc-card__social-icon.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
            .pc-card__social-icon.tw { background: #000000; }

            /* Official Web Address Bar */
            .pc-card__url-bar {
                background: var(--card-bar-bg);
                color: var(--card-bar-text);
                font-size: 11px;
                font-weight: 800;
                letter-spacing: 2px;
                text-align: center;
                padding: 7px 14px;
                text-transform: uppercase;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                margin-top: auto;
            }
            .pc-card__url-bar span.dot {
                display: inline-block;
                width: 4px;
                height: 4px;
                background: currentColor;
                border-radius: 50%;
                opacity: 0.6;
            }

            /* Bottom Sponsor / Ad Banner */
            .pc-card__ad-banner {
                line-height: 0;
                background: #000;
                overflow: hidden;
                border-top: 1px solid rgba(255, 255, 255, 0.08);
            }
            .pc-card__ad-banner img {
                width: 100%;
                height: auto;
                display: block;
                object-fit: cover;
                max-height: 45px;
            }

            /* =========================================================
               THEME PRESETS: 6 ORIGINAL + 4 NEW DESIGNER THEMES
            ========================================================= */

            /* 1. Theme: Breaking Red (Original) */
            .pc-card.theme-breaking-red {
                --card-bg-gradient: linear-gradient(145deg, #700b18 0%, #38040b 60%, #1f0105 100%);
                --card-primary-color: #e11d48;
                --card-bar-bg: #880e1c;
                --card-bar-text: #ffffff;
                --card-text-color: #ffffff;
                --card-subtitle-color: #fda4af;
                --card-cta-color: #fbbf24;
            }

            /* 2. Theme: Dark Obsidian (Original) */
            .pc-card.theme-dark-obsidian {
                --card-bg-gradient: linear-gradient(160deg, #1e293b 0%, #0f172a 50%, #020617 100%);
                --card-text-color: #f8fafc;
                --card-subtitle-color: #94a3b8;
                --card-primary-color: #f43f5e;
                --card-bar-bg: #020617;
                --card-bar-text: #38bdf8;
                --card-cta-color: #38bdf8;
            }

            /* 3. Theme: Clean White (Original) */
            .pc-card.theme-clean-white {
                --card-bg-gradient: #ffffff;
                --card-text-color: #0f172a;
                --card-subtitle-color: #64748b;
                --card-primary-color: #d71920;
                --card-bar-bg: #0f172a;
                --card-bar-text: #ffffff;
                --card-cta-color: #d71920;
            }
            .pc-card.theme-clean-white .pc-card__bg-pattern {
                opacity: 0.03;
                background-image: radial-gradient(circle at 2px 2px, #000 1px, transparent 0);
            }
            .pc-card.theme-clean-white .pc-card__logo img {
                filter: none;
            }
            .pc-card.theme-clean-white .pc-card__headline {
                text-shadow: none;
            }

            /* 4. Theme: Cinematic Full Photo (Original) */
            .pc-card.theme-cinematic-overlay {
                --card-bg-gradient: #0b0f17;
            }
            .pc-card.theme-cinematic-overlay .pc-card__photo-container {
                padding: 0;
            }
            .pc-card.theme-cinematic-overlay .pc-card__photo-frame {
                height: 250px;
                border-radius: 0;
                mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
                -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
            }
            .pc-card.theme-cinematic-overlay .pc-card__content {
                margin-top: -30px;
            }

            /* 5. Theme: Bangladesh Emerald (Original) */
            .pc-card.theme-bangladesh-emerald {
                --card-bg-gradient: linear-gradient(150deg, #064e3b 0%, #022c22 60%, #01140f 100%);
                --card-primary-color: #e11d48;
                --card-accent-color: #fbbf24;
                --card-subtitle-color: #a7f3d0;
                --card-bar-bg: #011d14;
                --card-cta-color: #facc15;
            }

            /* 6. Theme: Royal Navy (Original) */
            .pc-card.theme-royal-navy {
                --card-bg-gradient: linear-gradient(150deg, #1e3a8a 0%, #0f172a 60%, #020617 100%);
                --card-primary-color: #38bdf8;
                --card-accent-color: #f59e0b;
                --card-subtitle-color: #bae6fd;
                --card-bar-bg: #020617;
                --card-cta-color: #38bdf8;
            }

            /* =========================================================
               NEW THEME 7: যুগান্তর স্টাইল (Idea 1 - Jugantor Style)
            ========================================================= */
            .pc-card.theme-jugantor-style {
                --card-bg-gradient: linear-gradient(180deg, #180004 0%, #360209 45%, #180004 100%);
                --card-text-color: #ffffff;
                --card-subtitle-color: #cbd5e1;
                --card-primary-color: #e11d48;
                --card-bar-bg: #150003;
                --card-bar-text: #ffffff;
                --card-cta-color: #ffffff;
            }
            .pc-card.theme-jugantor-style .pc-card__header {
                display: none;
            }
            .pc-card.theme-jugantor-style .pc-card__photo-container {
                padding: 0;
            }
            .pc-card.theme-jugantor-style .pc-card__photo-frame {
                height: 240px;
                border-radius: 0;
                mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
                -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
            }
            .pc-card.theme-jugantor-style .pc-card__content {
                text-align: center;
                margin-top: -20px;
                padding: 10px 20px;
            }
            .pc-card.theme-jugantor-style .pc-card__subheadline {
                display: block;
                color: #84cc16;
                font-size: 15px;
                font-weight: 700;
            }
            .pc-card.theme-jugantor-style .pc-card__headline {
                font-size: 23px;
                font-weight: 900;
                color: #ffffff;
                text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
            }
            .pc-card.theme-jugantor-style .pc-card__cta-row {
                display: none;
            }
            .pc-card.theme-jugantor-style .pc-card__url-bar {
                display: none;
            }
            .pc-card.theme-jugantor-style .pc-card__jugantor-footer {
                display: flex;
            }

            /* =========================================================
               NEW THEME 8: আমার দেশ স্টাইল (Idea 2 - Amar Desh Style)
            ========================================================= */
            .pc-card.theme-amardesh-style {
                --card-bg-gradient: #e2ebe2;
                --card-text-color: #0f172a;
                --card-subtitle-color: #475569;
                --card-primary-color: #006a4e;
                --card-bar-bg: #006a4e;
                --card-bar-text: #ffffff;
                --card-cta-color: #dc2626;
            }
            .pc-card.theme-amardesh-style .pc-card__bg-pattern {
                opacity: 0.02;
            }
            .pc-card.theme-amardesh-style .pc-card__header {
                padding: 12px 18px 8px;
                border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            }
            .pc-card.theme-amardesh-style .pc-card__meta-group {
                display: none;
            }
            .pc-card.theme-amardesh-style .pc-card__qr-verify {
                display: flex;
            }
            .pc-card.theme-amardesh-style .pc-card__logo {
                height: 34px;
            }
            .pc-card.theme-amardesh-style .pc-card__logo img {
                filter: none;
            }
            .pc-card.theme-amardesh-style .pc-card__photo-container {
                padding: 12px 18px 6px;
            }
            .pc-card.theme-amardesh-style .pc-card__photo-frame {
                height: 200px;
                border: 3px solid #ffffff;
                border-radius: 8px;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            }
            .pc-card.theme-amardesh-style .pc-card__headline {
                text-shadow: none;
                font-size: 21px;
                font-weight: 900;
                color: #0f172a;
                text-align: center;
            }
            .pc-card.theme-amardesh-style .pc-card__cta-row {
                justify-content: center;
                padding-bottom: 12px;
            }
            .pc-card.theme-amardesh-style .pc-card__cta {
                font-size: 13px;
                color: #dc2626;
                font-weight: 800;
            }
            .pc-card.theme-amardesh-style .pc-card__reporter {
                display: none;
            }
            .pc-card.theme-amardesh-style .pc-card__url-bar {
                justify-content: space-between;
                padding: 8px 18px;
                letter-spacing: 1px;
                font-size: 11px;
            }

            /* =========================================================
               NEW THEME 9: বার্তা বাজার স্টাইল (Idea 3 - Barta Bazar Style)
            ========================================================= */
            .pc-card.theme-bartabazar-style {
                --card-bg-gradient: #ffffff;
                --card-text-color: #ffffff;
                --card-subtitle-color: #d71920;
                --card-primary-color: #d71920;
                --card-bar-bg: #d71920;
                --card-bar-text: #ffffff;
                --card-cta-color: #d71920;
            }
            .pc-card.theme-bartabazar-style .pc-card__bg-pattern {
                opacity: 0.02;
            }
            .pc-card.theme-bartabazar-style .pc-card__header {
                padding: 10px 16px 6px;
            }
            .pc-card.theme-bartabazar-style .pc-card__category {
                display: none;
            }
            .pc-card.theme-bartabazar-style .pc-card__date {
                color: #d71920;
                font-weight: 800;
                font-size: 12px;
            }
            .pc-card.theme-bartabazar-style .pc-card__logo img {
                filter: none;
            }
            .pc-card.theme-bartabazar-style .pc-card__photo-container {
                padding: 4px 16px;
            }
            .pc-card.theme-bartabazar-style .pc-card__photo-frame {
                height: 200px;
                border: 3.5px solid #d71920;
                border-radius: 12px;
                box-shadow: 0 4px 14px rgba(215, 25, 32, 0.15);
            }
            .pc-card.theme-bartabazar-style .pc-card__content {
                padding: 10px 16px;
            }
            .pc-card.theme-bartabazar-style .pc-card__headline {
                background: linear-gradient(135deg, #d71920 0%, #b91c1c 100%);
                color: #ffffff;
                padding: 12px 14px;
                border-radius: 8px;
                text-shadow: none;
                font-size: 20px;
                font-weight: 800;
                text-align: center;
                box-shadow: 0 4px 10px rgba(215, 25, 32, 0.25);
            }
            .pc-card.theme-bartabazar-style .pc-card__cta-row {
                justify-content: center;
                padding: 4px 16px 8px;
            }
            .pc-card.theme-bartabazar-style .pc-card__reporter {
                display: none;
            }
            .pc-card.theme-bartabazar-style .pc-card__cta {
                color: #d71920;
                font-size: 12px;
                font-weight: 800;
            }
            .pc-card.theme-bartabazar-style .pc-card__social-bar {
                display: flex;
            }
            .pc-card.theme-bartabazar-style .pc-card__url-bar {
                display: none;
            }

            /* =========================================================
               NEW THEME 10: দৈনিক আজাদী স্টাইল (Idea 4 - Azadi Style)
            ========================================================= */
            .pc-card.theme-azadi-style {
                --card-bg-gradient: #4c050b;
                --card-text-color: #ffffff;
                --card-subtitle-color: #334155;
                --card-primary-color: #4c050b;
                --card-bar-bg: #ffffff;
                --card-bar-text: #0f172a;
                --card-cta-color: #064e3b;
            }
            .pc-card.theme-azadi-style .pc-card__bg-pattern {
                display: none;
            }
            .pc-card.theme-azadi-style .pc-card__header {
                display: none;
            }
            .pc-card.theme-azadi-style .pc-card__photo-container {
                padding: 0;
            }
            .pc-card.theme-azadi-style .pc-card__photo-frame {
                height: 230px;
                border-radius: 0;
                box-shadow: none;
            }
            .pc-card.theme-azadi-style .pc-card__ribbon {
                display: block;
            }
            .pc-card.theme-azadi-style .pc-card__content {
                padding: 16px 18px 18px;
                background: #4c050b;
                text-align: center;
            }
            .pc-card.theme-azadi-style .pc-card__headline {
                font-size: 22px;
                font-weight: 900;
                line-height: 1.35;
                color: #ffffff;
                text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
            }
            .pc-card.theme-azadi-style .pc-card__cta-row {
                display: none;
            }
            .pc-card.theme-azadi-style .pc-card__url-bar {
                display: none;
            }
            .pc-card.theme-azadi-style .pc-card__azadi-footer {
                display: flex;
            }

            /* Toast Notification */
            .studio-toast {
                position: fixed;
                bottom: 30px;
                right: 30px;
                background: var(--bg-panel);
                border: 1px solid var(--primary);
                color: #fff;
                padding: 12px 22px;
                border-radius: var(--radius-md);
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
                display: flex;
                align-items: center;
                gap: 10px;
                font-size: 14px;
                font-weight: 600;
                transform: translateY(100px);
                opacity: 0;
                pointer-events: none;
                transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
                z-index: 999;
            }
            .studio-toast.show {
                transform: translateY(0);
                opacity: 1;
            }

            /* Responsive Adjustments */
            @media (max-width: 600px) {
                .studio-header {
                    padding: 10px 14px;
                }
                .studio-container {
                    padding: 12px;
                    gap: 16px;
                }
                .tab-content {
                    padding: 14px;
                    max-height: none;
                }
                .theme-grid {
                    grid-template-columns: 1fr;
                }
                .theme-section-title {
                    grid-column: span 1;
                }
                .ratio-grid {
                    grid-template-columns: repeat(2, 1fr);
                }
                .preview-viewport {
                    padding: 8px;
                }
                .pc-shell {
                    width: 100% !important;
                }
                .stage-bar {
                    flex-direction: column;
                    align-items: stretch;
                }
                .stage-actions {
                    justify-content: stretch;
                }
                .stage-actions button {
                    flex: 1;
                    justify-content: center;
                }
            }
