/* ── Unifed Design System Tokens ── */
:root {
  --font-serif: 'Palatino Linotype', 'Book Antiqua', Palatino, 'Times New Roman', serif;
  --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --crimson: #8B1A1A;
  --crimson-light: #B02020;
  --crimson-deep: #5C0F0F;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-pale: #F5E6C0;
  --ivory: #FBF6ED;
  --charcoal: #371E10;
  --mid: #4A3728;
  --muted: #9A8070;
  --white: #FFFFFF;
  --emerald: #1A7A4A;
  --emerald-light: #22A060;
  --cyan: #1A7A8B;
  --amber: #B8860B;
  --sidebar-w: 240px;
  --right-w: 280px;
  --glass: rgba(255,255,255,0.07);
  --glass-border: rgba(201,168,76,0.25);
  /* bubble colors */
  --bubble-out-start:#5C0F0F;
  --bubble-out-end:#8B1A1A;
  --bubble-in:#fff;
  --bubble-in-border:rgba(201,168,76,.18);
}

/* ── Base Reset ── */
*, *::before, *::after { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}
html { 
  scroll-behavior: smooth; 
}
body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--charcoal);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Layout & Structures ── */
.layout { 
  margin-left: var(--sidebar-w); 
  min-height: 100vh; 
  display: flex; 
}
.main-content { 
  flex: 1; 
  padding: 26px 28px 60px; 
  min-width: 0; 
}
.right-panel { 
  width: var(--right-w); 
  flex-shrink: 0; 
  padding: 26px 20px 26px 0; 
}

/* ── Sidebar Component ── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--charcoal);
    z-index: 200;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(201,168,76,0.15);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 168, 76, 0.15) transparent;
}
.sidebar-brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
  line-height: 1;
}
.sidebar-logo-sub {
  font-size: .55rem; letter-spacing: .18em;
  color: rgba(201,168,76,.5);
  text-transform: uppercase;
  margin-top: 2px;
}
.sidebar-nav { flex: 1; padding: 10px 0; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: .84rem; font-weight: 500;
  letter-spacing: .02em;
  position: relative;
  cursor: pointer;
  transition: color .2s, background .2s;
  border-left: 3px solid transparent;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-item.active {
  border-left-color: var(--crimson);
  color: var(--gold);
  background: rgba(139,26,26,0.15);
}
.nav-item.active .nav-icon { color: var(--crimson); }
.nav-icon { font-size: 1.05rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--crimson);
  color: #fff;
  font-size: .62rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  min-width: 20px; text-align: center;
}
.nav-divider {
  height: 1px; background: rgba(201,168,76,0.1);
  margin: 8px 20px;
}
.sidebar-user {
    margin: 8px 10px;
    background: rgba(201, 168, 76, .05);
    border: 1px solid rgba(201, 168, 76, .12);
    border-radius: 10px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff; font-weight: 700; flex-shrink: 0;
}
.sidebar-user-name { font-size: .8rem; font-weight: 600; color: var(--gold-pale); }
.sidebar-user-id { font-size: .68rem; color: var(--muted); }

/* ── Navigation Headings & Topbars ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.topbar-greeting, .topbar h1 { font-family: var(--font-serif); font-size: 1.35rem; color: var(--charcoal); }
.topbar-greeting span, .topbar h1 span { color: var(--crimson); }
.topbar p { font-size: .74rem; color: var(--muted); margin-top: 3px; }
.topbar-right, .tb-right { display: flex; align-items: center; gap: 12px; }
.topbar-notif, .tb-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 1px solid rgba(201,168,76,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; cursor: pointer;
  position: relative;
  transition: border-color .2s;
}
.topbar-notif:hover, .tb-btn:hover { border-color: var(--gold); }
.notif-dot, .tb-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--crimson); border: 2px solid #fff;
}
.btn-back {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px;
  border: 1.5px solid rgba(201,168,76,.3); border-radius: 30px;
  background: transparent; color: var(--mid); font-size: .78rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.btn-back:hover { border-color: var(--gold); color: var(--charcoal); }

/* ── Global Typography & Sections ── */
.section-title, .sec-title {
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600;
  color: var(--charcoal); margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.section-title::after, .sec-title::after {
  content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201,168,76,0.3), transparent);
}
.sec-sub { font-size:.75rem; color:var(--muted); margin-bottom: 20px; }

