@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg: #F1F5F9;
    --fg: #0F172A;
    --card: #ffffff;
    --primary: #4F46E5;
    --primary-h: #4338CA;
    --accent: #06B6D4;
    --muted: #E2E8F0;
    --muted-fg: #64748B;
    --border: rgba(15, 23, 42, .10);
    --navy: #0F172A;
    --navy2: #1E293B;
    --radius: .75rem;
    --radius-sm: .5rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .14);
    --font-head: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: .18s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}

input,
textarea {
    font-family: inherit;
}

ul,
ol {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: .5rem;
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: .625rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.badge-popular {
    background: #ede9fe;
    color: #6d28d9;
}

.badge-new {
    background: #ffe4e6;
    color: #be123c;
}

.badge-hot {
    background: #fee2e2;
    color: #b91c1c;
}

/* ── Gradient fills ── */
.g-violet {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.g-rose {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.g-blue {
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
}

.g-amber {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.g-emerald {
    background: linear-gradient(135deg, #10b981, #0d9488);
}

.g-cyan {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
}

.p-violet {
    background: #ede9fe;
    color: #6d28d9;
}

.p-rose {
    background: #ffe4e6;
    color: #be123c;
}

.p-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.p-amber {
    background: #fef3c7;
    color: #b45309;
}

.p-emerald {
    background: #d1fae5;
    color: #065f46;
}

.p-cyan {
    background: #cffafe;
    color: #0e7490;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .4);
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: -.02em;
}

.logo-text span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: .125rem;
}

.nav-item {
    position: relative;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .45rem .85rem;
    font-size: .875rem;
    font-weight: 500;
    color: #CBD5E1;
    border-radius: .5rem;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-btn:hover,
.nav-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.nav-btn svg {
    transition: transform var(--transition);
}

.nav-btn.open svg {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s;
    z-index: 200;
}

.nav-dropdown.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.mini-dropdown {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 210px;
    padding: .375rem 0;
    overflow: hidden;
}

.mini-dropdown a,
.mini-dropdown button {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    padding: .55rem 1rem;
    font-size: .875rem;
    color: #334155;
    text-align: left;
    transition: background var(--transition), color var(--transition);
}

.mini-dropdown a:hover,
.mini-dropdown button:hover {
    background: #f8fafc;
    color: var(--primary);
}

.mini-dropdown svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.mega-dropdown {
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 700px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 200px;
    overflow: hidden;
}

.mega-dropdown.visible {
    transform: translateX(-50%) translateY(0);
}

.mega-main {
    padding: 1.25rem;
}

.mega-label {
    font-size: .625rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .75rem;
}

.mega-cats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.mega-cat {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem;
    border-radius: .625rem;
    transition: background var(--transition);
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.mega-cat:hover {
    background: #f8fafc;
}

.mega-cat:hover .mega-cat-name {
    color: var(--primary);
}

.cat-icon {
    width: 32px;
    height: 32px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.mega-cat-name {
    font-size: .875rem;
    font-weight: 600;
    color: #1e293b;
    transition: color var(--transition);
    font-family: var(--font-head);
}

.mega-cat-count {
    font-size: .7rem;
    color: #94a3b8;
}

.mega-view-all {
    margin-top: .75rem;
    width: 100%;
    padding: .5rem;
    border: 1px solid rgba(79, 70, 229, .2);
    border-radius: .625rem;
    color: var(--primary);
    font-size: .875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background var(--transition), color var(--transition);
    background: none;
}

.mega-view-all:hover {
    background: var(--primary);
    color: #fff;
}

.mega-side {
    background: #f8fafc;
    border-left: 1px solid #f1f5f9;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.mega-quick-tools {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1;
}

.mega-tool-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .5rem;
    border-radius: .5rem;
    border: none;
    background: none;
    font-size: .75rem;
    font-weight: 500;
    color: #334155;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.mega-tool-btn:hover {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.mega-new-box {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid #e2e8f0;
}

.mega-new-label {
    font-size: .625rem;
    color: #94a3b8;
    margin-bottom: .5rem;
}

.mega-new-card {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: .5rem;
}

.mega-new-card span:first-child {
    font-size: 1.1rem;
}

.mega-new-title {
    font-size: .75rem;
    font-weight: 600;
    color: #3730a3;
}

.header-right {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border-radius: .5rem;
    transition: color var(--transition), background var(--transition);
}

.icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    font-size: .875rem;
    font-weight: 500;
    color: #94a3b8;
    border-radius: .5rem;
    transition: color var(--transition), background var(--transition);
}

.lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.btn-outline {
    padding: .375rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: .5rem;
    transition: background var(--transition);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .07);
}

.btn-primary {
    padding: .375rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border-radius: .5rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .3);
    transition: background var(--transition);
}

.btn-primary:hover {
    background: var(--primary-h);
}

.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: .75rem 0 1rem;
    flex-direction: column;
    gap: .25rem;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a,
.mobile-nav button {
    padding: .5rem .75rem;
    font-size: .875rem;
    color: #94a3b8;
    border-radius: .5rem;
    text-align: left;
    transition: color var(--transition), background var(--transition);
}

.mobile-nav a:hover,
.mobile-nav button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.mobile-nav-auth {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.mobile-nav-auth a {
    flex: 1;
    text-align: center;
}

.header-search {
    padding-bottom: .75rem;
}

.header-search-inner {
    position: relative;
}

.header-search-inner svg {
    position: absolute;
    left: .875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.header-search input {
    width: 100%;
    padding: .5rem .875rem .5rem 2.25rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: .65rem;
    color: #fff;
    font-size: .875rem;
    outline: none;
    transition: border-color var(--transition);
}

.header-search input::placeholder {
    color: #475569;
}

.header-search input:focus {
    border-color: rgba(79, 70, 229, .5);
}

/* ── Hero ── */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #0F172A 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 60%, rgba(79, 70, 229, .4) 0%, transparent 45%), radial-gradient(circle at 85% 15%, rgba(6, 182, 212, .35) 0%, transparent 40%), radial-gradient(circle at 50% 100%, rgba(124, 58, 237, .3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 5rem 1.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .9rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 99px;
    color: #67e8f9;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 6vw, 3.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
    background: linear-gradient(90deg, #a5b4fc, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: #cbd5e1;
    font-size: 1.0625rem;
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-search {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.hero-search svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.hero-search input {
    width: 100%;
    padding: .875rem 8rem .875rem 2.75rem;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius);
    font-size: .875rem;
    color: var(--fg);
    outline: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
}

.hero-search .search-btn {
    position: absolute;
    right: .375rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .5rem 1rem;
    background: var(--primary);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    border-radius: .5rem;
    transition: background var(--transition);
    font-family: var(--font-head);
}

.hero-search .search-btn:hover {
    background: var(--primary-h);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 480px;
    margin: 3rem auto 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
}

.stat-icon {
    color: var(--accent);
    margin-bottom: .25rem;
}

.stat-value {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.stat-label {
    font-size: .75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ── Section ── */
.section {
    padding: 3.5rem 0;
}

.section-bg {
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fg);
}

.section-sub {
    font-size: .875rem;
    color: var(--muted-fg);
    margin-top: .25rem;
}

.view-all {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition);
}

.view-all:hover {
    gap: .6rem;
}

/* ── Category Cards ── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.cat-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    overflow: hidden;
    cursor: pointer;
    width: 100%;
}

.cat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(79, 70, 229, .12);
    border-color: rgba(79, 70, 229, .25);
}

.cat-card:hover .cat-card-name {
    color: var(--primary);
}

.cat-card:hover .cat-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(2px);
}

.cat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.cat-card-body {
    flex: 1;
    min-width: 0;
}

.cat-card-name {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--fg);
    transition: color var(--transition);
}

.cat-card-desc {
    font-size: .75rem;
    color: var(--muted-fg);
    margin-top: .2rem;
    line-height: 1.5;
}

.cat-pill {
    display: inline-block;
    margin-top: .5rem;
    padding: .15rem .6rem;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 99px;
}

.cat-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-fg);
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
}

/* ── Tool Cards ── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tool-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, .10);
    border-color: rgba(79, 70, 229, .25);
}

.tool-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.tool-emoji {
    font-size: 1.5rem;
}

.tool-card-name {
    font-family: var(--font-head);
    font-size: .875rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: .25rem;
    transition: color var(--transition);
}

.tool-card:hover .tool-card-name {
    color: var(--primary);
}

.tool-card-desc {
    font-size: .75rem;
    color: var(--muted-fg);
    line-height: 1.55;
    flex: 1;
}

.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .75rem;
}

.tool-cat-pill {
    font-size: .65rem;
    font-weight: 500;
    padding: .15rem .5rem;
    background: var(--muted);
    border-radius: 99px;
    color: var(--muted-fg);
    text-transform: capitalize;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.tool-list-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: .75rem;
    padding: .875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.tool-list-item:hover {
    border-color: rgba(79, 70, 229, .25);
    box-shadow: var(--shadow-sm);
}

.tool-list-item:hover .tool-card-name {
    color: var(--primary);
}

.tool-list-info {
    flex: 1;
    min-width: 0;
}

.tool-list-row {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ── Sidebar ── */
.sidebar-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1.25rem;
}

.sidebar-header svg {
    color: rgba(255, 255, 255, .75);
}

.sidebar-header span {
    font-family: var(--font-head);
    font-size: .875rem;
    font-weight: 700;
    color: #fff;
}

.sidebar-primary-header {
    background: var(--primary);
}

.sidebar-navy-header {
    background: var(--navy);
}

.sidebar-list {
    border-top: 1px solid var(--border);
}

.sidebar-list li {
    border-bottom: 1px solid var(--border);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .625rem 1.25rem;
    font-size: .875rem;
    color: var(--fg);
    transition: background var(--transition), color var(--transition);
    width: 100%;
    text-align: left;
}

.sidebar-link svg {
    color: var(--primary);
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: #eef2ff;
    color: var(--primary);
}

.recent-post {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition);
    text-align: left;
    width: 100%;
}

.recent-post:last-child {
    border-bottom: none;
}

.recent-post:hover {
    background: #f8fafc;
}

.recent-post:hover .recent-post-title {
    color: var(--primary);
}

.recent-post img {
    width: 44px;
    height: 44px;
    border-radius: .5rem;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--muted);
}

.recent-post-title {
    font-size: .875rem;
    font-weight: 500;
    color: var(--fg);
    line-height: 1.4;
    transition: color var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-date {
    font-size: .75rem;
    color: var(--muted-fg);
    margin-top: .2rem;
}

/* ── Tool page ── */
.tool-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

.tool-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.breadcrumb {
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .625rem 1.5rem;
    font-size: .875rem;
}

.breadcrumb a,
.breadcrumb button {
    color: #64748b;
    transition: color var(--transition);
}

.breadcrumb a:hover,
.breadcrumb button:hover {
    color: var(--accent);
}

.breadcrumb svg {
    color: #334155;
}

.breadcrumb .current {
    color: #fff;
    font-weight: 500;
}

.tool-card-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.tool-card-section label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.tool-input-row {
    display: flex;
    gap: .5rem;
}

.tool-input-wrap {
    position: relative;
    flex: 1;
}

/* ── Paste button inside input ── */
.tool-input-wrap {
    position: relative;
}

.paste-btn {
    position: absolute;
    right: .625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: .375rem;
    transition: color var(--transition), background var(--transition);
}

.paste-btn:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, .08);
}

.paste-btn:active {
    transform: translateY(-50%) scale(.93);
}

.tool-input-wrap > svg:first-of-type {
    position: absolute;
    left: .875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-fg);
    pointer-events: none;
}

.tool-input {
    width: 100%;
    padding: .625rem .875rem .625rem 2.25rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: .65rem;
    font-size: .875rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.tool-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

.tool-submit {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .625rem 1.25rem;
    background: var(--primary);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    border-radius: .65rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .25);
    transition: background var(--transition);
    font-family: var(--font-head);
}

.tool-submit:hover {
    background: var(--primary-h);
}

.tool-result {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: .65rem;
    /* display: none; */
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.tool-result.show {
    display: flex;
}

.tool-result svg {
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 2px;
}

.tool-result-title {
    font-size: .875rem;
    font-weight: 600;
}

.tool-result-date {
    font-size: .75rem;
    color: var(--muted-fg);
    margin-top: .2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

.related-card {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: .65rem;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    cursor: pointer;
    text-align: left;
}

.related-card:hover {
    border-color: rgba(79, 70, 229, .25);
    background: #eef2ff;
    box-shadow: var(--shadow-sm);
}

.related-icon {
    width: 32px;
    height: 32px;
    border-radius: .5rem;
    background: rgba(79, 70, 229, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.related-icon svg {
    color: var(--primary);
}

.related-name {
    font-size: .75rem;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.3;
}

.author-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.author-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
}

.author-role {
    font-size: .7rem;
    font-weight: 600;
    background: rgba(79, 70, 229, .1);
    color: var(--primary);
    padding: .15rem .5rem;
    border-radius: 99px;
    margin-left: .5rem;
}

.author-bio {
    font-size: .875rem;
    color: var(--muted-fg);
    margin-top: .5rem;
    line-height: 1.65;
}

.author-social {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
}

.social-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muted);
    color: var(--muted-fg);
    border-radius: .4rem;
    transition: background var(--transition), color var(--transition);
}

.social-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ── All Tools ── */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-tags {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .375rem .875rem;
    border: 1px solid var(--border);
    border-radius: .65rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--muted-fg);
    background: var(--card);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-tag:hover {
    border-color: rgba(79, 70, 229, .3);
    color: var(--primary);
}

.filter-tag.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, .25);
}

