/* ============================================================
   WEBSITE SECTION — HOMEPAGE & STORE EDITOR STYLES
   Premium, function-driven layout for GilGamez Platform
   ============================================================ */

.website-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: none;
    margin: 0;
    width: 100%;
    padding-bottom: 8px;
}

/* ── Section Card ── */
.ws-card {
    background: var(--theme-bg-card, var(--bg-surface, rgba(22, 24, 34, 0.88)));
    border: 1px solid var(--theme-border, var(--border, rgba(255, 255, 255, 0.08)));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s;
}

.ws-card:hover {
    border-color: var(--border, rgba(255, 255, 255, 0.14));
}

.ws-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 24px;
    background: var(--bg-hover, rgba(255, 255, 255, 0.02));
    border-bottom: 1px solid var(--theme-border-subtle, var(--border, rgba(255, 255, 255, 0.06)));
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ws-card-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ws-card-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.ws-card-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ws-card-collapse-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted, #94a3b8);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.ws-card-header:hover .ws-card-collapse-indicator {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text-primary, #ffffff);
}

.ws-card-chevron {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg);
}

/* ── Collapsed State ── */
.ws-card.is-collapsed .ws-card-header {
    border-bottom-color: transparent;
}

.ws-card.is-collapsed .ws-card-chevron {
    transform: rotate(-90deg);
}

.ws-card.is-collapsed .ws-card-body {
    display: none;
}

.ws-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-glow, rgba(99, 102, 241, 0.12));
    border: 1px solid var(--primary-glow, rgba(99, 102, 241, 0.25));
    border-radius: 10px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.ws-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.2px;
}

.ws-card-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 3px 0 0;
}

.ws-card-body {
    padding: 24px;
}

/* ── Form Fields ── */
.ws-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.ws-form-row.full {
    grid-template-columns: 1fr;
}

.ws-form-row.tri {
    grid-template-columns: 1fr 1fr 1fr;
}

.ws-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ws-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary, #cbd5e1);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ws-label-hint {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: normal;
}

.ws-input,
.ws-textarea,
.ws-select {
    width: 100%;
    padding: 11px 14px;
    background: var(--theme-input-bg, var(--theme-bg-input, var(--bg-hover)));
    border: 1px solid var(--theme-input-border, var(--theme-border, var(--border)));
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ws-input:focus,
.ws-textarea:focus,
.ws-select:focus {
    border-color: var(--primary, #6366f1);
    background: var(--primary-glow, rgba(99, 102, 241, 0.06));
    box-shadow: 0 0 0 3px var(--primary-glow, rgba(99, 102, 241, 0.15));
}

.ws-textarea {
    resize: vertical;
    min-height: 85px;
    line-height: 1.6;
}

.ws-input::placeholder,
.ws-textarea::placeholder {
    color: var(--theme-text-muted, rgba(255, 255, 255, 0.25));
}

/* ── Hero Copy Live Preview Box ── */
.ws-hero-preview {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(221, 175, 49, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.ws-hero-preview-badge {
    align-self: flex-start;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

.ws-hero-preview-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.ws-hero-preview-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ── Hero Slides Section ── */
.ws-repeat-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ws-slide-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 20px;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}

.ws-slide-item:hover {
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(255, 255, 255, 0.035);
}

.ws-slide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ws-slide-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.ws-slide-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
}

.ws-slide-media {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ws-slide-thumb {
    width: 100%;
    height: 130px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.ws-slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-slide-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 11px;
}

.ws-slide-thumb-placeholder svg {
    opacity: 0.4;
}

.ws-slide-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ws-slide-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ── Feature Cards Grid ── */
.ws-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ws-card-feature-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s;
}

.ws-card-feature-item:hover {
    border-color: rgba(99, 102, 241, 0.25);
}

.ws-feature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ws-feature-pill {
    font-size: 11.5px;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 6px;
}

.ws-icon-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ws-icon-badge-preview {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ws-quick-emojis {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.ws-emoji-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 14px;
    padding: 2px 6px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.ws-emoji-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.15);
}

/* ── Delete Button ── */
.ws-btn-remove {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 7px;
    color: #f87171;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
}

.ws-btn-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fff;
}

/* ── Add Button ── */
.ws-btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: rgba(99, 102, 241, 0.08);
    border: 1.5px dashed rgba(99, 102, 241, 0.35);
    border-radius: 12px;
    color: var(--primary-light);
    font-size: 13.5px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    margin-top: 14px;
}

.ws-btn-add:hover {
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-1px);
}

