/* ==============================================================================
   AION NFC CARDS - LUXURY SMART DIGITAL PROFILE ENGINE
   Apple / Fintech Card Aesthetics, Fluid Mobile-First UI/UX & Micro-Interactions
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --profile-primary: #6366f1;
    --profile-primary-glow: rgba(99, 102, 241, 0.35);
    --profile-secondary: #0f172a;
    --profile-accent: #38bdf8;
    --profile-bg: #0b0f19;
    --profile-card-bg: rgba(26, 34, 52, 0.7);
    --profile-text: #f8fafc;
    --profile-text-muted: #94a3b8;
    --profile-border: rgba(255, 255, 255, 0.09);
    --profile-radius: 18px;
    --profile-btn-radius: 9999px;
    --profile-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --profile-max-width: 480px;
}

/* Universal device resets */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.profile-body {
    background-color: var(--profile-bg);
    color: var(--profile-text);
    font-family: var(--profile-font);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-attachment: fixed;
    background-image: radial-gradient(circle at 50% 0%, var(--profile-primary-glow), transparent 70%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.profile-container {
    width: 100%;
    max-width: var(--profile-max-width);
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
    position: relative;
    background-color: var(--profile-bg);
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Desktop & Laptop Luxury Standalone Device Frame */
@media (min-width: 640px) {
    body.profile-body {
        padding: 2.5rem 1rem 3.5rem;
        background-color: #070a12;
    }
    .profile-container {
        border-radius: 32px;
        border: 1px solid var(--profile-border);
        box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 40px var(--profile-primary-glow);
        overflow: hidden;
    }
}

/* Mobile Screens (Edge-to-Edge) */
@media (max-width: 639px) {
    .profile-container {
        max-width: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding-top: env(safe-area-inset-top, 0px);
    }
}

/* -----------------------------------------------------------------------------
   KEYFRAME ANIMATIONS & MICRO-INTERACTIONS
   ----------------------------------------------------------------------------- */
@keyframes profileFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes coverAurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes btnShimmerSweep {
    0% { transform: translateX(-120%) skewX(-20deg); }
    35%, 100% { transform: translateX(220%) skewX(-20deg); }
}

@keyframes avatarGlowPulse {
    0%, 100% { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 0 var(--profile-primary-glow); }
    50% { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 24px 3px var(--profile-primary-glow); }
}

/* -----------------------------------------------------------------------------
   COVER & PROFILE HEADER
   ----------------------------------------------------------------------------- */
.profile-cover {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--profile-primary) 0%, color-mix(in srgb, var(--profile-accent) 45%, var(--profile-bg)) 50%, var(--profile-bg) 100%);
    background-size: 200% 200%;
    animation: coverAurora 10s ease infinite;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.profile-cover.has-custom-cover {
    background-size: cover;
    animation: none;
}

.profile-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.35;
    pointer-events: none;
}

.profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, transparent 35%, var(--profile-bg) 100%);
}

/* Top Share Action Button on Cover */
.cover-top-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    display: flex;
    gap: 0.5rem;
}

.cover-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cover-icon-btn:hover {
    background: var(--profile-primary);
    border-color: var(--profile-primary);
    transform: scale(1.08);
    box-shadow: 0 6px 18px var(--profile-primary-glow);
}

.profile-header {
    text-align: center;
    padding: 0 1.5rem 1.5rem;
    position: relative;
    margin-top: -68px;
    z-index: 2;
    animation: profileFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-avatar-wrap {
    display: inline-block;
    position: relative;
    margin-bottom: 0.9rem;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--profile-primary), var(--profile-accent));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 22px var(--profile-primary-glow);
    animation: avatarGlowPulse 4s ease-in-out infinite;
}

.profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--profile-bg);
    background-color: var(--profile-card-bg);
    display: block;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.profile-avatar-wrap:hover .profile-avatar {
    transform: scale(1.04);
}

.profile-avatar-fallback {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--profile-primary), var(--profile-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    border: 3px solid var(--profile-bg);
}

