/* LED Photo Frames — Premium product page */
:root {
    --led-black: #0d0d0f;
    --led-charcoal: #1a1a1f;
    --led-gold: #c9a227;
    --led-gold-light: #e8d48b;
    --led-warm: #fff8ee;
    --led-white: #faf9f7;
    --led-muted: #8a8a94;
    --led-border: rgba(201, 162, 39, 0.25);
    --led-glow: rgba(255, 200, 120, 0.55);
    --led-radius: 14px;
    --led-font-display: 'Playfair Display', Georgia, serif;
    --led-font-body: 'Inter', 'Manrope', system-ui, sans-serif;
    --led-frame-edge: #c9a227;
}

/* Isolate from site Bootstrap / style.css */
body.pp-led-page-active {
    background: var(--led-black);
}
body.pp-led-page-active #main-content {
    padding: 0;
    max-width: none;
    width: 100%;
}
body.pp-led-page-active #main-content > .container {
    max-width: none;
    padding: 0;
    width: 100%;
}

.led-page {
    font-family: var(--led-font-body);
    color: var(--led-white);
    background: var(--led-black);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.led-page *,
.led-page *::before,
.led-page *::after {
    box-sizing: border-box;
}

.led-page button.led-btn {
    appearance: none;
    line-height: 1.25;
}

.led-page h1,
.led-page h2,
.led-page h3,
.led-page .led-display {
    font-family: var(--led-font-display);
    font-weight: 700;
}

/* Hero */
.led-hero {
    position: relative;
    min-height: min(92vh, 900px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
    background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201, 162, 39, 0.12), transparent 60%),
        linear-gradient(180deg, #121218 0%, var(--led-black) 100%);
}

.led-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.led-hero-copy {
    position: relative;
    z-index: 2;
}

.led-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid var(--led-border);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--led-gold-light);
    margin-bottom: 1rem;
}

.led-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--led-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.led-hero-sub {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #b8b8c0;
    max-width: 32rem;
    margin-bottom: 1.5rem;
}

.led-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1rem;
    margin-bottom: 1.75rem;
}

.led-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #ccc;
}

.led-trust-item i {
    color: var(--led-gold);
    width: 1.1rem;
    text-align: center;
}

.led-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.led-hero-samples {
    margin-top: 1.35rem;
    padding: 1rem 1.1rem;
    border-radius: var(--led-radius);
    border: 1px solid rgba(201, 162, 39, 0.28);
    background: rgba(201, 162, 39, 0.06);
    max-width: 420px;
}

.led-hero-samples-label {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--led-gold-light);
    letter-spacing: 0.02em;
}

.led-hero-samples-label i {
    margin-right: 0.35rem;
    opacity: 0.9;
}

