/* ==========================================================================
   Apotek Liwanda Farma Betoambari — Premium Responsive Link-in-Bio Styling
   Palette:
   - Background Main   : #FFF6EF
   - Peach Gradient    : #F9DCCB
   - Card Surface      : #FFFFFF
   - Accent Orange     : #F47732
   - Accent Soft       : #FCE7DA
   - Primary Text      : #3F3029
   - Secondary Text    : #9A8275
   - Status Open Green : #16B875
   ========================================================================== */

:root {
    --bg-main: #FFF6EF;
    --bg-peach: #F9DCCB;
    --card-bg: #FFFFFF;
    --accent-orange: #F47732;
    --accent-orange-dark: #DC5F1B;
    --accent-soft: #FCE7DA;
    --text-primary: #3F3029;
    --text-secondary: #9A8275;
    --text-muted: #7C665A;
    --status-green: #16B875;
    --status-closed: #DC2626;
    --shadow-soft: 0 4px 18px rgba(63, 48, 41, 0.055);
    --shadow-card-hover: 0 8px 24px rgba(244, 119, 50, 0.12), 0 3px 10px rgba(63, 48, 41, 0.05);
    --shadow-pill: 0 3px 12px rgba(63, 48, 41, 0.055);
    --radius-card: 18px;
    --radius-btn: 16px;
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-main);
    background-image:
        radial-gradient(ellipse 64% 52% at 50% 14%, #FFFBF8 0%, rgba(255, 246, 239, 0.88) 54%, transparent 100%),
        linear-gradient(180deg, #FFF6EF 0%, #FCECE1 58%, #F9DCCB 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    display: block;
}

/* Main Centered Column (Desktop: 440px within 420-460px spec) */
.page-wrapper {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    padding: 26px 20px 44px;
}

.bio-container {
    width: 100%;
    max-width: 448px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* 1. Top Status & Quick Action Bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
    padding: 7px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow-pill);
    border: 1px solid rgba(255, 255, 255, 0.85);
    min-height: 36px;
    max-width: calc(100% - 92px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.is-open {
    background-color: var(--status-green);
    box-shadow: 0 0 0 3px rgba(22, 184, 117, 0.18);
    animation: statusPulse 2.4s ease-in-out infinite;
}

.status-dot.is-closed {
    background-color: var(--status-closed);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(22, 184, 117, 0.18);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(22, 184, 117, 0.08);
    }
}

.status-text {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-pill.open .status-text {
    color: var(--status-green);
}

.status-pill.closed .status-text {
    color: var(--status-closed);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.icon-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-pill);
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.icon-circle-btn:hover {
    transform: translateY(-1.5px);
    color: var(--accent-orange);
    background: #FFFFFF;
    box-shadow: 0 6px 16px rgba(63, 48, 41, 0.09);
}

.icon-circle-btn:active {
    transform: scale(0.95);
}

/* 2 & 3. Storefront Photo + Overlapping Circular Logo */
.hero-visual {
    position: relative;
    margin-bottom: 44px;
}

.storefront-card {
    width: 100%;
    aspect-ratio: 16 / 8.9;
    border-radius: 22px;
    overflow: hidden;
    background: var(--accent-soft);
    box-shadow: 0 10px 28px rgba(63, 48, 41, 0.11);
    border: 2px solid rgba(255, 255, 255, 0.72);
}

.storefront-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

.logo-overlap {
    position: absolute;
    left: 50%;
    bottom: -36px;
    transform: translateX(-50%);
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #FFFFFF;
    padding: 5px;
    box-shadow: 0 8px 22px rgba(63, 48, 41, 0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    background: #FFFFFF;
}

.logo-verified-badge {
    position: absolute;
    right: 1px;
    bottom: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--status-green);
    color: #FFFFFF;
    border: 2.5px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(22, 184, 117, 0.35);
}

/* 4. Pharmacy Name */
.pharmacy-name {
    margin: 0 0 14px;
    font-family: var(--font-serif);
    font-size: 21.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    text-align: center;
    padding: 0 4px;
}

/* 5. Address Card */
.address-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 15px 16px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 12px;
}

.address-top {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.address-pin-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.address-lines {
    margin: 0;
    font-size: 12.6px;
    line-height: 1.52;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
}

.address-btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-left: 45px;
}

.addr-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.2px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    border: none;
    transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.addr-pill-btn:hover {
    transform: translateY(-1px);
}

.addr-pill-btn:active {
    transform: scale(0.97);
}

.addr-pill-copy {
    background: #F6F0EB;
    color: var(--text-primary);
}

.addr-pill-copy:hover {
    background: #EFE5DC;
}

.addr-pill-copy.copied {
    background: #E6F9F0;
    color: #0E8A56;
}

.addr-pill-maps {
    background: #E8F2FF;
    color: #1A66CC;
}

.addr-pill-maps:hover {
    background: #DCEBFF;
}

/* 6. WhatsApp Service Capsule */
.wa-service-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.wa-service-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    max-width: 384px;
    min-height: 44px;
    padding: 9px 18px;
    background: var(--card-bg);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    font-size: 13px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wa-service-pill:hover {
    transform: translateY(-1.5px);
    box-shadow: var(--shadow-card-hover);
}

.wa-service-pill:active {
    transform: scale(0.985);
}

.wa-service-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #E8FAF0;
    color: #16A34A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-service-label {
    color: var(--text-muted);
    font-weight: 500;
}

