:root {
    --pk-navy-950: #071226;
    --pk-navy-900: #0b1730;
    --pk-navy-800: #142652;
    --pk-navy-700: #203d78;
    --pk-blue: #2166f3;
    --pk-cyan: #20d9d2;
    --pk-gold: #f6bd3b;
    --pk-gold-dark: #d79513;
    --pk-ink: #15213c;
    --pk-muted: #66728a;
    --pk-surface: #f4f7fc;
    --pk-border: #e4eaf4;
    --pk-white: #fff;
    --pk-danger: #d6455d;
    --pk-success: #1f9d76;
    --pk-shadow: 0 18px 45px rgba(13, 30, 66, .09);
    --pk-radius: 18px;
    --pk-font-sans: "Segoe UI", Arial, Helvetica, sans-serif;
}

html { scroll-behavior: smooth; }
body { color: var(--pk-ink); font-family: var(--pk-font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { text-decoration: none; }
.brand-lockup { align-items: center; display: inline-flex; font-size: 1.2rem; font-weight: 500; gap: .65rem; letter-spacing: -.02em; }
.brand-lockup strong { color: var(--pk-gold); font-family: var(--pk-font-sans); font-weight: 700; }
.brand-mark { align-items: center; background: linear-gradient(145deg, var(--pk-gold), #ffe49a); border: 2px solid rgba(255,255,255,.25); border-radius: 12px; box-shadow: 0 6px 18px rgba(246,189,59,.25); color: var(--pk-navy-950); display: inline-flex; font-family: var(--pk-font-sans); font-size: .8rem; font-weight: 800; height: 38px; justify-content: center; width: 38px; }
.brand-logo-img { border-radius: 10px; flex: 0 0 auto; height: 38px; object-fit: contain; width: 38px; }
.eyebrow { color: var(--pk-blue); display: inline-block; font-size: .73rem; font-weight: 800; letter-spacing: .15em; margin-bottom: .8rem; }
.btn { border-radius: 11px; font-weight: 650; }
.btn-brand { background: linear-gradient(135deg, var(--pk-gold), #ffd66e); border: 1px solid var(--pk-gold); box-shadow: 0 8px 20px rgba(215,149,19,.2); color: var(--pk-navy-950); }
.btn-brand:hover, .btn-brand:focus { background: #ffca4d; border-color: #ffca4d; color: var(--pk-navy-950); transform: translateY(-1px); }
.btn-outline-brand { border-color: var(--pk-blue); color: var(--pk-blue); }
.btn-outline-brand:hover { background: var(--pk-blue); color: white; }
.link-brand, .auth-switch a { color: var(--pk-blue); font-weight: 650; }
.form-label { color: #35415b; font-size: .86rem; font-weight: 650; }
.form-control, .form-select { border-color: #dbe3ef; border-radius: 10px; min-height: 44px; }
.form-control:focus, .form-select:focus { border-color: var(--pk-blue); box-shadow: 0 0 0 .22rem rgba(33,102,243,.11); }
.alert { border: 0; border-radius: 13px; }
.status-badge { border-radius: 99px; display: inline-flex; font-size: .73rem; font-weight: 750; gap: .35rem; padding: .35rem .7rem; text-transform: capitalize; }
.status-active, .status-verified, .status-success { background: #e3f7ef; color: #157658; }
.status-pending, .status-inactive { background: #fff4d6; color: #97650b; }
.status-suspended, .status-blocked, .status-failed, .status-urgent { background: #fde8ec; color: #ac2942; }
.status-replied { background: #e5efff; color: #235ec2; }
.empty-state { color: var(--pk-muted); padding: 3.5rem 1.5rem; text-align: center; }
.empty-state i { color: #a8b5cd; display: block; font-size: 2.6rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--pk-ink); font-size: 1.1rem; }

/* Public pages */
.guest-body { background: var(--pk-navy-950); color: white; }
.guest-nav { background: rgba(7,18,38,.88); border-bottom: 1px solid rgba(255,255,255,.08); min-height: 76px; position: sticky; top: 0; backdrop-filter: blur(18px); z-index: 100; }
.guest-nav .navbar-brand, .guest-nav .nav-link { color: white; }
.guest-nav .nav-link { color: rgba(255,255,255,.72); font-size: .92rem; }
.guest-nav .nav-link:hover { color: var(--pk-gold); }
.guest-nav .navbar-toggler { border-color: rgba(255,255,255,.3); filter: invert(1); }
.hero-section { background: radial-gradient(circle at 78% 44%, rgba(33,102,243,.25), transparent 28%), radial-gradient(circle at 66% 35%, rgba(32,217,210,.09), transparent 20%), linear-gradient(145deg, #071226, #0b1730 48%, #101f43); overflow: hidden; padding: 7.5rem 0 7rem; position: relative; }
.hero-section::before { background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px); background-size: 42px 42px; content: ""; inset: 0; mask-image: linear-gradient(to bottom, transparent, black, transparent); position: absolute; }
.hero-section .container { position: relative; z-index: 1; }
.hero-section .eyebrow { color: var(--pk-cyan); }
.hero-section h1 { font-family: var(--pk-font-sans); font-size: clamp(3rem, 6vw, 5.7rem); font-weight: 750; letter-spacing: -.05em; line-height: .98; margin-bottom: 1.6rem; }
.hero-section h1 span { background: linear-gradient(90deg, #f6bd3b, #fff2bd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { color: rgba(255,255,255,.72); font-size: 1.13rem; line-height: 1.75; max-width: 650px; }
.btn-ghost-light { border: 1px solid rgba(255,255,255,.25); color: white; }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: white; }
.hero-trust { color: rgba(255,255,255,.57); display: flex; flex-wrap: wrap; font-size: .81rem; gap: 1.25rem; margin-top: 2.3rem; }
.hero-trust i { color: var(--pk-cyan); margin-right: .3rem; }
.guest-nav .dropdown-menu { background: #101f3f; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: .55rem; }
.guest-nav .dropdown-item { border-radius: 9px; font-size: .84rem; padding: .6rem .8rem; }
.tool-section { background: white; color: var(--pk-ink); padding: 6.5rem 0; }
.section-heading > p { color: var(--pk-muted); line-height: 1.7; margin: .8rem auto 0; max-width: 760px; }
.tool-category-card { background: #f8faff; border: 1px solid var(--pk-border); border-radius: 20px; height: 100%; padding: 1.5rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tool-category-card:hover { border-color: #c4d5f6; box-shadow: 0 15px 35px rgba(16,35,75,.08); transform: translateY(-3px); }
.tool-category-card.available { background: linear-gradient(145deg, #f7faff, #eef5ff); border-color: #bad0fa; }
.tool-card-head { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 1.15rem; }
.tool-icon { align-items: center; background: #e8f0ff; border-radius: 13px; color: var(--pk-blue); display: flex; font-size: 1.25rem; height: 46px; justify-content: center; width: 46px; }
.tool-icon.purple { background: #f1ebff; color: #7352d6; }
.tool-icon.red { background: #fdecef; color: #c3445b; }
.tool-icon.teal { background: #ddf8f5; color: #14877f; }
.tool-icon.gold { background: #fff3d4; color: #ad720a; }
.tool-icon.green { background: #e4f6e9; color: #2d8a4d; }
.tool-icon.dark { background: #e8ebf1; color: #263653; }
.tool-icon.blue { background: #e4f4ff; color: #2376a8; }
.tool-state { background: #edf0f5; border-radius: 99px; color: #778399; font-size: .62rem; font-weight: 800; letter-spacing: .04em; padding: .35rem .55rem; text-transform: uppercase; }
.tool-state.live { background: #ddf6e7; color: #287b46; }
.tool-category-card h3 { font-size: 1.08rem; font-weight: 780; }
.tool-category-card > p { color: var(--pk-muted); font-size: .82rem; line-height: 1.65; min-height: 4.1rem; }
.tool-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tool-tags span { background: white; border: 1px solid var(--pk-border); border-radius: 99px; color: #68758c; font-size: .65rem; padding: .3rem .55rem; }
.tools-directory-hero, .tool-detail-hero { background: linear-gradient(145deg, #071226, #102655); padding: 5rem 0 4rem; }
.tools-directory-hero h1, .tool-detail-hero h1 { font-family: var(--pk-font-sans); font-size: clamp(2.4rem, 5vw, 4.3rem); letter-spacing: -.04em; }
.tools-directory-hero p, .tool-detail-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; line-height: 1.7; max-width: 760px; }
.tool-search { display: flex; gap: .65rem; margin-top: 1.6rem; max-width: 650px; }
.tool-search .form-control { background: rgba(255,255,255,.96); }
.tool-directory, .tool-use-section { background: #f5f8fd; color: var(--pk-ink); min-height: 55vh; padding: 4rem 0 6rem; }
.tool-category-nav { margin-bottom: 2rem; position: relative; z-index: 20; }
.category-primary-row { align-items: stretch; display: flex; gap: .65rem; min-width: 0; }
.category-primary-scroll { display: flex; flex: 1 1 auto; gap: .55rem; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; padding: .15rem .1rem .4rem; scrollbar-width: none; }
.category-primary-scroll::-webkit-scrollbar { display: none; }
.category-chip, .category-more-button { align-items: center; background: white; border: 1px solid var(--pk-border); border-radius: 99px; color: #56637a; display: inline-flex; flex: 0 0 auto; font-size: .76rem; font-weight: 750; gap: .42rem; justify-content: center; min-height: 44px; padding: .65rem .82rem; transition: background-color .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease; }
.category-chip:hover, .category-more-button:hover { border-color: #a9bce0; box-shadow: 0 5px 14px rgba(16,35,75,.07); color: var(--pk-blue); }
.category-chip.active, .category-more-button.active, .category-more-button[aria-expanded="true"] { background: var(--pk-blue); border-color: var(--pk-blue); color: white; }
.category-chip small { align-items: center; background: rgba(128,145,175,.14); border-radius: 99px; display: inline-flex; font-size: .63rem; height: 20px; justify-content: center; min-width: 20px; padding: 0 .3rem; }
.category-chip.active small { background: rgba(255,255,255,.18); }
.category-more-button { cursor: pointer; flex: 0 0 auto; }
.category-more-chevron { font-size: .65rem; transition: transform .18s ease; }
.category-more-button[aria-expanded="true"] .category-more-chevron { transform: rotate(180deg); }
.category-chip:focus-visible, .category-more-button:focus-visible, .category-mega-item:focus-visible, .category-search input:focus-visible { box-shadow: 0 0 0 3px rgba(33,102,243,.24); outline: 2px solid transparent; }
.category-mega-menu { background: white; border: 1px solid var(--pk-border); border-radius: 20px; box-shadow: 0 24px 60px rgba(16,35,75,.16); left: 0; max-height: min(70vh,720px); overflow: auto; padding: 1.25rem; position: absolute; right: 0; top: calc(100% + .65rem); }
.category-menu-head { align-items: center; border-bottom: 1px solid var(--pk-border); display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1rem; padding: 0 .15rem 1rem; }
.category-menu-head > div { display: flex; flex-direction: column; }
.category-menu-head strong { color: var(--pk-ink); font-size: .95rem; }
.category-menu-head span { color: var(--pk-muted); font-size: .72rem; }
.category-search { align-items: center; background: #f6f8fc; border: 1px solid var(--pk-border); border-radius: 99px; color: var(--pk-muted); display: flex; min-width: min(300px,40vw); padding: 0 .8rem; }
.category-search input { background: transparent; border: 0; color: var(--pk-ink); font-size: .78rem; height: 40px; min-width: 0; outline: 0; width: 100%; }
.category-search i { font-size: .8rem; margin-right: .4rem; }
.category-group-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit,minmax(215px,1fr)); }
.category-menu-group { background: #f8faff; border: 1px solid #e8edf6; border-radius: 14px; min-width: 0; padding: .8rem; }
.category-menu-group h2 { align-items: center; color: #33415a; display: flex; font-size: .72rem; font-weight: 850; gap: .45rem; letter-spacing: .05em; margin: 0 0 .5rem; padding: .2rem .35rem .55rem; text-transform: uppercase; }
.category-menu-group h2 i { color: var(--pk-blue); }
.category-menu-items { display: grid; gap: .25rem; }
.category-mega-item { align-items: center; border-radius: 10px; color: #56637a; display: grid; font-size: .75rem; font-weight: 680; gap: .5rem; grid-template-columns: 20px minmax(0,1fr) auto; min-height: 40px; padding: .48rem .55rem; transition: background-color .15s ease,color .15s ease; }
.category-mega-item i { color: #7183a2; text-align: center; }
.category-mega-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-mega-item small { align-items: center; background: #e9eef7; border-radius: 99px; color: #71809a; display: inline-flex; font-size: .61rem; height: 20px; justify-content: center; min-width: 20px; padding: 0 .3rem; }
.category-mega-item:hover { background: #eaf1ff; color: var(--pk-blue); }
.category-mega-item.active { background: var(--pk-blue); color: white; }
.category-mega-item.active i, .category-mega-item.active small { color: white; }
.category-mega-item.active small { background: rgba(255,255,255,.18); }
.category-menu-empty { color: var(--pk-muted); padding: 2.5rem 1rem; text-align: center; }
.category-menu-empty i { display: block; font-size: 1.5rem; margin-bottom: .4rem; }
.curated-tool-card { background: white; border: 1px solid var(--pk-border); border-radius: 18px; color: var(--pk-ink); cursor: pointer; display: flex; flex-direction: column; height: 100%; padding: 1.25rem; position: relative; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.curated-tool-card:hover { border-color: rgba(33,102,243,.38); box-shadow: 0 16px 34px rgba(16,35,75,.11); color: var(--pk-ink); transform: translateY(-3px); }
.curated-tool-card:focus-visible { border-color: var(--pk-blue); box-shadow: 0 0 0 .24rem rgba(33,102,243,.15), 0 16px 34px rgba(16,35,75,.1); color: var(--pk-ink); outline: 0; }
.curated-tool-card h3 { font-size: 1.02rem; font-weight: 780; }
.curated-tool-card > p { color: var(--pk-muted); flex: 1; font-size: .79rem; line-height: 1.6; }
.tool-card-footer { align-items: center; display: flex; justify-content: space-between; margin-top: auto; padding-top: .65rem; }
.tool-card-arrow { align-items: center; background: #edf3ff; border-radius: 50%; color: var(--pk-blue); display: inline-flex; height: 32px; justify-content: center; transition: background-color .18s ease, color .18s ease, transform .18s ease; width: 32px; }
.curated-tool-card:hover .tool-card-arrow, .curated-tool-card:focus-visible .tool-card-arrow { background: var(--pk-blue); color: #fff; transform: translate(2px,-2px); }
.coin-pill { align-items: center; background: #fff4d7; border-radius: 99px; color: #93620a; display: inline-flex; font-size: .7rem; font-weight: 800; gap: .3rem; padding: .4rem .65rem; }
.tool-mode { color: var(--pk-muted); font-size: .7rem; font-weight: 700; }
.tool-detail-hero nav a { color: var(--pk-cyan); }
.tool-detail-badge { align-items: center; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.13); border-radius: 99px; color: rgba(255,255,255,.8); display: inline-flex; font-size: .74rem; gap: .4rem; padding: .55rem .75rem; }
.tool-privacy-note { align-items: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); border-radius: 18px; display: flex; gap: .8rem; padding: 1.2rem; }
.tool-privacy-note > i { color: var(--pk-gold); font-size: 1.4rem; }
.tool-privacy-note div { display: flex; flex-direction: column; }
.tool-privacy-note span { color: rgba(255,255,255,.6); font-size: .76rem; margin-top: .25rem; }
.locked-tool { padding: 2rem; text-align: center; }
.locked-tool > i { color: #9cafcc; font-size: 2.4rem; }
.locked-tool h3 { font-size: 1.1rem; margin-top: .8rem; }
.wallet-balance { align-items: center; display: flex; justify-content: space-between; }
.wallet-balance span { color: var(--pk-muted); font-size: .8rem; }
.wallet-balance strong { color: #93620a; font-size: 1.8rem; }
.prompt-copy-output { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; line-height: 1.6; }
.tool-steps { color: var(--pk-muted); font-size: .8rem; line-height: 1.65; margin: 0; padding-left: 1.25rem; }
.tool-guide-section { background: #fff; color: var(--pk-ink); padding: 5.5rem 0 6.5rem; }
.tool-guide-heading { margin-bottom: 2.2rem; max-width: 820px; }
.tool-guide-heading.text-center { margin-left: auto; margin-right: auto; }
.tool-guide-heading h2, .tool-info-panel h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); font-weight: 750; letter-spacing: -.035em; margin-bottom: .8rem; }
.tool-guide-heading p { color: var(--pk-muted); font-size: 1rem; line-height: 1.75; margin: 0; }
.tool-guide-card { background: #f8faff; border: 1px solid var(--pk-border); border-radius: 18px; height: 100%; padding: 1.45rem; }
.tool-guide-card > i { align-items: center; background: #e7efff; border-radius: 12px; color: var(--pk-blue); display: inline-flex; font-size: 1.25rem; height: 44px; justify-content: center; margin-bottom: 1rem; width: 44px; }
.tool-guide-card h3 { font-size: 1rem; font-weight: 750; margin-bottom: .55rem; }
.tool-guide-card p { color: var(--pk-muted); font-size: .83rem; line-height: 1.65; margin: 0; }
.tool-info-panel { background: #f8faff; border: 1px solid var(--pk-border); border-radius: 22px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.tool-check-list { display: grid; gap: 1rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.tool-check-list li { align-items: flex-start; color: #47536a; display: flex; gap: .7rem; line-height: 1.6; }
.tool-check-list i { color: var(--pk-success); flex: 0 0 auto; margin-top: .2rem; }
.tool-how-list { display: grid; gap: .3rem; margin-top: 1.35rem; }
.tool-how-step { display: grid; gap: 1rem; grid-template-columns: 38px 1fr; padding: .8rem 0; }
.tool-how-step > span { align-items: center; background: var(--pk-blue); border-radius: 50%; color: #fff; display: flex; font-size: .78rem; font-weight: 800; height: 34px; justify-content: center; width: 34px; }
.tool-how-step h3 { font-size: .96rem; font-weight: 750; margin: 0 0 .3rem; }
.tool-how-step p { color: var(--pk-muted); font-size: .82rem; line-height: 1.6; margin: 0; }
.tool-faq-wrap { margin: 0 auto; max-width: 920px; padding-top: 1rem; }
.tool-faq { display: grid; gap: .75rem; }
.tool-faq .accordion-item { border: 1px solid var(--pk-border); border-radius: 14px; overflow: hidden; }
.tool-faq .accordion-button { color: var(--pk-ink); font-size: .95rem; font-weight: 700; padding: 1.15rem 1.25rem; }
.tool-faq .accordion-button:not(.collapsed) { background: #edf3ff; box-shadow: none; color: var(--pk-blue); }
.tool-faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(33,102,243,.1); }
.tool-faq .accordion-body { color: var(--pk-muted); font-size: .88rem; line-height: 1.75; padding: 1.15rem 1.25rem; }
.tool-steps li + li { margin-top: .45rem; }
.vault-visual { height: 440px; margin: auto; max-width: 460px; position: relative; }
.vault-ring { align-items: center; background: radial-gradient(circle, #244a97 0 36%, #0c1b3a 37% 53%, #f6bd3b 54% 57%, #102655 58% 66%, #38cbff 67% 69%, transparent 70%); border-radius: 50%; display: flex; height: 360px; justify-content: center; left: 50%; position: absolute; top: 40px; transform: translateX(-50%); width: 360px; }
.vault-core { align-items: center; background: linear-gradient(145deg, #102655, #071226); border: 2px solid rgba(246,189,59,.7); border-radius: 24px; box-shadow: inset 0 0 35px rgba(33,102,243,.5), 0 25px 60px rgba(0,0,0,.45); display: flex; flex-direction: column; height: 150px; justify-content: center; transform: rotate(-4deg); width: 150px; }
.vault-core span { color: var(--pk-gold); font-family: var(--pk-font-sans); font-size: 3rem; font-weight: 800; }
.vault-core small { color: var(--pk-cyan); font-size: .55rem; letter-spacing: .2em; }
.floating-card { align-items: center; backdrop-filter: blur(8px); background: rgba(19,42,88,.9); border: 1px solid rgba(72,193,255,.35); border-radius: 14px; box-shadow: 0 18px 30px rgba(0,0,0,.25); display: flex; gap: .6rem; padding: .8rem 1rem; position: absolute; }
.floating-card i { color: var(--pk-gold); }
.card-one { left: 0; top: 80px; transform: rotate(-7deg); }
.card-two { bottom: 80px; right: 5px; transform: rotate(6deg); }
.card-three { right: 15px; top: 55px; transform: rotate(5deg); }
.feature-section { background: #f5f8fd; color: var(--pk-ink); padding: 7rem 0; }
.section-heading { margin: 0 auto 3rem; max-width: 700px; text-align: center; }
.section-heading h2, .security-panel h2 { font-family: var(--pk-font-sans); font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 750; letter-spacing: -.035em; }
.feature-card { background: white; border: 1px solid var(--pk-border); border-radius: 22px; box-shadow: var(--pk-shadow); height: 100%; padding: 2.25rem; }
.feature-card > i { align-items: center; background: #edf3ff; border-radius: 14px; color: var(--pk-blue); display: flex; font-size: 1.5rem; height: 54px; justify-content: center; margin-bottom: 1.5rem; width: 54px; }
.feature-card h3 { font-size: 1.12rem; font-weight: 750; }
.feature-card p { color: var(--pk-muted); line-height: 1.7; margin: 0; }
.security-section { background: #f5f8fd; color: var(--pk-ink); padding: 0 0 7rem; }
.security-panel { align-items: center; background: linear-gradient(135deg, #0c1c3c, #142e64); border-radius: 28px; color: white; display: flex; justify-content: space-between; overflow: hidden; padding: 3.5rem; position: relative; }
.security-panel > div { max-width: 720px; position: relative; z-index: 1; }
.security-panel p { color: rgba(255,255,255,.7); font-size: 1.02rem; line-height: 1.7; }
.security-panel > i { color: rgba(246,189,59,.23); font-size: 10rem; margin-right: 3rem; }
.guest-footer { background: #050d1d; color: rgba(255,255,255,.5); font-size: .85rem; padding: 1.6rem 0; }
.error-page { align-items: center; display: flex; justify-content: center; min-height: calc(100vh - 160px); padding: 4rem 1rem; text-align: center; }
.error-code { color: var(--pk-gold); font-family: var(--pk-font-sans); font-size: 6rem; font-weight: 800; }

/* Authentication */
.auth-body { background: var(--pk-surface); min-height: 100vh; }
.auth-shell { display: grid; grid-template-columns: minmax(390px, 43%) 1fr; min-height: 100vh; }
.auth-promo { background: radial-gradient(circle at 65% 28%, rgba(33,102,243,.35), transparent 28%), linear-gradient(145deg, #071226, #102b5c); color: white; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 3.2rem clamp(2.5rem, 5vw, 6rem); position: relative; }
.auth-promo::after { border: 70px solid rgba(246,189,59,.11); border-radius: 50%; content: ""; height: 380px; position: absolute; right: -110px; top: 22%; width: 380px; }
.auth-promo-copy { max-width: 560px; position: relative; z-index: 1; }
.auth-promo-copy .eyebrow { color: var(--pk-cyan); }
.auth-promo-copy h1 { font-family: var(--pk-font-sans); font-size: clamp(2.6rem, 4.5vw, 4.8rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.03; }
.auth-promo-copy p { color: rgba(255,255,255,.68); font-size: 1.08rem; line-height: 1.75; }
.auth-trust { color: rgba(255,255,255,.6); font-size: .83rem; position: relative; z-index: 1; }
.auth-trust i { color: var(--pk-gold); margin-right: .4rem; }
.auth-main { align-items: center; display: flex; justify-content: center; overflow-y: auto; padding: 3rem clamp(1.2rem, 5vw, 6rem); }
.auth-card-wrap { max-width: 760px; width: 100%; }
.auth-heading { margin-bottom: 2rem; }
.auth-heading h2 { font-family: var(--pk-font-sans); font-size: 2.2rem; font-weight: 750; letter-spacing: -.025em; }
.auth-heading p { color: var(--pk-muted); }
.input-icon { position: relative; }
.input-icon > i { color: #8693aa; left: 1rem; position: absolute; top: 50%; transform: translateY(-50%); }
.input-icon .form-control { padding-left: 2.8rem; }
.auth-switch { color: var(--pk-muted); margin: 1.8rem 0 0; text-align: center; }

/* User and admin workspace */
.dashboard-body { background: var(--pk-surface); min-height: 100vh; }
.dashboard-shell { display: flex; min-height: 100vh; }
.app-sidebar { background: linear-gradient(180deg, #0a1731, #0d2148); color: white; display: flex; flex: 0 0 268px; flex-direction: column; height: 100vh; position: sticky; top: 0; width: 268px; z-index: 1040; }
.sidebar-brand { border-bottom: 1px solid rgba(255,255,255,.08); padding: 1.25rem 1.35rem; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .75rem .9rem 1.5rem; }
.sidebar-label { color: rgba(255,255,255,.38); font-size: .65rem; font-weight: 800; letter-spacing: .13em; padding: 1.25rem .75rem .45rem; text-transform: uppercase; }
.sidebar-link { align-items: center; border-radius: 10px; color: rgba(255,255,255,.68); display: flex; font-size: .87rem; gap: .75rem; margin: .15rem 0; padding: .68rem .75rem; }
.sidebar-link i { font-size: 1.02rem; width: 20px; }
.sidebar-link:hover, .sidebar-link.active { background: rgba(45,112,250,.18); color: white; }
.sidebar-link.active { box-shadow: inset 3px 0 0 var(--pk-gold); }
.sidebar-link.disabled { cursor: not-allowed; opacity: .55; }
.sidebar-link small { background: rgba(255,255,255,.1); border-radius: 99px; font-size: .55rem; margin-left: auto; padding: .15rem .4rem; text-transform: uppercase; }
.sidebar-user { align-items: center; border-top: 1px solid rgba(255,255,255,.09); display: flex; gap: .75rem; padding: 1rem 1.15rem; }
.sidebar-user img { border: 2px solid rgba(246,189,59,.7); border-radius: 50%; height: 38px; object-fit: cover; width: 38px; }
.sidebar-user div { display: flex; flex-direction: column; min-width: 0; }
.sidebar-user strong { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user span { color: rgba(255,255,255,.43); font-size: .68rem; }
.app-main { flex: 1; min-width: 0; }
.app-topbar { align-items: center; background: rgba(255,255,255,.93); border-bottom: 1px solid var(--pk-border); display: flex; height: 72px; justify-content: space-between; padding: 0 clamp(1rem, 2.5vw, 2.25rem); position: sticky; top: 0; backdrop-filter: blur(14px); z-index: 1020; }
.topbar-title { display: flex; flex-direction: column; line-height: 1.25; }
.topbar-title strong { font-size: 1.05rem; }
.topbar-actions { align-items: center; display: flex; gap: .65rem; }
.coin-balance-link { align-items: center; background: #fff4d7; border-radius: 99px; color: #93620a; display: inline-flex; font-size: .76rem; font-weight: 800; gap: .4rem; padding: .55rem .75rem; }
.coin-balance-link:hover { background: #ffe9af; color: #744b04; }
.icon-button { align-items: center; background: #f0f4fa; border: 0; border-radius: 10px; color: #41506d; display: inline-flex; height: 40px; justify-content: center; min-width: 40px; }
.icon-button:hover { background: #e5edfa; color: var(--pk-blue); }
.notification-dot { align-items: center; background: var(--pk-danger); border: 2px solid white; border-radius: 99px; color: white; display: flex; font-size: .57rem; font-weight: 750; height: 18px; justify-content: center; min-width: 18px; padding: 0 3px; position: absolute; right: -4px; top: -5px; }
.profile-menu { align-items: center; background: transparent; border: 0; color: var(--pk-ink); display: flex; font-size: .83rem; font-weight: 650; gap: .5rem; }
.profile-menu img { border-radius: 50%; height: 38px; object-fit: cover; width: 38px; }
.profile-menu i { color: #8491a8; font-size: .7rem; }
.content-area { margin: 0 auto; max-width: 1600px; padding: clamp(1.2rem, 3vw, 2.25rem); }
.page-heading { align-items: flex-end; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.7rem; }
.page-heading h1 { font-family: var(--pk-font-sans); font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 750; letter-spacing: -.025em; margin: 0; }
.page-heading p { color: var(--pk-muted); margin: .4rem 0 0; }
.surface-card { background: white; border: 1px solid var(--pk-border); border-radius: var(--pk-radius); box-shadow: 0 7px 25px rgba(16,35,75,.045); }
.card-head { align-items: center; border-bottom: 1px solid var(--pk-border); display: flex; justify-content: space-between; padding: 1.15rem 1.35rem; }
.card-head h2, .card-head h3 { font-size: .98rem; font-weight: 750; margin: 0; }
.card-body-pad { padding: 1.35rem; }
.metric-card { background: white; border: 1px solid var(--pk-border); border-radius: 16px; height: 100%; padding: 1.25rem; position: relative; }
.metric-card .metric-icon { align-items: center; background: #edf3ff; border-radius: 12px; color: var(--pk-blue); display: flex; font-size: 1.1rem; height: 42px; justify-content: center; margin-bottom: 1.15rem; width: 42px; }
.metric-card.gold .metric-icon { background: #fff5dc; color: #b97808; }
.metric-card.teal .metric-icon { background: #def8f5; color: #14877f; }
.metric-card.red .metric-icon { background: #fdebef; color: #b3344d; }
.metric-label { color: var(--pk-muted); display: block; font-size: .76rem; font-weight: 600; margin-bottom: .25rem; }
.metric-value { display: block; font-size: 1.62rem; font-weight: 800; letter-spacing: -.03em; }
.metric-note { color: #8995aa; font-size: .67rem; }
.chart-wrap { height: 300px; padding: 1.25rem; position: relative; }
.chart-wrap.small { height: 260px; }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-item { align-items: flex-start; border-bottom: 1px solid #edf0f5; display: flex; gap: .8rem; padding: .9rem 0; }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { align-items: center; background: #eff4ff; border-radius: 9px; color: var(--pk-blue); display: flex; flex: 0 0 34px; height: 34px; justify-content: center; }
.activity-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.activity-copy strong { font-size: .82rem; }
.activity-copy span { color: var(--pk-muted); font-size: .75rem; }
.activity-copy time { color: #9aa5b8; font-size: .66rem; margin-top: .18rem; }
.progress-thin { -webkit-appearance: none; appearance: none; background: #e8edf5; border: 0; border-radius: 99px; display: block; height: 7px; overflow: hidden; width: 100%; }
.progress-thin::-webkit-progress-bar { background: #e8edf5; border-radius: 99px; }
.progress-thin::-webkit-progress-value { background: linear-gradient(90deg, var(--pk-blue), var(--pk-cyan)); border-radius: 99px; }
.progress-thin::-moz-progress-bar { background: linear-gradient(90deg, var(--pk-blue), var(--pk-cyan)); border-radius: 99px; }
.quick-action { align-items: center; border: 1px solid var(--pk-border); border-radius: 13px; color: var(--pk-ink); display: flex; gap: .75rem; padding: .9rem; transition: .15s ease; }
.quick-action:hover { border-color: #b8cdf7; box-shadow: 0 8px 20px rgba(33,102,243,.08); color: var(--pk-blue); transform: translateY(-2px); }
.quick-action i { align-items: center; background: #edf3ff; border-radius: 9px; display: flex; height: 36px; justify-content: center; width: 36px; }
.data-table { font-size: .82rem; margin: 0; }
.data-table thead th { background: #f8faff; border-bottom-color: var(--pk-border); color: #68758c; font-size: .67rem; font-weight: 800; letter-spacing: .05em; padding: .8rem 1rem; text-transform: uppercase; white-space: nowrap; }
.data-table td { border-bottom-color: #edf0f5; padding: .85rem 1rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.avatar-sm { border-radius: 50%; height: 36px; object-fit: cover; width: 36px; }
.profile-hero { align-items: center; background: linear-gradient(135deg, #102651, #17458b); border-radius: var(--pk-radius); color: white; display: flex; gap: 1.2rem; margin-bottom: 1.5rem; overflow: hidden; padding: 1.7rem; position: relative; }
.profile-hero::after { border: 45px solid rgba(246,189,59,.13); border-radius: 50%; content: ""; height: 200px; position: absolute; right: -35px; top: -60px; width: 200px; }
.profile-hero img { border: 4px solid rgba(255,255,255,.8); border-radius: 50%; height: 90px; object-fit: cover; position: relative; width: 90px; z-index: 1; }
.profile-hero h1 { font-family: var(--pk-font-sans); font-size: 1.7rem; margin: 0; }
.profile-hero p { color: rgba(255,255,255,.65); margin: .25rem 0 0; }
.profile-completion { margin-left: auto; min-width: 210px; position: relative; z-index: 1; }
.profile-completion .progress-thin { background: rgba(255,255,255,.18); }
.profile-completion .progress-thin::-webkit-progress-bar { background: rgba(255,255,255,.18); }
.profile-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--pk-muted); font-size: .82rem; font-weight: 700; }
.profile-tabs .nav-link.active { background: transparent; border-bottom-color: var(--pk-blue); color: var(--pk-blue); }
.item-card { background: white; border: 1px solid var(--pk-border); border-radius: 16px; height: 100%; padding: 1.25rem; }
.item-card-head { align-items: flex-start; display: flex; justify-content: space-between; }
.item-card-icon { align-items: center; background: #edf3ff; border-radius: 12px; color: var(--pk-blue); display: flex; font-size: 1.2rem; height: 45px; justify-content: center; width: 45px; }
.item-card h3 { font-size: 1rem; font-weight: 750; margin: 1rem 0 .3rem; }
.item-card p { color: var(--pk-muted); font-size: .8rem; }
.ticket-message { background: #f5f8fc; border-radius: 14px; margin-bottom: 1rem; max-width: 85%; padding: 1rem; }
.ticket-message.staff { background: #eaf2ff; margin-left: auto; }
.ticket-message-head { color: var(--pk-muted); display: flex; font-size: .72rem; justify-content: space-between; margin-bottom: .45rem; }
.danger-zone { border-color: #f4cbd2; }
.danger-zone .card-head { background: #fff8f9; color: #a72f46; }
.system-check { align-items: center; border-bottom: 1px solid var(--pk-border); display: flex; justify-content: space-between; padding: .85rem 0; }
.system-check:last-child { border-bottom: 0; }
.prompt-output { background: #f7f9fd; border: 1px solid var(--pk-border); border-radius: 14px; color: var(--pk-ink); font-family: inherit; font-size: .92rem; line-height: 1.75; margin: 0; max-height: 65vh; overflow: auto; padding: 1.25rem; white-space: pre-wrap; word-break: break-word; }
.prompt-card { display: flex; flex-direction: column; }
.prompt-card > p { flex: 1; }
.prompt-tips { color: var(--pk-muted); font-size: .83rem; line-height: 1.65; margin: 0; padding-left: 1.15rem; }
.prompt-tips li + li { margin-top: .45rem; }

/* Admin */
.admin-sidebar { background: linear-gradient(180deg, #071226, #101f3f); }
.admin-accent { color: var(--pk-gold); }
.filter-bar { background: white; border: 1px solid var(--pk-border); border-radius: 15px; margin-bottom: 1.2rem; padding: 1rem; }
.search-input { min-width: 240px; }
.pagination .page-link { border-color: var(--pk-border); color: var(--pk-blue); }
.pagination .active .page-link { background: var(--pk-blue); border-color: var(--pk-blue); }
.user-intel-header { background: linear-gradient(135deg, #0c1c3c, #17458b); border-radius: 20px; color: white; margin-bottom: 1.5rem; padding: 1.6rem; }
.user-intel-header img { border: 3px solid white; border-radius: 50%; height: 84px; object-fit: cover; width: 84px; }
.admin-note { border-left: 3px solid var(--pk-gold); padding: .8rem 1rem; }
.admin-edit-panel > summary { cursor: pointer; list-style: none; }
.admin-edit-panel > summary::-webkit-details-marker { display: none; }
.admin-edit-panel[open] > summary .bi-chevron-down { transform: rotate(180deg); }
.admin-edit-panel > summary .bi-chevron-down { transition: transform .18s ease; }
.admin-photo-preview { border: 2px solid var(--pk-border); border-radius: 50%; height: 72px; object-fit: cover; width: 72px; }
.brand-logo-preview, .brand-logo-placeholder { border: 1px solid var(--pk-border); border-radius: 16px; height: 110px; object-fit: contain; width: 110px; }
.brand-logo-placeholder { align-items: center; background: #f4f7fc; color: var(--pk-blue); display: flex; font-size: 2rem; justify-content: center; }
.admin-visit-site { align-items: center; display: inline-flex; gap: .4rem; min-height: 40px; }

html[data-admin-theme="dark"] { --pk-ink: #e7edf8; --pk-muted: #9aa8bd; --pk-surface: #0a1220; --pk-border: #26344b; color-scheme: dark; }
html[data-admin-theme="dark"] .dashboard-body, html[data-admin-theme="dark"] .app-main { background: #0a1220; color: var(--pk-ink); }
html[data-admin-theme="dark"] .app-topbar { background: rgba(14,24,41,.94); border-bottom-color: var(--pk-border); }
html[data-admin-theme="dark"] .surface-card, html[data-admin-theme="dark"] .metric-card, html[data-admin-theme="dark"] .filter-bar, html[data-admin-theme="dark"] .item-card, html[data-admin-theme="dark"] .admin-edit-panel, html[data-admin-theme="dark"] .category-chip, html[data-admin-theme="dark"] .category-more-button, html[data-admin-theme="dark"] .category-mega-menu { background: #111c2e; border-color: var(--pk-border); box-shadow: none; color: var(--pk-ink); }
html[data-admin-theme="dark"] .card-head, html[data-admin-theme="dark"] .system-check { border-color: var(--pk-border); }
html[data-admin-theme="dark"] .form-control, html[data-admin-theme="dark"] .form-select, html[data-admin-theme="dark"] .input-group-text { background-color: #0d1727; border-color: #33435d; color: #e7edf8; }
html[data-admin-theme="dark"] .form-control::placeholder { color: #74839a; }
html[data-admin-theme="dark"] .form-label, html[data-admin-theme="dark"] .topbar-title strong, html[data-admin-theme="dark"] .profile-menu { color: #e7edf8; }
html[data-admin-theme="dark"] .text-muted { color: #91a0b6 !important; }
html[data-admin-theme="dark"] .icon-button { background: #1a2940; color: #c1cce0; }
html[data-admin-theme="dark"] .icon-button:hover { background: #243754; color: #8ab4ff; }
html[data-admin-theme="dark"] .dropdown-menu { --bs-dropdown-bg: #111c2e; --bs-dropdown-border-color: #2a3951; --bs-dropdown-link-color: #d8e1f0; --bs-dropdown-link-hover-bg: #1b2b44; --bs-dropdown-link-hover-color: #fff; }
html[data-admin-theme="dark"] .table { --bs-table-bg: #111c2e; --bs-table-color: #d8e1f0; --bs-table-border-color: #293950; --bs-table-striped-bg: #152238; --bs-table-hover-bg: #192840; }
html[data-admin-theme="dark"] .pagination { --bs-pagination-bg: #111c2e; --bs-pagination-border-color: #2a3951; --bs-pagination-color: #8ab4ff; --bs-pagination-hover-bg: #1b2b44; }
html[data-admin-theme="dark"] .category-menu-head, html[data-admin-theme="dark"] .category-menu-group { border-color: #293950; }
html[data-admin-theme="dark"] .category-menu-group, html[data-admin-theme="dark"] .category-search { background: #0d1727; }
html[data-admin-theme="dark"] .category-menu-head strong, html[data-admin-theme="dark"] .category-search input { color: #e7edf8; }
html[data-admin-theme="dark"] .category-mega-item { color: #b8c4d8; }
html[data-admin-theme="dark"] .category-mega-item:hover { background: #1a2c49; color: #8ab4ff; }
html[data-admin-theme="dark"] .category-mega-item small, html[data-admin-theme="dark"] .category-chip small { background: #263650; color: #c4cee0; }
html[data-admin-theme="dark"] .alert-primary { background: #152b4f; color: #c8dcff; }
html[data-admin-theme="dark"] .alert-warning { background: #3a2d12; color: #f7dda0; }
html[data-admin-theme="dark"] .alert-danger { background: #3b1c26; color: #f3b7c3; }

@media (max-width: 991.98px) {
    .hero-section { padding: 5rem 0; }
    .vault-visual { margin-top: 1rem; transform: scale(.88); }
    .auth-shell { display: block; }
    .auth-main { min-height: 100vh; }
    .app-sidebar { position: fixed; }
    .app-main { width: 100%; }
    .security-panel > i { display: none; }
}

@media (max-width: 767.98px) {
    .page-heading { align-items: flex-start; flex-direction: column; }
    .profile-hero { align-items: flex-start; flex-wrap: wrap; }
    .profile-completion { margin-left: 0; min-width: 100%; }
    .chart-wrap { height: 250px; }
    .security-panel { padding: 2rem; }
    .vault-visual { height: 360px; margin-left: -2rem; transform: scale(.72); transform-origin: top center; }
    .content-area { padding: 1rem; }
    .tool-category-nav { margin-left: -.25rem; margin-right: -.25rem; }
    .category-chip, .category-more-button { min-height: 44px; }
    .category-mega-menu { bottom: 12px; left: 12px; max-height: calc(100vh - var(--category-menu-top,130px) - 12px); position: fixed; right: 12px; top: var(--category-menu-top,130px); }
    .category-group-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 575.98px) {
    .hero-section h1 { font-size: 2.75rem; }
    .auth-main { align-items: flex-start; padding: 2rem 1rem; }
    .metric-value { font-size: 1.4rem; }
    .ticket-message { max-width: 100%; }
    .tools-directory-hero, .tool-detail-hero { padding: 3.5rem 0 3rem; }
    .tool-search { align-items: stretch; flex-direction: column; }
    .category-chip { padding-left: .72rem; padding-right: .72rem; }
    .category-chip span { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .category-menu-head { align-items: stretch; flex-direction: column; }
    .category-search { min-width: 0; width: 100%; }
    .category-group-grid { grid-template-columns: 1fr; }
}

@media print {
    .app-sidebar, .app-topbar, .no-print, .btn { display: none !important; }
    .content-area { max-width: none; padding: 0; }
    .surface-card { box-shadow: none; }
}
