/* ========================================================
   assets/css/account.css — Customer Sanctuary & Account Suite
   Ultra-Modern Luxury Soft-Girly Boutique Architecture
   ======================================================== */

:root {
    --account-brand: #f4a6c1;
    --account-brand-dark: #d1648a;
    --account-brand-soft: #fff0f5;
    --account-brand-glow: rgba(244, 166, 193, 0.28);
    --account-surface: #ffffff;
    --account-border: rgba(244, 166, 193, 0.35);
    --account-text-dark: #2d2629;
    --account-text-muted: #8c7b84;
    --account-gold: #eab308;
    --account-gold-soft: #fef9c3;
    --account-radius-lg: 24px;
    --account-radius-md: 16px;
    --account-radius-sm: 10px;
    --account-shadow-soft: 0 10px 30px rgba(244, 166, 193, 0.12);
    --account-shadow-hover: 0 14px 38px rgba(209, 100, 138, 0.18);
}

/* --------------------------------------------------------
   1. MAIN VIEWPORT & CONTAINER
   -------------------------------------------------------- */
.sanctuary-dashboard-viewport {
    background-color: var(--bg-main, #fffafc);
    min-height: calc(100vh - 120px);
    padding: 2.2rem 4% 5rem;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
    width: 100%;
}

.sanctuary-container {
    max-width: 1220px;
    margin: 0 auto;
}

/* --------------------------------------------------------
   2. SYSTEM ALERTS (RESTRICTION / SUCCESS / ERROR)
   -------------------------------------------------------- */
.sanctuary-alert {
    padding: 1rem 1.4rem;
    border-radius: var(--account-radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.6rem;
    font-size: 0.85rem;
    line-height: 1.45;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.sanctuary-alert svg,
.sanctuary-alert .alert-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
}

.sanctuary-alert.restriction-banner {
    background: #fffaf0;
    border: 1.5px solid rgba(221, 107, 32, 0.35);
    color: #c05621;
}

.sanctuary-alert.success {
    background: #f0fff4;
    border: 1.5px solid rgba(72, 187, 120, 0.35);
    color: #276749;
}

.sanctuary-alert.error {
    background: #fff2f4;
    border: 1.5px solid rgba(217, 83, 79, 0.35);
    color: #d9534f;
}

/* --------------------------------------------------------
   3. LUXURY TWO-COLUMN ATELIER STUDIO GRID
   -------------------------------------------------------- */
.sanctuary-studio-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    align-items: start;
}

.sanctuary-studio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

@media (min-width: 993px) {
    .sanctuary-studio-sidebar {
        position: sticky;
        top: 85px;
        z-index: 10;
    }
}

.sanctuary-studio-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --------------------------------------------------------
   4. PROFILE IDENTITY CARD (HERO)
   -------------------------------------------------------- */
.sanctuary-profile-card {
    background: var(--account-surface);
    border: 1.5px solid var(--account-border);
    border-radius: var(--account-radius-lg);
    box-shadow: var(--account-shadow-soft);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card-cover-banner {
    height: 86px;
    background: linear-gradient(135deg, #ffd4e5 0%, #f4a6c1 50%, #ffd9e8 100%);
    position: relative;
    overflow: hidden;
}

.profile-card-cover-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='%23ffffff' fill-opacity='0.32'%3E%3Cpath d='M22 20C19 15 13 14 13 18C13 21 18 21 22 20Z'/%3E%3Cpath d='M22 20C25 15 31 14 31 18C31 21 26 21 22 20Z'/%3E%3Ccircle cx='22' cy='20' r='2'/%3E%3Cpath d='M21 21L18 28' stroke='%23ffffff' stroke-width='1.5' stroke-opacity='0.32' stroke-linecap='round'/%3E%3Cpath d='M23 21L26 28' stroke='%23ffffff' stroke-width='1.5' stroke-opacity='0.32' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 40px 40px;
    pointer-events: none;
}

.profile-card-cover-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.25) 100%);
    pointer-events: none;
}

.profile-card-body {
    padding: 0 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-avatar-wrap {
    cursor: pointer;
    margin-top: -38px;
    margin-bottom: 0.75rem;
    position: relative;
}

.hero-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6b4cb 0%, #dfaec5 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(209, 100, 138, 0.3);
    position: relative;
    overflow: hidden;
    border: 3px solid #ffffff;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-avatar-wrap:hover .hero-profile-avatar {
    transform: scale(1.06);
}

