/* ===== Variables ===== */
:root {
    --bg-main: #f5f0e8;
    --bg-card: #faf8f5;
    --bg-btn: #ffffff;
    --text-primary: #000000;
    --text-secondary: #000000;
    --sunny-gold: #d4a84b;
    --sunny-gold-dark: #b8923a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===== Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #e8e4dc 0%, #d4cfc6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

/* ===== Mobile Frame ===== */
.mobile-frame {
    max-width: 675px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    color: #000000;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(255, 220, 200, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(255, 210, 190, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255, 230, 210, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 10% 80%, rgba(255, 215, 195, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 35% 45% at 90% 20%, rgba(255, 225, 205, 0.18) 0%, transparent 50%),
        linear-gradient(160deg, #ffffff 0%, #fffbf9 25%, #fffaf7 50%, #fffcf9 75%, #fffdfb 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    padding-top: 1rem;
    padding-bottom: 4.5rem;
}

/* ===== Top Navigation ===== */
.top-nav {
    background: transparent;
}

.top-nav-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.top-nav-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-nav-logo-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.btn-icon {
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.35rem;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

/* ===== Profile Section ===== */
.profile-section {
    padding-top: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.profile-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.profile-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== Fixed Menu Bottom (Hotline, Website, Fanpage) ===== */
.fixed-menu-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0.5rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 253, 251, 0.95) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.fixed-menu-bottom .fixed-menu-btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.fixed-menu-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg-btn);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.fixed-menu-btn:hover {
    background: #fffefb;
    border-color: rgba(212, 168, 75, 0.3);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.fixed-menu-btn[href="#"] {
    opacity: 0.6;
    cursor: default;
}

.fixed-menu-btn[href="#"]:hover {
    transform: none;
}

/* ===== Link Buttons ===== */
.links-section {
    padding-top: 0.5rem;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 82px;
    padding: 1.25rem 3rem 1.25rem 1.4rem;
    background: var(--bg-btn);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.link-btn:hover {
    background: #fffefb;
    border-color: rgba(212, 168, 75, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.link-btn span {
    flex: 1;
    text-align: center;
}

.link-btn span.d-flex {
    justify-content: flex-start;
}

.link-btn-social-inner {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0.5rem;
}

.link-btn-social-inner .social-icon,
.link-btn-social-inner .social-icon-logo {
    flex-shrink: 0;
}

.social-link-text {
    flex: 1;
    text-align: center;
}

.link-btn .bi-three-dots-vertical {
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Social Icons */
.link-btn-social .social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.25rem;
    font-weight: 700;
}

.social-icon-logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    flex-shrink: 0;
}

.sunny-icon {
    background: linear-gradient(145deg, var(--sunny-gold) 0%, var(--sunny-gold-dark) 100%);
    color: white !important;
}

.fb-icon {
    background: #1877f2;
    color: white !important;
}

.ig-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
}

.yt-icon {
    background: #ff0000;
    color: white !important;
}

.tiktok-icon {
    background: #000000;
    color: white !important;
}

.zalo-icon {
    background: #0068ff;
    color: white !important;
}

.googlemap-icon {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%);
    color: white !important;
}

/* ===== Mobile Hint ===== */
.mobile-hint {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    z-index: 1000;
}

.mobile-hint span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.qr-placeholder {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

/* ===== Copy Toast ===== */
.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .mobile-hint {
        display: none !important;
    }

    body {
        padding: 0;
    }

    .mobile-frame {
        max-width: 100%;
        padding: 0;
    }

    .main-content {
        border-radius: 0;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 4.5rem;
    }

    .top-nav {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .links-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .profile-title {
        font-size: 1.35rem;
    }

    .profile-subtitle {
        font-size: 1rem;
    }

    .link-btn {
        padding: 1rem 2.5rem 1rem 1rem;
        font-size: 0.9rem;
    }
}