.view-toggle {
    display: flex;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: .65rem;
    padding: .25rem;
    gap: .25rem;
    flex-shrink: 0;
}

.view-btn {
    padding: .375rem;
    border-radius: .4rem;
    color: var(--muted-fg);
    transition: all var(--transition);
    line-height: 0;
}

.view-btn.active {
    background: var(--primary);
    color: #fff;
}

.results-count {
    font-size: .875rem;
    color: var(--muted-fg);
    margin-bottom: 1rem;
}

.results-count strong {
    color: var(--fg);
    font-weight: 600;
}

/* ── Blog ── */
.featured-post {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 420px;
    margin-bottom: 2.5rem;
    cursor: pointer;
    transition: box-shadow var(--transition);
}

.featured-post:hover {
    box-shadow: 0 8px 32px rgba(79, 70, 229, .12);
}

.featured-post:hover .featured-post-title {
    color: var(--primary);
}

.featured-post>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--muted);
}

.featured-post-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-post-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
}

.post-cat-pill {
    font-size: .75rem;
    font-weight: 700;
    padding: .2rem .65rem;
    background: rgba(79, 70, 229, .1);
    color: var(--primary);
    border-radius: 99px;
}

.read-time {
    font-size: .75rem;
    color: var(--muted-fg);
}