.profile-title {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.35rem;
    word-break: break-word;
    color: var(--profile-text);
    letter-spacing: -0.025em;
}

.profile-tagline {
    font-size: 0.96rem;
    color: var(--profile-accent);
    font-weight: 600;
    margin: 0 0 0.55rem;
    word-break: break-word;
    letter-spacing: 0.01em;
}

.profile-bio {
    font-size: 0.91rem;
    color: var(--profile-text-muted);
    line-height: 1.65;
    margin-top: 0.75rem;
    word-break: break-word;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
}

/* -----------------------------------------------------------------------------
   QUICK ACTION BUTTONS
   ----------------------------------------------------------------------------- */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0 1.25rem 1.65rem;
    flex-wrap: wrap;
    animation: profileFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.action-circle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: var(--profile-text);
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
    min-width: 66px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-circle-btn:active {
    transform: scale(0.94);
}

.action-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--profile-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--profile-accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-circle-btn:hover .action-icon {
    background: linear-gradient(135deg, var(--profile-primary), var(--profile-accent));
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 10px 24px var(--profile-primary-glow);
    transform: translateY(-4px) scale(1.04);
}

/* -----------------------------------------------------------------------------
   VCARD SAVE CONTACT BUTTON (WITH SHIMMER SWEEP)
   ----------------------------------------------------------------------------- */
.vcard-btn-wrap {
    padding: 0 1.25rem 1.85rem;
    animation: profileFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}

.btn-save-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--profile-primary), var(--profile-accent));
    color: #ffffff !important;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    border-radius: var(--profile-btn-radius);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 28px -4px var(--profile-primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-save-contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    animation: btnShimmerSweep 4.5s infinite;
    pointer-events: none;
}

.btn-save-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px -4px var(--profile-primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    filter: brightness(1.05);
}

.btn-save-contact:active {
    transform: scale(0.98);
}

/* -----------------------------------------------------------------------------
   DYNAMIC PROFILE SECTIONS & BENTO CARDS
   ----------------------------------------------------------------------------- */
.profile-sections {
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.section-block {
    background: var(--profile-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--profile-card-border, 1px solid rgba(255, 255, 255, 0.09));
    border-radius: var(--profile-radius);
    padding: 1.35rem;
    box-shadow: var(--profile-card-shadow, 0 10px 28px -6px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    animation: profileFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.section-block:hover {
    border-color: color-mix(in srgb, var(--profile-primary) 40%, rgba(255, 255, 255, 0.15));
    transform: translateY(-2px);
}

.section-heading {
    font-size: 1.02rem;
    font-weight: 800;
    margin: 0 0 1.1rem;
    color: var(--profile-text);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    letter-spacing: -0.01em;
}

.section-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--profile-primary) 16%, rgba(255, 255, 255, 0.05));
    border: 1px solid color-mix(in srgb, var(--profile-primary) 32%, rgba(255, 255, 255, 0.1));
    color: var(--profile-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
   CONTACT INFO ROWS (REPLACES RAW UNSTYLED LINKS)
   ----------------------------------------------------------------------------- */
.contact-list-rows {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.contact-row-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.95rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: calc(var(--profile-radius) - 4px);
    text-decoration: none !important;
    color: var(--profile-text) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

a.contact-row-card:hover {
    background: color-mix(in srgb, var(--profile-primary) 14%, rgba(255, 255, 255, 0.05));
    border-color: color-mix(in srgb, var(--profile-primary) 45%, transparent);
    transform: translateX(3px);
}

.contact-row-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--profile-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

a.contact-row-card:hover .contact-row-icon {
    background: var(--profile-primary);
    color: #ffffff;
    border-color: transparent;
}

.contact-row-body {
    flex: 1;
    min-width: 0;
}

.contact-row-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--profile-text-muted);
    margin-bottom: 0.15rem;
}

.contact-row-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--profile-text);
    line-height: 1.35;
    word-break: break-word;
}

