/* Tooltips Premium */
[data-tooltip] {
    position: relative;
    cursor: help;
    display: inline-flex;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1e293b;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    width: max-content;
    max-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    line-height: 1.5;
    text-align: center;
}

/* Tooltip Arrow */
[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.help-pill {
    background: #f3f4f6;
    color: #6366f1;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.help-pill:hover {
    background: #6366f1;
    color: white;
}

/* Color Pro Dashboard */
.color-palette-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.color-options-grid-pro {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.color-dot {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.color-dot.active {
    border-color: #111827;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.custom-color-picker-wrap {
    padding-top: 1.2rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.custom-color-picker-wrap label {
    font-size: 0.85rem !important;
    margin-bottom: 12px !important;
    display: block;
    color: #4b5563;
    font-weight: 700;
}

.picker-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    width: 60px;
    height: 44px;
    background: transparent;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: 2px solid #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#color-hex-value {
    font-family: monospace;
    font-weight: 700;
    color: #111827;
    background: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
}

.auto-sync-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 20px;
    color: #475569;
    font-size: 0.9rem;
    margin-top: 2rem;
    border-left: 5px solid #6366f1;
}

[data-theme="dark"] .auto-sync-info {
    background: rgba(99, 102, 241, 0.15);
    color: #cbd5e1;
}

/* APP PREVIEW FIXES - REFINED */
.phone-screen {
    border-radius: 35px !important;
    overflow: hidden !important;
}

.nav-center-btn {
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    background: var(--app-primary, #6366f1) !important;
    transform: translateY(-28px) !important;
    border: 4px solid #fff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 100 !important;
}

.cart-badge-dot {
    background: #ff4d4d !important;
    color: white !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.app-product-card {
    border-radius: 16px !important;
    overflow: hidden !important;
}

/* Ensure the app inside the phone looks premium */
.app-shell {
    font-family: 'Inter', sans-serif;
}

.app-header {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
}