/* AgbaPlug Official Theme: front-end styles (mobile-first). Colours and fonts come from CSS variables set in Theme Manager. */

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/plus-jakarta-sans-latin.woff") format("woff");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
	margin: 0;
	background: var(--ap-bg);
	color: var(--ap-text);
	font-family: var(--ap-font-body);
	font-size: var(--ap-base, 16px);
	line-height: var(--ap-lh, 1.6);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--ap-font-heading); font-weight: var(--ap-heading-weight, 700); line-height: 1.2; margin: 0 0 .5em; color: inherit; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--ap-primary); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: var(--ap-primary-dark); }
:focus-visible { outline: 3px solid var(--ap-accent); outline-offset: 2px; border-radius: 4px; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus, .ap-skip-link:focus { background: #fff; clip: auto; clip-path: none; color: var(--ap-primary); display: block; font-weight: 700; height: auto; left: 8px; padding: 12px 18px; top: 8px; width: auto; z-index: 100000; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
[hidden] { display: none !important; }

.ap-container { width: 100%; max-width: var(--ap-container, 1200px); margin-inline: auto; padding-inline: 1rem; }
.ap-container--narrow { max-width: 860px; }
.ap-container--wide { max-width: calc(var(--ap-container, 1200px) + 80px); }
.ap-section { padding-block: 3rem; }
.ap-main { min-height: 40vh; }
.ap-muted { color: var(--ap-muted); }
.ap-hl { color: var(--ap-accent); }
.ap-bg--light .ap-hl, .ap-bg--default .ap-hl { color: var(--ap-primary); }
.ap-eyebrow { color: var(--ap-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .5rem; }

/* ---------- Icons ---------- */
.ap-icon { --ap-icon-size: 1.25em; display: inline-flex; width: var(--ap-icon-size); height: var(--ap-icon-size); flex: none; align-items: center; justify-content: center; vertical-align: middle; }
.ap-icon__svg, .ap-icon__img { width: 100%; height: 100%; display: block; object-fit: contain; }
.ap-icon--recolor svg [fill]:not([fill="none"]) { fill: currentColor; }
.ap-icon--recolor svg [stroke]:not([stroke="none"]) { stroke: currentColor; }

/* ---------- Buttons ---------- */
.ap-btn, .wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: var(--ap-btn-pad); min-height: 44px;
	border-radius: var(--ap-btn-radius); border: 2px solid transparent;
	font-weight: var(--ap-btn-weight); text-transform: var(--ap-btn-transform);
	text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.ap-btn--primary, .wp-block-button__link { background: var(--ap-primary); color: #fff; box-shadow: var(--ap-btn-shadow); }
.ap-btn--primary:hover, .wp-block-button__link:hover { background: var(--ap-primary-dark); color: #fff; transform: translateY(-1px); }
.ap-btn--outline, .is-style-outline .wp-block-button__link { background: transparent; color: var(--ap-primary); border-color: var(--ap-primary); box-shadow: none; }
.ap-btn--outline:hover, .is-style-outline .wp-block-button__link:hover { background: var(--ap-primary-soft); color: var(--ap-primary-dark); }
.ap-btn--white { background: #fff; color: var(--ap-primary); }
.ap-btn--white:hover { background: var(--ap-primary-soft); color: var(--ap-primary-dark); }
.ap-btn--white-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.ap-btn--white-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.ap-btn[disabled], .ap-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.ap-btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.ap-btn-row--center { justify-content: center; }
.ap-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; border-radius: 12px; cursor: pointer; position: relative; text-decoration: none; }
.ap-icon-btn:hover { background: rgba(var(--ap-primary-rgb), .08); }
.ap-link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; }
.ap-link-arrow .ap-icon { transition: transform .15s; }
.ap-link-arrow:hover .ap-icon { transform: translateX(3px); }

/* ---------- Cards, notices, forms, tables ---------- */
.ap-card { background: #fff; border: 1px solid var(--ap-border); border-radius: 16px; box-shadow: 0 1px 2px rgba(16,43,114,.04), 0 8px 24px rgba(16,43,114,.04); }
.ap-card--pad { padding: 1.25rem; }
.ap-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.ap-card__title { font-size: 1.1rem; margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; }
.ap-card__head .ap-card__title { margin: 0; }
.ap-card__title .ap-icon { color: var(--ap-primary); }

.ap-notice { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 12px; margin: 0 0 1rem; background: var(--ap-primary-soft); color: var(--ap-secondary); border: 1px solid rgba(var(--ap-primary-rgb), .2); }
.ap-notice p { margin: 0; }
.ap-notice__icon { margin-top: .15rem; color: var(--ap-primary); }
.ap-notice--success { background: var(--ap-success-soft); border-color: rgba(18,161,80,.3); color: #0a5a2c; }
.ap-notice--success .ap-notice__icon { color: var(--ap-success); }
.ap-notice--warning { background: var(--ap-warning-soft); border-color: rgba(247,144,9,.35); color: #7a4300; }
.ap-notice--warning .ap-notice__icon { color: var(--ap-warning); }
.ap-notice--danger { background: var(--ap-danger-soft); border-color: rgba(217,45,32,.3); color: #7a1109; }

.ap-form { padding: 1.25rem; margin-bottom: 1.25rem; }
.ap-form__fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.ap-form__fields[disabled] { opacity: .65; }
.ap-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
.ap-grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.ap-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.ap-field label { font-weight: 600; font-size: .92rem; }
.ap-req { color: var(--ap-danger); }
.ap-help { color: var(--ap-muted); font-size: .82rem; }
.ap-input, .ap-auth input[type="text"], .ap-auth input[type="password"], .login-username input, .login-password input, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; min-height: 46px; padding: .65rem .9rem; border: 1px solid #cfd7e6; border-radius: 12px; background: #fff; color: var(--ap-text); font: inherit;
}
textarea.ap-input, .comment-form textarea { min-height: 120px; }
.ap-input:focus, .login-username input:focus, .login-password input:focus { border-color: var(--ap-primary); outline: 3px solid rgba(var(--ap-primary-rgb), .18); outline-offset: 0; }
.ap-input[readonly] { background: var(--ap-surface); }
.ap-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.ap-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1rem; padding: .9rem 1rem; background: var(--ap-surface); border-radius: 12px; margin-top: 1rem; }
.ap-summary strong { font-size: 1.35rem; color: var(--ap-primary); }
.ap-copy { display: flex; gap: .5rem; flex-wrap: wrap; }
.ap-copy .ap-input { flex: 1 1 220px; }

.ap-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; max-width: 100%; }
.ap-table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: .92rem; }
.ap-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ap-muted); padding: .65rem .75rem; border-bottom: 1px solid var(--ap-border); white-space: nowrap; }
.ap-table td { padding: .8rem .75rem; border-bottom: 1px solid var(--ap-border); vertical-align: middle; }
.ap-table tr:last-child td { border-bottom: 0; }
.ap-table__empty td { text-align: center; color: var(--ap-muted); padding: 2rem 1rem; }
.ap-badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--ap-surface); color: var(--ap-secondary); }
.ap-badge--successful, .ap-badge--success, .ap-badge--active, .ap-badge--completed { background: var(--ap-success-soft); color: #0a5a2c; }
.ap-badge--pending, .ap-badge--processing { background: var(--ap-warning-soft); color: #7a4300; }
.ap-badge--failed, .ap-badge--expired, .ap-badge--cancelled { background: var(--ap-danger-soft); color: #7a1109; }
.ap-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font-size: .85rem; font-weight: 600; }
.ap-pill--success { background: #d8f5e3; color: #0a5a2c; }

/* ---------- Grids ---------- */
.ap-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
.ap-grid--1 { grid-template-columns: 1fr; }
.ap-split { display: grid; gap: 2rem; align-items: center; }
.ap-split__img { border-radius: 16px; width: 100%; }

/* ---------- Top bar and header ---------- */
.ap-topbar { background: var(--ap-secondary); color: #fff; font-size: .85rem; }
.ap-topbar--hide-mobile { display: none; }
.ap-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.ap-topbar__text { margin: 0; }
.ap-topbar__links { display: flex; align-items: center; gap: 1rem; }
.ap-topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.ap-topbar a:hover { text-decoration: underline; color: #fff; }

.ap-header { background: var(--ap-header-bg); border-bottom: 1px solid var(--ap-border); z-index: 50; }
.ap-has-sticky-header .ap-header { position: sticky; top: 0; }
.admin-bar.ap-has-sticky-header .ap-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.ap-has-sticky-header .ap-header { top: 46px; } }
.ap-header--dark { color: #fff; border-color: rgba(255,255,255,.12); }
.ap-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.ap-logo { display: inline-flex; align-items: center; text-decoration: none; color: inherit; flex: none; }
.ap-logo__img { height: var(--ap-logo-h-m); width: auto; max-width: 220px; display: block; }
.ap-logo__text { font-weight: 800; font-size: 1.4rem; font-family: var(--ap-font-heading); }
.ap-nav { display: none; }
.ap-header__actions { display: flex; align-items: center; gap: .5rem; }
.ap-header__login, .ap-header__cta { display: none; }
.ap-search-panel { padding: .75rem 0; background: var(--ap-surface); border-bottom: 1px solid var(--ap-border); }
.ap-search { display: flex; gap: .5rem; }
.ap-search .ap-input { flex: 1; }

.ap-drawer { position: fixed; inset: 0; z-index: 100000; }
.ap-drawer__backdrop { position: absolute; inset: 0; background: rgba(8,20,60,.55); }
.ap-drawer__panel { position: absolute; top: 0; bottom: 0; width: min(86vw, 340px); background: #fff; color: var(--ap-text); display: flex; flex-direction: column; padding: 1rem; overflow-y: auto; box-shadow: 0 0 40px rgba(0,0,0,.25); animation: ap-slide-r .22s ease-out; }
.ap-drawer--drawer-right .ap-drawer__panel { right: 0; }
.ap-drawer--drawer-left .ap-drawer__panel { left: 0; animation-name: ap-slide-l; }
.ap-drawer--fullscreen .ap-drawer__panel { width: 100%; animation-name: ap-fade; }
@keyframes ap-slide-r { from { transform: translateX(100%); } to { transform: none; } }
@keyframes ap-slide-l { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes ap-fade { from { opacity: 0; } to { opacity: 1; } }
.ap-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.ap-drawer__list, .ap-drawer__sub { list-style: none; margin: 0; padding: 0; }
.ap-drawer__list > li > a { display: block; padding: .85rem .5rem; font-weight: 600; color: var(--ap-text); text-decoration: none; border-bottom: 1px solid var(--ap-border); }
.ap-drawer__list a[aria-current="page"] { color: var(--ap-primary); }
.ap-drawer__sub a { display: block; padding: .6rem 1rem; color: var(--ap-muted); text-decoration: none; }
.ap-drawer__actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
body.ap-lock { overflow: hidden; }

/* ---------- Hero ---------- */
.ap-bg--dark { background: linear-gradient(140deg, var(--ap-secondary-dark), var(--ap-secondary) 60%, var(--ap-primary)); color: #fff; }
.ap-bg--blue { background: linear-gradient(135deg, var(--ap-primary-dark), var(--ap-primary)); color: #fff; }
.ap-bg--light { background: var(--ap-surface); }
.ap-bg--image { background-size: cover; background-position: center; color: #fff; position: relative; }
.ap-bg--image::before { content: ""; position: absolute; inset: 0; background: rgba(8,20,60,.6); }
.ap-bg--image > * { position: relative; }
.ap-section--hero { padding-block: 2.5rem 3rem; overflow: hidden; }
.ap-hero { display: grid; gap: 2rem; align-items: center; }
.ap-hero__title { font-size: clamp(2rem, 7vw, 3.4rem); margin-bottom: .6rem; }
.ap-hero__text { font-size: 1.1rem; opacity: .92; max-width: 34em; }
.ap-hero__checks { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 1.5rem 0 0; font-weight: 600; }
.ap-hero__checks li { display: inline-flex; align-items: center; gap: .4rem; }
.ap-hero__checks .ap-icon { color: var(--ap-accent); }
.ap-hero__visual { display: flex; justify-content: center; }
.ap-hero__img { border-radius: 20px; max-height: 460px; width: auto; }
.ap-orbit { position: relative; width: min(100%, 360px); aspect-ratio: 1; display: grid; place-items: center; }
.ap-orbit::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.35); }
.ap-orbit::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(31,182,255,.35), transparent 70%); }
.ap-orbit__logo { position: relative; z-index: 1; width: 52%; height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.ap-orbit__chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; background: #fff; color: var(--ap-secondary); padding: .5rem .8rem; border-radius: 999px; font-size: .85rem; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.ap-orbit__chip .ap-icon { color: var(--ap-primary); }
.ap-orbit__chip--a { top: 8%; left: 6%; }
.ap-orbit__chip--b { top: 40%; right: -2%; }
.ap-orbit__chip--c { bottom: 8%; left: 14%; }

/* ---------- Sections ---------- */
.ap-section__head { max-width: 46rem; margin: 0 auto 2rem; }
.ap-section__head--center { text-align: center; }
.ap-section__head--left { margin-left: 0; text-align: left; }
.ap-section__title { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
.ap-section__desc { color: var(--ap-muted); font-size: 1.05rem; }
.ap-bg--dark .ap-section__desc, .ap-bg--blue .ap-section__desc, .ap-bg--image .ap-section__desc { color: rgba(255,255,255,.85); }
.ap-bg--dark .ap-eyebrow, .ap-bg--blue .ap-eyebrow, .ap-bg--image .ap-eyebrow { color: var(--ap-accent); }
.ap-section--services { padding-block: 1.5rem 3rem; margin-top: -1.25rem; position: relative; }

.ap-service-card, .ap-tile, .ap-session { --tile: var(--ap-primary); background: var(--tile); background: linear-gradient(155deg, var(--tile), color-mix(in srgb, var(--tile) 62%, #000)); color: #fff; }
.ap-service-card { border-radius: 20px; padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; box-shadow: 0 16px 36px rgba(16,43,114,.18); }
.ap-service-card__icon { --ap-icon-size: 56px; background: rgba(255,255,255,.16); border-radius: 16px; padding: 12px; margin-bottom: .5rem; }
.ap-service-card__title { font-size: 1.5rem; margin: 0; }
.ap-service-card__text { margin: 0; opacity: .92; flex: 1; }
.ap-service-card__btn { display: inline-flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding: .75rem 1rem; background: rgba(255,255,255,.16); color: #fff; border-radius: var(--ap-btn-radius); text-decoration: none; font-weight: 600; }
.ap-service-card__btn:hover { background: #fff; color: var(--tile); }

.ap-feature, .ap-api-card, .ap-step, .ap-stat-card { background: #fff; border: 1px solid var(--ap-border); border-radius: 16px; padding: 1.25rem; }
.ap-feature__icon, .ap-step__icon, .ap-stat-card__icon { --ap-icon-size: 48px; background: var(--ap-primary-soft); color: var(--ap-primary); border-radius: 14px; padding: 11px; margin-bottom: .75rem; }
.ap-feature__title, .ap-step__title { font-size: 1.1rem; }
.ap-feature p, .ap-step p { margin: 0; color: var(--ap-muted); }
.ap-bg--light .ap-feature, .ap-bg--light .ap-step, .ap-bg--light .ap-stat-card { border-color: transparent; }
.ap-pop-list { list-style: none; padding: 0; }
.ap-pop { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--ap-border); border-radius: 14px; text-decoration: none; color: var(--ap-text); font-weight: 600; height: 100%; transition: border-color .15s, transform .15s; }
a.ap-pop:hover { border-color: var(--ap-primary); transform: translateY(-2px); color: var(--ap-text); }
.ap-pop__icon { color: var(--ap-primary); background: var(--ap-primary-soft); border-radius: 10px; padding: 7px; --ap-icon-size: 36px; }
.ap-pop__chev { margin-left: auto; color: var(--ap-muted); }
.ap-steps { list-style: none; padding: 0; counter-reset: step; }
.ap-step { position: relative; }
.ap-step__num { position: absolute; top: 1rem; right: 1rem; font-weight: 800; color: var(--ap-primary-soft); font-size: 2.2rem; line-height: 1; filter: saturate(0) brightness(.9); }
.ap-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.ap-checklist__item { display: flex; gap: 1rem; padding: 1rem; background: #fff; border-radius: 14px; border: 1px solid var(--ap-border); }
.ap-checklist__item p { margin: 0; color: var(--ap-muted); }
.ap-checklist__icon { color: var(--ap-primary); --ap-icon-size: 32px; }
.ap-api-card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.ap-api-card__icon { --ap-icon-size: 44px; color: var(--ap-accent); margin-bottom: .75rem; }
.ap-api-card p { margin: 0; opacity: .85; }
.ap-stat-card { text-align: center; }
.ap-stat-card__icon { margin-inline: auto; }
.ap-stat-card__value { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--ap-primary); }
.ap-stat-card__label { color: var(--ap-muted); font-weight: 600; }

.ap-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.5rem; border-radius: 20px; background: linear-gradient(120deg, var(--ap-primary-dark), var(--ap-primary)); color: #fff; }
.ap-banner__art { display: inline-flex; background: rgba(255,255,255,.14); border-radius: 18px; padding: 14px; }
.ap-banner__art img { width: 72px; height: auto; }
.ap-banner__copy { flex: 1 1 260px; }
.ap-banner__title { font-size: 1.4rem; margin-bottom: .25rem; }
.ap-banner__copy p { margin: 0; opacity: .92; }
.ap-faq { display: grid; gap: .75rem; }
.ap-faq__item { background: #fff; border: 1px solid var(--ap-border); border-radius: 14px; overflow: hidden; }
.ap-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; }
.ap-faq__item summary::-webkit-details-marker { display: none; }
.ap-faq__item summary .ap-icon { transition: transform .2s; color: var(--ap-primary); flex: none; }
.ap-faq__item[open] summary .ap-icon { transform: rotate(180deg); }
.ap-faq__item p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--ap-muted); }
.ap-cta { text-align: center; padding-block: 1rem; }
.ap-cta__title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.ap-cta__text { max-width: 40rem; margin-inline: auto; opacity: .9; }

/* ---------- Footer ---------- */
.ap-footer { background: var(--ap-secondary); color: rgba(255,255,255,.85); margin-top: 0; }
.ap-footer--blue { background: var(--ap-primary); }
.ap-footer--light { background: var(--ap-surface); color: var(--ap-text); }
.ap-footer--landing { background: var(--ap-surface); color: var(--ap-muted); }
.ap-footer a { color: inherit; text-decoration: none; }
.ap-footer a:hover { text-decoration: underline; color: #fff; }
.ap-footer--light a:hover, .ap-footer--landing a:hover { color: var(--ap-primary); }
.ap-footer__grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; grid-template-columns: 1fr 1fr; }
.ap-footer__brand { grid-column: 1 / -1; }
.ap-footer__about { margin: 1rem 0 .5rem; max-width: 26rem; }
.ap-footer__slogan { font-weight: 700; color: var(--ap-accent); }
.ap-footer--light .ap-footer__slogan { color: var(--ap-primary); }
.ap-footer__title { font-size: 1rem; margin-bottom: .9rem; color: #fff; }
.ap-footer--light .ap-footer__title { color: var(--ap-text); }
.ap-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ap-footer__bottom { border-top: 1px solid rgba(255,255,255,.14); }
.ap-footer--light .ap-footer__bottom { border-color: var(--ap-border); }
.ap-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.1rem; font-size: .88rem; }
.ap-footer__bottom p { margin: 0; }
.ap-social { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.ap-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); color: inherit; }
.ap-social a:hover { background: var(--ap-primary); color: #fff; text-decoration: none; }
.ap-social--small { margin: 0; }
.ap-social--small a { width: 28px; height: 28px; background: transparent; }
.ap-social--small .ap-icon { --ap-icon-size: 16px; }
.ap-footer--light .ap-social a { background: #fff; }

/* ---------- Bottom navigation (mobile) ---------- */
.ap-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; background: #fff; border-top: 1px solid var(--ap-border); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(16,43,114,.08); }
.ap-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .25rem; font-size: .72rem; font-weight: 600; color: var(--ap-muted); text-decoration: none; min-width: 0; }
.ap-bottom-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-bottom-nav a[aria-current="page"] { color: var(--ap-primary); box-shadow: inset 0 3px 0 var(--ap-primary); }
.ap-has-bottom-nav { padding-bottom: 64px; }

/* ---------- Page header, articles, blog ---------- */
.ap-page-header--banner { background: linear-gradient(135deg, var(--ap-secondary-dark), var(--ap-secondary)); color: #fff; padding: 2.5rem 0; }
.ap-page-header--plain { padding: 2rem 0 0; }
.ap-page-header__title { margin: 0; font-size: clamp(1.7rem, 5vw, 2.6rem); }
.ap-page-header__sub { margin: .5rem 0 0; opacity: .85; }
.ap-article__title { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.ap-article__media { margin-bottom: 1.5rem; }
.ap-article__media img { border-radius: 16px; width: 100%; }
.ap-prose { font-size: 1.05rem; }
.ap-prose > * + * { margin-top: 1.1em; }
.ap-prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.ap-prose h3 { margin-top: 1.5em; font-size: 1.25rem; }
.ap-prose img { border-radius: 12px; }
.ap-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.ap-prose th, .ap-prose td { border: 1px solid var(--ap-border); padding: .6rem .8rem; text-align: left; }
.ap-prose blockquote { border-left: 4px solid var(--ap-primary); margin-left: 0; padding: .25rem 1rem; color: var(--ap-muted); }
.ap-prose pre { overflow-x: auto; background: var(--ap-surface); padding: 1rem; border-radius: 12px; }
.ap-prose .wp-block-columns { gap: 1rem; margin-bottom: 1rem; }
.ap-prose .wp-block-columns .ap-card { height: 100%; }
.ap-prose .ap-card--pad > :last-child { margin-bottom: 0; }
.ap-prose .ap-card h3 { margin-top: 0; font-size: 1.15rem; }
.ap-prose .wp-block-details { background: #fff; border: 1px solid var(--ap-border); border-radius: 14px; padding: 1rem 1.25rem; margin: .75rem 0; }
.ap-prose .wp-block-details summary { font-weight: 600; cursor: pointer; }
.ap-prose .wp-block-details p { margin: .75rem 0 0; color: var(--ap-muted); }
.ap-block-intro, .ap-block-cta { background: linear-gradient(135deg, var(--ap-secondary), var(--ap-primary)); color: #fff; border-radius: 20px; padding: 2rem 1.5rem; }
.ap-block-cta { text-align: center; }
.ap-block-intro h2, .ap-block-cta h2 { margin-top: 0; }
.ap-block-intro .wp-block-button__link, .ap-block-cta .wp-block-button__link { background: #fff; color: var(--ap-primary); }
.ap-block-intro .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.ap-tags { color: var(--ap-muted); }
.ap-meta { color: var(--ap-muted); font-size: .85rem; margin-bottom: .5rem; }
.ap-posts { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.ap-post-card { background: #fff; border: 1px solid var(--ap-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.ap-post-card__media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.ap-post-card__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.ap-post-card__title { font-size: 1.2rem; }
.ap-post-card__title a { color: inherit; text-decoration: none; }
.ap-post-card__title a:hover { color: var(--ap-primary); }
.ap-post-card__excerpt { color: var(--ap-muted); flex: 1; }
.ap-posts--list { grid-template-columns: 1fr; }
.ap-with-sidebar { display: grid; gap: 2rem; }
.ap-widget { margin-bottom: 2rem; }
.ap-widget__title { font-size: 1.1rem; }
.pagination, .post-navigation, .comments-pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; }
.pagination .nav-links { justify-content: center; }
.page-numbers { padding: .5rem .9rem; border-radius: 10px; border: 1px solid var(--ap-border); text-decoration: none; background: #fff; }
.page-numbers.current { background: var(--ap-primary); color: #fff; border-color: var(--ap-primary); }
.ap-nav-label { display: block; font-size: .8rem; color: var(--ap-muted); }
.ap-comments { margin-top: 3rem; }
.ap-comments__list { list-style: none; padding: 0; }
.ap-comments__list .comment-body { padding: 1rem; border: 1px solid var(--ap-border); border-radius: 12px; margin-bottom: .75rem; }
.ap-404 { text-align: center; }
.ap-404__code { font-size: clamp(4rem, 16vw, 8rem); font-weight: 800; line-height: 1; color: var(--ap-primary-soft); filter: saturate(.8) brightness(.9); margin: 0; }
.ap-404 .ap-btn-row { justify-content: center; margin-bottom: 2rem; }
.ap-404 .ap-search { max-width: 420px; margin: 0 auto; }

/* ---------- Login / Register ---------- */
.ap-auth { background: var(--ap-surface); }
.ap-auth__wrap { display: grid; min-height: 70vh; }
.ap-auth__side { display: none; position: relative; background: #061742; color: #fff; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 2rem; }
.ap-auth__side img { width: min(100%, 420px); border-radius: 20px; }
.ap-auth__side p { font-weight: 700; font-size: 1.1rem; margin-top: 1.5rem; }
.ap-auth__panel { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.ap-auth__card { width: 100%; max-width: 440px; padding: 1.75rem; }
.ap-auth__title { font-size: 1.7rem; }
.ap-auth__links { text-align: center; margin: 1.25rem 0 0; color: var(--ap-muted); font-size: .92rem; }
.ap-auth form p { margin-bottom: 1rem; }
.ap-auth label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: .3rem; }
.login-remember label { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; }
.login-submit input[type="submit"] { width: 100%; padding: var(--ap-btn-pad); border-radius: var(--ap-btn-radius); border: 0; background: var(--ap-primary); color: #fff; font-weight: var(--ap-btn-weight); cursor: pointer; min-height: 48px; box-shadow: var(--ap-btn-shadow); }
.login-submit input[type="submit"]:hover { background: var(--ap-primary-dark); }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
	.ap-container { padding-inline: 1.5rem; }
	.ap-grid--2, .ap-grid--3, .ap-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.ap-grid-2 { grid-template-columns: repeat(2, 1fr); }
	.ap-field--wide { grid-column: 1 / -1; }
	.ap-posts--grid { grid-template-columns: repeat(2, 1fr); }
	.ap-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.ap-logo__img { height: var(--ap-logo-h); }
	.ap-header__login { display: inline-flex; }
	.ap-header__cta { display: inline-flex; }
	.ap-topbar--hide-mobile { display: block; }
}
@media (min-width: 900px) {
	.ap-section { padding-block: 4.5rem; }
	.ap-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.ap-grid--4 { grid-template-columns: repeat(4, 1fr); }
	.ap-grid--2 { grid-template-columns: repeat(2, 1fr); }
	.ap-hero { grid-template-columns: 1.1fr .9fr; }
	.ap-section--hero { padding-block: 4rem 5rem; }
	.ap-split { grid-template-columns: 1fr 1fr; gap: 3rem; }
	.ap-posts--grid { grid-template-columns: repeat(3, 1fr); }
	.ap-with-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
	.ap-footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); }
	.ap-footer__brand { grid-column: auto; }
	.ap-auth__wrap { grid-template-columns: 1fr 1fr; }
	.ap-auth__side { display: flex; }
	.ap-block-intro, .ap-block-cta { padding: 3rem; }
	.ap-banner { padding: 1.75rem 2.25rem; }
}
@media (min-width: 1024px) {
	.ap-nav { display: block; flex: 1; }
	.ap-menu-btn { display: none; }
	.ap-header--nav-center .ap-nav__list { justify-content: center; }
	.ap-header--nav-right .ap-nav__list { justify-content: flex-end; }
	.ap-nav__list { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
	.ap-nav__item { position: relative; display: flex; align-items: center; }
	.ap-nav__link { padding: .75rem .85rem; color: inherit; text-decoration: none; font-weight: var(--ap-nav-weight, 500); border-radius: 10px; }
	.ap-nav__link:hover, .ap-nav__item.is-current > .ap-nav__link { color: var(--ap-primary); background: rgba(var(--ap-primary-rgb), .07); }
	.ap-header--dark .ap-nav__link:hover { color: #fff; background: rgba(255,255,255,.12); }
	.ap-nav__toggle { background: none; border: 0; color: inherit; padding: .25rem; margin-left: -.5rem; cursor: pointer; display: inline-flex; }
	.ap-nav__sub { list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--ap-border); border-radius: 14px; box-shadow: 0 18px 40px rgba(16,43,114,.14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 5; }
	.ap-nav__item:hover > .ap-nav__sub, .ap-nav__item.is-open > .ap-nav__sub, .ap-nav__item:focus-within > .ap-nav__sub { opacity: 1; visibility: visible; transform: none; }
	.ap-nav__sub a { display: block; padding: .6rem .8rem; border-radius: 8px; color: var(--ap-text); text-decoration: none; }
	.ap-nav__sub a:hover { background: var(--ap-primary-soft); color: var(--ap-primary); }
	.ap-bottom-nav--public { display: none; }
	body.ap-has-bottom-nav:not(.ap-dashboard-page) { padding-bottom: 0; }
}
@media (min-width: 1024px) and (max-width: 1100px) { .ap-header__login { display: none; } }
@media print { .ap-header, .ap-topbar, .ap-footer, .ap-bottom-nav, .ap-drawer { display: none !important; } }