.featured-post-title {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--fg);
    line-height: 1.4;
    margin-bottom: .75rem;
    transition: color var(--transition);
}

.featured-post-excerpt {
    font-size: .875rem;
    color: var(--muted-fg);
    line-height: 1.7;
}

.featured-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.author-mini img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--muted);
}

.author-mini-name {
    font-size: .75rem;
    font-weight: 600;
}

.author-mini-date {
    font-size: .65rem;
    color: var(--muted-fg);
}

.read-link {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition);
}

.read-link:hover {
    gap: .7rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, .10);
}

.blog-card:hover .blog-card-title {
    color: var(--primary);
}

.blog-card-img {
    position: relative;
    height: 176px;
    overflow: hidden;
    background: var(--muted);
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-img .cat-overlay {
    position: absolute;
    top: .75rem;
    left: .75rem;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .65rem;
    background: rgba(255, 255, 255, .92);
    color: var(--primary);
    border-radius: 99px;
}

.blog-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-family: var(--font-head);
    font-size: .9375rem;
    font-weight: 700;
    color: var(--fg);
    line-height: 1.4;
    margin-bottom: .5rem;
    transition: color var(--transition);
}

.blog-card-excerpt {
    font-size: .75rem;
    color: var(--muted-fg);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.blog-tag {
    font-size: .65rem;
    font-weight: 500;
    padding: .15rem .5rem;
    background: var(--muted);
    border-radius: 99px;
    color: var(--muted-fg);
}

/* ── Why Us ── */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.why-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .75rem;
    background: rgba(79, 70, 229, .1);
    color: var(--primary);
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.why-title {
    font-family: var(--font-head);
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--fg);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.why-sub {
    color: var(--muted-fg);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: .875rem;
}

.why-feature {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.why-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: .5rem;
    background: rgba(79, 70, 229, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.why-feature-title {
    font-size: .875rem;
    font-weight: 700;
    font-family: var(--font-head);
}

.why-feature-desc {
    font-size: .75rem;
    color: var(--muted-fg);
}

.why-visual {
    background: linear-gradient(135deg, #1E1B4B, #0F172A);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: .375rem;
    margin-bottom: 1rem;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-url {
    font-size: .7rem;
    color: #475569;
    font-family: monospace;
    margin-left: .5rem;
}

.mini-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.mini-cat-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: .75rem;
    padding: .75rem;
}

.mini-cat-icon {
    width: 32px;
    height: 32px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: .5rem;
}

.mini-cat-name {
    font-size: .75rem;
    font-weight: 600;
    color: #fff;
}

.mini-cat-count {
    font-size: .65rem;
    color: #475569;
    margin-top: .1rem;
}

.status-bar {
    margin-top: .75rem;
    padding: .75rem;
    background: rgba(16, 185, 129, .1);
    border: 1px solid rgba(16, 185, 129, .2);
    border-radius: .65rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    color: #6ee7b7;
    font-weight: 500;
}

.status-bar svg {
    color: #34d399;
}

/* ── Auth ── */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 64px);
}

.auth-left {
    position: relative;
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #0F172A 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(79, 70, 229, .35) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(6, 182, 212, .3) 0%, transparent 40%);
    pointer-events: none;
}

.auth-left-content {
    position: relative;
    z-index: 1;
}

.auth-stars {
    display: flex;
    margin-bottom: 1rem;
}

.auth-stars svg {
    color: #facc15;
    fill: #facc15;
}

.auth-quote {
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.65;
}

.auth-quoter {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
}

.auth-quoter img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .2);
}