/* ── Section Visibility Switch ── */
.ws-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: background 0.15s;
}

.ws-switch-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ws-switch-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ws-switch-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.ws-switch-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.ws-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.ws-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ws-switch-track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.ws-switch-track::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.ws-switch input:checked + .ws-switch-track {
    background: var(--primary, #6366f1);
}

.ws-switch input:checked + .ws-switch-track::before {
    transform: translateX(20px);
}

/* ── Brand Identity & Proportional Asset Controls ── */
.ws-brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .ws-brand-grid {
        grid-template-columns: 1fr;
    }
}

.ws-asset-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--theme-input-bg, var(--bg-surface, rgba(15, 23, 42, 0.6)));
    border: 1px solid var(--theme-border, var(--border, rgba(255, 255, 255, 0.1)));
    border-radius: 12px;
    padding: 6px 10px;
    transition: all 0.2s ease;
}

.ws-asset-input-group:focus-within {
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 3px var(--primary-glow, rgba(99, 102, 241, 0.15));
}

.ws-asset-preview-thumb {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 8px;
    background: var(--theme-bg-thumb, rgba(0, 0, 0, 0.4));
    border: 1px solid var(--theme-border, var(--border, rgba(255, 255, 255, 0.08)));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
}

.ws-asset-preview-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ws-asset-input-group .ws-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 8px 4px !important;
}

.ws-color-combo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--theme-input-bg, var(--bg-surface, rgba(15, 23, 42, 0.6)));
    border: 1px solid var(--theme-border, var(--border, rgba(255, 255, 255, 0.1)));
    border-radius: 12px;
    padding: 6px 12px;
    height: 56px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.ws-color-combo-group:focus-within {
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 3px var(--primary-glow, rgba(99, 102, 241, 0.15));
}

.ws-color-swatch-btn-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--theme-border, var(--border, rgba(255, 255, 255, 0.2)));
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.ws-color-native-picker {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 60px;
    height: 60px;
    opacity: 0;
    cursor: pointer;
}

.ws-color-combo-group .ws-color-hex-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 8px 4px !important;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    flex: 1;
    font-size: 13.5px;
    letter-spacing: 0.04em;
}

.ws-color-quick-presets {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 8px;
    border-left: 1px solid var(--theme-border, var(--border, rgba(255, 255, 255, 0.1)));
}