.contact-row-arrow {
    color: var(--profile-text-muted);
    font-size: 0.9rem;
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

a.contact-row-card:hover .contact-row-arrow {
    color: var(--profile-accent);
    transform: translate(2px, -2px);
}

/* Custom Links */
.custom-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.custom-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--profile-btn-radius);
    color: var(--profile-text) !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.94rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    word-break: break-word;
}
.custom-link-btn:hover {
    background: linear-gradient(135deg, var(--profile-primary), var(--profile-accent));
    color: #fff !important;
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 8px 20px var(--profile-primary-glow);
}
.custom-link-btn:active {
    transform: scale(0.98);
}

/* Social Media Grid */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.7rem;
}

.social-link-item {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--profile-btn-radius);
    color: var(--profile-text) !important;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.social-link-item:hover {
    background: var(--profile-primary);
    color: #fff !important;
    border-color: var(--profile-primary);
    box-shadow: 0 8px 20px var(--profile-primary-glow);
    transform: translateY(-2px);
}
.social-link-item .social-arrow {
    opacity: 0.65;
    font-size: 0.85rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.social-link-item:hover .social-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Services */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.service-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.05rem 1.1rem;
    border-radius: calc(var(--profile-radius) - 4px);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--profile-primary);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    border-left-color: var(--profile-accent);
    transform: translateX(3px);
}
.service-name {
    font-weight: 800;
    font-size: 0.96rem;
    color: var(--profile-text);
}
.service-desc {
    font-size: 0.84rem;
    color: var(--profile-text-muted);
    margin-top: 0.3rem;
    line-height: 1.5;
}
.service-price {
    font-weight: 800;
    color: var(--profile-accent);
    background: color-mix(in srgb, var(--profile-accent) 14%, rgba(255, 255, 255, 0.05));
    border: 1px solid color-mix(in srgb, var(--profile-accent) 30%, transparent);
    border-radius: 9999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.gallery-thumb-wrap {
    aspect-ratio: 1 / 1;
    border-radius: calc(var(--profile-radius) - 6px);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.gallery-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-thumb-wrap:hover img {
    transform: scale(1.08);
}

/* Hours List */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}
.hours-row.is-today {
    background: color-mix(in srgb, var(--profile-primary) 14%, rgba(255, 255, 255, 0.04));
    border-color: color-mix(in srgb, var(--profile-primary) 38%, transparent);
}
.hours-day {
    font-weight: 700;
    color: var(--profile-text);
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.today-pill {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.12rem 0.45rem;
    border-radius: 9999px;
    background: var(--profile-primary);
    color: #ffffff;
}
.hours-time {
    color: var(--profile-text-muted);
    font-weight: 600;
    font-size: 0.86rem;
}
.hours-row.is-today .hours-time {
    color: var(--profile-accent);
    font-weight: 700;
}

/* Subtle Brand Footer */
.profile-brand-footer {
    text-align: center;
    padding: 2rem 1.25rem 0.5rem;
    opacity: 0.65;
    transition: opacity 0.25s ease;
}
.profile-brand-footer:hover {
    opacity: 1;
}
.profile-brand-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--profile-text-muted);
    text-decoration: none;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* -----------------------------------------------------------------------------
   FLOATING CUSTOMIZE BAR
   ----------------------------------------------------------------------------- */
.profile-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--profile-border);
    z-index: 99;
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .profile-footer-bar {
        max-width: var(--profile-max-width);
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        border-radius: 20px 20px 0 0 !important;
        border-left: 1px solid var(--profile-border);
        border-right: 1px solid var(--profile-border);
    }
}

.btn-customize-website {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--profile-text);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
}
.btn-customize-website:hover {
    background: var(--profile-primary);
    border-color: var(--profile-primary);
    box-shadow: 0 4px 15px var(--profile-primary-glow);
    transform: translateY(-2px);
    color: #fff;
}

/* -----------------------------------------------------------------------------
   OWNER PIN MODAL (SMOOTH SPRING ANIMATION)
   ----------------------------------------------------------------------------- */