.auth-quoter-name {
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
}

.auth-quoter-role {
    font-size: .7rem;
    color: #64748b;
}

.auth-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-top: 2rem;
}

.auth-stat {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .75rem;
    padding: .75rem;
    text-align: center;
}

.auth-stat-icon {
    color: var(--accent);
    margin-bottom: .25rem;
}

.auth-stat-val {
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
}

.auth-stat-label {
    font-size: .65rem;
    color: #64748b;
}

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: var(--bg);
}

.auth-form-wrap {
    width: 100%;
    max-width: 420px;
}

.auth-tabs {
    display: flex;
    background: var(--muted);
    border-radius: .75rem;
    padding: .25rem;
    margin-bottom: 2rem;
    gap: .25rem;
}

.auth-tab {
    flex: 1;
    padding: .5rem;
    font-size: .875rem;
    font-weight: 600;
    border-radius: .5rem;
    color: var(--muted-fg);
    transition: all var(--transition);
    text-align: center;
    cursor: pointer;
}

.auth-tab.active {
    background: var(--card);
    color: var(--fg);
    box-shadow: var(--shadow-sm);
}

.auth-heading {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: .25rem;
}

.auth-sub {
    font-size: .875rem;
    color: var(--muted-fg);
    margin-bottom: 1.5rem;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.social-btn-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .625rem;
    border: 1px solid var(--border);
    border-radius: .65rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--fg);
    background: var(--card);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.social-btn-lg:hover {
    border-color: rgba(79, 70, 229, .3);
    box-shadow: var(--shadow-sm);
}

.divider {
    position: relative;
    text-align: center;
    margin-bottom: 1.25rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.divider span {
    position: relative;
    background: var(--bg);
    padding: 0 .75rem;
    font-size: .75rem;
    color: var(--muted-fg);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .375rem;
}

.form-label {
    font-size: .875rem;
    font-weight: 600;
}

.form-forgot {
    font-size: .75rem;
    font-weight: 600;
    color: var(--primary);
}

.form-forgot:hover {
    text-decoration: underline;
}

.input-wrap {
    position: relative;
}

.input-wrap>svg {
    position: absolute;
    left: .875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-fg);
    pointer-events: none;
}

.eye-btn {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-fg);
    cursor: pointer;
    transition: color var(--transition);
    background: none;
    border: none;
    line-height: 0;
    padding: 0;
}

.eye-btn:hover {
    color: var(--fg);
}

.form-input {
    width: 100%;
    padding: .625rem .875rem .625rem 2.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: .65rem;
    font-size: .875rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    color: var(--fg);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

.strength-bar {
    display: flex;
    gap: .25rem;
    margin-top: .5rem;
}

.strength-seg {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: var(--muted);
    transition: background var(--transition);
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    margin-bottom: .25rem;
}

.checkbox-row input {
    margin-top: 2px;
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-row label {
    font-size: .75rem;
    color: var(--muted-fg);
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-row a {
    color: var(--primary);
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    margin-top: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem;
    background: var(--primary);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    border-radius: .65rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .25);
    transition: background var(--transition);
    font-family: var(--font-head);
}

.submit-btn:hover {
    background: var(--primary-h);
}

.auth-switch {
    text-align: center;
    font-size: .75rem;
    color: var(--muted-fg);
    margin-top: 1.5rem;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 700;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ── Blog Post Detail ── */
.post-detail {
    max-width: 740px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.post-meta-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-title {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--fg);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.post-author-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.75rem;
}

.post-author-bar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--muted);
}

.post-author-name {
    font-size: .875rem;
    font-weight: 600;
}

.post-author-role {
    font-size: .7rem;
    color: var(--muted-fg);
}

.post-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-left: auto;
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    color: var(--muted-fg);
    transition: color var(--transition);
    background: none;
    border: none;
    cursor: pointer;
}