.led-hero-samples-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.led-hero-sample-thumb {
    display: block;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.led-hero-sample-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.led-btn-sample {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
}

.led-upload-sample-hint {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}

.led-link-sample {
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    color: var(--led-gold-light);
    font-weight: 600;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.led-link-sample:hover {
    color: var(--led-gold);
}

.led-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.led-btn-primary {
    background: linear-gradient(135deg, var(--led-gold) 0%, #a88418 100%);
    color: #000 !important;
    box-shadow: 0 8px 28px rgba(201, 162, 39, 0.35);
}

.led-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(201, 162, 39, 0.45);
}

.led-btn-ghost {
    background: transparent;
    color: var(--led-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.led-btn-ghost:hover {
    border-color: var(--led-gold);
    color: var(--led-gold-light) !important;
}

/* Frame mockup */
.led-hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
}

.led-ambient-glow {
    position: absolute;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--led-glow) 0%, transparent 70%);
    filter: blur(40px);
    animation: led-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes led-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}

.led-frame-mockup {
    position: relative;
    width: min(100%, 340px);
    min-height: 240px;
    height: auto;
    transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
    animation: led-float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.led-frame-mockup:hover {
    transform: perspective(800px) rotateY(-4deg) rotateX(2deg) scale(1.02);
}

@keyframes led-float {
    0%, 100% { transform: perspective(800px) rotateY(-8deg) rotateX(4deg) translateY(0); }
    50% { transform: perspective(800px) rotateY(-6deg) rotateX(3deg) translateY(-8px); }
}

/* Thin LED border only — photo fills edge-to-edge (no inner mat / yellow inset) */
.led-frame-mockup > .led-frame-outer {
    position: absolute;
    inset: 0;
}

.led-frame-outer {
    display: block;
    position: relative;
    border-radius: 4px;
    padding: 0;
    border: 2px solid var(--led-frame-edge, var(--led-gold));
    background: transparent;
    box-shadow:
        0 0 14px var(--led-glow),
        0 0 28px rgba(255, 200, 120, 0.28),
        0 18px 40px rgba(0, 0, 0, 0.45);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.led-preview-room .led-frame-mini,
.led-magic-room .led-frame-mini {
    position: absolute;
    margin: 0;
}

.led-frame-outer.led-off {
    border-color: #4a4438;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.led-frame-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    overflow: hidden;
    background: #0d0d0f;
    position: relative;
}

.led-frame-inner img,
.led-frame-inner canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.led-frame-inner canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.led-frame-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--led-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
}

.led-frame-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Studio / Editor */
.led-studio {
    padding: 3rem clamp(1rem, 4vw, 3rem);
    background: linear-gradient(180deg, var(--led-charcoal) 0%, var(--led-black) 100%);
    scroll-margin-top: 80px;
}

.led-studio-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.led-studio-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 0.5rem;
}

.led-studio-header p {
    color: var(--led-muted);
}

/* Default: single centered column (upload / magic). Editor adds side columns. */
.led-studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    max-width: min(920px, 100%);
    margin: 0 auto;
    min-height: 420px;
    width: 100%;
}

.led-studio-grid .led-workspace,
.led-studio-grid .led-processing,
.led-studio-grid .led-magic-moment {
    grid-column: 1 / -1;
    min-width: 0;
}

.led-studio-grid.led-mode-editor {
    grid-template-columns: 72px minmax(0, 1fr) minmax(240px, 320px);
    max-width: min(1400px, 100%);
}

.led-studio-grid.led-mode-editor .led-toolbar-side {
    grid-column: 1;
    grid-row: 1;
}

.led-studio-grid.led-mode-editor .led-workspace {
    grid-column: 2;
    grid-row: 1;
}

.led-studio-grid.led-mode-editor .led-preview-col {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
}

