/* Skarbnik PRO v7 Signature — parent journey and advanced dashboard */
.auth-journey {
  min-height: 100vh;
  background: #111625;
}
.auth-journey .topbar { position: relative; border-color: rgba(255,255,255,.08); background: rgba(17,22,37,.96); }
.auth-journey .brand-title { color: #fff; }
.auth-journey .brand-sub { color: #9099ac; }
.auth-journey .nav { display: none; }
.auth-journey .container { width: min(1180px, calc(100% - 36px)); padding: 58px 0 72px; }
.auth-journey .footer { display: none; }
.auth-shell,.class-shell { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(400px,.72fr); align-items: center; gap: clamp(45px,8vw,105px); min-height: calc(100vh - 202px); }
.auth-story,.class-intro { position: relative; color: #fff; }
.auth-kicker { display: inline-block; margin-bottom: 18px; color: #f39da5; font-size: 11px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.auth-story h1,.class-intro h1 { max-width: 690px; margin: 0 0 20px; color: #fff; font-size: clamp(43px,5.1vw,67px); line-height: 1.02; letter-spacing: -.055em; }
.auth-story h1 em { color: #ef5360; font-style: normal; }
.auth-story>p,.class-intro>p { max-width: 610px; margin: 0; color: #b9c0d0; font-size: 17px; line-height: 1.7; }
.auth-preview { max-width: 480px; margin-top: 38px; padding: 23px 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.035)); box-shadow: 0 25px 60px rgba(0,0,0,.18); }
.preview-head { display: flex; justify-content: space-between; color: #c8cfdd; font-size: 11px; }
.preview-head i { color: #77e0a8; font-style: normal; font-weight: 800; }
.auth-preview>strong { display: block; margin: 9px 0 17px; font-size: 35px; letter-spacing: -.04em; }
.preview-bars { display: grid; gap: 7px; }
.preview-bars:before,.preview-bars span { content: ''; display: block; height: 5px; border-radius: 99px; background: linear-gradient(90deg,#d51d2b,#ef5b67); }
.preview-bars:before { width: 100%; background: rgba(255,255,255,.1); }
.auth-preview small { display: block; margin-top: 15px; color: #939caf; }
.auth-card { position: relative; overflow: hidden; padding: 38px; border: 1px solid rgba(255,255,255,.7); border-radius: 29px; background: #fff; box-shadow: 0 35px 90px rgba(0,0,0,.3); }
.auth-card:before { position: absolute; top: -90px; right: -90px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle,rgba(213,29,43,.13),transparent 68%); content: ''; }
.auth-card-icon,.step-number { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 24px; border-radius: 15px; background: linear-gradient(145deg,#c91825,#eb4652); color: #fff; font-size: 21px; font-weight: 900; box-shadow: 0 10px 24px rgba(201,24,37,.23); }
.auth-class { display: inline-flex; margin-bottom: 9px; color: #bd1824; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.auth-card h2 { margin: 0 0 10px; font-size: 31px; letter-spacing: -.04em; }
.auth-card>p { margin: 0 0 25px; color: #667085; font-size: 14px; line-height: 1.6; }
.auth-message { margin-bottom: 20px; padding: 13px 14px; border: 1px solid #f5c2c7; border-radius: 12px; background: #fff5f5; color: #9e1721; font-size: 12px; line-height: 1.5; }
.signature-form { display: grid; gap: 9px; }
.signature-form label { color: #344054; font-size: 12px; font-weight: 800; }
.phone-field { display: grid; grid-template-columns: 58px 1fr; overflow: hidden; min-height: 56px; border: 1px solid #d0d5dd; border-radius: 14px; background: #fff; transition: .18s; }
.phone-field:focus-within { border-color: #df6c75; box-shadow: 0 0 0 4px rgba(201,24,37,.08); }
.phone-field>span { display: grid; place-items: center; border-right: 1px solid #eaecf0; background: #f8f9fb; color: #667085; font-size: 13px; font-weight: 750; }
.phone-field input { min-height: 54px; border: 0; border-radius: 0; box-shadow: none!important; font-size: 16px; }
.signature-form select { min-height: 56px; border-radius: 14px; font-size: 15px; }
.signature-form button,.confirm-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; margin-top: 6px; padding: 13px 18px; border: 0; border-radius: 14px; background: linear-gradient(135deg,#c91825,#e43643); color: #fff; font-size: 14px; font-weight: 850; cursor: pointer; box-shadow: 0 13px 27px rgba(201,24,37,.24); }
.signature-form button:hover,.confirm-button:hover { filter: brightness(.94); transform: translateY(-1px); }
.signature-form button span { font-size: 20px; }
.auth-safety,.class-trust { display: flex; gap: 11px; margin-top: 22px; padding: 14px; border-radius: 14px; background: #f6f8fa; }
.auth-safety>span,.class-trust>span { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #e8f8ef; color: #087443; font-weight: 900; }
.auth-safety p { margin: 0; color: #667085; font-size: 11px; line-height: 1.5; }
.auth-safety strong { color: #344054; }
.change-class { display: block; margin-top: 19px; color: #667085; font-size: 11px; font-weight: 700; text-align: center; }
.change-class:hover { color: #bd1824; }
.class-shell { grid-template-columns: minmax(0,1fr) minmax(390px,.7fr); }
.class-intro h1 { font-size: clamp(41px,4.8vw,62px); }
.class-trust { max-width: 480px; margin-top: 35px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.06); }
.class-trust strong,.class-trust small { display: block; }
.class-trust strong { color: #fff; font-size: 13px; }
.class-trust small { margin-top: 3px; color: #9ea7b9; font-size: 11px; }
.step-number { background: #171c2d; box-shadow: none; font-size: 13px; letter-spacing: .08em; }
.step-dots { display: flex; align-items: center; gap: 7px; margin-top: 26px; color: #98a2b3; font-size: 10px; }
.step-dots i { width: 22px; height: 4px; border-radius: 99px; background: #e4e7ec; }
.step-dots i.active { background: #d21c29; }
.confirm-shell { display: grid; min-height: calc(100vh - 210px); place-items: center; }
.confirm-card { width: min(520px,100%); padding: 45px 38px; border-radius: 29px; background: #fff; text-align: center; box-shadow: 0 35px 90px rgba(0,0,0,.3); }
.confirm-card h1 { margin: 7px 0 12px; font-size: 32px; }
.confirm-card>p { margin: 0 0 25px; color: #667085; }
.confirm-loader { position: relative; display: grid; width: 72px; height: 72px; margin: 0 auto 24px; place-items: center; }
.confirm-loader i { position: absolute; inset: 0; border: 3px solid #f6d6d9; border-top-color: #d21c29; border-radius: 50%; animation: signature-spin 1s linear infinite; }
.confirm-loader span { display: grid; width: 48px; height: 48px; border-radius: 15px; background: #d21c29; color: #fff; font-size: 19px; font-weight: 900; place-items: center; }
.confirm-button { justify-content: center; }
@keyframes signature-spin { to { transform: rotate(360deg); } }

/* Data intelligence */
.signature-insights { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 12px 0; }
.signature-insights>div { padding: 16px 18px; border: 1px solid #e2e6ec; border-radius: 17px; background: rgba(255,255,255,.72); }
.signature-insights span { display: block; color: #7a8496; font-size: 11px; }
.signature-insights strong { display: block; margin-top: 4px; color: #273146; font-size: 15px; }
.balance-chart-card { margin-top: 12px; padding: 23px 24px 17px; overflow: hidden; border: 1px solid #dde2ea; border-radius: 22px; background: linear-gradient(145deg,#fff,#fbfcfd); box-shadow: 0 14px 36px rgba(16,24,40,.055); }
.chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.chart-heading span { color: #7b8598; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.chart-heading h3 { margin: 3px 0 0; font-size: 20px; }
.chart-legend { color: #7b8598; font-size: 11px; }
.chart-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #d21c29; }
.chart-wrap { margin-top: 10px; }
.chart-wrap svg { display: block; width: 100%; height: 190px; overflow: visible; }
.chart-line { fill: none; stroke: #d21c29; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; filter: drop-shadow(0 5px 7px rgba(210,28,41,.22)); }
.zero-line { stroke: #dce1e8; stroke-dasharray: 6 7; stroke-width: 1; }
.chart-dates { display: flex; justify-content: space-between; color: #98a2b3; font-size: 10px; }
.chart-empty { margin-top: 15px; padding: 40px; border-radius: 15px; background: #f7f8fa; color: #98a2b3; font-size: 12px; text-align: center; }
.negative-number { color: #b42318!important; }
.history-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px 13px; }
.history-tools label { display: flex; align-items: center; flex: 1; max-width: 280px; min-height: 40px; padding: 0 11px; border: 1px solid #e1e5eb; border-radius: 12px; background: #f9fafb; }
.history-tools label>span { color: #8b95a6; font-size: 17px; }
.history-tools input { min-height: 38px; padding: 8px 9px; border: 0; background: transparent; box-shadow: none!important; font-size: 12px; }
.history-filters { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: #f1f3f6; }
.history-filters button { padding: 7px 9px; border: 0; border-radius: 8px; background: transparent; color: #667085; font-size: 10px; font-weight: 800; cursor: pointer; }
.history-filters button.active { background: #fff; color: #b71824; box-shadow: 0 2px 7px rgba(16,24,40,.08); }
button.activity-item { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.activity-item:hover { border-radius: 13px; background: #fafbfc; }
.activity-amount i { margin-left: 7px; color: #a4adbc; font-size: 19px; font-style: normal; font-weight: 400; }
.activity-item[hidden] { display: none!important; }

/* Event detail sheet */
.modal-open { overflow: hidden; }
.event-modal[hidden] { display: none; }
.event-modal { position: fixed; z-index: 100; inset: 0; display: grid; padding: 20px; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(10,15,27,.68); backdrop-filter: blur(7px); cursor: pointer; }
.event-modal-card { position: relative; z-index: 1; width: min(440px,100%); padding: 32px; border-radius: 26px; background: #fff; box-shadow: 0 35px 100px rgba(0,0,0,.35); animation: modal-in .22s ease-out; }
.modal-close { position: absolute; top: 15px; right: 15px; display: grid; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f2f4f7; color: #475467; font-size: 21px; cursor: pointer; place-items: center; }
.modal-kicker { color: #bd1824; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.event-modal-card h3 { margin: 9px 35px 18px 0; font-size: 24px; line-height: 1.2; }
.modal-amount { padding: 20px; border-radius: 17px; background: #171c2d; color: #fff; font-size: 31px; font-weight: 900; letter-spacing: -.04em; }
.modal-info { display: flex; justify-content: space-between; gap: 15px; padding: 20px 3px; border-bottom: 1px solid #eaecf0; }
.modal-info span { color: #7d8798; font-size: 12px; }
.modal-info strong { font-size: 13px; }
.modal-note { display: flex; gap: 10px; margin: 18px 0; padding: 14px; border-radius: 14px; background: #f4f8f6; }
.modal-note>span { color: #087443; font-weight: 900; }
.modal-note p { margin: 0; color: #667085; font-size: 11px; line-height: 1.5; }
.modal-done { width: 100%; min-height: 48px; border: 0; border-radius: 13px; background: #d21c29; color: #fff; font-weight: 850; cursor: pointer; }
@keyframes modal-in { from { opacity: 0; transform: translateY(15px) scale(.98); } }
.mobile-dock { display: none; }

@media(max-width:800px){
 .auth-journey .container { width: min(100% - 26px,650px); padding: 34px 0 50px; }
 .auth-shell,.class-shell { grid-template-columns: 1fr; gap: 32px; min-height: 0; }
 .auth-story h1,.class-intro h1 { font-size: clamp(38px,10vw,54px); }
 .auth-preview { display: none; }
 .auth-card { width: 100%; }
 .signature-insights { grid-template-columns: 1fr 1fr 1fr; }
}
@media(max-width:600px){
 .auth-journey .topbar { min-height: 62px; padding: 9px 13px; }
 .auth-journey .brand-sub { display: none; }
 .auth-journey .container { width: 100%; padding: 0; }
 .auth-shell,.class-shell { gap: 25px; }
 .auth-story,.class-intro { padding: 34px 20px 0; }
 .auth-story h1,.class-intro h1 { margin-bottom: 15px; font-size: 37px; }
 .auth-story>p,.class-intro>p { font-size: 14px; }
 .auth-card { padding: 27px 20px 30px; border: 0; border-radius: 28px 28px 0 0; box-shadow: 0 -15px 45px rgba(0,0,0,.17); }
 .auth-card-icon,.step-number { width: 42px; height: 42px; margin-bottom: 19px; border-radius: 13px; }
 .auth-card h2 { font-size: 27px; }
 .class-trust { margin-top: 22px; }
 .confirm-shell { min-height: calc(100vh - 62px); padding: 14px; }
 .confirm-card { padding: 37px 20px; border-radius: 24px; }
 .signature-insights { grid-template-columns: 1fr 1fr; gap: 8px; }
 .signature-insights>div { padding: 13px 14px; border-radius: 15px; }
 .signature-insights>div:last-child { grid-column: 1/-1; }
 .signature-insights span { font-size: 9px; }
 .signature-insights strong { font-size: 13px; }
 .balance-chart-card { margin-top: 10px; padding: 18px 15px 14px; border-radius: 18px; }
 .chart-heading h3 { font-size: 17px; }
 .chart-legend { display: none; }
 .chart-wrap svg { height: 145px; }
 .history-tools { display: grid; padding: 0 14px 12px; }
 .history-tools label { max-width: none; }
 .history-filters { display: grid; grid-template-columns: repeat(3,1fr); }
 .activity-copy span { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 .event-modal { align-items: end; padding: 0; }
 .event-modal-card { width: 100%; padding: 28px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; animation-name: sheet-in; }
 @keyframes sheet-in { from { opacity: 0; transform: translateY(45px); } }
 .role-parent .container { padding-bottom: 92px; }
 .mobile-dock { position: fixed; z-index: 50; right: 10px; bottom: calc(9px + env(safe-area-inset-bottom)); left: 10px; display: grid; grid-template-columns: repeat(4,1fr); padding: 7px; border: 1px solid rgba(255,255,255,.75); border-radius: 19px; background: rgba(255,255,255,.94); box-shadow: 0 15px 45px rgba(17,24,39,.2); backdrop-filter: blur(18px); }
 .mobile-dock a { display: grid; gap: 1px; padding: 5px 2px; border-radius: 13px; color: #788294; font-size: 9px; font-weight: 800; text-align: center; }
 .mobile-dock a span { font-size: 18px; line-height: 1.15; }
 .mobile-dock a.active { background: #fff0f1; color: #c51b27; }
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.confirm-loader i{animation:none}.event-modal-card{animation:none}}
@media(display-mode:standalone){.role-parent .topbar{padding-top:calc(9px + env(safe-area-inset-top))}.role-parent .container{padding-bottom:105px}}