/* ── Content Navigation Tabs ── */
.section-tabs {
  display: flex; gap: 0; background: #ffffff; border-radius: 14px;
  border: 1px solid rgba(201,168,76,.2); padding: 4px; margin-bottom: 20px;
  overflow-x: auto; scrollbar-width: none;
}
.section-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 9px 18px; border-radius: 10px; border: none; background: transparent;
  font-size: .78rem; font-weight: 600; color: var(--muted); cursor: pointer;
  letter-spacing: .02em; white-space: nowrap; transition: all .2s; flex-shrink: 0;
}
.tab-btn.active { background: var(--crimson); color: #fff; }
.tab-btn:hover:not(.active) { color: var(--charcoal); background: var(--ivory); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Profile Header Layouts ── */
.profile-header {
  background: linear-gradient(135deg, #fff 0%, var(--gold-pale) 100%);
  border-radius: 20px; border: 1px solid rgba(201,168,76,0.25); padding: 28px;
  display: flex; align-items: center; gap: 28px; margin-bottom: 22px;
  box-shadow: 0 2px 20px rgba(139,26,26,0.06); position: relative; overflow: hidden;
}
.profile-header::before {
  content: ''; position: absolute; top: -40px; right: -40px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(201,168,76,.1), transparent); pointer-events: none;
}
.profile-avatar-wrap, .avatar-wrap { position: relative; flex-shrink: 0; }
.avatar-ring-svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.avatar-circle-bg { fill: none; stroke: #E8D8C0; stroke-width: 6; }
.avatar-circle-progress { 
  fill: none; stroke: var(--crimson); stroke-width: 6; stroke-linecap: round; 
  stroke-dasharray: 352; stroke-dashoffset: 88; transition: stroke-dashoffset 1s ease; 
}
.avatar-img-wrap {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 108px; height: 108px; border-radius: 50%; overflow: hidden;
  border: 3px solid #fff; box-shadow: 0 4px 18px rgba(139,26,26,0.2);
}
.avatar-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--crimson-deep) 0%, var(--crimson) 60%, var(--gold) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: #fff; font-weight: 700; font-family: var(--font-serif);
}
.avatar-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.5); display: flex;
  align-items: center; justify-content: center; opacity: 0; transition: opacity .2s;
  border-radius: 50%; font-size: .65rem; color: #fff; font-weight: 700; letter-spacing: .04em;
}
.avatar-img-wrap:hover .avatar-overlay { opacity: 1; }
.avatar-img-wrap input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }

.plan-badge {
  position: absolute; top: -2px; right: -4px; padding: 3px 9px; border-radius: 20px;
  font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.plan-gold { background: linear-gradient(135deg, #C9A84C, #E8C97A); color: var(--charcoal); }
.plan-silver { background: linear-gradient(135deg, #A8A8A8, #D0D0D0); color: var(--charcoal); }
.plan-platinum { background: linear-gradient(135deg, #A0B0C0, #D8E8F8); color: var(--charcoal); }
.plan-free { background: var(--muted); color: #fff; }

.profile-info { flex: 1; min-width: 0; }
.profile-name {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600;
  color: var(--charcoal); line-height: 1.15; margin-bottom: 6px;
}
.profile-id-badge {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(139,26,26,0.08);
  border: 1px solid rgba(139,26,26,0.2); border-radius: 20px; padding: 4px 12px;
  font-size: .72rem; color: var(--crimson); font-weight: 600; letter-spacing: .08em; margin-bottom: 12px;
}
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.profile-meta-tag, .meta-tag { display: flex; align-items: center; gap: 5px; color: var(--mid); font-size: .78rem; }
.profile-meta-tag span, .meta-tag span { color: var(--muted); }

.completeness-label { font-size: .75rem; color: var(--muted); margin-bottom: 4px; }
.completeness-bar { height: 6px; background: #E8D8C0; border-radius: 4px; width: 200px; max-width: 100%; }
.completeness-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--crimson), var(--gold)); }

.profile-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn-edit-profile, .btn-outline {
  padding: 9px 22px; border: 1.5px solid var(--gold); border-radius: 40px;
  background: transparent; color: var(--gold); font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: all .25s;
}
.btn-edit-profile:hover, .btn-outline:hover { background: var(--gold); color: var(--charcoal); }
.btn-share-profile, .btn-ghost {
  padding: 9px 22px; border: 1.5px solid rgba(139,26,26,0.3); border-radius: 40px;
  background: transparent; color: var(--crimson); font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: all .25s;
}
.btn-share-profile:hover, .btn-ghost:hover { background: var(--crimson); color: #fff; }
.btn-primary {
  padding: 9px 22px; border-radius: 40px; background: var(--crimson); color: #fff; border: none;
  font-size: .78rem; font-weight: 600; letter-spacing: .05em; cursor: pointer; transition: all .25s;
}
.btn-primary:hover { background: var(--crimson-light); transform: translateY(-1px); }

/* ── Statistics Display ── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-box {
  background: #fff; border-radius: 14px; padding: 18px 18px 14px;
  border: 1px solid rgba(201,168,76,0.18); border-top: 3px solid var(--gold);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.stat-box:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(139,26,26,0.1); }
.stat-box-num { font-size: 1.6rem; font-weight: 700; color: var(--crimson); line-height: 1; margin-bottom: 4px; }
.stat-box-label { font-size: .72rem; color: var(--muted); letter-spacing: .03em; }
.stat-box-icon { font-size: 1.1rem; margin-bottom: 8px; }

/* ── Cards & Dynamic Action Sheets ── */
.section-card { background: #fff; border-radius: 16px; border: 1px solid rgba(201,168,76,0.18); padding: 22px 24px; margin-bottom: 18px; box-shadow: 0 1px 8px rgba(0,0,0,.04); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(201,168,76,0.15); }
.card-title { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: var(--charcoal); display: flex; align-items: center; gap: 8px; }
.card-actions { display: flex; gap: 8px; }

.btn-edit {
  display: flex; align-items: center; gap: 6px; padding: 6px 16px; border: 1.5px solid rgba(201,168,76,.4);
  border-radius: 20px; background: transparent; color: var(--gold); font-size: .72rem; font-weight: 600; cursor: pointer; transition: all .2s;
}
.btn-edit:hover { background: var(--gold-pale); }
.btn-save { display: none; align-items: center; gap: 6px; padding: 6px 16px; border: none; border-radius: 20px; background: var(--crimson); color: #fff; font-size: .72rem; font-weight: 600; cursor: pointer; }
.btn-save:hover { background: var(--crimson-light); }
.btn-cancel { display: none; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid #E0D5C8; border-radius: 20px; background: transparent; color: var(--muted); font-size: .72rem; cursor: pointer; }

.section-card.editing .btn-edit { display: none !important; }
.section-card.editing .btn-save, .section-card.editing .btn-cancel { display: flex !important; }

/* ── Content Lists & Chips ── */
.filter-chips { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.chip { padding: 6px 16px; border-radius: 20px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; cursor: pointer; border: 1.5px solid transparent; transition: all .2s; }
.chip-default { border-color: #E0D5C8; color: var(--muted); background: #fff; }
.chip-default:hover { border-color: var(--crimson); color: var(--crimson); }
.chip-active { background: var(--crimson); color: #fff; border-color: var(--crimson); }

.interest-list { display: flex; flex-direction: column; gap: 12px; }
.interest-card { background: #fff; border-radius: 14px; border: 1px solid rgba(201,168,76,0.15); padding: 14px 16px; display: flex; align-items: center; gap: 14px; box-shadow: 0 1px 6px rgba(0,0,0,.04); transition: box-shadow .2s; }
.interest-card:hover { box-shadow: 0 4px 18px rgba(139,26,26,0.08); }
.interest-photo { width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; overflow: hidden; border: 2px solid var(--gold-pale); }
.photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; font-weight: 700; }
.interest-info { flex: 1; min-width: 0; }
.interest-name { font-size: .9rem; font-weight: 600; color: var(--charcoal); }
.interest-meta { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.interest-time { font-size: .68rem; color: #C0A890; margin-top: 2px; }
.interest-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn-accept { padding: 7px 16px; border-radius: 20px; background: var(--emerald); color: #fff; border: none; font-size: .73rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-accept:hover { background: var(--emerald-light); }
.btn-decline { padding: 7px 16px; border-radius: 20px; background: transparent; color: var(--muted); border: 1.5px solid #D0C8C0; font-size: .73rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.btn-decline:hover { border-color: var(--crimson); color: var(--crimson); }

.pill-val { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; background: rgba(139,26,26,0.08); border: 1px solid rgba(139,26,26,0.18); border-radius: 20px; font-size: .78rem; color: var(--crimson); font-weight: 600; margin: 2px; }

.chart-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(201,168,76,0.14);
    padding: 18px;
}

.chart-title {
    font-size: .8rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* ── TABS ── */
.tab-nav {
    display: flex;
    gap: 0;
    border: 1px solid #EDE6DC;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 22px;
    background: #fff;
}

.tab-btn {
    flex: 1;
    padding: 10px 8px;
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .03em;
    border-right: 1px solid #EDE6DC;
    white-space: nowrap;
}

    .tab-btn:last-child {
        border-right: none;
    }

    .tab-btn.active {
        background: var(--crimson);
        color: #fff;
    }

    .tab-btn:hover:not(.active) {
        background: rgba(139,26,26,.05);
        color: var(--crimson);
    }

.tab-panel {
    display: none;
}

    .tab-panel.active {
        display: block;
    }

/* ═══════════════════════════════════════
   CALL RECORDS
═══════════════════════════════════════ */
.call-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(201,168,76,0.08);
}

    .call-item:last-child {
        border-bottom: none;
    }

.call-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}

.ci-in {
    background: rgba(26,122,74,0.1);
}

.ci-out {
    background: rgba(26,122,139,0.1);
}

.ci-miss {
    background: rgba(139,26,26,0.1);
}

.call-info {
    flex: 1;
    min-width: 0;
}

.call-name {
    font-size: .76rem;
    font-weight: 600;
    color: var(--charcoal);
}

.call-meta {
    font-size: .62rem;
    color: var(--muted);
}

.call-dur {
    font-size: .68rem;
    font-weight: 600;
    color: var(--mid);
}

.call-back {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(26,122,74,0.1);
    color: var(--emerald);
    border: none;
    font-size: .62rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all .2s;
}

    .call-back:hover {
        background: var(--emerald);
        color: #fff;
    }
/* ── Connections Network Component ── */
.connections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.conn-card {
  background: var(--ivory); border: 1px solid rgba(201,168,76,0.2); border-radius: 14px;
  padding: 16px 12px; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px; position: relative; cursor: pointer; transition: box-shadow .2s, transform .2s;
}
.conn-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(139,26,26,0.09); }
.conn-photo { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(201,168,76,0.25); position: relative; }
.conn-verified-icon { position: absolute; top: -2px; right: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: .6rem; border: 2px solid #fff; }
.conn-name { font-size: .82rem; font-weight: 600; color: var(--charcoal); }
.conn-meta { font-size: .68rem; color: var(--muted); }
.conn-actions { display: flex; gap: 8px; margin-top: 4px; }

.btn-chat { width: 32px; height: 32px; border-radius: 50%; background: rgba(26,122,139,0.1); border: 1px solid rgba(26,122,139,0.25); display: flex; align-items: center; justify-content: center; font-size: .85rem; cursor: pointer; transition: background .2s; }
.btn-chat:hover { background: var(--cyan); color: #fff; }
.btn-call { width: 32px; height: 32px; border-radius: 50%; background: rgba(26,122,74,0.1); border: 1px solid rgba(26,122,74,0.25); display: flex; align-items: center; justify-content: center; font-size: .85rem; cursor: pointer; transition: background .2s; }
.btn-call:hover { background: var(--emerald); color: #fff; }

/* ── Dynamic Input Fields & Forms ── */
.fgrid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.fgrid.g3 { grid-template-columns: repeat(3,1fr); }
.fgrid.g1 { grid-template-columns: 1fr; }
.fitem { display: flex; flex-direction: column; gap: 5px; }
.flabel { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fvalue { font-size: .88rem; color: var(--charcoal); font-weight: 500; min-height: 22px; }
.fvalue.empty { color: #C0B0A0; font-style: italic; font-weight: 400; }

.finput, .fselect, .ftextarea {
  display: none; padding: 9px 12px; border: 1.5px solid #E0D5C8; border-radius: 10px;
  font-size: .85rem; color: var(--charcoal); background: #fff; width: 100%; transition: border-color .2s;
}
.fselect { -webkit-appearance: none; appearance: none; }
.ftextarea { resize: vertical; min-height: 80px; }
.finput:focus, .fselect:focus, .ftextarea:focus { outline: none; border-color: var(--crimson); }

.section-card.editing .fvalue { display: none; }
.section-card.editing .finput, .section-card.editing .fselect, .section-card.editing .ftextarea { display: block; }

/* ── File Uploaders (Photos & Documents) ── */
.photo-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.photo-thumb { border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; background: var(--ivory); border: 2px dashed #D5C4B4; position: relative; cursor: pointer; transition: border-color .2s; }
.photo-thumb:hover { border-color: var(--crimson); }
.photo-thumb.has-photo { border: 2px solid var(--gold-pale); }
.ph-icon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 1.6rem; }
.ph-icon span { font-size: .62rem; letter-spacing: .04em; text-align: center; }
.photo-thumb input, .dzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; width: 100%; height: 100%; }
.photo-del { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; border: none; font-size: .65rem; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 3; }
.photo-thumb.has-photo .photo-del { display: flex; }
.photo-preview { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 1; }
.photo-main-tag { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); background: rgba(139,26,26,.85); color: #fff; font-size: .54rem; padding: 2px 8px; border-radius: 10px; white-space: nowrap; z-index: 3; }

.doc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.dzone { height: 86px; border: 2px dashed #D5C4B4; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; background: var(--ivory); position: relative; overflow: hidden; transition: border-color .2s; }
.dzone:hover:not(.has-doc) { border-color: var(--crimson); }
.dzone.has-doc input { display: none; }
.dprev { display: none; position: absolute; inset: 0; background-size: cover; background-position: center; border-radius: 10px; z-index: 2; }
.dzone.has-doc .dprev { display: block; }
.dzone.has-doc .dicon, .dzone.has-doc .dlabel { display: none; }
.ddel { display: none; position: absolute; top: 4px; right: 4px; z-index: 3; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; border: none; font-size: .65rem; cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.dzone.has-doc .ddel { display: flex; }
.dicon { font-size: 1.2rem; pointer-events: none; }
.dlabel { font-size: .58rem; color: var(--muted); text-align: center; padding: 0 3px; pointer-events: none; line-height: 1.3; }

/* ── Interactive Switches & Selection Matrix ── */
.cg { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.ci { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1.5px solid #E0D5C8; border-radius: 10px; font-size: .82rem; color: var(--charcoal); }
.ci.on { border-color: var(--crimson); background: #FBF6ED; color: var(--crimson); font-weight: 600; }
.ci-box { width: 16px; height: 16px; border-radius: 4px; border: 2px solid #D0C0B0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 700; color: #fff; }
.ci.on .ci-box { background: var(--crimson); border-color: var(--crimson); }
.ci.on .ci-box::after { content: '✓'; }
.section-card.editing .ci { cursor: pointer; transition: all .2s; }
.section-card.editing .ci:hover { border-color: var(--crimson); }

.trow, .toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #F0E8DF; font-size: .85rem; color: var(--charcoal); }
.trow:last-child, .toggle-row:last-child { border-bottom: none; }
.tswitch { width: 42px; height: 24px; border-radius: 12px; background: #E0D5C8; position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.tswitch.on { background: var(--crimson); }
.tswitch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.tswitch.on::after { left: 21px; }

/* ── Premium Tier Plans & Dashboard Elements ── */
.current-plan-banner {
  background: linear-gradient(135deg, var(--crimson-deep) 0%, #2A1A0A 60%, var(--charcoal) 100%);
  border-radius: 20px; padding: 26px 28px; margin-bottom: 28px; display: flex; align-items: center; gap: 24px;
  border: 1px solid var(--glass-border); position: relative; overflow: hidden;
}
.current-plan-banner::before { content: ''; position: absolute; top: -60px; right: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,.12), transparent 70%); pointer-events: none; }
.cpb-badge { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, #B8860B, var(--gold-light)); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; flex-shrink: 0; box-shadow: 0 8px 28px rgba(201,168,76,.3); }
.cpb-info { flex: 1; }
.cpb-title { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.cpb-meta { font-size: .76rem; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.cpb-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.cpb-tag { display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 4px 12px; font-size: .7rem; color: rgba(255,255,255,.8); }
.cpb-right { text-align: right; flex-shrink: 0; }
.cpb-days { font-size: 2.5rem; font-weight: 700; color: var(--gold); line-height: 1; }
.cpb-days-label { font-size: .65rem; color: rgba(201,168,76,.6); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.cpb-renew { font-size: .72rem; color: rgba(255,255,255,.5); }
.cpb-renew strong { color: var(--gold-light); }
.btn-manage { margin-top: 10px; padding: 9px 20px; border: 1.5px solid var(--gold); border-radius: 30px; background: transparent; color: var(--gold); font-size: .74rem; font-weight: 600; cursor: pointer; letter-spacing: .04em; transition: all .25s; white-space: nowrap; }
.btn-manage:hover { background: var(--gold); color: var(--charcoal); }

.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 28px; }
.toggle-label { font-size: .8rem; font-weight: 600; color: var(--mid); }
.toggle-label.active { color: var(--charcoal); }
.toggle-switch { width: 52px; height: 28px; border-radius: 14px; background: #E0D5C8; position: relative; cursor: pointer; transition: background .3s; }
.toggle-switch.yearly { background: var(--crimson); }
.toggle-knob { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .3s; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.toggle-switch.yearly .toggle-knob { left: 28px; }
.toggle-save { background: linear-gradient(135deg, var(--emerald), var(--emerald-light)); color: #fff; font-size: .62rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; letter-spacing: .06em; }

/* ── Matrix Pricing Grid Panels ── */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.plan-card { background: #fff; border-radius: 20px; border: 2px solid rgba(201,168,76,.15); padding: 0; overflow: hidden; position: relative; transition: transform .25s, box-shadow .25s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(139,26,26,.12); }
.plan-card.recommended { border-color: var(--gold); box-shadow: 0 8px 32px rgba(201,168,76,.2); }
.plan-card.current-active { border-color: var(--emerald); box-shadow: 0 8px 32px rgba(26,122,74,.15); }

.plan-header { padding: 22px 20px 18px; position: relative; }
.plan-header.free { background: linear-gradient(135deg,#F0ECE8,#E8E0D8); }
.plan-header.silver { background: linear-gradient(135deg,#C4D0D8,#8A9AA8); }
.plan-header.gold { background: linear-gradient(135deg,#C9A84C,#E8C97A); }
.plan-header.platinum { background: linear-gradient(135deg,#6A5A8A,#A090C0); }

.plan-badge-top { position: absolute; top: 12px; right: 12px; padding: 3px 10px; border-radius: 20px; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.badge-recommended { background: var(--crimson); color: #fff; }
.badge-current { background: var(--emerald); color: #fff; }
.badge-popular { background: rgba(255,255,255,.3); color: rgba(0,0,0,.6); }
.plan-icon { font-size: 2rem; margin-bottom: 8px; }
.plan-name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.plan-header.free .plan-name { color: var(--mid); }
.plan-header.silver .plan-name, .plan-header.platinum .plan-name { color: #fff; }
.plan-header.gold .plan-name { color: var(--charcoal); }
.plan-tagline { font-size: .68rem; opacity: .8; }
.plan-header.free .plan-tagline { color: var(--muted); }
.plan-header.silver .plan-tagline { color: rgba(255,255,255,.8); }
.plan-header.gold .plan-tagline { color: var(--mid); }
.plan-header.platinum .plan-tagline { color: rgba(255,255,255,.75); }

.plan-price-block { padding: 16px 20px 12px; border-bottom: 1px solid rgba(201,168,76,.1); }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.price-currency { font-size: 1rem; font-weight: 600; color: var(--charcoal); }
.price-amount { font-size: 2.2rem; font-weight: 700; color: var(--charcoal); line-height: 1; }
.price-amount.free-price { color: var(--emerald); }
.price-period { font-size: .72rem; color: var(--muted); }
.price-yearly { font-size: .68rem; color: var(--muted); margin-top: 3px; }
.price-yearly .save-tag { color: var(--emerald); font-weight: 600; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: .75rem; margin-left: 4px; }

.plan-features { padding: 16px 20px; }
.feature-item { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; font-size: .75rem; color: var(--mid); border-bottom: 1px solid rgba(0,0,0,.04); }
.feature-item:last-child { border-bottom: none; }
.fi-icon { font-size: .8rem; flex-shrink: 0; margin-top: 1px; }
.fi-yes { color: var(--emerald); }
.fi-no { color: #CCC; }
.fi-partial { color: var(--amber); }
.fi-star { color: var(--gold); }
.fi-text { flex: 1; line-height: 1.4; }
.fi-text .fi-highlight { font-weight: 600; color: var(--charcoal); }
.fi-text .fi-muted { color: var(--muted); font-size: .68rem; }

.plan-cta { padding: 16px 20px 20px; }
.btn-plan { width: 100%; padding: 12px; border-radius: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; border: none; transition: all .25s; position: relative; overflow: hidden; }
.btn-free { background: #EEE6DA; color: var(--mid); }
.btn-free:hover { background: #E0D5C5; }
.btn-silver { background: linear-gradient(135deg,#8A9AA8,#C4D0D8); color: #fff; }
.btn-silver:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(138,154,168,.4); }
.btn-gold { background: linear-gradient(135deg,#B8860B,var(--gold)); color: var(--charcoal); font-weight: 800; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,.5); }
.btn-gold::before, .btn-upgrade::before { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent); animation: shimmer 2s infinite; }
@keyframes shimmer { to { left: 160%; } }
.btn-platinum { background: linear-gradient(135deg,#6A5A8A,#A090C0); color: #fff; }
.btn-platinum:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(106,90,138,.4); }
.btn-current { background: rgba(26,122,74,.1); color: var(--emerald); border: 2px solid var(--emerald) !important; cursor: default; }

/* ═══════════════════════════════════════
   DATA TABLES
═══════════════════════════════════════ */
.data-table-wrap {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(201,168,76,0.14);
    overflow: hidden;
    margin-bottom: 22px;
}

.data-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}

.dth-title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--charcoal);
}

table.dtbl, table.comp {
    width: 100%;
    border-collapse: collapse;
}

    table.dtbl th {
        background: var(--charcoal);
        color: var(--gold-pale);
        font-size: .62rem;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        padding: 9px 13px;
        text-align: left;
    }

    table.dtbl td {
        padding: 9px 13px;
        font-size: .74rem;
        color: var(--charcoal);
        border-bottom: 1px solid rgba(201,168,76,0.07);
        vertical-align: middle;
    }

    table.dtbl tr:last-child td {
        border-bottom: none;
    }

    table.dtbl tr:hover td {
        background: var(--ivory);
    }

.tbl-actions {
    display: flex;
    gap: 4px;
}

.tbl-btn {
    padding: 4px 9px;
    border-radius: 6px;
    font-size: .62rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    transition: all .2s;
}

.tb-accept {
    background: rgba(26,122,74,0.12);
    color: var(--emerald);
}

    .tb-accept:hover {
        background: var(--emerald);
        color: #fff;
    }

.tb-reject {
    background: rgba(0,0,0,0.06);
    color: var(--muted);
}

    .tb-reject:hover {
        background: #ddd;
    }

.tb-chat {
    background: rgba(26,122,139,0.1);
    color: var(--cyan);
}

    .tb-chat:hover {
        background: var(--cyan);
        color: #fff;
    }

.tb-call {
    background: rgba(26,122,74,0.1);
    color: var(--emerald);
}

    .tb-call:hover {
        background: var(--emerald-light);
        color: #fff;
    }

.tb-view {
    background: rgba(139,26,26,0.08);
    color: var(--crimson);
}

    .tb-view:hover {
        background: var(--crimson);
        color: #fff;
    }

.tb-withdraw {
    background: rgba(184,118,10,0.08);
    color: var(--amber);
}

    .tb-withdraw:hover {
        background: var(--amber);
        color: #fff;
    }

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

.mini-av {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}


/* ── Enterprise Comparison Matrix Table ── */
.comparison-section { margin-bottom: 32px; }
.comp-table-wrap { background: #fff; border-radius: 16px; border: 1px solid rgba(201,168,76,0.15); overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.04); }
.comp-table { width: 100%; border-collapse: collapse; }
.comp-table thead tr { background: var(--charcoal); }
.comp-table th { padding: 13px 16px; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-pale); text-align: left; }
.comp-table th:not(:first-child) { text-align: center; }
.col-free th:first-child, .col-header { background: var(--charcoal); }
.plan-col-head { border-radius: 6px 6px 0 0; padding: 8px 12px; }
.plan-col-head.col-free { background: rgba(255,255,255,.08); }
.plan-col-head.col-silver { background: rgba(138,154,168,.3); }
.plan-col-head.col-gold { background: rgba(201,168,76,.3); }
.plan-col-head.col-platinum { background: rgba(106,90,138,.3); }
.comp-table tbody tr { border-bottom: 1px solid rgba(201,168,76,.08); }
.comp-table tbody tr:last-child { border-bottom: none; }
.comp-table tbody tr:hover { background: rgba(245,230,192,.2); }
.comp-table td { padding: 11px 16px; font-size: .75rem; color: var(--mid); vertical-align: middle; }
.comp-table td:not(:first-child) { text-align: center; }
.comp-table .group-header td { background: rgba(201,168,76,.06); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 16px; }

.check-yes, .check-star { font-size: 1rem; }
.check-yes { color: var(--emerald); }
.check-no { color: #DDD; font-size: 1rem; }
.check-partial { color: var(--amber); font-size: .85rem; font-weight: 600; }
.check-star { color: var(--gold); }
.feat-name { font-weight: 500; color: var(--charcoal); }
.feat-desc { font-size: .65rem; color: var(--muted); margin-top: 1px; }
.plan-highlight { font-weight: 700; color: var(--charcoal); }

.pill-small { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: .6rem; font-weight: 600; }
.pill-gold { background: rgba(201,168,76,.15); color: var(--amber); }
.pill-platinum { background: rgba(106,90,138,.15); color: #A090C0; }
.pill-silver { background: rgba(138,154,168,.15); color: #8A9AA8; }
.pill-free { background: rgba(0,0,0,.06); color: var(--muted); }

/* ── Billing Accounts & Metered Usage ── */
.billing-section { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 32px; }
.billing-card, .auto-renew-card { background: #fff; border-radius: 16px; border: 1px solid rgba(201,168,76,0.15); padding: 22px; }
.billing-card-title { font-family: var(--font-serif); font-size: .95rem; font-weight: 600; color: var(--charcoal); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.invoice-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(201,168,76,.08); }
.invoice-item:last-child { border-bottom: none; }
.inv-icon { font-size: 1.1rem; width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.inv-info { flex: 1; min-width: 0; }
.inv-title { font-size: .78rem; font-weight: 600; color: var(--charcoal); }
.inv-date { font-size: .65rem; color: var(--muted); }
.inv-amount { font-size: .8rem; font-weight: 700; }
.inv-amount.paid { color: var(--emerald); }
.inv-amount.pending { color: var(--amber); }
.inv-download { padding: 4px 10px; border-radius: 6px; background: rgba(139,26,26,.08); color: var(--crimson); border: none; font-size: .65rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.inv-download:hover { background: var(--crimson); color: #fff; }

.toggle-row-label { font-size: .78rem; font-weight: 500; color: var(--charcoal); }
.toggle-row-sub { font-size: .65rem; color: var(--muted); margin-top: 2px; }
.mini-toggle { width: 40px; height: 22px; border-radius: 11px; background: var(--crimson); position: relative; cursor: pointer; flex-shrink: 0; }
.mini-toggle.off { background: #DDD; }
.mini-knob { position: absolute; top: 3px; left: 21px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.mini-toggle.off .mini-knob { left: 3px; }

.usage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 28px; }
.usage-card { background: #fff; border-radius: 12px; border: 1px solid rgba(201,168,76,0.14); padding: 14px; text-align: center; }
.usage-label { font-size: .65rem; color: var(--muted); margin-bottom: 8px; letter-spacing: .04em; }
.usage-bar-track { height: 7px; background: #EEE6DA; border-radius: 4px; margin-bottom: 6px; }
.usage-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--crimson), var(--gold)); }
.usage-count { font-size: .72rem; font-weight: 600; color: var(--charcoal); }

/* ── Right Column Sidebar Panels ── */
.subscription-card { background: #fff; border-radius: 18px; border: 2px solid var(--gold); padding: 22px; margin-bottom: 16px; box-shadow: 0 4px 24px rgba(201,168,76,0.12); }
.sub-plan-name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--charcoal); margin-bottom: 4px; }
.sub-plan-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.sub-days-ring { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.days-circle { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--crimson-deep), var(--crimson)); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.days-num { font-size: 1.2rem; font-weight: 700; line-height: 1; }
.days-label { font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.sub-renew { font-size: .78rem; color: var(--muted); }
.sub-renew strong { color: var(--charcoal); }
.sub-features { list-style: none; margin-bottom: 18px; }
.sub-features li { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--mid); padding: 5px 0; border-bottom: 1px solid rgba(201,168,76,0.1); }
.sub-features li:last-child { border-bottom: none; }
.feat-check { color: var(--emerald); font-size: .85rem; }
.feat-cross { color: var(--muted); font-size: .85rem; }

.btn-upgrade {
  width: 100%; padding: 12px; background: linear-gradient(135deg, var(--crimson), var(--crimson-light));
  color: #fff; border: none; border-radius: 10px; font-size: .85rem; font-weight: 700;
  letter-spacing: .04em; cursor: pointer; position: relative; overflow: hidden; transition: all .3s;
}
.btn-upgrade:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(139,26,26,0.4); }

.quick-links, .viewers-panel { background: #fff; border-radius: 16px; border: 1px solid rgba(201,168,76,0.18); padding: 18px; margin-bottom: 16px; }
.quick-link-item, .qli { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.04); cursor: pointer; transition: color .2s; font-size: .8rem; color: var(--mid); font-weight: 500; }
.quick-link-item:last-child, .qli:last-child { border-bottom: none; }
.quick-link-item:hover, .qli:hover { color: var(--crimson); }
.quick-link-icon, .qli-icon { font-size: 1rem; width: 20px; text-align: center; }
.quick-link-arrow, .qli-arrow { margin-left: auto; color: var(--muted); font-size: .75rem; }

.viewers-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.viewer-bubble { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.viewer-bubble-img { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold-pale); transition: border-color .2s; }
.viewer-bubble:hover .viewer-bubble-img { border-color: var(--gold); }
.viewer-bubble-name { font-size: .62rem; color: var(--muted); max-width: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Notifications */
.notif-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(201,168,76,.14);
    padding: 16px;
    margin-bottom: 13px;
}

.notif-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
    cursor: pointer;
}

    .notif-item:last-child {
        border-bottom: none;
    }

    .notif-item:hover {
        background: var(--gold-pale);
        margin: 0 -8px;
        padding: 8px 8px;
        border-radius: 6px;
    }

.notif-ico {
    font-size: 1rem;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}

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

.notif-text {
    font-size: .72rem;
    color: var(--charcoal);
    line-height: 1.4;
}

.notif-time {
    font-size: .6rem;
    color: var(--muted);
}

.notif-unread {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--crimson);
    flex-shrink: 0;
    margin-top: 5px;
}

/* ── Context Notification Messages ── */
.vbanner, .renewal-notice { display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }
.vbanner { background: linear-gradient(135deg, rgba(201,168,76,.12), rgba(139,26,26,.08)); border: 1px solid rgba(201,168,76,.3); }
.vbanner-icon, .rn-icon { font-size: 1.6rem; flex-shrink: 0; }
.vbanner .vtitle { font-size: .85rem; font-weight: 700; color: var(--charcoal); margin-bottom: 2px; }
.vbanner .vsub { font-size: .73rem; color: var(--muted); }

.renewal-notice { background: linear-gradient(135deg, rgba(184,118,10,.08), rgba(201,168,76,.06)); border: 1.5px solid rgba(184,118,10,.25); gap: 14px; margin-bottom: 28px; }
.rn-title { font-size: .82rem; font-weight: 600; color: var(--amber); }
.rn-body { font-size: .74rem; color: var(--mid); margin-top: 3px; line-height: 1.5; }
.btn-renew-now { padding: 9px 20px; background: linear-gradient(135deg, var(--amber), var(--gold)); color: var(--charcoal); border: none; border-radius: 8px; font-size: .76rem; font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all .2s; }
.btn-renew-now:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(184,118,10,.3); }
.payment-methods { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pm-chip { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 8px; border: 1px solid rgba(201,168,76,.18); background: #fff; font-size: .72rem; color: var(--mid); font-weight: 500; }

/* ── Accordion Collapsible Triggers ── */
.faq-section { margin-bottom: 32px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq-item { background: #fff; border-radius: 12px; border: 1px solid rgba(201,168,76,.12); padding: 16px; cursor: pointer; transition: border-color .2s; }
.faq-item:hover { border-color: var(--gold); }
.faq-q { font-size: .8rem; font-weight: 600; color: var(--charcoal); display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.faq-a { font-size: .73rem; color: var(--muted); margin-top: 8px; line-height: 1.6; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open { border-color: var(--crimson); }
.faq-toggle { font-size: .75rem; color: var(--muted); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-toggle { transform: rotate(180deg); }

/* ── Native Navigation Applets (Mobile Only) ── */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: var(--charcoal); border-top: 1px solid rgba(201,168,76,0.2);
  padding: 8px 0 env(safe-area-inset-bottom, 0);
}
.mobile-nav-items, .mbn-items { display: flex; justify-content: space-around; }
.mobile-nav-item, .mni, .mbn-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 12px; cursor: pointer; color: var(--muted); font-size: .6rem; font-weight: 500; transition: color .2s; }
.mobile-nav-item.active, .mni.active, .mbn-item.active { color: var(--gold); }
.mobile-nav-item .mnav-icon, .mni .mi, .mbn-icon { font-size: 1.2rem; }

/* ── Responsive Queries Layer ── */
@media (max-width: 1100px) {
  .right-panel { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .connections-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .billing-section { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .layout { margin-left: 0; }
  .main-content { padding: 16px 14px 80px; }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-header .profile-actions, .profile-header .profile-meta { justify-content: center; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .connections-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-bottom-nav { display: block; }
  .topbar-greeting { font-size: 1.1rem; }
  .fgrid { grid-template-columns: 1fr; }
  .fgrid.g3 { grid-template-columns: repeat(2, 1fr); }
  .photo-grid, .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .cg { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .current-plan-banner { flex-direction: column; text-align: center; }
  .cpb-right { text-align: center; }
}

@media (max-width: 480px) {
  .comp-table th, .comp-table td { padding: 8px 10px; font-size: .66rem; }
}

@media (max-width: 420px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .connections-grid { grid-template-columns: repeat(2, 1fr); }
  .interest-actions { flex-direction: column; gap: 6px; }
  .fgrid.g3 { grid-template-columns: 1fr; }
}