.led-toolbar-side {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--led-radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.led-tool-btn {
    width: 100%;
    aspect-ratio: 1;
    border: none;
    background: transparent;
    color: #aaa;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s;
}

.led-tool-btn:hover,
.led-tool-btn.active {
    background: rgba(201, 162, 39, 0.2);
    color: var(--led-gold-light);
}

.led-tool-btn span {
    display: block;
    font-size: 0.55rem;
    margin-top: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.led-workspace {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.led-upload-zone {
    border: 2px dashed var(--led-border);
    border-radius: var(--led-radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.led-upload-zone:hover,
.led-upload-zone.dragover {
    border-color: var(--led-gold);
    background: rgba(201, 162, 39, 0.06);
}

.led-upload-zone.hidden {
    display: none;
}

.led-upload-icon {
    font-size: 3rem;
    color: var(--led-gold);
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.led-upload-zone h3 {
    font-size: 1.15rem;
    margin: 0 0 0.35rem;
    color: #fff;
}

.led-upload-zone p {
    color: var(--led-muted);
    font-size: 0.88rem;
    margin: 0 0 1rem;
}

.led-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.led-upload-actions .led-btn {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
}

.led-editor-wrap {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.led-editor-wrap.visible {
    display: flex;
}

.led-editor-main {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1rem;
    flex: 1;
    min-height: 400px;
}

.led-canvas-box {
    position: relative;
    background: #0a0a0c url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23222' stroke-width='1'/%3E%3C/svg%3E");
    border-radius: var(--led-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.led-canvas-box .canvas-container {
    margin: 0 auto;
    display: block;
    flex: 0 0 auto;
    max-width: 100%;
    position: relative !important;
    left: auto !important;
    top: auto !important;
}

/* Do not stretch fabric canvases to full box width — causes false crop/letterbox */
.led-canvas-box .lower-canvas,
.led-canvas-box .upper-canvas {
    display: block;
    max-width: 100%;
    height: auto !important;
    width: auto !important;
}

.led-collage-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    gap: 4px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.55);
}

.led-collage-slot {
    position: relative;
    border: 2px dashed rgba(201, 162, 39, 0.65);
    border-radius: 8px;
    overflow: hidden;
    min-height: 0;
    background: rgba(10, 10, 12, 0.85);
}

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

.led-collage-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    height: 100%;
    min-height: 80px;
    cursor: pointer;
    color: var(--led-gold-light);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    padding: 0.5rem;
}

.led-collage-upload span {
    white-space: nowrap;
}

.led-collage-change {
    position: absolute;
    bottom: 6px;
    right: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.68rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    cursor: pointer;
}

.led-panel {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--led-radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem;
    overflow-y: auto;
    max-height: 420px;
}

.led-panel h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--led-gold);
    margin: 0 0 0.75rem;
    font-family: var(--led-font-body);
}

.led-panel.hidden {
    display: none;
}

.led-slider-row {
    margin-bottom: 0.75rem;
}

.led-slider-row label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #aaa;
    margin-bottom: 0.25rem;
}

.led-slider-row input[type="range"] {
    width: 100%;
    accent-color: var(--led-gold);
}

.led-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.led-filter-btn {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: transparent;
    color: #ccc;
    font-size: 0.72rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.led-filter-btn:hover,
.led-filter-btn.active {
    border-color: var(--led-gold);
    color: var(--led-gold-light);
}

.led-aspect-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.led-chip {
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #bbb;
    font-size: 0.72rem;
    cursor: pointer;
}

.led-chip.active {
    border-color: var(--led-gold);
    color: var(--led-gold-light);
    background: rgba(201, 162, 39, 0.15);
}

.led-quality-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    font-size: 0.82rem;
    flex-wrap: wrap;
}

.led-quality-bar.excellent { border-left: 3px solid #22c55e; }
.led-quality-bar.good { border-left: 3px solid #eab308; }
.led-quality-bar.low { border-left: 3px solid #ef4444; }

.led-preview-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.led-preview-room {
    position: relative;
    border-radius: var(--led-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #222;
}

.led-preview-room img.room-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.led-preview-room .led-frame-mini,
.led-magic-room .led-frame-mini {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 42%;
    max-width: 52%;
    box-shadow: 0 0 20px var(--led-glow);
}

.led-preview-room .led-frame-mini .led-frame-inner img,
.led-magic-room .led-frame-mini .led-frame-inner img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

.led-preview-room .led-frame-mini .led-frame-inner,
.led-magic-room .led-frame-mini .led-frame-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.led-toggle-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.led-toggle-row button {
    flex: 1;
    min-width: 70px;
    padding: 0.45rem;
    font-size: 0.72rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #aaa;
    cursor: pointer;
}

.led-toggle-row button.active {
    background: var(--led-gold);
    color: #000;
    border-color: var(--led-gold);
    font-weight: 700;
}

.led-config-section {
    padding: 3rem clamp(1rem, 4vw, 3rem);
    background: var(--led-black);
}

.led-container {
    max-width: min(960px, 100%);
    margin: 0 auto;
    width: 100%;
}

.led-section-title {
    font-family: var(--led-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.35rem;
    color: #fff;
    text-align: left;
}

.led-section-sub {
    color: var(--led-muted);
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
}

.led-config-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--led-gold);
    margin: 1.25rem 0 0.5rem;
}

.led-config-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.led-config-qty {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.led-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.25rem;
}

.led-qty-controls span {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.led-config-price {
    flex: 1;
    min-width: 140px;
}

.led-config-price .mrp {
    display: block;
    font-size: 0.85rem;
    color: var(--led-muted);
    text-decoration: line-through;
}

.led-price-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--led-gold-light);
    margin: 0.15rem 0;
}

.led-price-save {
    font-size: 0.78rem;
    color: #7dcea0;
    margin: 0.1rem 0 0;
    font-weight: 600;
}

.led-free-ship {
    font-size: 0.78rem;
    color: #9a9;
    margin: 0;
}

.led-resolution-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.led-resolution-chip {
    flex: 1;
    min-width: 140px;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #ccc;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.led-resolution-chip:hover,
.led-resolution-chip.active {
    border-color: var(--led-gold);
    background: rgba(201, 162, 39, 0.12);
    color: var(--led-gold-light);
}

.led-resolution-note {
    font-size: 0.8rem;
    color: var(--led-muted);
    margin: 0 0 1.25rem;
}

.led-field-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--led-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.led-size-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.led-size-card {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--led-radius);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
}

.led-size-card:hover,
.led-size-card.selected {
    border-color: var(--led-gold);
    transform: translateY(-2px);
}

.led-size-card .badge-bestseller {
    position: absolute;
    top: -8px;
    right: 8px;
    background: var(--led-gold);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.led-swatch-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.75rem 0;
}

.led-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.led-swatch.selected {
    border-color: var(--led-gold);
    box-shadow: 0 0 0 2px var(--led-black), 0 0 0 4px var(--led-gold);
}

.led-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: rgba(13, 13, 15, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--led-border);
    padding: 0.65rem 1rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.led-sticky-bar.visible {
    display: flex;
}

.led-sticky-price .amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--led-gold-light);
}

.led-sticky-price .mrp {
    font-size: 0.8rem;
    color: var(--led-muted);
    text-decoration: line-through;
    margin-left: 0.35rem;
}

.led-sticky-actions {
    display: flex;
    gap: 0.5rem;
}

/* Sections */
.led-section {
    padding: 3.5rem clamp(1rem, 4vw, 3rem);
}

.led-section-alt {
    background: var(--led-charcoal);
}

.led-section h2 {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2rem;
}

.led-cards-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.led-info-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--led-radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.led-info-card i {
    font-size: 1.75rem;
    color: var(--led-gold);
    margin-bottom: 0.75rem;
}

.led-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.led-step {
    flex: 1 1 140px;
    max-width: 180px;
    text-align: center;
    padding: 1rem;
}

.led-step-num {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: var(--led-gold);
    color: #000;
    font-weight: 800;
    margin: 0 auto 0.75rem;
}

.led-occasion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.led-occasion {
    padding: 1rem 0.5rem;
    text-align: center;
    border-radius: var(--led-radius);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.led-occasion i {
    display: block;
    font-size: 1.5rem;
    color: var(--led-gold);
    margin-bottom: 0.35rem;
}

.led-review {
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--led-radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.led-stars {
    color: var(--led-gold);
    margin-bottom: 0.5rem;
}

.led-faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
}

.led-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.led-faq-item summary::-webkit-details-marker {
    display: none;
}

.led-seo-content {
    max-width: 800px;
    margin: 0 auto;
    color: #a8a8b0;
    line-height: 1.75;
    font-size: 0.95rem;
}

.led-seo-content h3 {
    color: #fff;
    margin-top: 2rem;
}

.led-mobile-toolbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9985;
    background: var(--led-charcoal);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.35rem;
    overflow-x: auto;
    gap: 0.25rem;
}

.led-mobile-toolbar .led-tool-btn {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    aspect-ratio: unset;
}

.led-crop-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.led-crop-modal.open {
    display: flex !important;
}

.led-crop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(92vw, 960px);
    max-height: 92vh;
    width: 100%;
}

.led-crop-inner > img {
    max-width: 100%;
    max-height: calc(82vh - 72px);
    display: block;
}

.led-crop-inner .cropper-container {
    max-height: calc(78vh - 70px) !important;
}

.led-crop-modal .led-crop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
    flex-shrink: 0;
    width: 100%;
}

.led-panel .led-crop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.led-panel .led-crop-actions .led-btn {
    padding: 0.5rem 0.65rem;
    min-width: 2.5rem;
}

.led-before-after {
    position: relative;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.led-before-after input {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 2;
}

.led-exit-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.led-exit-popup.open {
    display: flex;
}

.led-exit-box {
    background: var(--led-charcoal);
    border: 1px solid var(--led-border);
    border-radius: var(--led-radius);
    padding: 2rem;
    max-width: 400px;
    text-align: center;
}

.led-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--led-gold);
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.led-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.led-recent-order {
    position: fixed;
    bottom: 90px;
    left: 1rem;
    z-index: 9970;
    background: rgba(26, 26, 31, 0.95);
    border: 1px solid var(--led-border);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.78rem;
    max-width: 280px;
    animation: led-slide-in 0.5s ease;
}

@keyframes led-slide-in {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 992px) {
    .led-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        text-align: center;
    }

    .led-hero-sub,
    .led-trust-grid {
        margin-left: auto;
        margin-right: auto;
    }

    .led-trust-grid {
        max-width: 360px;
    }

    .led-hero-ctas {
        justify-content: center;
    }

    .led-hero-samples {
        margin-left: auto;
        margin-right: auto;
        max-width: min(100%, 480px);
    }

    .led-hero-samples-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .led-hero-sample-thumb {
        aspect-ratio: 4 / 3;
        border-radius: 10px;
    }

    .led-hero-visual {
        min-height: min(62vh, 580px);
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 0.75rem clamp(0.75rem, 4vw, 1.25rem) 1.5rem;
    }

    .led-frame-mockup {
        width: min(calc(100vw - 2rem), 510px);
        min-height: 360px;
        transform: none;
        animation: led-float-mobile 6s ease-in-out infinite;
    }

    .led-frame-mockup:hover {
        transform: none;
    }

    .led-ambient-glow {
        width: 95%;
        height: 90%;
    }

    .led-studio-grid.led-mode-editor {
        grid-template-columns: 1fr;
    }

    .led-studio-grid.led-mode-editor .led-workspace,
    .led-studio-grid.led-mode-editor .led-preview-col,
    .led-studio-grid.led-mode-editor .led-toolbar-side {
        grid-column: 1 / -1;
    }

    .led-toolbar-side {
        display: none;
    }

    .led-mobile-toolbar {
        display: flex;
    }

    .led-editor-main {
        grid-template-columns: 1fr;
    }

    .led-preview-col {
        order: -1;
    }

    .led-sticky-bar.visible {
        padding-bottom: calc(0.65rem + 60px);
    }
}