.post-action-btn:hover {
    color: var(--primary);
}

.post-hero-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    background: var(--muted);
}

.post-body p {
    font-size: .9375rem;
    color: var(--muted-fg);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.post-body h2 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fg);
    margin: 2rem 0 .75rem;
}

.post-tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.post-tag {
    font-size: .75rem;
    font-weight: 500;
    padding: .25rem .75rem;
    background: var(--muted);
    border-radius: 99px;
    color: var(--muted-fg);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 2rem;
    transition: gap var(--transition);
}

.back-link:hover {
    gap: .7rem;
}

/* ── Footer ── */
.site-footer {
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .06);
    margin-top: auto;
}

.footer-social-bar {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-social-text {
    font-size: .875rem;
    color: #64748b;
}

.footer-socials {
    display: flex;
    gap: .5rem;
}

.footer-social-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    color: #64748b;
    border-radius: .5rem;
    transition: background var(--transition), color var(--transition);
}

.footer-social-btn:hover {
    background: var(--primary);
    color: #fff;
}

.footer-main {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand-desc {
    margin-top: .75rem;
    font-size: .875rem;
    color: #64748b;
    line-height: 1.65;
    max-width: 240px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    color: #475569;
}

.footer-contact-item svg {
    color: #334155;
    flex-shrink: 0;
}

.footer-col-title {
    font-family: var(--font-head);
    font-size: .875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: .625rem;
}

.footer-links a {
    font-size: .875rem;
    color: #64748b;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: .75rem;
    color: #334155;
}

.footer-legal-links {
    display: flex;
    gap: 1rem;
}

.footer-legal-links a {
    font-size: .75rem;
    color: #334155;
    transition: color var(--transition);
}

.footer-legal-links a:hover {
    color: #64748b;
}

.load-more-wrap {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-outline-dark {
    padding: .625rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: .65rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--fg);
    background: var(--card);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}

.btn-outline-dark:hover {
    border-color: rgba(79, 70, 229, .3);
    color: var(--primary);
}

/* ── Responsive ── */
@media(max-width:1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-visual {
        display: none;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-post>img {
        height: 200px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tool-layout {
        grid-template-columns: 1fr;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media(max-width:768px) {

    .main-nav,
    .header-right {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .cat-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-social-bar {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media(max-width:480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        padding: 3rem 1rem;
    }

    .hero-search input {
        padding-right: 6rem;
    }

    .author-card {
        flex-direction: column;
    }

    .social-auth {
        grid-template-columns: 1fr;
    }

    .mega-dropdown {
        width: calc(100vw - 2rem);
        left: 0;
        transform: none !important;
    }

    .tool-card-desc {
        display: none;
    }

    .tool-cat-pill {
        text-align: center;
    }

    .tool-list-item {
        justify-content: space-between;
    }
}

/* ── Logged-In User Menu ── */
.user-menu-wrap {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .35rem .65rem .35rem .35rem;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: .65rem;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .18);
}

.user-avatar-ring {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(79, 70, 229, .6);
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-trigger-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.25;
}

.user-trigger-name {
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-head);
}

.user-trigger-role {
    font-size: .65rem;
    color: #94a3b8;
    font-weight: 500;
}

.user-trigger-chevron {
    color: #64748b;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.user-menu-trigger[aria-expanded="true"] .user-trigger-chevron {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .14);
    opacity: 0;
    inset: 0px auto auto 0px;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s;
    z-index: 300;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .875rem 1rem;
}

.user-dropdown-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.user-dropdown-name {
    font-size: .875rem;
    font-weight: 700;
    color: #1e293b;
    font-family: var(--font-head);
}

.user-dropdown-email {
    font-size: .7rem;
    color: #94a3b8;
    margin-top: .1rem;
}

.user-dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    padding: .6rem 1rem;
    font-size: .875rem;
    color: #334155;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    font-family: var(--font-body);
}

.user-dropdown-item svg {
    color: #94a3b8;
    flex-shrink: 0;
    transition: color var(--transition);
}

.user-dropdown-item:hover {
    background: #f8fafc;
    color: var(--primary);
}

.user-dropdown-item:hover svg {
    color: var(--primary);
}

.user-dropdown-logout {
    color: #ef4444;
}

.user-dropdown-logout svg {
    color: #fca5a5;
}

.user-dropdown-logout:hover {
    background: #fff5f5;
    color: #dc2626;
}

.user-dropdown-logout:hover svg {
    color: #ef4444;
}

/* ── Cookie Banner ── */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    width: 300px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
    padding: 1.5rem;
    text-align: center;
    transition: opacity .3s, transform .3s;
    animation: cookie-slide-in .35s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

.cookie-banner.hidden {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

@keyframes cookie-slide-in {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.cookie-icon {
    font-size: 2.25rem;
    margin-bottom: .875rem;
    display: block;
}

.cookie-text {
    font-size: .875rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.cookie-accept {
    width: 100%;
    padding: .625rem;
    background: #22c55e;
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    border-radius: .65rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-head);
    transition: background var(--transition), transform var(--transition);
    box-shadow: 0 4px 12px rgba(34, 197, 94, .3);
}

.cookie-accept:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.cookie-decline {
    width: 100%;
    padding: .5rem;
    background: none;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: .8rem;
    font-weight: 500;
    border-radius: .65rem;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}

.cookie-decline:hover {
    border-color: #cbd5e1;
    color: #64748b;
}

@media(max-width:580px) {
    .cookie-banner {
        width: 153px;
        padding: .5rem;
    }

    .cookie-icon {
        font-size: 1rem;
        margin-bottom: .275rem;
    }

    .cookie-text {
        font-size: .475rem;
        margin-bottom: .8rem;
    }

    .cookie-accept {
        font-size: .575rem;
    }

}


/* ── Contact / Report / Blog Post extras ── */
.page-hero {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 60%, rgba(79, 70, 229, .35) 0%, transparent 45%), radial-gradient(circle at 85% 20%, rgba(6, 182, 212, .25) 0%, transparent 40%);
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .85rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 600;
    color: #a5b4fc;
    letter-spacing: .04em;
    margin-bottom: .875rem;
}

.page-hero-title {
    font-family: var(--font-head);
    font-size: clamp(1.625rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: .5rem;
}

.page-hero-sub {
    font-size: .9375rem;
    color: #94a3b8;
    max-width: 440px;
}

/* Form card */
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.form-card-title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.form-card-title svg {
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group-full {
    margin-bottom: 1rem;
}

.form-label-req {
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .375rem;
    display: block;
}

.form-label-req span {
    color: #ef4444;
    margin-left: .2rem;
}

.form-ctrl {
    width: 100%;
    padding: .625rem .875rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: .65rem;
    font-size: .875rem;
    font-family: var(--font-body);
    color: var(--fg);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-ctrl:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .13);
    background: #fff;
}

.form-ctrl::placeholder {
    color: #94a3b8;
}

textarea.form-ctrl {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-note {
    font-size: .75rem;
    color: var(--muted-fg);
}

.form-note svg {
    display: inline;
    vertical-align: middle;
    margin-right: .25rem;
    color: var(--primary);
}

.form-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.5rem;
    background: var(--primary);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    border-radius: .65rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .25);
    transition: background var(--transition), transform var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-head);
}

.form-btn:hover {
    background: var(--primary-h);
    transform: translateY(-1px);
}

.form-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.tool-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tspin .7s linear infinite;
    flex-shrink: 0;
}

.tool-spinner-white {
    border-color: rgba(255, 255, 255, .35);
    border-top-color: #fff;
}

.tool-spinner-dark {
    border-color: rgba(15, 23, 42, .2);
    border-top-color: #334155;
}

.tool-spinner-success {
    border-color: rgba(21, 128, 61, .2);
    border-top-color: #15803d;
}

.tool-spinner-warning {
    border-color: rgba(194, 65, 12, .2);
    border-top-color: #c2410c;
}

.tool-spinner-danger {
    border-color: rgba(190, 18, 60, .2);
    border-top-color: #be123c;
}

.tool-spinner-lime {
    border-color: rgba(101, 163, 13, .2);
    border-top-color: #65a30d;
}

@keyframes tspin {
    to {
        transform: rotate(360deg)
    }
}

/* Info cards row (contact page) */
.contact-info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, .2);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .75rem;
    color: #fff;
}

.contact-info-label {
    font-family: var(--font-head);
    font-size: .875rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: .3rem;
}

.contact-info-val {
    font-size: .8125rem;
    color: var(--muted-fg);
    line-height: 1.5;
}

/* Share bar */
.share-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.share-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--muted-fg);
    white-space: nowrap;
}

