.brand-dot { color: var(--blue-600); }
.site-title a { white-space: nowrap; }
.top-menu__logout { min-height: 0; padding: 0; border: 0; background: transparent; color: #445468 !important; font-size: 14px; font-weight: 500; }
.top-menu__logout:hover { background: transparent; color: var(--blue-700) !important; }
.main-navigation .menu { margin-bottom: 0; }
.mobile-account-menu { display: none; }
.site-content { min-height: 58vh; }
.content-empty { padding: 35px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--muted); text-align: center; }
.taxonomy-description { margin-top: 9px; color: #dcebf7; }
.taxonomy-description p:last-child { margin-bottom: 0; }
.widget-count { float: right; color: #8fa1b3; }
.laravel-pagination nav { width: 100%; }
.laravel-pagination .pagination { flex-wrap: wrap; }
.laravel-pagination .page-item .page-link { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-color: var(--line); color: var(--ink); }
.laravel-pagination .page-item.active .page-link { border-color: var(--blue-700); background: var(--blue-700); color: #fff; }
.laravel-pagination svg { width: 18px; }
.laravel-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 34px 25px; }
.laravel-tags a { padding: 5px 10px; border-radius: 5px; background: var(--blue-100); color: var(--blue-800); font-size: 12px; text-decoration: none; }
.laravel-rating { padding: 0 34px 30px; }
.demo-author__name a { color: var(--blue-900); text-decoration: none; }
.laravel-comments > [data-react-comments] { min-height: 80px; }
.laravel-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; padding-bottom: 35px; }
.laravel-footer-grid p { max-width: 580px; color: #cbdbea; }
.laravel-footer-grid ul { margin: 0; padding: 0; list-style: none; }
.laravel-footer-grid li { margin: 6px 0; }
.footer-heading { margin-bottom: 12px; color: #fff; font-size: 18px; font-weight: 900; }
.single-demo__cover { margin: 0; }

/* Authentication */
.auth-shell { width: min(980px,100%); margin: 18px auto 40px; }
.auth-shell--single { width: min(620px,100%); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.auth-shell--wide { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.auth-card { padding: 42px 46px; }
.auth-card__head { margin-bottom: 28px; }
.auth-card__head h1 { margin: 7px 0 9px; color: var(--ink); font-size: clamp(30px,4vw,42px); line-height: 1.12; letter-spacing: -1px; }
.auth-card__head p { max-width: 570px; margin: 0; color: var(--muted); }
.auth-kicker { color: var(--blue-700); font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.auth-form { display: grid; gap: 18px; }
.auth-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.auth-field label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.auth-field input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #cbd9e5; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; outline: none; }
.auth-field input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,132,199,.13); }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; }
.auth-label-row a, .auth-switch a, .auth-check a { color: var(--blue-700); font-size: 12px; font-weight: 700; text-decoration: none; }
.auth-error { margin-top: 5px; color: #b42318; font-size: 12px; }
.auth-success { margin-bottom: 20px; padding: 13px 15px; border: 1px solid #a7d7bc; border-radius: 7px; background: #edf9f2; color: #17653a; font-size: 13px; }
.auth-check { display: flex; gap: 9px; align-items: flex-start; color: #56687a; font-size: 13px; cursor: pointer; }
.auth-check input { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; accent-color: var(--blue-700); }
.auth-submit { width: 100%; min-height: 48px; border-radius: 8px; font-size: 15px; }
.auth-switch { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.auth-side { padding: 42px 35px; background: linear-gradient(145deg,var(--blue-900),var(--blue-700)); color: #fff; }
.auth-side .auth-kicker { color: #b8d9ef; }
.auth-side h2 { margin: 7px 0 9px; color: #fff; font-size: 27px; line-height: 1.2; }
.auth-side > p { color: #d6e8f5; font-size: 14px; }
.auth-qr { min-height: 220px; display: grid; place-items: center; margin: 24px 0 17px; padding: 15px; border-radius: 10px; background: #fff; color: var(--muted); font-size: 12px; }
.auth-qr canvas + span:empty { display: none; }
.auth-telegram { width: 100%; min-height: 45px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: #fff; color: var(--blue-900); font-weight: 900; text-decoration: none; }
.auth-telegram:hover { background: var(--blue-100); color: var(--blue-900); }
.auth-note { margin-top: 18px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: rgba(255,255,255,.08); color: #dcebf7; font-size: 12px; }
.auth-note--light { margin: 0; border-color: var(--line); background: var(--blue-050); color: var(--muted); }
.auth-side--benefits ul { margin: 28px 0 0; padding: 0; list-style: none; }
.auth-side--benefits li { position: relative; padding: 0 0 23px 35px; }
.auth-side--benefits li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.15); font-size: 12px; font-weight: 900; }
.auth-side--benefits strong, .auth-side--benefits span { display: block; }
.auth-side--benefits strong { color: #fff; font-size: 15px; }
.auth-side--benefits span { margin-top: 3px; color: #d5e7f4; font-size: 13px; }

/* Standalone content pages */
.site-page .single-demo__header { border-bottom: 1px solid var(--line); }
.site-page .single-demo__content { min-height: 280px; }
.site-page .single-demo__content > :first-child { margin-top: 0; }

/* Author profile */
.profile-hero { overflow: hidden; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.profile-hero__cover { height: 145px; background: linear-gradient(110deg,rgba(13,59,102,.95),rgba(23,105,170,.75)),url('/images/wall.png') center/cover; }
.profile-hero__body { position: relative; display: flex; align-items: flex-end; gap: 22px; padding: 0 30px 25px; }
.profile-hero__avatar { width: 130px; height: 130px; flex: 0 0 130px; margin-top: -55px; border: 6px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 7px 22px rgba(13,59,102,.18); }
.profile-hero__identity { flex: 1; padding-top: 20px; }
.profile-hero__identity h1 { margin: 4px 0 4px; color: var(--ink); font-size: 32px; line-height: 1.15; }
.profile-hero__identity p { max-width: 610px; margin: 0; color: var(--muted); font-size: 14px; }
.profile-action, .profile-action--light { flex: 0 0 auto; min-height: 43px; padding: 0 17px; border-radius: 7px; text-decoration: none; }
.profile-action--light { display: inline-flex; align-items: center; background: var(--blue-100); color: var(--blue-900) !important; font-weight: 700; }
.profile-stats { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); }
.profile-stats > div { padding: 17px; border-right: 1px solid var(--line); text-align: center; }
.profile-stats > div:last-child { border-right: 0; }
.profile-stats strong, .profile-stats span { display: block; }
.profile-stats strong { color: var(--blue-900); font-size: 18px; }
.profile-stats span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.profile-details { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 30px; }
.profile-details > div { padding: 17px 19px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.profile-details span, .profile-details strong { display: block; }
.profile-details span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.profile-details strong { margin-top: 4px; color: var(--ink); font-size: 14px; }
.profile-posts-title { margin-top: 5px; }
.author-widget { text-align: center; }
.author-widget__avatar { width: 104px; height: 104px; margin: 0 auto 12px; border: 5px solid var(--blue-100); border-radius: 50%; object-fit: cover; }
.author-widget h2 { margin: 0; color: var(--blue-900); font-size: 21px; }
.author-widget > p { margin: 4px 0 13px; color: var(--muted); font-size: 12px; }
.author-widget__rating { margin: 10px 0; }
.author-widget__button { width: 100%; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 7px; background: var(--blue-700); color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none; }
.author-menu li a { display: flex; align-items: center; justify-content: space-between; }
.author-menu li b { color: var(--blue-700); }
.authors-grid { display: grid; gap: 17px; }
.author-list-card { display: flex; gap: 18px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 7px 24px rgba(13,59,102,.055); }
.author-list-card img { width: 86px; height: 86px; flex: 0 0 86px; border-radius: 50%; object-fit: cover; }
.author-list-card span { color: var(--blue-700); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.author-list-card h2 { margin: 3px 0; font-size: 21px; }
.author-list-card h2 a { color: var(--ink); text-decoration: none; }
.author-list-card p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }

/* Profile editor */
.profile-edit-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 4px 0 24px; }
.profile-edit-heading h1 { margin: 6px 0 5px; color: var(--ink); font-size: clamp(30px,4vw,42px); line-height: 1.1; }
.profile-edit-heading p { margin: 0; color: var(--muted); }
.profile-edit-back { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--blue-800); font-size: 13px; font-weight: 700; text-decoration: none; }
.profile-edit-errors { margin-bottom: 20px; padding: 15px 18px; border: 1px solid #efb5b0; border-radius: 9px; background: #fff4f3; color: #8f2018; }
.profile-edit-errors ul { margin: 7px 0 0; }
.profile-edit-layout { display: grid; grid-template-columns: 255px minmax(0,1fr); gap: 24px; align-items: start; }
.profile-edit-aside { position: sticky; top: 18px; display: grid; gap: 16px; }
.profile-edit-preview, .profile-edit-nav, .profile-edit-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(13,59,102,.06); }
.profile-edit-preview { overflow: hidden; padding: 0 20px 22px; text-align: center; }
.profile-edit-preview__cover { height: 78px; margin: 0 -20px; background: linear-gradient(125deg,var(--blue-900),var(--blue-600)); }
.profile-edit-preview img { width: 92px; height: 92px; margin-top: -46px; border: 5px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 16px rgba(13,59,102,.18); }
.profile-edit-preview h2 { margin: 9px 0 2px; color: var(--ink); font-size: 20px; }
.profile-edit-preview p { overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; text-overflow: ellipsis; }
.profile-edit-nav { overflow: hidden; padding: 8px; }
.profile-edit-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 0 12px; border-radius: 7px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.profile-edit-nav a:hover { background: var(--blue-100); color: var(--blue-900); }
.profile-edit-nav span { color: var(--blue-600); }
.profile-edit-content { display: grid; gap: 20px; }
.profile-edit-card { padding: 28px 30px; scroll-margin-top: 20px; }
.profile-edit-card__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.profile-edit-card__head > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-100); color: var(--blue-800); font-size: 12px; font-weight: 900; }
.profile-edit-card__head h2 { margin: 0 0 3px; color: var(--ink); font-size: 21px; }
.profile-edit-card__head p { margin: 0; color: var(--muted); font-size: 13px; }
.profile-edit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-edit-field--wide { grid-column: 1 / -1; }
.auth-field select, .auth-field textarea { width: 100%; padding: 10px 14px; border: 1px solid #cbd9e5; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; outline: none; }
.auth-field select { min-height: 44px; }
.auth-field textarea { resize: vertical; }
.auth-field select:focus, .auth-field textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,132,199,.13); }
.auth-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.profile-avatar-upload { display: flex; gap: 17px; align-items: center; padding: 14px; border: 1px dashed #b9cad8; border-radius: 9px; background: var(--blue-050); }
.profile-avatar-upload img { width: 70px; height: 70px; flex: 0 0 70px; border-radius: 50%; object-fit: cover; }
.profile-avatar-upload > div { min-width: 0; flex: 1; }
.profile-avatar-upload input { min-height: auto; padding: 8px; background: #fff; }
.profile-connections { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-connections > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; }
.profile-connections strong { color: var(--ink); font-size: 14px; }
.profile-connections span { padding: 5px 8px; border-radius: 999px; background: #f0f3f6; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.profile-connections span.is-connected { background: #e8f7ee; color: #17653a; }
.profile-edit-submit { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.profile-edit-submit a { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.profile-edit-submit .auth-submit { width: auto; min-width: 205px; padding-inline: 24px; }
@media (max-width: 760px) {
    .site-title, .site-title a { font-size: 20px; }
    .laravel-footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .laravel-tags, .laravel-rating { padding-inline: 21px; }
    .auth-shell--wide { grid-template-columns: 1fr; }
    .auth-card, .auth-side { padding: 30px 23px; }
    .auth-form-grid { grid-template-columns: 1fr; }
    .profile-hero__cover { height: 105px; }
    .profile-hero__body { display: block; padding: 0 20px 21px; text-align: center; }
    .profile-hero__avatar { width: 105px; height: 105px; margin-top: -52px; }
    .profile-hero__identity { padding-top: 8px; }
    .profile-action, .profile-action--light { width: 100%; justify-content: center; margin-top: 15px; }
    .profile-stats { grid-template-columns: repeat(2,1fr); }
    .profile-stats > div:nth-child(2) { border-right: 0; }
    .profile-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .profile-details { grid-template-columns: 1fr; }
    .author-list-card { align-items: flex-start; }
    .mobile-account-menu { display: block; border-top: 1px solid rgba(255,255,255,.16); }
    .mobile-account-menu + .mobile-account-menu { border-top: 0; }
    .mobile-account-menu--logout form { margin: 0; }
    .mobile-account-menu--logout button { width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: #fff; font: inherit; font-weight: 700; text-align: left; }
    .mobile-account-menu--logout button:hover { background: var(--blue-800); }
    .profile-edit-heading { display: block; }
    .profile-edit-back { display: inline-flex; margin-top: 15px; }
    .profile-edit-layout { grid-template-columns: 1fr; }
    .profile-edit-aside { position: static; }
    .profile-edit-nav { display: none; }
    .profile-edit-card { padding: 22px 19px; }
    .profile-edit-fields, .profile-connections { grid-template-columns: 1fr; }
    .profile-edit-field--wide { grid-column: auto; }
    .profile-avatar-upload { align-items: flex-start; }
    .profile-edit-submit { display: grid; gap: 12px; text-align: center; }
    .profile-edit-submit .auth-submit { width: 100%; }
}