.wa-service-num {
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* 7. Circular Social Media Icons Row */
.social-circles-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-bottom: 16px;
}

.social-circle-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-bg);
    color: #4F3D34;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-pill);
    transition: transform 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.social-circle-link:hover {
    transform: translateY(-2px);
    color: var(--accent-orange);
    box-shadow: var(--shadow-card-hover);
}

.social-circle-link:active {
    transform: scale(0.94);
}

/* 8. Section Heading */
.section-heading {
    margin: 0 0 11px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
}

/* 9. Horizontal Social Media Platform Buttons */
.platform-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.platform-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 11px 16px;
    background: var(--card-bg);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(244, 119, 50, 0.22);
}

.platform-btn:active {
    transform: scale(0.985);
}

.platform-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.platform-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-brand-icon.wa {
    background: #25D366;
    color: #FFFFFF;
}

.platform-brand-icon.tiktok {
    background: #F4F5F7;
    color: #111111;
}

.platform-brand-icon.ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #FFFFFF;
    border-radius: 10px;
}

.platform-brand-icon.fb {
    background: #1877F2;
    color: #FFFFFF;
}

.platform-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.platform-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-badge.wa-badge {
    background: #DCFCE7;
    color: #15803D;
}

.platform-badge.tiktok-badge {
    background: #EDF2F7;
    color: #334155;
}

.platform-badge.ig-badge {
    background: #FCE7F3;
    color: #BE185D;
}

.platform-badge.fb-badge {
    background: #E0F2FE;
    color: #0369A1;
}

.platform-subtitle {
    font-size: 11.8px;
    color: var(--text-secondary);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-arrow {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.18s ease, color 0.18s ease;
}

.platform-btn:hover .platform-arrow {
    transform: translateX(2.5px);
    color: var(--accent-orange);
}

/* 10. Save Contact Outline Button (.vcf) */
.vcf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--accent-orange);
    background: rgba(255, 255, 255, 0.52);
    color: var(--accent-orange-dark);
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 14px;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.vcf-btn:hover {
    background: var(--accent-orange);
    color: #FFFFFF;
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px rgba(244, 119, 50, 0.25);
}

.vcf-btn:active {
    transform: scale(0.985);
}

/* 11. Operating Hours Card */
.hours-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 16px 18px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    margin-bottom: 22px;
}

.hours-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--accent-orange);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hours-schedule {
    margin: 7px 0 4px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
}