.share-btns {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .375rem .75rem;
    border-radius: .5rem;
    font-size: .75rem;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
}

.share-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.share-btn-fb {
    background: #1877f2;
}

.share-btn-tw {
    background: #1da1f2;
}

.share-btn-pt {
    background: #e60023;
}

.share-btn-li {
    background: #0a66c2;
}

.share-btn-rd {
    background: #ff4500;
}

/* Report specific */
.report-tip {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: .65rem;
    padding: .875rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    margin-bottom: 1.25rem;
}

.report-tip svg {
    color: #d97706;
    flex-shrink: 0;
    margin-top: 1px;
}

.report-tip-text {
    font-size: .8125rem;
    color: #92400e;
    line-height: 1.6;
}

.char-count {
    font-size: .7rem;
    color: var(--muted-fg);
    text-align: right;
    margin-top: .25rem;
}

/* Blog Post */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

.post-article {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-article-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    background: var(--muted);
}

.post-article-body {
    padding: 2rem;
}

.post-category-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-category-pill {
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .75rem;
    background: rgba(79, 70, 229, .1);
    color: var(--primary);
    border-radius: 99px;
}

.post-read-time {
    font-size: .75rem;
    color: var(--muted-fg);
}

.post-article-title {
    font-family: var(--font-head);
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    font-weight: 800;
    color: var(--fg);
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

.post-author-strip {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.75rem;
}

.post-author-strip img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--muted);
}

.post-author-strip-name {
    font-size: .875rem;
    font-weight: 700;
    color: var(--fg);
}

.post-author-strip-date {
    font-size: .7rem;
    color: var(--muted-fg);
    margin-top: .1rem;
}

.post-author-strip-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-left: auto;
}

.post-action {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    color: var(--muted-fg);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition);
    padding: 0;
}

.post-action:hover {
    color: var(--primary);
}

.post-body {
    font-size: .9375rem;
    color: #475569;
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 1.1rem;
}

.post-body h2 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fg);
    margin: 2rem 0 .75rem;
}