.ws-color-preset-btn {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--theme-border, var(--border, rgba(255, 255, 255, 0.3)));
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.ws-color-preset-btn:hover {
    transform: scale(1.25);
    border-color: var(--text-primary, #ffffff);
    box-shadow: 0 0 8px var(--primary-glow, rgba(255, 255, 255, 0.5));
}

.ws-field-subtext {
    font-size: 11.5px;
    color: var(--text-muted, #94a3b8);
    margin-top: 5px;
    line-height: 1.4;
}

.ws-color-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ws-color-swatch {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
}

.ws-color-preview {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: background 0.2s;
}

.ws-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ws-logo-preview {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.ws-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ws-logo-placeholder {
    font-size: 22px;
    opacity: 0.35;
}

/* ── Sticky / Floating Save Bar ── */
.ws-save-bar {
    position: sticky;
    bottom: 24px;
    z-index: 100;
    background: rgba(18, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ws-save-status {
    font-size: 13px;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* ============================================================
   5-TIER RESPONSIVE ADJUSTMENTS (Rule #6)
   ============================================================ */

/* Tier 1: 4K Displays */
@media (min-width: 1920px) {
    .website-layout {
        max-width: 1080px;
    }
}

/* Tier 3: Tablet Devices (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .website-layout {
        max-width: 100%;
    }
    .ws-slide-grid {
        grid-template-columns: 200px 1fr;
    }
    .ws-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Tier 4 & 5: Mobile Viewports (<= 768px) */
@media (max-width: 768px) {
    .website-layout {
        max-width: 100%;
        padding-bottom: 12px;
    }
    .ws-form-row,
    .ws-form-row.tri {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ws-card-body {
        padding: 16px;
    }
    .ws-card-header {
        padding: 14px 16px;
    }
    .ws-slide-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .ws-slide-fields-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ws-cards-grid {
        grid-template-columns: 1fr;
    }
    .ws-save-bar {
        flex-direction: column-reverse;
        gap: 12px;
        align-items: stretch;
        bottom: 12px;
    }
    .ws-save-bar .btn {
        width: 100%;
    }
}

/* ── Header Treatment Selection Grid ── */
.header-treatment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 640px) {
    .header-treatment-grid {
        grid-template-columns: 1fr;
    }
}

.treatment-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.treatment-card input[type="radio"] {
    position: absolute;
    top: 16px;
    right: 14px;
    accent-color: var(--accent-gold, #ddaf31);
}

.treatment-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
}

.treatment-card.is-selected {
    background: rgba(221, 175, 49, 0.08);
    border-color: rgba(221, 175, 49, 0.4);
    box-shadow: 0 0 15px rgba(221, 175, 49, 0.1);
}

.treatment-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.treatment-info {
    flex: 1;
    padding-right: 20px;
}

.treatment-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main, #f8fafc);
    margin-bottom: 3px;
}

.treatment-desc {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    line-height: 1.4;
}

.ws-field-desc {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    margin-top: 2px;
    margin-bottom: 8px;
}

/* ─── Custom Cyberpunk / High-Tech Power Button Toggle Widget ───────────────────── */
.power-toggle-widget {
    display: flex;
    align-items: center;
    gap: 16px;
    user-select: none;
}

.power-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: radial-gradient(circle at 40% 40%, #1e2230 0%, #0d1017 100%);
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -2px 6px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
}

.power-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.power-btn:active {
    transform: translateY(1px) scale(0.96);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.power-btn-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.35s ease;
    pointer-events: none;
}

.power-btn-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.power-btn-icon {
    width: 24px;
    height: 24px;
    color: #64748b;
    stroke-width: 2.5;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.power-btn:hover .power-btn-icon {
    color: #94a3b8;
}

/* ── Active State: Maintenance Mode (Amber/Gold Glowing Power) ── */
.power-btn.is-active-maintenance {
    border-color: rgba(245, 158, 11, 0.6);
    background: radial-gradient(circle at 45% 45%, #2a2012 0%, #151006 100%);
    box-shadow: 
        0 0 24px rgba(245, 158, 11, 0.4),
        inset 0 1px 2px rgba(254, 240, 138, 0.4),
        inset 0 -2px 8px rgba(0, 0, 0, 0.8);
}

.power-btn.is-active-maintenance .power-btn-ring {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.power-btn.is-active-maintenance .power-btn-pulse {
    border: 2px solid rgba(245, 158, 11, 0.4);
    animation: powerPulseAmber 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.power-btn.is-active-maintenance .power-btn-icon {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.85));
}

/* ── Active State: Under Construction Mode (Indigo/Purple Glowing Power) ── */
.power-btn.is-active-construction {
    border-color: rgba(99, 102, 241, 0.6);
    background: radial-gradient(circle at 45% 45%, #181932 0%, #0d0e1f 100%);
    box-shadow: 
        0 0 24px rgba(99, 102, 241, 0.45),
        inset 0 1px 2px rgba(199, 210, 254, 0.4),
        inset 0 -2px 8px rgba(0, 0, 0, 0.8);
}

.power-btn.is-active-construction .power-btn-ring {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

.power-btn.is-active-construction .power-btn-pulse {
    border: 2px solid rgba(99, 102, 241, 0.4);
    animation: powerPulseIndigo 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.power-btn.is-active-construction .power-btn-icon {
    color: #818cf8;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.85));
}

@keyframes powerPulseAmber {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

@keyframes powerPulseIndigo {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.power-btn-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.power-btn-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted, #94a3b8);
    transition: all 0.3s ease;
}

.power-btn-status-badge.is-active-maintenance {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.power-btn-status-badge.is-active-construction {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #818cf8;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.power-btn-hint-text {
    font-size: 11px;
    color: var(--text-muted, #64748b);
    font-weight: 500;
}

/* ============================================================
   WEBSITE FOOTER — PUBLIC PORTAL LIVE PREVIEW SANDBOX STYLES
   ============================================================ */

#admin-footer-live-preview-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #080a0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    box-sizing: border-box;
}

#admin-footer-live-preview-container .site-footer {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    font-family: inherit;
    transition: padding 0.3s ease, background 0.3s ease;
}

#admin-footer-live-preview-container .site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.6) 50%, transparent 100%);
    pointer-events: none;
}

/* Padding Presets in Preview */
#admin-footer-live-preview-container .site-footer--compact {
    padding: 24px 20px 18px;
}
#admin-footer-live-preview-container .site-footer--compact .footer-inner {
    gap: 18px;
}
#admin-footer-live-preview-container .site-footer--normal {
    padding: 36px 24px 24px;
}
#admin-footer-live-preview-container .site-footer--spacious {
    padding: 56px 32px 36px;
}
#admin-footer-live-preview-container .site-footer--spacious .footer-inner {
    gap: 36px;
}

/* Style Presets in Preview */
#admin-footer-live-preview-container .site-footer--glassmorphism {
    background: linear-gradient(180deg, rgba(13, 16, 23, 0.96) 0%, rgba(8, 10, 15, 0.99) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
#admin-footer-live-preview-container .site-footer--cyber {
    background: linear-gradient(180deg, rgba(10, 12, 20, 0.98) 0%, rgba(5, 6, 12, 1) 100%);
    border-top: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 -10px 40px rgba(0, 240, 255, 0.12);
}
#admin-footer-live-preview-container .site-footer--cyber::before {
    background: linear-gradient(90deg, #00f0ff 0%, #ff007f 50%, #00f0ff 100%);
    box-shadow: 0 0 10px #00f0ff;
}
#admin-footer-live-preview-container .site-footer--solid {
    background: #090b10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
#admin-footer-live-preview-container .site-footer--minimal {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#admin-footer-live-preview-container .footer-inner {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-sizing: border-box;
}

#admin-footer-live-preview-container .footer-main-grid {
    display: grid;
    grid-template-columns: 2fr 1.1fr 1.1fr 1.3fr;
    gap: 28px;
    align-items: start;
}

#admin-footer-live-preview-container .footer-main-grid--4col {
    grid-template-columns: 2fr 1.1fr 1.1fr 1.3fr;
}
#admin-footer-live-preview-container .footer-main-grid--3col {
    grid-template-columns: 2fr 1.2fr 1.4fr;
}
#admin-footer-live-preview-container .footer-main-grid--2col {
    grid-template-columns: 1.6fr 1.2fr;
}
#admin-footer-live-preview-container .footer-main-grid--1col {
    grid-template-columns: 1fr;
    max-width: 600px;
}