.hours-note {
    margin: 0;
    font-size: 12.2px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* 12. Footer */
.site-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.footer-slogan {
    margin: 3px 0 0;
    font-size: 12.2px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.45;
}

.footer-city {
    margin: 2px 0 14px;
    font-size: 11.8px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
}

.admin-link-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(154, 130, 117, 0.22);
    color: #5C473C;
    font-size: 11.8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(63, 48, 41, 0.04);
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-link-pill:hover {
    background: #FFFFFF;
    color: var(--accent-orange-dark);
    transform: translateY(-1px);
}

/* Toast Notification */
.toast-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    background: #2C201B;
    color: #FFFFFF;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 26px rgba(44, 32, 27, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 100;
    max-width: calc(100vw - 32px);
    text-align: center;
}

.toast-banner.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Verification Info Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(44, 32, 27, 0.42);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 90;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-sheet {
    width: 100%;
    max-width: 380px;
    background: #FFFFFF;
    border-radius: 22px;
    padding: 22px 20px;
    box-shadow: 0 20px 44px rgba(44, 32, 27, 0.2);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.2s ease;
    text-align: center;
}

.modal-backdrop.open .modal-sheet {
    transform: translateY(0) scale(1);
}

.modal-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #E8FAF0;
    color: var(--status-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.modal-title {
    margin: 0 0 6px;
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-desc {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
}

.modal-close-btn {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 999px;
    background: var(--accent-orange);
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

/* ==========================================================================
   MOBILE DEDICATED DESIGN (320px, 360px, 375px, 390px, 414px, 430px)
   Every touch button has min-height >= 48px, comfortable reading size,
   zero horizontal scroll, tailored layout & spacing.
   ========================================================================== */
@media (max-width: 600px) {
    body {
        background-attachment: scroll;
    }

    .page-wrapper {
        padding: 16px 18px 36px;
    }

    .bio-container {
        max-width: 100%;
    }

    /* Touch-friendly 48px minimum height for all interactive buttons on HP */
    .status-pill {
        min-height: 42px;
        padding: 8px 14px;
        max-width: calc(100% - 108px);
    }

    .icon-circle-btn {
        width: 48px;
        height: 48px;
    }

    .hero-visual {
        margin-bottom: 44px;
    }

    .storefront-card {
        aspect-ratio: 16 / 9;
        border-radius: 20px;
    }

    .logo-overlap {
        width: 84px;
        height: 84px;
        bottom: -35px;
    }

    .pharmacy-name {
        font-size: 20.5px;
        margin-bottom: 14px;
    }

    .address-card {
        padding: 15px 15px;
    }

    .address-lines {
        font-size: 13.2px;
        line-height: 1.5;
    }

    .address-btn-group {
        padding-left: 0;
        margin-top: 13px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .addr-pill-btn {
        min-height: 48px;
        width: 100%;
        padding: 10px 12px;
        font-size: 12.8px;
    }

    .wa-service-pill {
        max-width: 100%;
        min-height: 48px;
        padding: 11px 16px;
        font-size: 13px;
    }

    .social-circles-row {
        gap: 14px;
        margin-bottom: 18px;
    }

    .social-circle-link {
        width: 48px;
        height: 48px;
    }

    .platform-btn {
        min-height: 58px;
        padding: 12px 15px;
    }

    .platform-name {
        font-size: 14.5px;
    }

    .vcf-btn {
        min-height: 50px;
        font-size: 13.8px;
    }

    .admin-link-pill {
        min-height: 48px;
        padding: 10px 18px;
        font-size: 12.5px;
    }
}

/* Smallest Phones: 320px - 359px */
@media (max-width: 359px) {
    .page-wrapper {
        padding: 14px 14px 32px;
    }

    .status-text {
        font-size: 11.8px;
    }

    .logo-overlap {
        width: 78px;
        height: 78px;
        bottom: -32px;
    }

    .hero-visual {
        margin-bottom: 40px;
    }

    .pharmacy-name {
        font-size: 18.5px;
    }

    .address-btn-group {
        grid-template-columns: 1fr;
    }

    .wa-service-pill {
        flex-wrap: wrap;
        gap: 4px 6px;
        padding: 10px 12px;
        font-size: 12.3px;
        border-radius: 20px;
    }

    .social-circles-row {
        gap: 10px;
    }
}

/* Large Desktop Screens (1366px - 1920px+) */
@media (min-width: 1200px) {
    .page-wrapper {
        padding: 34px 24px 52px;
    }
}