.post-body h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--fg);
    margin: 1.5rem 0 .5rem;
}

.post-body ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.post-body ul li {
    margin-bottom: .4rem;
    list-style: disc;
}

.post-body blockquote {
    border-left: 3px solid var(--primary);
    padding: .75rem 1.25rem;
    background: #eef2ff;
    border-radius: 0 .5rem .5rem 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: #3730a3;
}

.post-tags-row {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.post-tags-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--muted-fg);
}

.post-tag-pill {
    font-size: .75rem;
    padding: .25rem .75rem;
    background: var(--muted);
    border-radius: 99px;
    color: var(--muted-fg);
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
}

.post-tag-pill:hover {
    background: var(--primary);
    color: #fff;
}

/* Responsive */
@media(max-width:1024px) {
    .contact-info-row {
        grid-template-columns: 1fr 1fr;
    }

    .post-layout {
        grid-template-columns: 1fr;
    }
}

@media(max-width:768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-row {
        grid-template-columns: 1fr;
    }

    .form-submit-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media(max-width:480px) {
    .form-card {
        padding: 1rem;
    }
}



/* ── Tool page: alert boxes (error / status) ── */
.tool-alert {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .875rem 1rem;
    border-radius: .65rem;
    margin-bottom: 1rem;
    font-size: .875rem;
    line-height: 1.6;
}

.tool-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.tool-alert-title {
    font-weight: 700;
    margin-bottom: .25rem;
}

.tool-alert ul {
    margin-top: .375rem;
    padding-left: 1.1rem;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.tool-alert ul li {
    font-size: .8125rem;
}

.tool-alert-danger {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.tool-alert-danger svg {
    color: #e11d48;
}

.tool-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #14532d;
}

.tool-alert-success svg {
    color: #16a34a;
}


/* PRogress bar csss */

 @keyframes progress-bar-stripes {
    0% {
        background-position-x: 0.5rem;
    }
}
.progress {
    --tblr-progress-height: 0.5rem;
    --tblr-progress-font-size: 0.65625rem;
    --tblr-progress-bg: var(--tblr-border-color);
    --tblr-progress-border-radius: var(--tblr-border-radius);
    --tblr-progress-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    --tblr-progress-bar-color: #ffffff;
    --tblr-progress-bar-bg: #206bc4;
    --tblr-progress-bar-transition: width 0.6s ease;
    display: flex;
    height: var(--tblr-progress-height);
    overflow: hidden;
    font-size: var(--tblr-progress-font-size);
    background-color: var(--tblr-progress-bg);
    border-radius: var(--tblr-progress-border-radius);
}
.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: var(--tblr-progress-bar-color);
    text-align: center;
    white-space: nowrap;
    /* background-color: var(--tblr-progress-bar-bg); */
    background-color: var(--tblr-progress-bar-bg);
    transition: var(--tblr-progress-bar-transition);
}
@media (prefers-reduced-motion: reduce) {
    .progress-bar {
        transition: none;
    }
}
.progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: var(--tblr-progress-height) var(--tblr-progress-height);
}
.progress-bar-animated {
    animation: 1s linear infinite progress-bar-stripes;
}
@media (prefers-reduced-motion: reduce) {
    .progress-bar-animated {
        animation: none;
    }
}

@keyframes progress-indeterminate {
    0% {
        right: 100%;
        left: -35%;
    }
    100%,
    60% {
        right: -90%;
        left: 100%;
    }
}
                        .progress {
    position: relative;
    width: 100%;
    line-height: 0.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.progress::-webkit-progress-bar {
    background: var(--tblr-progress-bg);
}
.progress::-webkit-progress-value {
    background-color: var(--tblr-primary);
}
.progress::-moz-progress-bar {
    background-color: var(--tblr-primary);
}
.progress::-ms-fill {
    background-color: var(--tblr-primary);
    border: none;
}
.progress-sm {
    height: 0.25rem;
}
.progress-bar {
    height: 100%;
    --tblr-bg-opacity: 1;
}
.progress-bar-indeterminate:after,
.progress-bar-indeterminate:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    content: "";
    background-color: inherit;
    will-change: left, right;
}
.progress-bar-indeterminate:before {
    animation: progress-indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}
.progress-separated .progress-bar {
    box-shadow: 0 0 0 2px var(--tblr-card-bg, var(--tblr-bg-surface));
}
.progressbg {
    position: relative;
    padding: 0.25rem 0.5rem;
    display: flex;
}
.progressbg-text {
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.progressbg-progress {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    height: 100%;
    background: 0 0;
    pointer-events: none;
}
.progressbg-value {
    font-weight: var(--tblr-font-weight-medium);
    margin-left: auto;
    padding-left: 2rem;
}



/* ── About Us Style ── */
.about-lead {
    font-size: 1.125rem;
    color: #334155;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.about-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.about-h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 1rem;
}

.about-card p {
    font-size: .9375rem;
    color: #334155;
    line-height: 1.8;
    margin-bottom: .75rem;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-card .about-card-items-list {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:1rem;
    margin-top:1rem
}

/* Stats row */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-stat {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.about-stat-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4F46E5, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.about-stat-label {
    font-size: .8125rem;
    color: #64748b;
    font-weight: 600;
    margin-top: .375rem;
}

/* Mission / Vision cards */
.about-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-mv-card {
    padding: 1.75rem;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.about-mv-card.mission {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #fff;
}

.about-mv-card.vision {
    background: linear-gradient(135deg, #0c4a6e, #075985);
    color: #fff;
}

.about-mv-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .15);
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.about-mv-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: .625rem;
}

.about-mv-card p {
    font-size: .9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .85);
    margin: 0;
}

/* Values grid */
.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-value {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: border-color .18s, box-shadow .18s;
}

.about-value:hover {
    border-color: rgba(79, 70, 229, .3);
    box-shadow: 0 4px 16px rgba(79, 70, 229, .08);
}

.about-value-icon {
    width: 44px;
    height: 44px;
    background: rgba(79, 70, 229, .1);
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #4F46E5;
}

.about-value-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .9375rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: .375rem;
}

.about-value p {
    font-size: .8125rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* Team */
.about-team {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-team-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: border-color .18s, box-shadow .18s;
}

.about-team-card:hover {
    border-color: rgba(79, 70, 229, .25);
    box-shadow: 0 4px 16px rgba(79, 70, 229, .08);
}

.about-team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #06B6D4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 1rem;
}

.about-team-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .9375rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: .25rem;
}