#admin-footer-live-preview-container .footer-col {
    display: flex;
    flex-direction: column;
}

#admin-footer-live-preview-container .footer-col-brand {
    gap: 12px;
}

#admin-footer-live-preview-container .footer-brand-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

#admin-footer-live-preview-container .footer-brand-logo-wrap {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

#admin-footer-live-preview-container .footer-brand-logo-img {
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}

#admin-footer-live-preview-container .footer-brand-fallback-icon {
    font-size: 1.1rem;
    line-height: 1;
}

#admin-footer-live-preview-container .footer-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

#admin-footer-live-preview-container .footer-site-description {
    color: var(--text-muted, #94a3b8);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
    max-width: 360px;
}

#admin-footer-live-preview-container .footer-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.72rem;
    font-weight: 600;
    color: #34d399;
    width: fit-content;
    margin-top: 2px;
}

#admin-footer-live-preview-container .footer-status-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

#admin-footer-live-preview-container .footer-col-heading {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f8fafc;
    margin: 0 0 12px 0;
}

#admin-footer-live-preview-container .footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#admin-footer-live-preview-container .footer-nav-link {
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-block;
    width: fit-content;
    transition: color 0.2s ease, transform 0.2s ease;
}

#admin-footer-live-preview-container .footer-nav-link:hover {
    color: #6366f1;
    transform: translateX(2px);
}

#admin-footer-live-preview-container .footer-social-caption {
    color: var(--text-muted, #94a3b8);
    font-size: 0.76rem;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

#admin-footer-live-preview-container .footer-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#admin-footer-live-preview-container .footer-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    transition: all 0.2s ease;
}

#admin-footer-live-preview-container .footer-social-btn:hover {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

#admin-footer-live-preview-container .footer-trust-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

#admin-footer-live-preview-container .footer-trust-title {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted, #64748b);
}

