/* ==========================================================================
   bio.info.vn - iOS Glassmorphism, 50+ Layout Engine & Avatar Shapes
   Bản quyền thuộc về: bio.info.vn
   ========================================================================== */

:root {
    --ios-glass-bg: rgba(15, 23, 42, 0.65);
    --ios-glass-border: rgba(255, 255, 255, 0.12);
    --ios-glass-blur: blur(28px);
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #07090e;
    color: #f8fafc;
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #07090e;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* iOS Glassmorphism Panels */
.ios-glass {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.ios-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ios-glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.glass-nav {
    background: rgba(7, 9, 14, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Avatar Shapes Customization */
.avatar-shape-circle {
    border-radius: 9999px !important;
}
.avatar-shape-squircle {
    border-radius: 28px !important;
}
.avatar-shape-rounded {
    border-radius: 16px !important;
}
.avatar-shape-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    border-radius: 0 !important;
}
.avatar-shape-octagon {
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%) !important;
    border-radius: 0 !important;
}
.avatar-shape-diamond {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%) !important;
    border-radius: 0 !important;
}
.avatar-shape-flower {
    clip-path: polygon(50% 0%, 65% 18%, 95% 18%, 82% 50%, 95% 82%, 65% 82%, 50% 100%, 35% 82%, 5% 82%, 18% 50%, 5% 18%, 35% 18%) !important;
    border-radius: 0 !important;
}
.avatar-shape-sharp {
    border-radius: 0px !important;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px var(--primary-glow); }
    50% { box-shadow: 0 0 30px var(--primary-glow); }
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.03); }
}

.anim-float {
    animation: float 4s ease-in-out infinite;
}

.anim-bubble {
    animation: bubbleFloat 3s ease-in-out infinite;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Phone Mockup Frame for Dashboard */
.phone-mockup-outer {
    width: 360px;
    height: 720px;
    background: #09090b;
    border-radius: 46px;
    padding: 10px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
    position: relative;
    margin: 0 auto;
}

.phone-dynamic-island {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #000;
    border-radius: 14px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 38px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.phone-screen::-webkit-scrollbar {
    display: none;
}
.phone-screen {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Bio Buttons Styles */
.bio-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

/* Button shapes */
.btn-shape-rounded {
    border-radius: 16px;
}
.btn-shape-pill {
    border-radius: 9999px;
}
.btn-shape-sharp {
    border-radius: 6px;
}
.btn-shape-brutalist {
    border-radius: 0px;
    border: 2px solid #000 !important;
    box-shadow: 4px 4px 0px #000;
}

/* Button hover animations */
.btn-anim-float:hover {
    transform: translateY(-3px);
}
.btn-anim-pulse:hover {
    animation: pulseGlow 1.5s infinite;
    transform: scale(1.02);
}
.btn-anim-wobble:hover {
    transform: scale(1.02);
}
.btn-anim-glow:hover {
    box-shadow: 0 0 20px var(--bio-accent, #38bdf8);
}
.btn-anim-none:hover {
    opacity: 0.92;
}

/* Floating Contact Bubble (Admin Info) */
.contact-bubble-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
}

.contact-bubble-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.45);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.25);
}
.contact-bubble-btn:hover {
    transform: scale(1.08);
}

.contact-bubble-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    padding: 20px;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