@keyframes led-float-mobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .led-hero-samples-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .led-hero-visual {
        min-height: min(68vh, 620px);
    }

  /* ~150% of previous 260px mobile mockup (260 × 1.5 = 390) */
    .led-frame-mockup {
        width: min(calc(100vw - 1.5rem), 390px);
        min-height: calc(240px * 1.5);
    }

    .led-hero-sample-thumb img {
        object-fit: contain;
        background: #0d0d0f;
    }
}

@media (max-width: 576px) {
    .led-sticky-actions .led-btn {
        padding: 0.65rem 0.9rem;
        font-size: 0.78rem;
    }
}

/* Hero video */
.led-hero { overflow: hidden; }
.led-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 0;
}
.led-hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(13,13,15,0.92) 0%, rgba(13,13,15,0.55) 50%, rgba(13,13,15,0.75) 100%);
    z-index: 1;
    pointer-events: none;
}
.led-hero-copy, .led-hero-visual { position: relative; z-index: 2; }

.led-studio-eyebrow {
    color: var(--led-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* Processing overlay */
.led-processing {
    grid-column: 1 / -1;
    padding: 3rem 1rem;
    text-align: center;
}
.led-processing-inner { max-width: 420px; margin: 0 auto; }
.led-processing-ring {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border: 3px solid rgba(201,162,39,0.2);
    border-top-color: var(--led-gold);
    border-radius: 50%;
    animation: led-spin 0.9s linear infinite;
}
@keyframes led-spin { to { transform: rotate(360deg); } }
.led-processing-steps {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.led-processing-steps li {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #888;
    transition: all 0.3s;
}
.led-processing-steps li.active {
    border-color: var(--led-gold);
    color: var(--led-gold-light);
    background: rgba(201,162,39,0.12);
}

/* Magic moment */
.led-magic-moment {
    grid-column: 1 / -1;
    animation: led-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.led-magic-moment:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

#led-magic-frame-wrap,
#led-magic-canvas,
.led-editor-wrap.led-preview-only.visible {
    opacity: 1;
    visibility: visible;
}
@keyframes led-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}
.led-magic-head { text-align: center; margin-bottom: 1.5rem; }
.led-magic-sparkle { font-size: 2rem; display: block; margin-bottom: 0.35rem; }
.led-magic-head h3 {
    font-family: var(--led-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.35rem;
}
.led-magic-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: center;
}
.led-magic-frame-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle at center, rgba(255, 200, 120, 0.15), transparent 70%);
    border-radius: var(--led-radius);
}

#led-magic-frame-wrap {
    display: block;
    position: relative;
    width: min(100%, 520px);
    margin: 0 auto;
    overflow: hidden;
}