.hero-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-edit-badge {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    background: rgba(209, 100, 138, 0.85);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hero-avatar-wrap:hover .avatar-edit-badge {
    opacity: 1;
}

.profile-meta-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-bottom: 1.2rem;
}

.profile-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-user-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--account-text-dark);
    margin: 0;
    line-height: 1.25;
}

.profile-verified-badge {
    display: inline-flex;
    align-items: center;
}

.profile-email-text {
    font-size: 0.78rem;
    color: var(--account-text-muted);
    margin: 0;
    word-break: break-all;
}

.profile-contact-text {
    font-size: 0.72rem;
    color: #a0979c;
    margin: 2px 0 0;
}

.profile-since-tag {
    margin-top: 6px;
    display: inline-block;
    background: var(--account-brand-soft);
    border: 1px solid rgba(244, 166, 193, 0.4);
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--account-brand-dark);
}

.profile-quick-actions-dock {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    border-top: 1px solid rgba(244, 166, 193, 0.25);
    padding-top: 1rem;
}

.dock-action-item {
    background: #fffcfd;
    border: 1.2px solid var(--account-border);
    padding: 0.55rem 0.4rem;
    border-radius: var(--account-radius-sm);
    color: var(--account-text-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
    position: relative;
}

.dock-action-item:hover {
    background: var(--account-brand-soft);
    border-color: var(--account-brand);
    color: var(--account-brand-dark);
    transform: translateY(-1px);
}

.dock-action-item.logout {
    color: #d1648a;
    border-color: rgba(209, 100, 138, 0.3);
}
.dock-action-item.logout:hover {
    background: #fff2f4;
    border-color: #d1648a;
    color: #d1648a;
}

.dock-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #f4a6c1 0%, #d1648a 100%) !important;
    color: #ffffff !important;
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(209, 100, 138, 0.38) !important;
}

/* --------------------------------------------------------
   5. VIP LOYALTY PASSPORT CARD
   -------------------------------------------------------- */
.sanctuary-loyalty-passport-card {
    background: var(--account-surface);
    border: 1.5px solid var(--account-border);
    border-radius: var(--account-radius-lg);
    box-shadow: var(--account-shadow-soft);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.passport-header-row {
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(244, 166, 193, 0.25);
}

.passport-emblem-orb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(244, 166, 193, 0.4);
}

.passport-title-wrap {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.passport-level-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 2px;
}

.passport-tier-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.passport-body {
    padding: 1.2rem 1.4rem;
    text-align: left;
}

.passport-perk-summary {
    font-size: 0.76rem;
    color: var(--account-text-dark);
    font-weight: 600;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.passport-metrics-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 1.1rem;
}

.passport-metric-tile {
    background: #fffcfd;
    border: 1px solid rgba(244, 166, 193, 0.3);
    border-radius: var(--account-radius-sm);
    padding: 0.65rem 0.8rem;
    text-align: left;
}

.p-metric-label {
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--account-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.p-metric-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--account-text-dark);
    display: block;
}

.passport-runway-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.p-runway-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
}

.p-runway-target {
    font-weight: 600;
    color: var(--account-text-dark);
}

.p-runway-percent {
    font-weight: 700;
}

.p-runway-track {
    height: 7px;
    background: #fdf2f6;
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(244, 166, 193, 0.3);
}

.p-runway-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.p-runway-hint {
    font-size: 0.68rem;
    color: var(--account-text-muted);
    margin: 4px 0 0;
    line-height: 1.4;
}

/* --------------------------------------------------------
   6. QUICK NAVIGATION HUB (SHORTCUTS CARD)
   -------------------------------------------------------- */
.sanctuary-shortcuts-card {
    background: var(--account-surface);
    border: 1.5px solid var(--account-border);
    border-radius: var(--account-radius-lg);
    box-shadow: var(--account-shadow-soft);
    padding: 1.2rem 1.4rem;
}

.shortcuts-card-header {
    text-align: left;
    margin-bottom: 0.85rem;
    border-bottom: 1px dashed rgba(244, 166, 193, 0.25);
    padding-bottom: 0.5rem;
}

.shortcuts-kicker {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--account-brand-dark);
    text-transform: uppercase;
}

.shortcuts-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--account-text-dark);
    margin: 1px 0 0;
}

.shortcuts-compact-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.shortcut-compact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 0.85rem;
    background: #fffcfd;
    border: 1px solid rgba(244, 166, 193, 0.28);
    border-radius: var(--account-radius-sm);
    text-decoration: none;
    transition: all 0.18s ease;
}

.shortcut-compact-item:hover {
    background: var(--account-brand-soft);
    border-color: var(--account-brand);
    transform: translateX(3px);
}

