/* ============================================================ */
/* IMAGE LINK EDITOR - CANVA STYLE (UPDATED)
/* ============================================================ */

:root{

    /* =========================
       PREMIUM COLOR SYSTEM
    ========================= */

    --primary:#3B82F6;
    --primary-dark:#2563EB;
    --primary-light:#60A5FA;
    --primary-hover:#1D4ED8;

    --secondary:#8B5CF6;
    --accent:#06B6D4;

    --primary-gradient:
    linear-gradient(135deg,#3B82F6 0%,#6366F1 55%,#8B5CF6 100%);

    --success:#10B981;
    --danger:#EF4444;
    --warning:#F59E0B;
    --info:#0EA5E9;

    /* =========================
       BACKGROUNDS
    ========================= */

    --bg-body:
    linear-gradient(180deg,#F8FAFC 0%,#EEF4FF 100%);

    --bg-white:#FFFFFF;

    --bg-card:rgba(255,255,255,.96);

    --bg-input:#F8FAFC;

    --bg-hover:#EFF6FF;

    --bg-active:#DBEAFE;

    --bg-toolbar:rgba(255,255,255,.82);

    --bg-topbar:rgba(255,255,255,.88);

    /* =========================
       TEXT
    ========================= */

    --text-primary:#0F172A;

    --text-secondary:#334155;

    --text-muted:#94A3B8;

    --text-white:#FFFFFF;

    /* =========================
       BORDER
    ========================= */

    --border-light:#F1F5F9;

    --border-medium:#CBD5E1;

    --border-focus:#3B82F6;

    /* =========================
       SHADOWS
    ========================= */

    --shadow-sm:
    0 2px 8px rgba(15,23,42,.05);

    --shadow-md:
    0 10px 25px rgba(15,23,42,.08);

    --shadow-lg:
    0 18px 45px rgba(15,23,42,.10);

    --shadow-xl:
    0 30px 70px rgba(15,23,42,.15);

    --shadow-glow:
    0 0 25px rgba(59,130,246,.28);

    /* =========================
       GLASS EFFECT
    ========================= */

    --glass:
    rgba(255,255,255,.75);

    --glass-border:
    rgba(255,255,255,.55);

    --glass-blur:20px;

    /* =========================
       RADIUS
    ========================= */

    --radius-sm:10px;

    --radius-md:14px;

    --radius-lg:18px;

    --radius-xl:24px;

    --radius-full:999px;

    /* =========================
       TRANSITIONS
    ========================= */

    --transition:
    all .25s cubic-bezier(.22,1,.36,1);

    --transition-slow:
    all .35s cubic-bezier(.22,1,.36,1);

    /* =========================
       SIZES
    ========================= */

    --topbar-height:80px;

    --bottombar-height:76px;

    --scrollable-height:140px;

}
/* ===================================
   RESET
=================================== */

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

html{
    scroll-behavior:smooth;
    -webkit-tap-highlight-color:transparent;
}

body{

    font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

    background:var(--bg-body);

    color:var(--text-primary);

    min-height:100vh;

    display:flex;

    flex-direction:column;

    overflow:hidden;

    line-height:1.55;

    font-weight:500;

    letter-spacing:.2px;

    text-rendering:optimizeLegibility;

    -webkit-font-smoothing:antialiased;

    -moz-osx-font-smoothing:grayscale;

}

/* Better image rendering */

img{

    display:block;

    max-width:100%;

    user-select:none;

    -webkit-user-drag:none;

}

/* Better buttons */

button{

    font:inherit;

    border:none;

    outline:none;

    cursor:pointer;

    transition:var(--transition);

}

/* Better inputs */

input,
select,
textarea{

    font:inherit;

    outline:none;

    transition:var(--transition);

}

/* Nice focus */

button:focus-visible,
input:focus-visible,
select:focus-visible{

    box-shadow:
    0 0 0 4px rgba(59,130,246,.15);

}

/* Better selection */

::selection{

    background:#3B82F6;

    color:#fff;

}

/* Premium scrollbar */

::-webkit-scrollbar{

    width:8px;

    height:8px;

}

::-webkit-scrollbar-track{

    background:#EDF2F7;

    border-radius:999px;

}

::-webkit-scrollbar-thumb{

    background:
    linear-gradient(
    180deg,
    #60A5FA,
    #3B82F6);

    border-radius:999px;

}

::-webkit-scrollbar-thumb:hover{

    background:
    linear-gradient(
    180deg,
    #3B82F6,
    #2563EB);

}

/* Smooth animations */

*{

    transition:
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;

}
/* ============================================================ */
/* TOP BAR - TALLER WITH LARGE ICONS (80px)
/* ============================================================ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--topbar-height);
    background: var(--bg-topbar);
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: var(--shadow-sm);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    overflow-x: auto;
    padding: 2px 0;
}

.top-bar-left::-webkit-scrollbar {
    height: 2px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding-right: 16px;
}

.logo i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px;
}

.logo span {
    font-weight: 800;
    font-size: 22px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.top-divider {
    width: 2px;
    height: 36px;
    background: var(--border-light);
    margin: 0 10px;
    flex-shrink: 0;
}

.top-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 24px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: scale(1.05);
}

.top-btn:active {
    transform: scale(0.92);
}

.top-btn.active {
    background: var(--bg-active);
    color: var(--primary);
}

.top-btn.danger:hover {
    background: var(--danger);
    color: white;
}

.zoom-level {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0 10px;
    min-width: 52px;
    text-align: center;
    flex-shrink: 0;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
/* ============================================================
   LEFT SLIDE PANEL - SMOOTH APP STYLE
   ============================================================ */

/* ============================================================
   PREMIUM SLIDE MENU
   ============================================================ */

/* ===== Overlay ===== */

.slide-overlay{
    position:fixed;
    inset:0;
    z-index:3000;

    background:
    rgba(15,23,42,.45);

    backdrop-filter:
    blur(12px)
    saturate(160%);

    -webkit-backdrop-filter:
    blur(12px)
    saturate(160%);

    opacity:0;
    visibility:hidden;

    transition:
    opacity .35s ease,
    visibility .35s ease;
}

.slide-overlay.active{

    opacity:1;
    visibility:visible;

}

/* ============================================================ */

.slide-panel{

    position:fixed;

    top:0;
    left:0;
    bottom:0;

    width:420px;
    max-width:88vw;

    z-index:3001;

    display:flex;
    flex-direction:column;

    overflow:hidden;

    background:
    linear-gradient(
    180deg,
    #ffffff,
    #fbfcff);

    border-right:
    1px solid
    rgba(226,232,240,.9);

    box-shadow:
    0 24px 70px rgba(15,23,42,.18);

    transform:
    translateX(-110%);

    transition:
    transform .45s cubic-bezier(.22,1,.36,1);

}

.slide-panel::before{

content:"";

position:absolute;

top:0;
left:0;
right:0;

height:4px;

background:
linear-gradient(
90deg,
#3b82f6,
#6366f1,
#8b5cf6,
#ec4899);

}

.slide-panel.open{

transform:translateX(0);

}

/* ============================================================ */

.slide-panel-header{

display:flex;
align-items:center;
justify-content:space-between;

padding:28px;

background:
linear-gradient(
180deg,
#ffffff,
#f8fbff);

border-bottom:
1px solid
#edf2f7;

}

/* ============================================================ */

.slide-logo{

display:flex;
align-items:center;
gap:16px;

}

/* Icon */

.slide-logo-icon{

width:52px;
height:52px;

border-radius:18px;

display:flex;
align-items:center;
justify-content:center;

background:
linear-gradient(
135deg,
#3b82f6,
#6366f1);

color:#fff;

font-size:22px;

box-shadow:
0 10px 24px rgba(79,70,229,.28);

}

/* Title */

.slide-logo-title{

font-size:20px;

font-weight:800;

color:#111827;

letter-spacing:-.4px;

}

/* Subtitle */

.slide-logo-sub{

margin-top:2px;

font-size:11px;

font-weight:600;

letter-spacing:1px;

text-transform:uppercase;

color:#64748b;

}

/* ============================================================ */

.slide-close{

width:44px;
height:44px;

display:flex;
align-items:center;
justify-content:center;

border:none;

border-radius:14px;

background:#f4f6fb;

color:#64748b;

font-size:20px;

cursor:pointer;

transition:.25s;

}

.slide-close:hover{

background:#ef4444;

color:#fff;

transform:
rotate(90deg)
scale(1.05);

box-shadow:
0 8px 18px rgba(239,68,68,.25);

}

.slide-close:active{

transform:scale(.9);

}
/* ============================================================
   PANEL BODY
   ============================================================ */
.slide-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px 20px 16px;
}

.slide-panel-body::-webkit-scrollbar {
    width: 4px;
}

.slide-panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.slide-panel-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

/* ============================================================
   SLIDE ITEMS
   ============================================================ */
.slide-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
    margin-bottom: 2px;
}

.slide-item:hover {
    background: var(--bg-hover);
}

.slide-item:active {
    transform: scale(0.98);
}

.slide-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.slide-item:hover .slide-item-icon {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.05);
}

.slide-item-content {
    flex: 1;
    min-width: 0;
}

.slide-item-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.slide-item-desc {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.slide-item-arrow {
    color: var(--text-muted);
    font-size: 14px;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
}

.slide-item:hover .slide-item-arrow {
    opacity: 1;
    transform: translateX(4px);
    color: var(--primary);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.slide-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 16px;
}

/* ============================================================
   BADGE
   ============================================================ */
.slide-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 14px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(74, 144, 217, 0.25);
}

/* ============================================================
   FOOTER
   ============================================================ */
.slide-panel-footer {
    padding: 16px 28px 20px 28px;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
    background: var(--bg-white);
}

.slide-footer-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.slide-footer-text i {
    color: var(--danger);
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ============================================================
   ITEM VARIANTS
   ============================================================ */
.slide-item[data-action="about"] .slide-item-icon {
    background: rgba(74, 144, 217, 0.12);
    color: #4A90D9;
}
.slide-item[data-action="about"]:hover .slide-item-icon {
    background: linear-gradient(135deg, #4A90D9, #357ABD);
    color: white;
}

.slide-item[data-action="contact"] .slide-item-icon {
    background: rgba(0, 184, 148, 0.12);
    color: #00B894;
}
.slide-item[data-action="contact"]:hover .slide-item-icon {
    background: linear-gradient(135deg, #00B894, #00A381);
    color: white;
}

.slide-item[data-action="privacy"] .slide-item-icon {
    background: rgba(108, 92, 231, 0.12);
    color: #6C5CE7;
}
.slide-item[data-action="privacy"]:hover .slide-item-icon {
    background: linear-gradient(135deg, #6C5CE7, #5A4BD1);
    color: white;
}

.slide-item[data-action="terms"] .slide-item-icon {
    background: rgba(253, 203, 110, 0.15);
    color: #F39C12;
}
.slide-item[data-action="terms"]:hover .slide-item-icon {
    background: linear-gradient(135deg, #FDCB6E, #F39C12);
    color: white;
}

.slide-item[data-action="help"] .slide-item-icon {
    background: rgba(255, 107, 107, 0.12);
    color: #FF6B6B;
}
.slide-item[data-action="help"]:hover .slide-item-icon {
    background: linear-gradient(135deg, #FF6B6B, #E55A5A);
    color: white;
}

.slide-item[data-action="version"] .slide-item-icon {
    background: rgba(108, 92, 231, 0.12);
    color: #6C5CE7;
}
.slide-item[data-action="version"]:hover .slide-item-icon {
    background: linear-gradient(135deg, #6C5CE7, #4A90D9);
    color: white;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .slide-panel {
        width: 380px;
        max-width: 88vw;
    }
    
    .slide-panel-header {
        padding: 18px 20px 16px 20px;
    }
    
    .slide-logo-title {
        font-size: 16px;
    }
    
    .slide-close {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .slide-item {
        padding: 12px 14px;
        gap: 14px;
    }
    
    .slide-item-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .slide-panel-footer {
        padding: 14px 20px 16px 20px;
    }
}

@media (max-width: 480px) {
    .slide-panel {
        width: 320px;
        max-width: 92vw;
    }
    
    .slide-panel-header {
        padding: 14px 16px 12px 16px;
    }
    
    .slide-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .slide-logo-title {
        font-size: 15px;
    }
    
    .slide-close {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .slide-item {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .slide-item-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .slide-item-title {
        font-size: 13px;
    }
    
    .slide-item-desc {
        font-size: 10px;
    }
    
    .slide-badge {
        font-size: 7px;
        padding: 2px 10px;
    }
    
    .slide-panel-footer {
        padding: 12px 16px 14px 16px;
    }
    
    .slide-footer-text {
        font-size: 10px;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .slide-panel {
        transition: transform 0.3s ease;
    }
    
    .slide-overlay {
        transition: none;
    }
}
/* ============================================================
   SLIDE CONTENT PAGES
   ============================================================ */

/* ============================================================
   SLIDE CONTENT PAGES - FIXED (Slides from LEFT)
   ============================================================ */

.slide-content-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3100;
    background: var(--bg-white);
    /* ✅ CHANGE THIS: -100% = slides from LEFT */
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slide-content-page.open {
    transform: translateX(0);
}

.slide-content-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
    background: var(--bg-white);
}

.slide-content-back {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content-back:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.slide-content-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.slide-content-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px 32px 28px;
}

.slide-content-body::-webkit-scrollbar {
    width: 4px;
}

.slide-content-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.slide-content-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    margin: 0 auto 16px;
}

.slide-content-body h2 {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.slide-content-body > p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 24px;
}

/* ===== FEATURES LIST ===== */
.slide-content-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
}

.feature-item i {
    color: var(--success);
    font-size: 16px;
}

.feature-item span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== CONTACT OPTIONS ===== */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-option:hover {
    background: var(--bg-hover);
}

.contact-option i {
    font-size: 20px;
    color: var(--primary);
    width: 32px;
    text-align: center;
}

.contact-option div {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.contact-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== PRIVACY / TERMS SECTIONS ===== */
.privacy-section,
.terms-section {
    max-width: 400px;
    margin: 0 auto 16px;
    padding: 14px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
}

.privacy-section h4,
.terms-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.privacy-section p,
.terms-section p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== FAQ ITEMS ===== */
.faq-item {
    max-width: 400px;
    margin: 0 auto 12px;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
}

.faq-item h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.faq-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.faq-item kbd {
    background: var(--bg-secondary);
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    font-family: inherit;
}

/* ===== VERSION PAGE ===== */
.version-info {
    max-width: 400px;
    margin: 0 auto 20px;
}

.version-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.version-label {
    font-size: 13px;
    color: var(--text-muted);
}

.version-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.status-badge {
    display: inline-block;
    padding: 1px 12px;
    border-radius: var(--radius-full);
    background: var(--success);
    color: white;
    font-size: 11px;
    font-weight: 600;
}

.version-changelog {
    max-width: 400px;
    margin: 0 auto;
}

.version-changelog h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.version-changelog ul {
    list-style: none;
    padding: 0;
}

.version-changelog ul li {
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.version-changelog ul li:last-child {
    border-bottom: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    .slide-content-header {
        padding: 14px 16px;
    }
    
    .slide-content-header h3 {
        font-size: 16px;
    }
    
    .slide-content-body {
        padding: 16px 16px 24px 16px;
    }
    
    .slide-content-body h2 {
        font-size: 20px;
    }
    
    .slide-content-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .contact-option {
        padding: 10px 12px;
    }
}
/* ============================================================ */
/* EDITOR AREA
/* ============================================================ */
.editor {
    padding-top: var(--topbar-height);
    padding-bottom: calc(var(--bottombar-height) + var(--scrollable-height));
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.canvas-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 48px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    max-width: 420px;
    width: 90%;
}

.empty-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: var(--primary);
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 15px;
    color: var(--text-muted);
}

.empty-hint {
    font-size: 12px;
    opacity: 0.5;
    background: var(--bg-input);
    padding: 4px 20px;
    border-radius: var(--radius-full);
}

.empty-btn {
    padding: 12px 32px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    box-shadow: var(--shadow-glow);
}

.empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.empty-btn:active {
    transform: scale(0.95);
}

/* Image Wrapper */
.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

/* ============================================================ */
/* HOTSPOTS CONTAINER
/* ============================================================ */
#hotspotsContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* ============================================================ */
/* HOTSPOTS - CLEAN, EXACT POSITION, NO SIZE CHANGE
/* ============================================================ */
.hotspot {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 10;
    touch-action: none;
    user-select: none;
    pointer-events: all;
    -webkit-touch-callout: none;
    will-change: transform;
}

/* ============================================================ */
/* HOTSPOT VISUAL - EXACT SIZE, NO EXTRA PADDING
/* ============================================================ */
.hotspot .hotspot-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    /* ✅ Background color comes from JavaScript (iconColors) */
    position: relative;
    pointer-events: none;
    transition: transform 0.2s ease;
}

/* Shape styles */
.hotspot.circle .hotspot-inner {
    border-radius: 50%;
}

.hotspot.square .hotspot-inner {
    border-radius: 8px;
}

/* ============================================================ */
/* HOTSPOT SIZES - EXACT MATCHING SCRIPT (36, 48, 60)
/* ============================================================ */

/* Small - 36px */
.hotspot.size-small .hotspot-inner {
    width: 36px;
    height: 36px;
}

.hotspot.size-small .icon {
    font-size: 14px;
}

.hotspot.size-small .label {
    font-size: 6px;
}

/* Medium - 48px */
.hotspot.size-medium .hotspot-inner {
    width: 48px;
    height: 48px;
}

.hotspot.size-medium .icon {
    font-size: 18px;
}

.hotspot.size-medium .label {
    font-size: 7px;
}

/* Large - 60px */
.hotspot.size-large .hotspot-inner {
    width: 60px;
    height: 60px;
}

.hotspot.size-large .icon {
    font-size: 22px;
}

.hotspot.size-large .label {
    font-size: 8px;
}

/* ============================================================ */
/* ICON & LABEL INSIDE HOTSPOT
/* ============================================================ */
.hotspot .icon {
    line-height: 1;
    pointer-events: none;
    color: white;
    margin-bottom: 1px;
}

.hotspot .label {
    pointer-events: none;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90%;
}

/* ============================================================ */
/* HOVER - NO COLOR, ONLY SCALE
/* ============================================================ */
.hotspot:hover .hotspot-inner {
    transform: scale(1.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

/* ============================================================ */
/* SELECTED - NO COLOR, ONLY SCALE
/* ============================================================ */
.hotspot.selected .hotspot-inner {
    transform: scale(1.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    z-index: 30;
}

/* ============================================================ */
/* LOCKED STATE
/* ============================================================ */
.hotspot.locked {
    cursor: not-allowed;
    opacity: 0.6;
}

.hotspot.locked .hotspot-inner {
    border-color: #FF6B6B;
}

.hotspot.locked .lock-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #FF6B6B;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    pointer-events: none;
    z-index: 5;
}

/* ============================================================ */
/* TOOLTIP - CLEAN
/* ============================================================ */
.hotspot .tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 100;
    letter-spacing: 0.2px;
}

.hotspot:hover .tooltip,
.hotspot.selected .tooltip {
    opacity: 1;
}

/* Tooltip arrow */
.hotspot .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
}

/* ============================================================ */
/* TABLET - Slightly larger for touch
/* ============================================================ */
@media (max-width: 768px) {
    .hotspot.size-small .hotspot-inner {
        width: 40px;
        height: 40px;
    }
    
    .hotspot.size-medium .hotspot-inner {
        width: 52px;
        height: 52px;
    }
    
    .hotspot.size-large .hotspot-inner {
        width: 64px;
        height: 64px;
    }
    
    .hotspot.size-small .icon {
        font-size: 16px;
    }
    
    .hotspot.size-medium .icon {
        font-size: 20px;
    }
    
    .hotspot.size-large .icon {
        font-size: 24px;
    }
    
    .hotspot .tooltip {
        font-size: 11px;
        padding: 4px 14px;
        bottom: calc(100% + 10px);
    }
}

/* ============================================================ */
/* MOBILE - Touch-friendly (44px minimum)
/* ============================================================ */
@media (max-width: 480px) {
    .hotspot.size-small .hotspot-inner {
        width: 44px;
        height: 44px;
    }
    
    .hotspot.size-medium .hotspot-inner {
        width: 56px;
        height: 56px;
    }
    
    .hotspot.size-large .hotspot-inner {
        width: 68px;
        height: 68px;
    }
    
    .hotspot.size-small .icon {
        font-size: 18px;
    }
    
    .hotspot.size-medium .icon {
        font-size: 22px;
    }
    
    .hotspot.size-large .icon {
        font-size: 26px;
    }
    
    .hotspot .tooltip {
        font-size: 12px;
        padding: 4px 16px;
        bottom: calc(100% + 12px);
    }
}

/* ============================================================ */
/* REDUCED MOTION
/* ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .hotspot .hotspot-inner {
        transition: none !important;
    }
    
    .hotspot:hover .hotspot-inner {
        transform: none !important;
    }
    
    .hotspot.selected .hotspot-inner {
        transform: none !important;
    }
}

/* ============================================================ */
/* PRINT STYLES
/* ============================================================ */
@media print {
    .hotspot .hotspot-inner {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .hotspot .tooltip {
        display: none !important;
    }
    
    .hotspot.locked .lock-badge {
        display: none !important;
    }
}
/* ============================================================ */
/* GRID OVERLAY
/* ============================================================ */
.grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(rgba(74,144,217,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,144,217,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.grid-overlay.active {
    opacity: 1;
}

/* ============================================================ */
/* FLOATING ACTION BUTTON
/* ============================================================ */
.fab-add {
    position: absolute;
    bottom: calc(var(--bottombar-height) + var(--scrollable-height) + 24px);
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.fab-add:hover {
    transform: scale(1.08) rotate(90deg);
    box-shadow: var(--shadow-xl);
}

.fab-add:active {
    transform: scale(0.92);
}

/* ============================================================ */
/* SCROLLABLE BOTTOM CONTENT - WITH BIGGER PRECISION ARROWS
/* ============================================================ */
.scrollable-content {
    position: fixed;
    bottom: var(--bottombar-height);
    left: 0;
    right: 0;
    z-index: 999;
    height: var(--scrollable-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid var(--border-light);
    padding: 14px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: height 0.3s ease;
}

.scrollable-content::-webkit-scrollbar {
    width: 3px;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 12px;
}

.content-panel {
    display: none;
    animation: fadeSlideUp 0.3s ease;
}

.content-panel.active {
    display: block;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 6px 0;
}

.panel-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 70px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-label i {
    color: var(--primary);
    font-size: 18px;
}

/* ============================================================ */
/* UPLOAD PANEL
/* ============================================================ */
.upload-area {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
    flex: 1;
}

.upload-area .file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.upload-area input[type="file"] {
    display: none;
}

.upload-btn {
    padding: 10px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.file-name {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================ */
/* URL PANEL
/* ============================================================ */
.url-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.url-group input[type="url"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: var(--bg-input);
    transition: var(--transition);
    height: 44px;
}

.url-group input[type="url"]:focus {
    border-color: var(--border-focus);
    background: white;
    box-shadow: 0 0 0 3px rgba(74,144,217,0.08);
}

.url-group .icon-select {
    padding: 4px 12px;
    height: 44px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 20px;
    background: var(--bg-input);
    cursor: pointer;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.url-group .icon-select:focus {
    border-color: var(--border-focus);
}

.add-url-btn {
    padding: 10px 20px;
    height: 44px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.add-url-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
/* ============================================================
   URL PREVIEW CARD
============================================================ */

.link-preview-card{
    display:none;
    width:100%;
    margin-top:14px;

    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:18px;

    padding:16px;

    box-shadow:
        0 8px 25px rgba(15,23,42,.06);

    transition:.3s ease;
}

.link-preview-card:hover{

    border-color:var(--primary);

    box-shadow:
        0 12px 35px rgba(59,130,246,.15);

}

/* ------------------------------------------------ */

.preview-header{

    display:flex;
    align-items:center;
    justify-content:space-between;

}

/* ------------------------------------------------ */

.preview-left{

    display:flex;
    align-items:center;
    gap:14px;

}

/* ------------------------------------------------ */

.preview-left i{

    width:46px;
    height:46px;

    border-radius:14px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:20px;

    color:white;

    background:linear-gradient(
    135deg,
    #3b82f6,
    #6366f1);

    box-shadow:
    0 8px 18px rgba(59,130,246,.25);

}

/* ------------------------------------------------ */

.preview-title{

    font-size:15px;
    font-weight:700;

    color:#111827;

    margin-bottom:4px;

}

/* ------------------------------------------------ */

.preview-url{

    font-size:12px;

    color:#6b7280;

    word-break:break-all;

    line-height:1.5;

}

/* ------------------------------------------------ */

.preview-actions{

    display:flex;

    gap:10px;

    margin-top:16px;

}

/* ------------------------------------------------ */

.preview-btn{

    flex:1;

    height:42px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    gap:8px;

    font-size:14px;

    font-weight:600;

    transition:.25s;

}

/* ------------------------------------------------ */

#openPreviewBtn{

    background:linear-gradient(
    135deg,
    #3b82f6,
    #6366f1);

    color:white;

    box-shadow:
    0 8px 18px rgba(59,130,246,.25);

}

#openPreviewBtn:hover{

    transform:translateY(-2px);

}

/* ------------------------------------------------ */

#copyPreviewBtn{

    background:#f3f4f6;

    color:#374151;

    border:1px solid #e5e7eb;

}

#copyPreviewBtn:hover{

    background:#e5e7eb;

    transform:translateY(-2px);

}

/* ------------------------------------------------ */

.preview-btn:active{

    transform:scale(.96);

}

/* ============================================================ */
/* HOTSPOT PANEL
/* ============================================================ */
.hotspot-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    flex: 1;
}

.shape-group,
.size-group {
    display: flex;
    gap: 4px;
}

.shape-btn,
.size-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.shape-btn:hover,
.size-btn:hover {
    border-color: var(--primary);
    background: var(--bg-active);
}

.shape-btn.active,
.size-btn.active {
    border-color: var(--primary);
    background: var(--bg-active);
    color: var(--primary);
}

.color-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-group input[type="color"] {
    width: 44px;
    height: 44px;
    padding: 2px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
}

.color-group input[type="color"]:hover {
    border-color: var(--primary);
}

.color-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-group input[type="color"]::-webkit-color-swatch {
    border-radius: 4px;
    border: none;
}

.color-hex {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 56px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ============================================================ */
/* PRECISION PANEL - BIGGER ARROWS WITH PROPER SPACING
/* ============================================================ */
.precision-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    flex: 1;
    padding: 4px 0;
}

.arrow-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--bg-input);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.arrow-row {
    display: flex;
    gap: 4px;
}

.arrow-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.arrow-btn:hover {
    border-color: var(--primary);
    background: var(--bg-active);
    color: var(--primary);
    transform: scale(1.05);
}

.arrow-btn:active {
    transform: scale(0.92);
}

.arrow-center {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.pos-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.pos-inputs label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.pos-inputs input {
    width: 56px;
    padding: 8px 10px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    text-align: center;
    outline: none;
    font-family: inherit;
    background: var(--bg-white);
    transition: var(--transition);
    height: 40px;
}

.pos-inputs input:focus {
    border-color: var(--border-focus);
    background: white;
    box-shadow: 0 0 0 3px rgba(74,144,217,0.08);
}

.pos-inputs input::-webkit-outer-spin-button,
.pos-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pos-inputs input {
    -moz-appearance: textfield;
}

.apply-pos-btn {
    padding: 10px 20px;
    height: 40px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apply-pos-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ============================================================ */
/* EXPORT PANEL
/* ============================================================ */
.export-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.export-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
}

.export-btn:hover {
    border-color: var(--primary);
    background: var(--bg-active);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.export-btn i {
    font-size: 18px;
}

.export-btn.primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.export-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
/* ============================================================ */
/* CLICK AREA CONTROLS
/* ============================================================ */
.click-area-controls {
    width: 100%;
    padding: 8px 0;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    margin-top: 8px;
}

.click-area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.click-area-header .panel-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.reset-click-btn {
    padding: 4px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.reset-click-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.click-control-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.click-control-row label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 60px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.click-control-row label i {
    font-size: 12px;
}

.click-control-row input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: var(--border-light);
    border-radius: 2px;
    outline: none;
    transition: background 0.2s;
}

.click-control-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(74,144,217,0.3);
}

.click-control-row input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid white;
}

.click-control-row .click-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    min-width: 40px;
    text-align: center;
}

.bottom-control {
    background: rgba(74, 144, 217, 0.06);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    border-left: 3px solid var(--primary);
}

.bottom-control label {
    color: var(--primary);
}

.bottom-badge {
    font-size: 9px;
    font-weight: 700;
    color: white;
    background: var(--primary-gradient);
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.3px;
}

.click-presets {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.click-preset {
    padding: 4px 12px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
    color: var(--text-secondary);
}

.click-preset:hover {
    border-color: var(--primary);
    background: var(--bg-active);
}

.click-preset.active {
    border-color: var(--primary);
    background: var(--bg-active);
    color: var(--primary);
}

/* Preview */
.click-preview {
    margin-top: 10px;
    padding: 12px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-hotspot {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-visual {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
    position: relative;
}

.preview-area {
    position: absolute;
    border: 2px dashed rgba(74, 144, 217, 0.3);
    border-radius: 50%;
    background: rgba(74, 144, 217, 0.04);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.preview-label {
    font-size: 8px;
    color: var(--text-muted);
    font-weight: 500;
}

.preview-dimensions {
    display: flex;
    gap: 4px;
    font-size: 7px;
    color: var(--text-muted);
}

.preview-dimensions span {
    background: rgba(0,0,0,0.05);
    padding: 0 4px;
    border-radius: 2px;
}

.click-info {
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    border-left: 3px solid #FFD700;
}

.click-info i {
    color: #FFD700;
    font-size: 14px;
}

/* ============================================================ */
/* STATIC BOTTOM BAR (5 Icons)
/* ============================================================ */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--bottombar-height);
    background: var(--bg-toolbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}

.bottom-bar-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 100%;
    max-width: 600px;
    width: 100%;
    justify-content: space-around;
}

.bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    height: 60px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    gap: 2px;
    min-width: 52px;
    flex: 1;
}

.bottom-btn i {
    font-size: 26px;
    transition: var(--transition);
}

.bottom-btn span {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.bottom-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.bottom-btn:hover span {
    color: var(--text-secondary);
}

.bottom-btn:active {
    transform: scale(0.92);
}

.bottom-btn.active {
    background: var(--bg-active);
    color: var(--primary);
}

.bottom-btn.active span {
    color: var(--primary);
}

.bottom-btn.active i {
    color: var(--primary);
}

.bottom-divider {
    width: 2px;
    height: 36px;
    background: var(--border-light);
    flex-shrink: 0;
}

/* ============================================================ */
/* SIDE LAYER PANEL - UPDATED
/* ============================================================ */
.layer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.layer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.layer-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-light);
}

.layer-panel.open {
    right: 0;
}

.layer-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 2px solid var(--border-light);
    flex-shrink: 0;
}

.layer-panel-header h3 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.layer-panel-header h3 i {
    color: var(--primary);
}

.layer-panel-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.layer-panel-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.layer-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.layer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.layer-action-btn {
    padding: 10px 14px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.layer-action-btn:hover {
    border-color: var(--primary);
    background: var(--bg-active);
    color: var(--primary);
}

.layer-action-btn.danger:hover {
    border-color: var(--danger);
    background: #fee8e8;
    color: var(--danger);
}

.layer-list {
    border-top: 2px solid var(--border-light);
    padding-top: 12px;
}

.layer-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 24px 0;
}

.layer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    margin-bottom: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.layer-item:hover {
    border-color: var(--border-light);
    background: var(--bg-hover);
}

.layer-item.active {
    border-color: var(--primary);
    background: var(--bg-active);
}

.layer-item .layer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.layer-item .layer-info .layer-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.layer-item .layer-info .layer-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.layer-item .layer-info .layer-position {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.layer-item .layer-lock {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.layer-item .layer-lock.locked {
    color: var(--danger);
}

/* ============================================================ */
/* TOAST NOTIFICATIONS
/* ============================================================ */
.toast {
    position: fixed;
    bottom: calc(var(--bottombar-height) + var(--scrollable-height) + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 9999;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: white;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 440px;
    text-align: center;
    pointer-events: none;
}

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

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.warning {
    background: var(--warning);
    color: var(--text-primary);
}

.toast.info {
    background: var(--primary);
}

/* ============================================================ */
/* RESPONSIVE
/* ============================================================ */
@media (max-width: 1024px) {
    :root {
        --topbar-height: 72px;
        --bottombar-height: 68px;
        --scrollable-height: 130px;
    }

    .arrow-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .arrow-center {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    :root {
        --topbar-height: 64px;
        --bottombar-height: 60px;
        --scrollable-height: 120px;
    }

    .top-bar {
        padding: 0 12px;
    }

    .top-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .logo span {
        font-size: 18px;
    }

    .logo i {
        font-size: 24px;
    }

    .top-divider {
        margin: 0 6px;
        height: 28px;
    }

    .zoom-level {
        font-size: 13px;
        min-width: 44px;
    }

    .bottom-btn {
        padding: 2px 8px;
        height: 48px;
        min-width: 40px;
    }

    .bottom-btn i {
        font-size: 22px;
    }

    .bottom-btn span {
        font-size: 10px;
    }

    .bottom-divider {
        height: 28px;
    }

    .scrollable-content {
        padding: 10px 12px;
    }

    .panel-row {
        gap: 10px;
    }

    .panel-label {
        font-size: 12px;
        min-width: 50px;
    }

    .arrow-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .arrow-center {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .pos-inputs input {
        width: 44px;
        height: 36px;
        font-size: 13px;
    }

    .apply-pos-btn {
        height: 36px;
        font-size: 13px;
        padding: 6px 14px;
    }

    .url-group input[type="url"] {
        min-width: 120px;
        font-size: 13px;
        height: 38px;
    }

    .url-group .icon-select {
        height: 38px;
        font-size: 18px;
    }

    .add-url-btn {
        height: 38px;
        font-size: 13px;
        padding: 6px 14px;
    }

    .export-btn {
        height: 38px;
        font-size: 13px;
        padding: 6px 14px;
    }

    .layer-panel {
        width: 320px;
    }

    .fab-add {
        bottom: calc(var(--bottombar-height) + var(--scrollable-height) + 16px);
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .toast {
        bottom: calc(var(--bottombar-height) + var(--scrollable-height) + 16px);
        font-size: 13px;
        padding: 10px 20px;
        max-width: 340px;
    }
}

@media (max-width: 480px) {
    :root {
        --topbar-height: 56px;
        --bottombar-height: 52px;
        --scrollable-height: 110px;
    }

    .top-bar {
        padding: 0 8px;
    }

    .top-btn {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .logo span {
        font-size: 15px;
    }

    .logo i {
        font-size: 20px;
    }

    .top-divider {
        margin: 0 4px;
        height: 22px;
    }

    .zoom-level {
        font-size: 11px;
        min-width: 36px;
        padding: 0 4px;
    }

    .bottom-btn {
        padding: 2px 4px;
        height: 40px;
        min-width: 32px;
    }

    .bottom-btn i {
        font-size: 18px;
    }

    .bottom-btn span {
        font-size: 8px;
    }

    .bottom-divider {
        height: 22px;
        width: 1px;
    }

    .scrollable-content {
        padding: 8px 8px;
        height: var(--scrollable-height);
    }

    .panel-row {
        gap: 6px;
        padding: 4px 0;
    }

    .panel-label {
        font-size: 10px;
        min-width: 36px;
    }

    .panel-label i {
        font-size: 12px;
    }

    .arrow-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .arrow-center {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .arrow-grid {
        padding: 4px;
    }

    .pos-inputs {
        padding: 4px 8px;
    }

    .pos-inputs input {
        width: 36px;
        height: 30px;
        font-size: 11px;
        padding: 4px;
    }

    .pos-inputs label {
        font-size: 11px;
    }

    .apply-pos-btn {
        height: 30px;
        font-size: 11px;
        padding: 4px 10px;
    }

    .url-group input[type="url"] {
        min-width: 80px;
        font-size: 11px;
        height: 32px;
        padding: 4px 8px;
    }

    .url-group .icon-select {
        height: 32px;
        font-size: 14px;
        padding: 2px 6px;
    }

    .add-url-btn {
        height: 32px;
        font-size: 11px;
        padding: 4px 10px;
    }

    .shape-btn,
    .size-btn {
        font-size: 11px;
        padding: 4px 10px;
    }

    .color-group input[type="color"] {
        width: 32px;
        height: 32px;
    }

    .color-hex {
        font-size: 10px;
        min-width: 36px;
    }

    .export-btn {
        height: 32px;
        font-size: 11px;
        padding: 4px 10px;
    }

    .export-btn i {
        font-size: 13px;
    }

    .layer-panel {
        width: 280px;
        max-width: 85vw;
    }

    .layer-actions {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .layer-action-btn {
        font-size: 12px;
        padding: 8px 10px;
    }

    .fab-add {
        bottom: calc(var(--bottombar-height) + var(--scrollable-height) + 12px);
        right: 14px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .toast {
        bottom: calc(var(--bottombar-height) + var(--scrollable-height) + 12px);
        font-size: 12px;
        padding: 8px 16px;
        max-width: 280px;
    }

    .empty-state {
        padding: 24px;
        max-width: 280px;
    }

    .empty-icon {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }

    .empty-state h3 {
        font-size: 18px;
    }

    .empty-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* ============================================================
   PANEL SECTIONS
   ============================================================ */
.panel-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.panel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.panel-row label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 50px;
}

.panel-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s ease;
    font-family: inherit;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-btn:hover {
    border-color: var(--primary);
    background: var(--bg-active);
    color: var(--primary);
    transform: translateY(-2px);
}

.panel-btn.primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.panel-btn.primary:hover {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.panel-btn.danger:hover {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.resize-group input[type="number"] {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 12px;
    text-align: center;
}

/* ============================================================
   FAB MENU
   ============================================================ */
.fab-menu {
    position: fixed;
    bottom: calc(var(--bottombar-height) + 90px);
    right: 30px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    padding: 8px;
    display: none;
    z-index: 150;
    min-width: 160px;
    animation: slideUp 0.3s ease;
}

.fab-menu.open {
    display: block;
}

.fab-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: inherit;
    border: none;
    background: transparent;
    width: 100%;
}

.fab-menu-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.fab-menu-item i {
    width: 20px;
    font-size: 16px;
}

/* ============================================================
   ZOOM WRAPPER
   ============================================================ */
.zoom-wrapper {
    display: inline-block;
    transform-origin: center center;
    transition: transform 0.3s ease;
    position: relative;
    width: 100%;
    height: 100%;
}

/* ============================================================
   HOTSPOTS CONTAINER
   ============================================================ */
.hotspots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hotspots-container .hotspot {
    pointer-events: all;
}