#led-magic-frame-wrap .led-frame-outer {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

#led-magic-frame-wrap .led-frame-inner {
    display: block;
    width: 100%;
    height: 100%;
}

#led-magic-frame-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#led-magic-frame-wrap canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.led-frame-mini .led-frame-inner {
    display: block;
    width: 100%;
    height: 100%;
}

.led-magic-frame-wrap .led-frame-outer.led-frame-magic {
    margin: 0 auto;
    display: block;
    animation: led-float 5s ease-in-out infinite;
}

#led-magic-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.led-magic-room { min-height: 280px; }
.led-memory-themes { margin-bottom: 1rem; }
.led-memory-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--led-gold);
    margin-bottom: 0.5rem;
}
.led-theme-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.led-theme-chip {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: #bbb;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.25s;
}
.led-theme-chip:hover, .led-theme-chip.active {
    border-color: var(--led-gold);
    color: #000;
    background: var(--led-gold);
}
.led-magic-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.led-studio-grid.led-mode-magic .led-toolbar-side,
.led-studio-grid.led-mode-magic .led-preview-col { display: none !important; }

/* Live canvas preview during magic phase (adjust photo here) */
.led-editor-wrap.led-preview-only {
    display: flex !important;
    margin-bottom: 1rem;
}

.led-editor-wrap.led-preview-only .led-editor-main {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: auto;
}