.shortcut-compact-item.highlight {
    background: #fff5f8;
    border-color: rgba(209, 100, 138, 0.4);
}

.sc-icon-orb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(244, 166, 193, 0.4);
    color: var(--account-brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sc-icon-orb.highlight {
    background: linear-gradient(135deg, #ffd4e5 0%, #f4a6c1 100%) !important;
    color: #ffffff;
    border: none;
}

.sc-text-col {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.sc-text-col strong {
    display: block;
    font-size: 0.78rem;
    color: var(--account-text-dark);
    font-weight: 600;
}

.sc-text-col span {
    display: block;
    font-size: 0.68rem;
    color: var(--account-text-muted);
}

.sc-arrow {
    font-size: 0.85rem;
    color: var(--account-brand-dark);
    transition: transform 0.18s ease;
}

.shortcut-compact-item:hover .sc-arrow {
    transform: translateX(2px);
}

/* --------------------------------------------------------
   7. MAIN ORDERS & REVIEWS WORKSPACE (RIGHT COLUMN)
   -------------------------------------------------------- */
.sanctuary-subtabs-nav {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 5px;
    border-radius: 9999px;
    border: 1.5px solid var(--account-border);
    box-shadow: 0 4px 14px rgba(244, 166, 193, 0.08);
    gap: 4px;
    align-self: flex-start;
    margin-bottom: 1.5rem; /* Distinct luxury breathing room */
}

.subtab-btn {
    border: none;
    background: transparent;
    padding: 0.55rem 1.2rem;
    border-radius: 9999px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--account-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.subtab-btn:hover {
    color: var(--account-brand-dark);
}

.subtab-btn.active {
    background: linear-gradient(135deg, #f4a6c1 0%, #d1648a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(209, 100, 138, 0.28) !important;
}

.badge-num {
    background: rgba(255, 255, 255, 0.3);
    padding: 1px 6px;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
}
.subtab-btn:not(.active) .badge-num {
    background: #fff0f5;
    color: var(--account-brand-dark);
}

.dashboard-card {
    background: var(--account-surface);
    border: 1.5px solid var(--account-border);
    border-radius: var(--account-radius-lg);
    box-shadow: var(--account-shadow-soft);
    padding: 1.6rem;
    display: none;
}

.dashboard-card.active {
    display: block;
    animation: accountFadeIn 0.2s ease;
}

@keyframes accountFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(244, 166, 193, 0.25);
    flex-wrap: wrap;
    gap: 10px;
    text-align: left;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--account-text-dark);
    margin: 0;
}

.card-subtitle {
    font-size: 0.74rem;
    color: var(--account-text-muted);
    display: block;
    margin-top: 2px;
}

.total-spend-tag {
    background: #fff8fb;
    border: 1px solid var(--account-border);
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    color: var(--account-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.total-spend-tag strong {
    color: var(--account-brand-dark);
    font-weight: 700;
}

/* --------------------------------------------------------
   8. ORDERS ACCORDION STACK
   -------------------------------------------------------- */
.orders-accordion-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-accordion-card {
    background: #ffffff;
    border: 1.2px solid rgba(244, 166, 193, 0.35);
    border-radius: var(--account-radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-accordion-card.open {
    border-color: var(--account-brand);
    box-shadow: 0 6px 20px rgba(244, 166, 193, 0.14);
}

.accordion-head {
    padding: 1rem 1.2rem;
    background: #fffcfd;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ord-ref-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--account-brand-dark);
}

.ord-date-meta {
    font-size: 0.72rem;
    color: var(--account-text-muted);
}

.ord-items-badge {
    font-size: 0.65rem;
    font-weight: 600;
    background: #fff0f5;
    color: var(--account-brand-dark);
    padding: 1px 7px;
    border-radius: 9999px;
    border: 1px solid rgba(244, 166, 193, 0.3);
}

.head-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.record-status-pill {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 9999px;
    letter-spacing: 0.4px;
}
.record-status-pill.pending    { background: #fffaf0; color: #c05621; border: 1px solid #feebc8; }
.record-status-pill.processing { background: #fff5f8; color: #d1648a; border: 1px solid #fcd5e5; }
.record-status-pill.shipped    { background: #ebf8ff; color: #2b6cb0; border: 1px solid #bee3f8; }
.record-status-pill.delivered  { background: #f0fff4; color: #276749; border: 1px solid #c6f6d5; }
.record-status-pill.cancelled  { background: #edf2f7; color: #718096; border: 1px solid #e2e8f0; }

.ord-total-price {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--account-text-dark);
}

.accordion-chevron {
    color: var(--account-brand-dark);
    display: flex;
    align-items: center;
    transition: transform 0.25s ease;
}
.order-accordion-card.open .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.body-inner-content {
    padding: 1.1rem 1.3rem;
    border-top: 1px solid rgba(244, 166, 193, 0.2);
    background: #ffffff;
}

/* PIECES LIST */
.record-pieces-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.2rem;
}

.account-order-piece-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.65rem 0.6rem;
    border-bottom: 1px dashed rgba(244, 166, 193, 0.2);
    border-radius: var(--account-radius-sm);
    box-sizing: border-box;
    transition: background 0.15s ease;
}
.account-order-piece-row:last-child {
    border-bottom: none;
}

.account-order-piece-row.is-gift-item {
    background: linear-gradient(135deg, #fffcfd 0%, #fff5f8 100%) !important;
    border: 1.5px dashed #f4a6c1 !important;
    border-radius: 14px !important;
    padding: 0.75rem 0.9rem !important;
    margin: 6px 0 !important;
    box-shadow: 0 2px 10px rgba(244, 166, 193, 0.12) !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.account-order-piece-row.is-gift-item::before {
    display: none !important;
    content: none !important;
}

.account-order-piece-row.is-gift-item .piece-thumb-wrap {
    border: 1.5px solid #f4a6c1 !important;
    background: #fff0f5 !important;
    border-radius: 10px !important;
}

.mini-tag.gift {
    background: linear-gradient(135deg, #ffd4e5 0%, #f4a6c1 100%) !important;
    color: #ffffff !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 9999px !important;
    border: none !important;
    letter-spacing: 0.4px !important;
    box-shadow: 0 2px 6px rgba(209, 100, 138, 0.25) !important;
}

.piece-thumb-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--account-radius-sm);
    background: #fff8fb;
    border: 1px solid rgba(244, 166, 193, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.piece-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.piece-theme-svg-icon {
    color: var(--account-brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.piece-info-col {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.piece-title-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.piece-name-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--account-text-dark);
    text-decoration: none;
}
.piece-name-link:hover {
    color: var(--account-brand-dark);
}

.mini-tag {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}
.mini-tag.gift { background: #fff0f5; color: var(--account-brand-dark); border: 1px solid #fcd5e5; }
.mini-tag.perk { background: #f0fff4; color: #276749; border: 1px solid #c6f6d5; }
.mini-tag.sale { background: #fff5f5; color: #c53030; border: 1px solid #fed7d7; }

.piece-price-line {
    font-size: 0.74rem;
    color: var(--account-text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.price-gift-label {
    color: var(--account-brand-dark);
    font-weight: 700;
}
.strikethrough-tiny {
    text-decoration: line-through;
    color: #b3a8ae;
    font-size: 0.68rem;
}

.piece-end-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.piece-total-val {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--account-text-dark);
}
.piece-total-val.free {
    color: var(--account-brand-dark);
}

.btn-review-trigger {
    background: #fff8fb;
    border: 1px solid var(--account-brand);
    color: var(--account-brand-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s ease;
}
.btn-review-trigger:hover {
    background: linear-gradient(135deg, #ffd4e5 0%, #f4a6c1 100%) !important;
    color: #ffffff !important;
    border-color: #f4a6c1 !important;
    box-shadow: 0 2px 8px rgba(244, 166, 193, 0.35) !important;
}

.reviewed-pill {
    font-size: 0.65rem;
    font-weight: 600;
    color: #276749;
    background: #f0fff4;
    padding: 2px 7px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* RECORD BOTTOM BAR */
.record-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(244, 166, 193, 0.2);
    flex-wrap: wrap;
    gap: 10px;
}

.pricing-mini-breakdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.record-payment-badge {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.order-savings-pill {
    background: #fff0f5;
    color: var(--account-brand-dark);
    border: 1px solid #fcd5e5;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.record-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.record-link {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--account-text-muted);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    border: 1.2px solid rgba(244, 166, 193, 0.4);
    transition: all 0.18s ease;
}
.record-link:hover {
    color: var(--account-brand-dark);
    border-color: var(--account-brand-dark);
}

.record-link.primary {
    background: linear-gradient(135deg, #ffd4e5 0%, #f4a6c1 100%) !important;
    color: #ffffff;
    border: none;
}
.record-link.primary:hover {
    box-shadow: 0 4px 12px rgba(209, 100, 138, 0.3);
}

/* --------------------------------------------------------
   9. MY REVIEWS TAB STYLES & SCORECARD
   -------------------------------------------------------- */
.account-reviews-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.account-review-card {
    background: #ffffff;
    border: 1.2px solid rgba(244, 166, 193, 0.35);
    border-radius: var(--account-radius-md);
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    transition: all 0.2s ease;
}

.account-review-card:hover {
    border-color: var(--account-brand);
    box-shadow: 0 6px 20px rgba(244, 166, 193, 0.12);
}

.review-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.review-product-meta-duo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-piece-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--account-radius-sm);
    background: #fff8fb;
    border: 1px solid rgba(244, 166, 193, 0.35);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-thumb-placeholder {
    color: var(--account-brand-dark);
    font-size: 1rem;
}

.review-title-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.review-product-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--account-text-dark);
    text-decoration: none;
}
.review-product-name:hover {
    color: var(--account-brand-dark);
}

.verified-purchase-badge {
    font-size: 0.62rem;
    font-weight: 700;
    color: #276749;
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    padding: 2px 7px;
    border-radius: 9999px;
}

.review-date-meta {
    font-size: 0.72rem;
    color: var(--account-text-muted);
}

.review-stars-block {
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-stars-row {
    display: flex;
    gap: 2px;
}

.star-glyph {
    color: #e2d8dc;
    font-size: 1rem;
}
.star-glyph.filled {
    color: var(--account-gold);
}

.rating-number-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--account-text-dark);
    background: var(--account-gold-soft);
    padding: 2px 6px;
    border-radius: 6px;
}

.review-tag-chips-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.review-chip-pill {
    background: #fff8fb;
    border: 1px solid rgba(244, 166, 193, 0.35);
    color: var(--account-brand-dark);
    font-size: 0.66rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
}

.review-comment-box {
    background: #fffcfd;
    border-left: 3px solid var(--account-brand);
    padding: 0.6rem 0.9rem;
    border-radius: 0 8px 8px 0;
}

.review-comment-body {
    font-size: 0.82rem;
    color: var(--account-text-dark);
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}

.review-recommends-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #276749;
    align-self: flex-start;
}

/* --------------------------------------------------------
   10. INTERACTIVE REVIEW SUBMISSION MODAL
   -------------------------------------------------------- */
.sanctuary-review-sheet {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    padding: 1.8rem;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1.5px solid var(--account-border);
    box-sizing: border-box;
}

.modal-product-summary-card {
    background: #fffcfd;
    border: 1.2px solid rgba(244, 166, 193, 0.35);
    border-radius: var(--account-radius-md);
    padding: 0.75rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
    text-align: left;
}

.modal-product-thumb-box {
    width: 44px;
    height: 44px;
    border-radius: var(--account-radius-sm);
    background: #fff0f5;
    border: 1px solid rgba(244, 166, 193, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-product-placeholder {
    color: var(--account-brand-dark);
    font-size: 1rem;
}

.modal-product-meta-stack {
    flex: 1;
    min-width: 0;
}

.modal-piece-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--account-text-dark);
    margin: 0 0 2px;
    line-height: 1.2;
}

.modal-product-subline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-ref-pill {
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--account-brand-dark);
    background: #fff0f5;
    padding: 1px 6px;
    border-radius: 4px;
}

.modal-piece-price {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--account-text-muted);
}

.rating-picker-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    margin-bottom: 1.1rem;
}

.rating-picker-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--account-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-sentiment-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--account-brand-dark);
}

.interactive-star-bar {
    display: flex;
    gap: 6px;
}

.star-btn {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #e2d8dc;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, color 0.15s ease;
}

.star-btn:hover,
.star-btn.active {
    color: var(--account-gold);
    transform: scale(1.15);
}

.review-tags-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    margin-bottom: 1.1rem;
}

.tags-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--account-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tags-pill-cloud {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.compliment-tag-pill {
    background: #fffcfd;
    border: 1.2px solid rgba(244, 166, 193, 0.4);
    color: var(--account-text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.compliment-tag-pill:hover,
.compliment-tag-pill.active {
    background: var(--account-brand-soft);
    border-color: var(--account-brand);
    color: var(--account-brand-dark);
    transform: translateY(-1px);
}

.input-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    font-size: 0.65rem;
    color: var(--account-text-muted);
}

.recommend-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    gap: 10px;
}

.recommend-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--account-text-dark);
    text-align: left;
}

.recommend-pills {
    display: flex;
    gap: 6px;
}

.rec-btn {
    background: #fffcfd;
    border: 1.2px solid rgba(244, 166, 193, 0.4);
    color: var(--account-text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s ease;
}

.rec-btn.active {
    background: #f0fff4;
    border-color: #48bb78;
    color: #276749;
}

/* --------------------------------------------------------
   11. SETTINGS MODAL & EXTENDED CONTROLS
   -------------------------------------------------------- */
.sanctuary-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(35, 25, 30, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.2rem;
    box-sizing: border-box;
}

.sanctuary-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sanctuary-settings-sheet {
    background: #ffffff;
    width: 100%;
    max-width: 540px;
    padding: 2rem;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1.5px solid var(--account-border);
    box-sizing: border-box;
}

.sheet-drag-handle {
    width: 38px;
    height: 4px;
    background: #ffd4e5;
    border-radius: 10px;
    margin: 0 auto 0.8rem;
    display: none;
    cursor: pointer;
}

.sheet-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: #fff5f8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--account-brand-dark);
    border: 1px solid var(--account-border);
    transition: all 0.18s ease;
}
.sheet-close-btn:hover {
    color: #ffffff;
    background: var(--account-brand-dark);
    border-color: transparent;
}

.sheet-header {
    text-align: left;
    margin-bottom: 1.3rem;
}

.sheet-icon-orb {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--account-brand-soft);
    border: 1px solid var(--account-border);
    color: var(--account-brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.sheet-overline {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--account-brand-dark);
    text-transform: uppercase;
}

.sheet-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--account-text-dark);
    margin: 2px 0 3px;
}

.sheet-sub {
    font-size: 0.76rem;
    color: var(--account-text-muted);
    margin: 0;
}

.sheet-segmented-nav {
    display: flex;
    gap: 6px;
    background: #fff8fb;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--account-border);
    margin-bottom: 1.4rem;
}

.seg-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem;
    border-radius: 9px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--account-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.18s ease;
}

.seg-tab.active {
    background: #ffffff;
    color: var(--account-brand-dark);
    box-shadow: 0 2px 8px rgba(244, 166, 193, 0.2);
}

.settings-form-pane {
    display: none;
}
.settings-form-pane.active {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.floating-input-group label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--account-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.locked-badge {
    color: #a0979c;
    font-weight: 400;
    font-size: 0.65rem;
    text-transform: none;
}

.dream-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--account-border);
    border-radius: var(--account-radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    color: var(--account-text-dark);
    background: #fffcfd;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.dream-input:focus {
    border-color: var(--account-brand-dark);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(244, 166, 193, 0.2);
}

.dream-input.locked {
    background: #fdfafb;
    border-color: #f3e4ec;
    color: #8c7b84;
    cursor: not-allowed;
}

.dream-textarea {
    min-height: 75px;
    resize: vertical;
    line-height: 1.45;
}

.input-duo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap .dream-input {
    padding-right: 40px;
}

.pwd-eye-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--account-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pwd-eye-toggle:hover {
    color: var(--account-brand-dark);
}

.pwd-strength-bar {
    height: 4px;
    background: #fdf2f6;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 4px;
}

.pwd-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 9999px;
    transition: all 0.25s ease;
}

.pwd-strength-label {
    font-size: 0.65rem;
    color: var(--account-text-muted);
    margin-top: 2px;
}

/* PREFERENCES TOGGLE CARDS */
.preference-toggle-card {
    background: #fffcfd;
    border: 1.2px solid rgba(244, 166, 193, 0.35);
    border-radius: var(--account-radius-sm);
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.pref-text-col {
    text-align: left;
}

.pref-text-col strong {
    display: block;
    font-size: 0.8rem;
    color: var(--account-text-dark);
}

.pref-text-col span {
    display: block;
    font-size: 0.68rem;
    color: var(--account-text-muted);
    line-height: 1.35;
    margin-top: 2px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ffd4e5;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(209, 100, 138, 0.2);
}

input:checked + .switch-slider {
    background-color: var(--account-brand-dark);
}

input:checked + .switch-slider:before {
    transform: translateX(20px);
}

.dream-action-btn {
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #ffd4e5 0%, #f4a6c1 100%) !important;
    border: none;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: var(--account-radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(209, 100, 138, 0.3);
    transition: transform 0.18s ease;
}
.dream-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(209, 100, 138, 0.4);
}

/* --------------------------------------------------------
   12. AVATAR STUDIO MODAL
   -------------------------------------------------------- */
.sanctuary-avatar-sheet {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
    position: relative;
    border: 1.5px solid var(--account-border);
    box-sizing: border-box;
}

.avatar-interactive-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 1.2rem 0;
}

.avatar-preview-orb {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd4e5 0%, #f4a6c1 100%) !important;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(209, 100, 138, 0.25);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-img-view {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback-initial {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
}

.avatar-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(209, 100, 138, 0.8);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.avatar-preview-orb:hover .avatar-hover-overlay {
    opacity: 1;
}

.avatar-upload-hint {
    font-size: 0.74rem;
    color: var(--account-text-muted);
}

.avatar-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.select-photo-btn {
    background: #fff8fb;
    border: 1.5px solid var(--account-border);
    color: var(--account-brand-dark);
    padding: 0.7rem;
    border-radius: var(--account-radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.18s ease;
}
.select-photo-btn:hover {
    background: var(--account-brand-soft);
    border-color: var(--account-brand);
}

/* --------------------------------------------------------
   13. NOTIFICATIONS PORTAL MODAL (TWO-PANE SLIDING STUDIO)
   -------------------------------------------------------- */
.notif-portal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(35, 25, 30, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.2rem;
    box-sizing: border-box;
}

.notif-portal-overlay.is-active,
.notif-portal-overlay.active {
    opacity: 1;
}

.notif-sheet-card {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    position: relative;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--account-border);
    overflow: hidden;
    box-sizing: border-box;
    padding: 0 !important; /* Strict zero outer padding */
}

.notif-pane {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    animation: notifPaneFade 0.2s ease;
}

@keyframes notifPaneFade {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.notif-sheet-drag-handle {
    width: 36px;
    height: 4px;
    background: #ffd4e5;
    border-radius: 10px;
    margin: 0.75rem auto 0;
    display: none;
    cursor: pointer;
}

.notif-sheet-header {
    padding: 1rem 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fffcfd;
    border-bottom: 1px solid rgba(244, 166, 193, 0.25);
    flex-shrink: 0;
    box-sizing: border-box;
}

.notif-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notif-bell-icon-orb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--account-brand-soft);
    border: 1px solid var(--account-border);
    color: var(--account-brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-title-stack {
    text-align: left;
}

.notif-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: var(--account-text-dark);
    line-height: 1.2;
}

.notif-subtext {
    font-size: 0.68rem;
    color: var(--account-brand-dark);
    font-weight: 600;
    display: block;
    margin-top: 1px;
}

.notif-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-notif-action {
    background: #fff8fb;
    border: 1px solid rgba(244, 166, 193, 0.5);
    color: var(--account-brand-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-notif-action:hover {
    background: var(--account-brand-soft);
    border-color: var(--account-brand);
}

.btn-notif-close {
    background: #fff5f8;
    border: 1px solid var(--account-border);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #8a7c83;
    font-size: 0.75rem;
    transition: all 0.18s ease;
}
.btn-notif-close:hover {
    background: var(--account-brand-dark);
    color: #ffffff;
}

.notif-tab-bar {
    display: flex;
    gap: 6px;
    padding: 0.65rem 1.3rem;
    background: #fffcfd;
    border-bottom: 1px solid rgba(244, 166, 193, 0.2);
    flex-shrink: 0;
    box-sizing: border-box;
}

.notif-tab-item {
    background: transparent;
    border: 1px solid rgba(244, 166, 193, 0.35);
    padding: 0.28rem 0.75rem;
    border-radius: 9999px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--account-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.18s ease;
}

.notif-tab-item.active {
    background: linear-gradient(135deg, #ffd4e5 0%, #f4a6c1 100%) !important;
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(209, 100, 138, 0.25);
}

.tab-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 0 5px;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 700;
}
.notif-tab-item.active .tab-count {
    background: rgba(255, 255, 255, 0.3);
}

.notif-scroll-area {
    padding: 0.85rem 1.3rem 1.2rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
}

.notif-items-stream {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notif-item-card {
    background: #ffffff;
    border: 1.2px solid rgba(244, 166, 193, 0.3);
    border-radius: 14px;
    padding: 0.75rem 0.95rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    box-sizing: border-box;
}

.notif-item-card:hover {
    border-color: var(--account-brand);
    background: #fffcfd;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(244, 166, 193, 0.15);
}

.notif-item-card.is-unread {
    background: #fff8fb;
    border-color: rgba(209, 100, 138, 0.45);
}

.notif-item-card.is-filtered-out {
    display: none !important;
}

.notif-card-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-tag-pill {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.notif-tag-pill.order        { background: #fff0f5; color: var(--account-brand-dark); border: 1px solid #fcd5e5; }
.notif-tag-pill.announcement { background: #fdf2f6; color: #b84c72; border: 1px solid #fed3e3; }
.notif-tag-pill.welcome      { background: #fff5f9; color: #d1648a; border: 1px solid #ffd4e5; }

.notif-time-tag {
    font-size: 0.64rem;
    color: var(--account-text-muted);
}

.notif-card-main-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notif-avatar-orb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--account-brand-soft);
    color: var(--account-brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(244, 166, 193, 0.35);
}

.notif-text-cluster {
    flex: 1;
    min-width: 0;
}

.notif-heading {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--account-text-dark);
    margin: 0 0 2px;
    line-height: 1.25;
}

.notif-excerpt {
    font-size: 0.7rem;
    color: var(--account-text-muted);
    margin: 0;
    line-height: 1.35;
}

.notif-footer-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
    border-top: 1px dashed rgba(244, 166, 193, 0.2);
}

.notif-action-cue {
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--account-brand-dark);
}

.unread-pulsing-pip {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d1648a;
    box-shadow: 0 0 0 2px rgba(209, 100, 138, 0.35);
}

.notif-empty-state {
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.notif-empty-orb {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--account-brand-soft);
    color: var(--account-brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid var(--account-border);
}

.notif-empty-state h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--account-text-dark);
    margin: 0;
}

.notif-empty-state p {
    font-size: 0.74rem;
    color: var(--account-text-muted);
    margin: 0;
}

/* --------------------------------------------------------
   13B. DETAIL SLIDE-IN PANE STYLES
   -------------------------------------------------------- */
.notif-detail-sheet-header {
    background: #fffcfd;
}

.btn-notif-back {
    background: #fff8fb;
    border: 1.2px solid rgba(244, 166, 193, 0.4);
    color: var(--account-brand-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s ease;
}
.btn-notif-back:hover {
    background: var(--account-brand-soft);
    border-color: var(--account-brand);
}

.notif-detail-scroll-area {
    padding: 1.5rem 1.4rem 1.8rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.notif-detail-hero-orb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd4e5 0%, #fff0f5 100%);
    border: 1.5px solid var(--account-border);
    color: var(--account-brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 14px rgba(244, 166, 193, 0.2);
}

.notif-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--account-text-dark);
    margin: 0 0 4px;
    line-height: 1.25;
}

.notif-detail-date {
    font-size: 0.68rem;
    color: var(--account-text-muted);
    margin-bottom: 1.1rem;
    display: block;
}

.notif-detail-card-bubble {
    background: #fffcfd;
    border: 1.5px solid rgba(244, 166, 193, 0.35);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1.4rem;
    box-shadow: 0 4px 12px rgba(244, 166, 193, 0.08);
}

.notif-detail-card-bubble p {
    font-size: 0.82rem;
    color: var(--account-text-dark);
    line-height: 1.55;
    margin: 0;
}

.notif-detail-action-cluster {
    width: 100%;
    display: flex;
    justify-content: center;
}

.notif-detail-primary-btn {
    background: linear-gradient(135deg, #ffd4e5 0%, #f4a6c1 100%) !important;
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 9999px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(209, 100, 138, 0.3);
    transition: all 0.18s ease;
}
.notif-detail-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(209, 100, 138, 0.4);
    color: #ffffff;
}

/* --------------------------------------------------------
   14. RESPONSIVE BREAKPOINTS (MOBILE & TABLET OPTIMIZATION)
   -------------------------------------------------------- */
@media (max-width: 992px) {
    .sanctuary-studio-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .sanctuary-dashboard-viewport {
        padding: 1.5rem 3.5% 4rem;
    }
}

@media (max-width: 600px) {
    .sanctuary-dashboard-viewport {
        padding: 1rem 3% 3.5rem;
    }

    .sanctuary-settings-sheet,
    .sanctuary-review-sheet,
    .sanctuary-avatar-sheet {
        padding: 1.4rem;
        border-radius: 24px 24px 0 0;
        max-height: 90vh;
    }

    .notif-sheet-card {
        padding: 0 !important;
        border-radius: 24px 24px 0 0;
        max-height: 85vh;
    }

    .notif-scroll-area {
        padding: 0.75rem 1rem 1.4rem;
    }
    .notif-sheet-header,
    .notif-tab-bar {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .sheet-drag-handle,
    .notif-sheet-drag-handle {
        display: block;
    }

    .sanctuary-modal-overlay,
    .notif-portal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .input-duo-row {
        grid-template-columns: 1fr;
    }

    .accordion-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .head-right {
        width: 100%;
        justify-content: space-between;
    }

    .record-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .record-actions {
        width: 100%;
        justify-content: flex-end;
    }
}