#admin-footer-live-preview-container .footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

#admin-footer-live-preview-container .footer-trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#admin-footer-live-preview-container .footer-trust-badge:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

#admin-footer-live-preview-container .footer-payment-svg {
    height: 15px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

#admin-footer-live-preview-container .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted, #64748b);
    font-size: 0.76rem;
}

#admin-footer-live-preview-container .footer-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

#admin-footer-live-preview-container .footer-legal-link {
    color: var(--text-muted, #64748b);
    text-decoration: none;
    font-size: 0.76rem;
    transition: color 0.2s ease;
}

#admin-footer-live-preview-container .footer-legal-link:hover {
    color: #6366f1;
}

#admin-footer-live-preview-container .footer-ssl-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #10b981;
}

#admin-footer-live-preview-container .footer-preview-disabled-state {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted, #64748b);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    #admin-footer-live-preview-container .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================================
   WEBSITE HEADER — PUBLIC PORTAL LIVE PREVIEW SANDBOX STYLES
   ============================================================ */

#admin-header-live-preview-container {
    width: 100%;
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: visible;
    background: #080a0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    box-sizing: border-box;
}

#admin-header-live-preview-container::-webkit-scrollbar {
    height: 6px;
}
#admin-header-live-preview-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
#admin-header-live-preview-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 4px;
}

#admin-header-live-preview-container * {
    box-sizing: border-box;
}

#admin-header-live-preview-container .site-header {
    width: 100%;
    min-width: max-content;
    position: relative;
    box-sizing: border-box;
    font-family: inherit;
    padding: 0 20px;
    display: flex;
    align-items: center;
    border-radius: 11px;
    transition: all 0.3s ease;
}

#admin-header-live-preview-container .site-header--compact {
    height: 56px;
}
#admin-header-live-preview-container .site-header--normal {
    height: 70px;
}
#admin-header-live-preview-container .site-header--spacious {
    height: 82px;
}

#admin-header-live-preview-container .site-header--glassmorphism {
    background: rgba(13, 16, 23, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#admin-header-live-preview-container .site-header--cyber {
    background: linear-gradient(180deg, rgba(10, 12, 20, 0.98) 0%, rgba(5, 6, 12, 1) 100%);
    border-bottom: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
}
#admin-header-live-preview-container .site-header--solid {
    background: #090b10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#admin-header-live-preview-container .site-header--minimal {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#admin-header-live-preview-container .header-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

#admin-header-live-preview-container .header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    gap: 16px;
    height: 100%;
    min-width: max-content;
    box-sizing: border-box;
}

#admin-header-live-preview-container .header-col-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
}

#admin-header-live-preview-container .brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    white-space: nowrap;
}

#admin-header-live-preview-container .brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

#admin-header-live-preview-container .brand-logo-img {
    height: 30px;
    width: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

#admin-header-live-preview-container .brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

#admin-header-live-preview-container .header-brand-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 14px;
    color: #ffffff;
    flex-shrink: 0;
}

#admin-header-live-preview-container .header-col-mid {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 10px;
}

#admin-header-live-preview-container .nav-pill-list {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
    margin: 0;
    flex-shrink: 0;
}

#admin-header-live-preview-container .nav-pill-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

#admin-header-live-preview-container .nav-pill-item a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 16px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

#admin-header-live-preview-container .nav-pill-item:first-child a {
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

#admin-header-live-preview-container .nav-pill-badge {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #ffffff;
    line-height: 1.2;
}

#admin-header-live-preview-container .header-search-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 4px 10px;
    width: 140px;
    flex-shrink: 0;
}

#admin-header-live-preview-container .header-search-icon {
    color: #94a3b8;
    flex-shrink: 0;
}

#admin-header-live-preview-container .header-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.74rem;
    width: 100%;
}

#admin-header-live-preview-container .header-search-input::placeholder {
    color: #64748b;
}

#admin-header-live-preview-container .header-col-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

#admin-header-live-preview-container .header-user-actions-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

#admin-header-live-preview-container .btn-header-outline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

#admin-header-live-preview-container .btn-header-primary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

#admin-header-live-preview-container .user-handler-dropdown {
    position: relative;
}

#admin-header-live-preview-container .btn-user-handler {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.76rem;
    cursor: pointer;
    white-space: nowrap;
}