.about-team-role {
    font-size: .8125rem;
    color: #4F46E5;
    font-weight: 600;
    margin-bottom: .5rem;
}

.about-team-bio {
    font-size: .8125rem;
    color: #64748b;
    line-height: 1.6;
}

/* CTA */
.about-cta {
    background: linear-gradient(135deg, #1e1b4b, #312e81, #0f172a);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(79, 70, 229, .4), transparent 50%), radial-gradient(circle at 80% 50%, rgba(6, 182, 212, .3), transparent 50%);
    pointer-events: none;
}

.about-cta-inner {
    position: relative;
    z-index: 1;
}

.about-cta h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.625rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .75rem;
}

.about-cta p {
    color: #94a3b8;
    font-size: .9375rem;
    margin-bottom: 1.5rem;
}

.about-cta-btns {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.about-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    background: #4F46E5;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: .9375rem;
    border-radius: .75rem;
    box-shadow: 0 4px 16px rgba(79, 70, 229, .4);
    transition: background .18s, transform .18s;
}

.about-cta-btn-primary:hover {
    background: #4338CA;
    transform: translateY(-1px);
}

.about-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: .9375rem;
    border-radius: .75rem;
    border: 1px solid rgba(255, 255, 255, .15);
    transition: background .18s;
}

.about-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, .15);
}

.legal-related {
    margin-top: 1rem;
}

.legal-related-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1rem;
}

.legal-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}

.legal-related-card {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .875rem 1rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .75rem;
    font-size: .875rem;
    font-weight: 600;
    color: #334155;
    transition: border-color .18s, background .18s, color .18s;
}

.legal-related-card svg {
    color: #4F46E5;
    flex-shrink: 0;
}

.legal-related-card:hover {
    border-color: #4F46E5;
    background: #eef2ff;
    color: #4F46E5;
}

@media(max-width:900px) {
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .about-mv-grid {
        grid-template-columns: 1fr;
    }

    .about-values {
        grid-template-columns: 1fr 1fr;
    }

    .about-team {
        grid-template-columns: 1fr 1fr;
    }

    .legal-related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:580px) {
    .about-stats {
        grid-template-columns: repeat(1, 1fr);
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .about-team {
        grid-template-columns: 1fr;
    }

    .legal-related-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 1.5rem;
    }

    .about-card .about-card-items-list {
        grid-template-columns:1fr;
    }
}


/* ── Disclaimer Style ── */
.legal-notice {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: .75rem;
    margin-bottom: 1.5rem;
    font-size: .875rem;
    color: #1e40af;
    line-height: 1.6;
}

.legal-notice.warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.legal-notice.warn svg {
    color: #d97706;
}

.legal-notice svg {
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.legal-divider {
    height: 1px;
    background: rgba(15, 23, 42, .07);
    margin: 2rem 0;
}

.legal-h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1875rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: .875rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.legal-h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: #4F46E5;
    border-radius: 2px;
    flex-shrink: 0;
}

.legal-card p {
    font-size: .9375rem;
    color: #334155;
    line-height: 1.75;
    margin-bottom: .75rem;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: .5rem 0 .75rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.legal-list li {
    font-size: .9375rem;
    color: #334155;
    line-height: 1.7;
    padding-left: 1.25rem;
    position: relative;
}

.legal-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #4F46E5;
    font-weight: 700;
}

.legal-contact-box {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .75rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 1rem;
}

.legal-contact-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9375rem;
    color: #334155;
}

.legal-contact-row svg {
    color: #4F46E5;
    flex-shrink: 0;
}

.disclaimer-category {
    background: linear-gradient(135deg, rgba(79, 70, 229, .06), rgba(6, 182, 212, .04));
    border: 1px solid rgba(79, 70, 229, .12);
    border-radius: .875rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.disclaimer-category-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .9375rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.disclaimer-category-title svg {
    color: #4F46E5;
}

.disclaimer-category p {
    font-size: .875rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

@media(max-width:768px) {
    .legal-related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .legal-card {
        padding: 1.5rem;
    }
}

@media(max-width:480px) {
    .legal-related-grid {
        grid-template-columns: 1fr;
    }
}


/* ── Legal page styles ── */
.legal-section {
    margin-bottom: 0;
}

.legal-h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .9375rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1rem 0 .5rem;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.legal-table th {
    background: #0F172A;
    color: #94a3b8;
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .625rem 1rem;
    text-align: left;
}

.legal-table td {
    padding: .625rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, .07);
    color: #334155;
    vertical-align: top;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:hover td {
    background: #f8fafc;
}