/* Magic phase: frame-img is the preview; hide raw Fabric canvas box */
.led-editor-wrap.led-preview-only .led-canvas-box {
    display: none !important;
}

.led-editor-wrap.led-preview-only .led-panel,
.led-editor-wrap.led-preview-only .led-panel[hidden] {
    display: none !important;
}

.led-live-preview-slot {
    margin-bottom: 0.5rem;
}

.led-live-preview-hint {
    font-size: 0.85rem;
    color: var(--led-muted);
    margin: 0 0 0.75rem;
    text-align: center;
}

.led-magic-room {
    min-height: 280px;
    background: linear-gradient(145deg, #2a2520 0%, #1a1815 50%, #121218 100%);
}

.led-magic-room .room-bg {
    display: block;
}

.led-magic-room .room-bg[src=""],
.led-magic-room .room-bg:not([src]) {
    opacity: 0;
}

.led-quick-edit {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--led-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.led-quick-edit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.led-quick-edit .led-tool-btn {
    width: auto;
    min-width: 72px;
    aspect-ratio: auto;
    padding: 0.5rem 0.65rem;
    flex-direction: column;
}
.led-studio-grid.led-mode-editor .led-magic-moment,
.led-studio-grid.led-mode-editor .led-processing { display: none !important; }

/* Confirmation modal (outside .led-page — needs own typography) */
.led-confirm-modal[hidden],
.led-fs-preview[hidden] {
    display: none !important;
}

.led-confirm-modal,
.led-fs-preview {
    position: fixed;
    inset: 0;
    z-index: 10005;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(8px);
    font-family: var(--led-font-body);
    color: var(--led-white);
}

.led-confirm-box {
    background: var(--led-charcoal);
    border: 1px solid var(--led-border);
    border-radius: var(--led-radius);
    padding: 2rem 1.75rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.led-confirm-box h3 {
    font-family: var(--led-font-display);
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0.35rem 0 0.65rem;
    line-height: 1.25;
}

.led-confirm-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.led-confirm-detail {
    color: #d4d4dc;
    margin: 0.35rem 0;
    font-size: 0.92rem;
    line-height: 1.45;
}

.led-confirm-delivery {
    color: #22c55e;
    font-size: 0.88rem;
    margin: 0.25rem 0 0;
    line-height: 1.4;
}

.led-confirm-mrp {
    font-size: 0.95rem;
    color: var(--led-muted);
    text-decoration: line-through;
    margin: 0.5rem 0 0;
}

.led-confirm-price {
    font-family: var(--led-font-display);
    font-size: clamp(1.65rem, 5vw, 2rem);
    font-weight: 800;
    color: var(--led-gold-light);
    margin: 1rem 0 0;
    line-height: 1.15;
}

.led-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.led-confirm-actions .led-btn {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.85rem;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    font-family: var(--led-font-body);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
    text-wrap: unset;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.led-confirm-actions .led-btn-primary {
    background: linear-gradient(135deg, var(--led-gold) 0%, #a88418 100%);
    color: #000000 !important;
    border: none;
    box-shadow: 0 8px 28px rgba(201, 162, 39, 0.35);
}

.led-confirm-actions .led-btn-ghost {
    background: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.led-fs-preview img {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    border-radius: 8px;
    box-shadow: 0 0 60px var(--led-glow);
}
.led-fs-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}

/* Bottom sheet (mobile tools) */
.led-bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10004;
    background: var(--led-charcoal);
    border-radius: 16px 16px 0 0;
    border-top: 1px solid var(--led-border);
    max-height: 55vh;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.led-bottom-sheet.open { transform: translateY(0); }
.led-sheet-handle {
    display: flex;
    justify-content: center;
    padding: 0.65rem;
}
.led-sheet-handle span {
    width: 40px;
    height: 4px;
    background: #555;
    border-radius: 2px;
}
.led-sheet-content {
    padding: 0 1rem 1.5rem;
    overflow-y: auto;
    max-height: calc(55vh - 40px);
}

.led-seo-content h2, .led-seo-content h3 { color: #fff; margin-top: 1.75rem; }
.led-seo-content h2:first-child { margin-top: 0; }

@media (max-width: 992px) {
    .led-magic-preview { grid-template-columns: 1fr; }
    .led-magic-room { max-height: 220px; }
}

.led-page [hidden] {
    display: none !important;
}

/* Compact controls — avoid cramped multi-line pill text */
.led-btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

.led-panel .led-btn,
.led-panel .led-btn-block {
    padding: 0.62rem 1rem;
    font-size: 0.82rem;
    line-height: 1.35;
    min-height: 2.5rem;
    white-space: normal;
    text-wrap: balance;
}

.led-panel .led-btn-primary {
    gap: 0.4rem;
}

.led-panel[data-panel="enhance"] .led-btn-primary,
#led-enhance-btn {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    white-space: nowrap;
    text-wrap: unset;
    font-size: 0.78rem;
    padding: 0.7rem 0.85rem;
    min-height: 2.75rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.led-panel[data-panel="enhance"] .led-btn-primary i,
#led-enhance-btn i {
    flex-shrink: 0;
    font-size: 0.9rem;
}

.led-collage-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.led-size-card-main {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.led-size-card-meta {
    font-size: 0.72rem;
    color: var(--led-gold-light);
    margin-top: 4px;
    line-height: 1.35;
}

.led-size-card-dpi,
.led-size-card-price {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

.led-panel .led-filter-btn {
    min-height: 2.35rem;
    padding: 0.45rem 0.35rem;
    font-size: 0.7rem;
    line-height: 1.25;
    white-space: normal;
}

.led-panel .led-chip {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
}

.led-magic-actions {
    align-items: stretch;
}

.led-magic-actions .led-btn {
    flex: 1 1 8.5rem;
    max-width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
    line-height: 1.3;
    white-space: nowrap;
}

.led-magic-actions .led-btn i {
    flex-shrink: 0;
}

.led-quick-edit-row .led-tool-btn span {
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
}

.led-panel-note {
    font-size: 0.8rem;
    color: #999;
    margin: 0 0 0.65rem;
    line-height: 1.45;
}

/* Preview transitions (theme, LED, room) */
.led-preview-transition img.room-bg,
.led-magic-room img.room-bg {
    transition: opacity 0.32s ease, filter 0.32s ease, transform 0.32s ease;
}
.led-img-fade-out {
    opacity: 0;
    filter: blur(10px);
    transform: scale(1.03);
}
.led-img-fade-in {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}
.led-preview-swapping {
    box-shadow: 0 0 40px var(--led-glow);
}
.led-glow-transition,
.led-frame-transition {
    transition: background 0.45s ease, opacity 0.35s ease, box-shadow 0.45s ease;
}
#led-magic-frame-wrap.led-pulse {
    animation: ledMagicPulse 0.6s ease;
}
@keyframes ledMagicPulse {
    0% { transform: scale(1); filter: brightness(1); }
    40% { transform: scale(1.02); filter: brightness(1.15); }
    100% { transform: scale(1); filter: brightness(1); }
}

/* Mobile magic-first flow */
body.led-mobile-magic .led-customize-further {
    font-size: 0.85rem;
}
body.led-mobile-magic #led-config {
    scroll-margin-top: 80px;
}
.led-magic-mobile-config {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--led-border);
}
.led-magic-size-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.led-magic-size-chip {
    border: 1px solid var(--led-border);
    background: rgba(255,255,255,0.04);
    color: #ddd;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    cursor: pointer;
}
.led-magic-size-chip.active {
    border-color: var(--led-gold);
    color: var(--led-gold-light);
    box-shadow: 0 0 12px var(--led-glow);
}

/* Pricing tables inside dark LED page */
.led-page .led-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.led-page .pricing-header h2,
.led-page .led-section .pricing-header h2 {
    color: #fff;
    font-family: var(--led-font-display);
}

.led-page .pricing-card,
.led-page .pricing-toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    color: #e8e8ec;
    border-color: rgba(255, 255, 255, 0.1);
}

.led-page .pricing-body {
    color: #ccc;
}

/* Overlays (outside .led-page wrapper) */
#led-recovery-banner[hidden] {
    display: none !important;
}

#led-recovery-banner:not([hidden]) {
    position: fixed !important;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: min(560px, calc(100% - 2rem));
    z-index: 10005;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #1a1815 0%, #2a2318 100%);
    border: 1px solid var(--led-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
    pointer-events: auto;
}

#led-recovery-banner:not([hidden]) p {
    flex: 1 1 100%;
    margin: 0;
    font-size: 0.9rem;
    color: #f5e6c8;
}

footer.led-sticky-bar {
    position: fixed;
    z-index: 10000;
}
@media (min-width: 769px) {
    .led-magic-mobile-config { display: none; }
}