#admin-header-live-preview-container .user-avatar-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

#admin-header-live-preview-container .user-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    border: 1px solid #080a0f;
}

#admin-header-live-preview-container .user-handler-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

#admin-header-live-preview-container .user-name-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: #f8fafc;
}

#admin-header-live-preview-container .user-role-micro {
    font-size: 0.58rem;
    font-weight: 700;
    color: #818cf8;
}

#admin-header-live-preview-container .dropdown-chevron {
    color: #64748b;
    margin-left: 2px;
    flex-shrink: 0;
}

#admin-header-live-preview-container .user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #0f141c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 50;
    padding: 10px;
}

#admin-header-live-preview-container .user-handler-dropdown.is-open .user-dropdown-menu {
    display: block;
}

#admin-header-live-preview-container .user-dropdown-profile-card {
    padding-bottom: 6px;
}

#admin-header-live-preview-container .user-dropdown-profile-intro {
    display: flex;
    align-items: center;
    gap: 8px;
}

#admin-header-live-preview-container .user-dropdown-avatar-slot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.72rem;
    overflow: hidden;
}

#admin-header-live-preview-container .user-dropdown-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
}

#admin-header-live-preview-container .user-dropdown-role-badge {
    font-size: 0.58rem;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    font-weight: 700;
}

#admin-header-live-preview-container .user-dropdown-role-badge.badge-admin {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

#admin-header-live-preview-container .user-dropdown-email {
    font-size: 0.68rem;
    color: #64748b;
}

#admin-header-live-preview-container .user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}

#admin-header-live-preview-container .user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
    border-radius: 5px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.74rem;
    transition: background 0.15s ease;
}

#admin-header-live-preview-container .user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

#admin-header-live-preview-container .user-dropdown-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    margin-top: 4px;
}

.ws-preview-segmented-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px;
    border-radius: 10px;
    gap: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.header-preview-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    line-height: 1.2;
}

.header-preview-tab-btn:hover {
    color: var(--text-primary, #ffffff);
    background: rgba(255, 255, 255, 0.08);
}

.header-preview-tab-btn.is-active {
    background: var(--primary-glow, rgba(99, 102, 241, 0.2));
    border-color: var(--primary, #6366f1);
    color: var(--primary-light, #a5b4fc);
    box-shadow: 0 0 12px var(--primary-glow, rgba(99, 102, 241, 0.25));
}

.header-preview-disabled-state {
    padding: 24px 20px;
    text-align: center;
    color: var(--text-muted, #64748b);
    font-size: 0.85rem;
}

/* ════════════════════════════════════════════════════════════
   HOMEPAGE SECTION SEQUENCE & REORDERABLE LAYOUT BLOCKS
   ════════════════════════════════════════════════════════════ */
.ws-layout-canvas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ws-block-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ws-block-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.ws-block-card.is-dragging {
    opacity: 0.4;
    border-style: dashed;
    border-color: var(--primary, #6366f1);
}

.ws-block-card.is-drag-over {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.ws-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 12px;
}

.ws-block-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.ws-drag-handle {
    cursor: grab;
    color: var(--text-muted, #64748b);
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    user-select: none;
}

.ws-drag-handle:hover {
    color: var(--text-primary, #ffffff);
    background: rgba(255, 255, 255, 0.08);
}

.ws-drag-handle:active {
    cursor: grabbing;
}

.ws-block-icon {
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ws-block-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #f8fafc);
    margin: 0;
}

.ws-block-type-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.ws-block-type-badge.badge-widget {
    background: rgba(192, 132, 252, 0.12);
    color: #c084fc;
    border-color: rgba(192, 132, 252, 0.25);
}

.ws-block-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ws-btn-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-secondary, #cbd5e1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s ease;
    padding: 0;
}

.ws-btn-action:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.ws-btn-action.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.ws-block-body {
    display: none;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.ws-block-card.is-expanded .ws-block-body {
    display: block;
}

/* ── Add Section / Widget Drawer Modal ── */
.ws-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.ws-drawer-modal {
    background: #12151f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.ws-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.ws-drawer-body {
    padding: 20px 22px;
    overflow-y: auto;
}

.ws-add-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .ws-add-grid {
        grid-template-columns: 1fr;
    }
}

.ws-add-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ws-add-card:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

