.page-celebrations{--cj-border:#3b478f;--cj-panel:#11194b;--cj-muted:#aab4d9;--cj-purple:#7657f4}.cj-page{display:grid;gap:11px;max-width:1680px;margin:0 auto}.cj-hero,.cj-panel,.cj-stats article{border:1px solid var(--cj-border);border-radius:16px}.cj-hero{position:relative;min-height:126px;padding:20px 24px;display:flex;align-items:center;overflow:hidden;background:radial-gradient(circle at 72% 14%,rgba(255,142,103,.35),transparent 22%),linear-gradient(110deg,#4b2bc8 0%,#32217f 46%,#16205c 100%)}.cj-brand{color:#ded7ff;font-size:11px;font-weight:800;letter-spacing:.08em}.cj-hero h2{font-size:25px;margin:12px 0 4px}.cj-hero p,.cj-panel header p{color:#c4cae5;margin:0;font-size:12px}.cj-hero-image{margin-left:auto;margin-right:185px;width:62px;height:62px;border-radius:18px;display:grid;place-items:center;font-size:32px;background:linear-gradient(135deg,#ff747f,#ffb05d);box-shadow:0 12px 30px rgba(255,113,109,.25)}.cj-hero-actions{position:absolute;right:20px;top:20px;display:flex;gap:8px}.cj-hero-actions .btn{font-size:11px;padding:8px 11px;display:flex;gap:6px;align-items:center}.cj-hero-actions svg{width:14px}.cj-icon-btn{width:34px;height:34px;border:1px solid #8c82da;border-radius:9px;background:#251d67;color:#fff;display:grid;place-items:center}.cj-icon-btn svg{width:15px}.cj-secondary{color:#fff;border:1px solid #746fc7;background:#1a2356}.cj-secondary:hover{color:#fff;background:#252f70}.cj-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.cj-stats article{min-height:74px;padding:12px 15px;display:flex;justify-content:space-between;align-items:center;background:#182052}.cj-stats article.birthdays{border-color:#d85b85;background:linear-gradient(135deg,rgba(228,77,124,.28),#182052 66%)}.cj-stats article.anniversaries{border-color:#8063df;background:linear-gradient(135deg,rgba(132,91,226,.32),#182052 66%)}.cj-stats article.month{border-color:#3cb99a;background:linear-gradient(135deg,rgba(48,190,156,.25),#182052 66%)}.cj-stats article.mail{border-color:#4b91c8;background:linear-gradient(135deg,rgba(48,145,205,.22),#182052 66%)}.cj-stats span{display:grid;color:var(--cj-muted);font-size:10px}.cj-stats strong{font-size:21px;color:#fff;line-height:1.1}.cj-stats small{font-size:9px;color:#70e8ae}.cj-stats article>b{font-size:22px}.cj-tabs{display:flex;gap:7px;padding:1px 2px}.cj-tabs button{border:0;border-radius:20px;padding:7px 14px;background:#151d4b;color:#abb5db;font-size:11px}.cj-tabs button.active{background:#7253ee;color:#fff;box-shadow:0 5px 14px rgba(114,83,238,.25)}.cj-dashboard{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(350px,.75fr);gap:11px;align-items:start}.cj-side{display:grid;grid-template-columns:1fr 1fr;gap:11px}.cj-side .cj-calendar{grid-column:1/-1}.cj-panel{padding:14px;background:linear-gradient(145deg,rgba(25,33,89,.98),rgba(12,18,57,.98))}.cj-panel>header{display:flex;align-items:start;justify-content:space-between;margin-bottom:9px}.cj-panel h3{font-size:14px;margin:0 0 3px}.cj-link{border:0;background:transparent;color:#9fb6ff;font-size:10px}.cj-event{display:grid;grid-template-columns:38px 1fr 76px 72px 62px;align-items:center;gap:9px;padding:8px 2px;border-top:1px solid rgba(110,124,190,.24);min-height:51px}.cj-event-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,#cb426d,#7039a8);font-size:15px}.cj-event-icon.anniversary{background:linear-gradient(135deg,#f29a43,#b54679);color:#fff}.cj-event strong,.cj-event small,.cj-contacts strong,.cj-contacts small{display:block}.cj-event strong{font-size:11px}.cj-event small,.cj-event time{color:var(--cj-muted);font-size:9px}.cj-event time b{font-size:10px;color:#7bedb7}.cj-status{font-style:normal;font-size:8px;border-radius:20px;padding:5px 7px;background:#3d2941;color:#ff9e9e;text-align:center}.cj-status.active{background:#173f39;color:#75e7a3}.cj-actions{display:flex;gap:5px}.cj-actions button,.cj-contacts button{border:0;background:#23295f;color:#b9c4ef;border-radius:7px;width:25px;height:25px;display:grid;place-items:center}.cj-actions svg,.cj-contacts button svg{width:12px}.cj-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.cj-calendar-grid>span{min-height:25px;border-radius:6px;background:#151d4b;display:grid;place-items:center;font-size:8px;color:#b5bedf}.cj-calendar-grid>span.head{min-height:16px;background:transparent;color:#737fab}.cj-calendar-grid>span.birthday{background:linear-gradient(135deg,#d64b7a,#7339a4);color:#fff}.cj-calendar-grid>span.anniversary{background:linear-gradient(135deg,#ff9a45,#d14c70);color:#fff}.cj-calendar-grid>span.today{outline:1px solid #6ef0b7}.cj-calendar-grid b{font-size:7px}.cj-plan-grid{display:grid;grid-template-columns:1fr;gap:6px}.cj-plan article{display:flex;gap:8px;padding:7px;border:1px solid #354087;border-radius:9px;background:#151e4b}.cj-plan article svg{color:#75e7a3;width:18px}.cj-plan article strong{font-size:10px}.cj-plan p{color:var(--cj-muted);font-size:8px;margin:1px 0 0}.cj-quick>div{display:grid;grid-template-columns:1fr;gap:6px}.cj-quick button{border:1px solid #39468f;background:#151e4b;color:#fff;border-radius:9px;padding:7px;text-align:left;display:flex;align-items:center;gap:7px}.cj-quick button svg{width:16px;color:#9e87ff}.cj-quick button span{font-size:9px;font-weight:700}.cj-quick button small{display:block;color:#aab4d9;font-size:7px;font-weight:400}.cj-list-panel{min-height:465px}.cj-contacts article,.cj-history article{display:flex;gap:7px;align-items:center;padding:8px 0;border-top:1px solid rgba(110,124,190,.25)}.cj-contacts article>span{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#7457f3,#4330b8);font-size:10px;font-weight:800}.cj-contacts article>div,.cj-history article>div{flex:1;min-width:0}.cj-contacts strong,.cj-history strong{font-size:10px}.cj-contacts em,.cj-history em{font-size:8px;color:var(--cj-muted);font-style:normal;text-transform:capitalize}.cj-contacts small,.cj-history small{color:var(--cj-muted);font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cj-delivery{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#26305e;color:#ff8f86}.cj-delivery.sent{background:#173f39;color:#75e7a3}.cj-delivery svg{width:13px}.cj-pager{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:12px;color:#aab4d9;font-size:10px}.cj-pager button{border:1px solid #45539e;background:#1b245a;color:#fff;border-radius:7px;width:27px;height:27px}.cj-pager button:disabled{opacity:.35}.cj-empty,.cj-loading{padding:34px;text-align:center;color:var(--cj-muted)}.cj-modal{position:fixed;inset:0;z-index:1100;display:none;place-items:center}.cj-modal.show{display:grid}.cj-modal-backdrop{position:absolute;inset:0;border:0;background:rgba(2,5,22,.78);backdrop-filter:blur(6px)}.cj-dialog{position:relative;width:min(560px,calc(100vw - 28px));background:#101747;border:1px solid #5866c7;border-radius:18px;box-shadow:0 22px 70px #020518;padding:20px}.cj-dialog header,.cj-dialog footer{display:flex;justify-content:space-between;align-items:center}.cj-dialog header small{color:#9d88ff}.cj-dialog h2{font-size:21px;margin:2px 0}.cj-close{border:0;background:transparent;color:#fff;font-size:26px}.cj-form{padding:20px 0}.cj-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cj-grid label{font-size:12px;color:#c7d0ef}.cj-grid input,.cj-grid select{margin-top:6px}.cj-grid .wide{grid-column:1/-1}.cj-check{display:flex;gap:8px;align-items:center}.cj-check input{margin:0}.cj-dialog footer{justify-content:flex-end;gap:9px}.page-celebrations .top-currency-switch{display:none}@media(max-width:1180px){.cj-dashboard{grid-template-columns:1fr}.cj-side{grid-template-columns:1fr 1fr 1fr}.cj-side .cj-calendar{grid-column:auto}.cj-hero-image{margin-right:210px}}@media(max-width:850px){.cj-stats{grid-template-columns:1fr 1fr}.cj-side{grid-template-columns:1fr}.cj-hero{align-items:flex-start}.cj-hero-image{display:none}.cj-hero-actions{position:static;margin-left:auto;flex-direction:column}.cj-event{grid-template-columns:38px 1fr auto}.cj-event .cj-status{display:none}.cj-actions{grid-column:2/-1}}@media(max-width:560px){.cj-stats{grid-template-columns:1fr 1fr}.cj-hero{padding:18px;display:block}.cj-hero-actions{margin-top:14px;flex-direction:row;flex-wrap:wrap}.cj-tabs{overflow:auto}.cj-grid{grid-template-columns:1fr}.cj-grid .wide{grid-column:auto}}
/* Celebration Hub refinement: larger overview, clear typography and full-height calendar */
.cj-hero{min-height:138px;padding:22px 26px}.cj-hero-copy{min-width:0}.cj-hero-controls{margin-left:auto;display:flex;align-items:center;gap:18px}.cj-hero-image{margin:0;width:66px;height:66px;flex:0 0 66px}.cj-hero-actions{position:static;display:flex;align-items:center;gap:9px}.cj-hero-actions .btn{min-height:38px;padding:9px 13px;white-space:nowrap;font-size:12px;font-weight:700}.cj-hero-actions .btn-primary{box-shadow:0 7px 20px rgba(117,76,255,.35)}
.cj-brand{font-size:12px}.cj-hero h2{font-size:27px}.cj-hero p,.cj-panel header p{font-size:13px}.cj-stats span{font-size:11px}.cj-stats strong{font-size:23px}.cj-tabs button{font-size:12px;padding:8px 15px}.cj-panel h3{font-size:16px}.cj-link{font-size:11px}
.cj-dashboard{grid-template-columns:minmax(0,2.05fr) minmax(400px,.95fr);min-height:clamp(520px,calc(100vh - 365px),690px)}.cj-dashboard>.cj-panel{height:100%}.cj-upcoming,.cj-calendar{padding:17px 18px}.cj-upcoming .cj-event{min-height:57px;padding:10px 3px}.cj-event{grid-template-columns:42px 1fr 84px 82px 64px}.cj-event-icon{width:38px;height:38px;font-size:17px}.cj-event strong{font-size:12px}.cj-event small,.cj-event time{font-size:10px}.cj-event time b{font-size:11px}.cj-status{font-size:9px;padding:6px 8px}
.cj-calendar{display:flex;flex-direction:column}.cj-calendar>header{align-items:center;margin-bottom:9px}.cj-calendar-nav{display:flex;align-items:center;gap:4px}.cj-calendar-nav button{border:0;background:#151d4b;color:#fff;border-radius:7px;min-width:28px;height:28px;padding:0 8px;font-size:11px}.cj-calendar-nav button:hover{background:#7253ee}.cj-calendar-legend{display:flex;gap:14px;margin:0 0 9px;color:#aab4d9;font-size:10px}.cj-calendar-legend span{display:flex;align-items:center;gap:5px}.cj-calendar-legend i{width:8px;height:8px;border-radius:50%}.cj-calendar-legend i.birthday{background:#d64b7a}.cj-calendar-legend i.anniversary{background:#ff9748}.cj-calendar-grid{flex:1;grid-template-rows:20px repeat(6,minmax(46px,1fr));gap:6px}.cj-calendar-grid>span{min-height:0;font-size:10px;border-radius:8px}.cj-calendar-grid>span.head{min-height:0}.cj-calendar-grid>span.blank{background:rgba(21,29,75,.35)}.cj-calendar-grid b{font-size:9px}.cj-calendar-grid>span.today{outline:2px solid #70ecb6;outline-offset:-2px}
.cj-list-panel{min-height:clamp(520px,calc(100vh - 365px),690px);padding:18px}.cj-list-panel>header{align-items:center}.cj-add-contact{min-width:118px!important;width:auto!important;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;white-space:nowrap;padding:9px 14px!important;font-size:12px!important}.cj-add-contact svg{width:15px}.cj-contacts strong,.cj-history strong{font-size:11px}.cj-contacts small,.cj-history small{font-size:10px}.cj-contacts em,.cj-history em{font-size:9px}
@media(max-width:1180px){.cj-dashboard{grid-template-columns:1.5fr 1fr}.cj-hero-controls{gap:10px}.cj-hero-image{width:56px;height:56px;flex-basis:56px}.cj-hero-actions .btn{padding:8px 10px;font-size:11px}}
@media(max-width:980px){.cj-dashboard{grid-template-columns:1fr;min-height:0}.cj-dashboard>.cj-panel{height:auto}.cj-calendar-grid{grid-template-rows:20px repeat(6,44px)}.cj-hero-controls{align-items:flex-end}.cj-hero-image{display:grid}.cj-hero-actions{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:700px){.cj-hero{display:block}.cj-hero-controls{margin-top:16px;justify-content:space-between}.cj-hero-actions{justify-content:flex-start}.cj-hero-image{order:2}.cj-dashboard{display:block}.cj-calendar{margin-top:11px}.cj-calendar-grid{grid-template-rows:20px repeat(6,38px)}}

/* Mobile Celebration Hub: contain every section inside the viewport. */
@media(max-width:700px){
 .content.page-celebrations{width:100%!important;max-width:100vw!important;min-width:0!important;overflow-x:hidden!important;padding-left:12px!important;padding-right:12px!important}
 .page-celebrations .cj-page,.page-celebrations .cj-hero,.page-celebrations .cj-stats,.page-celebrations .cj-tabs,.page-celebrations #celebrationTab,.page-celebrations .cj-dashboard,.page-celebrations .cj-panel{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
 .page-celebrations .cj-page{gap:12px;margin:0!important}
 .page-celebrations .cj-hero{padding:18px 16px!important;border-radius:15px!important}
 .page-celebrations .cj-hero h2{font-size:25px!important;line-height:1.14!important;overflow-wrap:anywhere}
 .page-celebrations .cj-hero-controls{width:100%;align-items:center!important;gap:10px!important}
 .page-celebrations .cj-hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%;gap:9px!important}
 .page-celebrations .cj-hero-actions .btn{width:100%;min-width:0!important;justify-content:center;padding:9px 7px!important}
 .page-celebrations .cj-hero-actions .btn:last-child{grid-column:1/-1;width:max-content;max-width:100%;justify-self:start;padding-left:14px!important;padding-right:14px!important}
 .page-celebrations .cj-hero-image{display:grid!important;position:absolute;right:13px;bottom:18px;width:55px;height:55px;min-width:55px;margin:0!important}
 .page-celebrations .cj-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .page-celebrations .cj-stats article{width:auto!important;min-width:0!important;padding:12px!important}
 .page-celebrations .cj-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;overflow:visible!important;padding:0!important}
 .page-celebrations .cj-tabs button{min-width:0;padding:8px 5px!important;font-size:11px!important;white-space:nowrap}
 .page-celebrations .cj-panel{padding:14px!important;border-radius:15px!important;overflow:hidden}
 .page-celebrations .cj-panel>header{gap:8px}.page-celebrations .cj-panel>header>div{min-width:0}.page-celebrations .cj-link{flex:0 0 auto;white-space:nowrap}
 .page-celebrations .cj-event{grid-template-columns:38px minmax(0,1fr) auto!important;gap:8px!important}
 .page-celebrations .cj-event>div:nth-child(2){min-width:0}.page-celebrations .cj-event strong{overflow-wrap:anywhere}
 .page-celebrations .cj-actions{grid-column:2/-1!important}
}

/* Stage 123: current-month celebration cards and grouped all-events view. */
.page-celebrations .cj-celebration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.page-celebrations .cj-celebration-card{--cj-card-orb:linear-gradient(145deg,#08d7ff,#7748ff 58%,#ec49bd);position:relative;isolation:isolate;min-height:198px;padding:16px;border:1px solid rgba(85,205,255,.66);border-radius:18px;overflow:hidden;background:linear-gradient(145deg,#164481 0%,#25216b 52%,#33175f 100%);box-shadow:inset 0 1px rgba(255,255,255,.32),0 14px 28px rgba(2,5,31,.28),0 0 28px rgba(39,177,255,.13)}
.page-celebrations .cj-celebration-card.anniversary{--cj-card-orb:linear-gradient(145deg,#ffd456,#ff8449 48%,#ef4196);border-color:rgba(255,181,77,.7);background:linear-gradient(145deg,#713717 0%,#5c254f 52%,#362066 100%);box-shadow:inset 0 1px rgba(255,255,255,.32),0 14px 28px rgba(2,5,31,.28),0 0 28px rgba(255,130,70,.13)}
.page-celebrations .cj-celebration-card::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.21),rgba(255,255,255,.04) 28%,transparent 47%),radial-gradient(circle at 87% 9%,rgba(255,255,255,.29),transparent 23%)}
.page-celebrations .cj-celebration-card::after{content:"";position:absolute;z-index:-1;width:165px;height:165px;right:-48px;bottom:-78px;border-radius:50%;background:var(--cj-card-orb);filter:blur(6px);opacity:.7}
.page-celebrations .cj-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.page-celebrations .cj-card-avatar{width:50px;height:50px;display:grid;place-items:center;flex:0 0 50px;border:1px solid rgba(255,255,255,.43);border-radius:15px;background:linear-gradient(145deg,#55ebff,#476cff 49%,#b04cff);box-shadow:inset 0 1px rgba(255,255,255,.43),0 8px 19px rgba(24,116,255,.35);font-size:15px;font-weight:800;color:#fff}
.page-celebrations .anniversary .cj-card-avatar{background:linear-gradient(145deg,#ffe264,#ff804a 49%,#e53d95);box-shadow:inset 0 1px rgba(255,255,255,.43),0 8px 19px rgba(255,106,72,.33)}
.page-celebrations .cj-card-avatar svg{width:20px}
.page-celebrations .cj-card-kind{display:flex;align-items:center;gap:6px;min-width:0;padding:7px 9px;border-radius:9px;background:rgba(6,10,42,.48);color:#9cf3ff;font-size:10px;white-space:nowrap}
.page-celebrations .anniversary .cj-card-kind{color:#ffe09a}.page-celebrations .cj-card-kind svg{width:14px}
.page-celebrations .cj-celebration-card h4{margin:14px 0 4px;font-size:14px;line-height:1.25;color:#fff}.page-celebrations .cj-celebration-card p{margin:0;color:#d6dcf2;font-size:11px}
.page-celebrations .cj-celebration-card footer{position:absolute;z-index:2;left:16px;right:16px;bottom:14px;display:flex;align-items:center;gap:8px}.page-celebrations .cj-celebration-card footer>strong{margin-right:auto;color:#77efff;font-size:11px}.page-celebrations .anniversary footer>strong{color:#ffe083}
.page-celebrations .cj-card-status{padding:5px 7px;border-radius:20px;background:#4a2944;color:#ffaaa4;font-size:8px}.page-celebrations .cj-card-status.active{background:rgba(15,65,59,.8);color:#7ce9ad}
.page-celebrations .cj-card-actions{display:flex;gap:5px}.page-celebrations .cj-card-actions button{width:29px;height:29px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.25);border-radius:8px;background:rgba(8,12,46,.48);color:#eef0ff}.page-celebrations .cj-card-actions svg{width:13px}
.page-celebrations .cj-month-empty{min-height:460px;display:grid;place-items:center;padding:28px;border:1px solid rgba(111,190,255,.5);border-radius:19px;background:linear-gradient(145deg,rgba(67,128,213,.28),rgba(100,62,177,.25),rgba(12,18,56,.77));box-shadow:inset 0 1px rgba(255,255,255,.22),0 18px 42px rgba(1,4,29,.24);text-align:center}
.page-celebrations .cj-month-empty>span{width:76px;height:76px;display:grid;place-items:center;margin:0 auto 16px;border:1px solid rgba(255,255,255,.36);border-radius:22px;background:linear-gradient(145deg,rgba(91,224,255,.65),rgba(106,70,239,.72));box-shadow:inset 0 1px rgba(255,255,255,.36),0 12px 29px rgba(68,105,255,.3)}.page-celebrations .cj-month-empty>span svg{width:33px}
.page-celebrations .cj-month-empty h4{margin:0;font-size:21px}.page-celebrations .cj-month-empty p{max-width:410px;margin:9px auto 18px;color:#bdc7e6;font-size:12px}.page-celebrations .cj-month-empty>div{display:flex;justify-content:center;gap:8px}.page-celebrations .cj-month-empty .btn{display:inline-flex;align-items:center;gap:6px;font-size:11px}
.page-celebrations .cj-all-events{min-height:clamp(520px,calc(100vh - 365px),760px);padding:18px}.page-celebrations .cj-month-group{margin-top:20px}.page-celebrations .cj-month-group>header{display:flex;align-items:center;gap:12px;margin-bottom:10px}.page-celebrations .cj-month-group>header::after{content:"";height:1px;flex:1;background:rgba(110,124,190,.28)}.page-celebrations .cj-month-group>header h4{margin:0;font-size:13px;white-space:nowrap}.page-celebrations .cj-month-group>header span{order:2;color:#9faad0;font-size:10px;white-space:nowrap}
.page-celebrations .cj-all-events .cj-celebration-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.page-celebrations .cj-all-events .cj-celebration-card{min-height:188px}
@media(max-width:1180px){.page-celebrations .cj-all-events .cj-celebration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.page-celebrations .cj-celebration-grid,.page-celebrations .cj-all-events .cj-celebration-grid{grid-template-columns:1fr}.page-celebrations .cj-month-empty{min-height:330px}.page-celebrations .cj-card-kind{white-space:normal;text-align:right}}
@media(max-width:520px){.page-celebrations .cj-celebration-card{min-height:205px}.page-celebrations .cj-celebration-card footer{flex-wrap:wrap}.page-celebrations .cj-card-status{order:3}.page-celebrations .cj-month-empty>div{flex-direction:column}.page-celebrations .cj-month-empty .btn{justify-content:center}}