.pin-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.pin-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.25s ease forwards;
}

.pin-modal-card {
    background: linear-gradient(180deg, #172033 0%, #0f1626 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 2.25rem 1.85rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85), 0 0 35px rgba(99, 102, 241, 0.14);
    animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.pin-modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.6rem;
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.28);
}
.pin-input {
    width: 100%;
    padding: 0.95rem 1rem;
    font-size: 1.4rem;
    text-align: center;
    letter-spacing: 8px;
    font-weight: 800;
    border-radius: 12px;
    border: 1.5px solid rgba(99, 102, 241, 0.35);
    background: #090d16;
    color: #fff;
    margin: 1.35rem 0;
    outline: none;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.25s ease;
}
.pin-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.28), inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Modal & Profile Buttons (.btn, .btn-primary, .btn-secondary, .btn-sm) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--profile-font, 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.8rem 1.35rem;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.btn:active {
    transform: scale(0.97);
}
.btn-sm {
    padding: 0.75rem 1.15rem;
    font-size: 0.88rem;
    min-height: 44px;
    border-radius: 12px;
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 60%, #38bdf8 100%);
    color: #ffffff !important;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 22px -4px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(99, 102, 241, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: brightness(1.06);
}
.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35);
}

/* -----------------------------------------------------------------------------
   DEVICE COMPATIBILITY & FLUID RESPONSIVE BREAKPOINTS
   ----------------------------------------------------------------------------- */

/* 1. Ultra-Compact Phones (iPhone SE, Small Androids <= 380px) */
@media (max-width: 380px) {
    .profile-cover {
        height: 160px;
    }
    .profile-header {
        padding: 0 1rem 1.25rem;
        margin-top: -55px;
    }
    .profile-avatar, .profile-avatar-fallback {
        width: 96px;
        height: 96px;
        font-size: 2rem;
        border-width: 3px;
    }
    .profile-title {
        font-size: 1.45rem;
    }
    .profile-tagline {
        font-size: 0.88rem;
    }
    .profile-bio {
        font-size: 0.86rem;
    }
    .quick-actions {
        gap: 0.5rem;
        padding: 0 0.85rem 1.35rem;
    }
    .action-circle-btn {
        min-width: 58px;
        font-size: 0.72rem;
    }
    .action-icon {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }
    .action-icon svg {
        width: 19px;
        height: 19px;
    }
    .vcard-btn-wrap {
        padding: 0 0.85rem 1.5rem;
    }
    .btn-save-contact {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }
    .profile-sections {
        padding: 0 0.85rem;
        gap: 1.15rem;
    }
    .section-block {
        padding: 1.1rem;
    }
    .section-heading {
        font-size: 0.98rem;
        margin-bottom: 0.9rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .social-links-grid {
        gap: 0.5rem;
    }
    .social-link-item {
        padding: 0.55rem 0.85rem;
        font-size: 0.82rem;
    }
    .custom-link-btn {
        padding: 0.85rem 1rem;
        font-size: 0.88rem;
    }
    .service-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    .service-price {
        padding-left: 0;
        align-self: flex-start;
    }
}

/* 2. Foldable & Medium Screens (381px - 639px) */
@media (min-width: 381px) and (max-width: 639px) {
    .profile-header {
        padding: 0 1.25rem 1.5rem;
    }
    .quick-actions {
        gap: 0.85rem;
    }
    .profile-sections {
        padding: 0 1.15rem;
    }
}

/* 3. Tablets, Laptops & Desktop Displays (>= 640px) */
@media (min-width: 640px) {
    .profile-title {
        font-size: 1.85rem;
    }
    .profile-cover {
        height: 210px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
}

/* 4. Accessibility & Touch Optimization */
@media (pointer: coarse) {
    .action-circle-btn,
    .btn-save-contact,
    .custom-link-btn,
    .social-link-item,
    .btn-customize-website {
        min-height: 44px; /* Apple Human Interface Guideline touch target */
    }
}

/* 5. Reduced Motion for Users with Motion Sensitivity */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
