:root {
    --sp-primary: #2563eb;
    --sp-primary-dark: #1d4ed8;
    --sp-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --sp-dark: #0b1120;
    --sp-dark-card: #111827;
    --sp-light-bg: #f8fafc;
    --sp-border: #e2e8f0;
    --sp-text: #0f172a;
    --sp-muted: #64748b;
    --sp-card-bg: #ffffff;
    --sp-shadow-3d: 0 10px 25px -5px rgba(37, 99, 235, 0.2), 0 4px 10px -2px rgba(15, 23, 42, 0.08);
}

[data-bs-theme="dark"] {
    --sp-light-bg: #0b1120;
    --sp-card-bg: #111827;
    --sp-border: #1e293b;
    --sp-text: #f1f5f9;
    --sp-muted: #94a3b8;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--sp-light-bg);
    color: var(--sp-text);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sp-gradient-bg {
    background: var(--sp-gradient);
}

.sp-hero {
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 55%),
                radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.12), transparent 50%),
                var(--sp-dark);
    color: #ffffff;
}

.sp-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.sp-card {
    background: var(--sp-card-bg);
    border: 1px solid var(--sp-border);
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

/* 3D Buttons */
.btn-3d-primary {
    background: var(--sp-gradient);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: 0 6px 0 #1e40af, 0 10px 20px rgba(37, 99, 235, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-3d-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #1e40af, 0 14px 24px rgba(37, 99, 235, 0.35);
}

.btn-3d-primary:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #1e40af, 0 5px 10px rgba(37, 99, 235, 0.25);
}

/* 3D Social Platform Badges */
.sp-icon-3d {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18), inset 0 2px 2px rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease;
}

.sp-icon-3d:hover {
    transform: translateY(-3px) scale(1.04);
}

.sp-icon-ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.sp-icon-fb { background: linear-gradient(135deg, #1877f2, #0d5bd9); }
.sp-icon-yt { background: linear-gradient(135deg, #ff0000, #c80000); }
.sp-icon-gd { background: linear-gradient(135deg, #0f9d58, #4285f4, #f4b400); }

/* Sidebar Layout */
.sp-wrapper {
    display: flex;
    min-height: 100vh;
}

.sp-sidebar {
    width: 265px;
    background: var(--sp-dark);
    color: #e2e8f0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease;
    z-index: 1040;
}

.sp-sidebar .nav-link {
    color: #94a3b8;
    border-radius: 0.65rem;
    padding: 0.65rem 1rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.15s ease;
}

.sp-sidebar .nav-link:hover,
.sp-sidebar .nav-link.active {
    background: rgba(37, 99, 235, 0.22);
    color: #ffffff;
}

.sp-sidebar .nav-link.active {
    background: var(--sp-gradient);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.sp-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sp-topbar {
    background: var(--sp-card-bg);
    border-bottom: 1px solid var(--sp-border);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 991.98px) {
    .sp-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
    }
    .sp-sidebar.show {
        transform: translateX(0);
    }
}

/* Toast & Loader */
#sp-toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1090;
}

.sp-spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, 0.55);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* WhatsApp Floating Button */
.sp-whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.sp-whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
}
