/**
 * Jetpack related posts
 */

/**
 * The Gutenberg block
 */

.jp-related-posts-i2 {
	margin-top: 1.5rem;
}

.jp-related-posts-i2__list {
	--hgap: 1rem;

	display: flex;
	flex-wrap: wrap;
	column-gap: var(--hgap);
	row-gap: 2rem;

	margin: 0;
	padding: 0;

	list-style-type: none;
}

.jp-related-posts-i2__post {
	display: flex;
	flex-direction: column;

	/* Default: 2 items by row */
	flex-basis: calc(( 100% - var(--hgap) ) / 2);
}

/* Quantity qeuries: see https://alistapart.com/article/quantity-queries-for-css/ */
.jp-related-posts-i2__post:nth-last-child(n+3):first-child,
.jp-related-posts-i2__post:nth-last-child(n+3):first-child ~ * {

	/* From 3 total items on, 3 items by row */
	flex-basis: calc(( 100% - var(--hgap) * 2 ) / 3);
}

.jp-related-posts-i2__post:nth-last-child(4):first-child,
.jp-related-posts-i2__post:nth-last-child(4):first-child ~ * {

	/* Exception for 4 total items: 2 items by row */
	flex-basis: calc(( 100% - var(--hgap) ) / 2);
}

.jp-related-posts-i2__post-link {
	display: flex;
	flex-direction: column;
	row-gap: 0.5rem;

	width: 100%;
	margin-bottom: 1rem;

	line-height: 1.2;
}

.jp-related-posts-i2__post-link:focus-visible {
	outline-offset: 2px;
}

.jp-related-posts-i2__post-img {
	order: -1;

	max-width: 100%;
}

.jp-related-posts-i2__post-defs {
	margin: 0;

	list-style-type: unset;
}

/* Hide, except from screen readers */
.jp-related-posts-i2__post-defs dt {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.jp-related-posts-i2__post-defs dd {
	margin: 0;
}

/* List view */

.jp-relatedposts-i2[data-layout="list"] .jp-related-posts-i2__list {
	display: block;
}

.jp-relatedposts-i2[data-layout="list"] .jp-related-posts-i2__post {
	margin-bottom: 2rem;
}

/* Breakpoints */

@media only screen and (max-width: 640px) {

	.jp-related-posts-i2__list {
		display: block;
	}

	.jp-related-posts-i2__post {
		margin-bottom: 2rem;
	}
}

/* Container */

#jp-relatedposts {
	display: none;
	padding-top: 1em;
	margin: 1em 0;
	position: relative;
	clear: both;
}

.jp-relatedposts::after {
	content: "";
	display: block;
	clear: both;
}

/* Headline above related posts section, labeled "Related" */

#jp-relatedposts h3.jp-relatedposts-headline {
	margin: 0 0 1em 0;
	display: inline-block;
	float: left;
	font-size: 9pt;
	font-weight: 700;
	font-family: inherit;
}

#jp-relatedposts h3.jp-relatedposts-headline em::before {
	content: "";
	display: block;
	width: 100%;
	min-width: 30px;
	border-top: 1px solid rgba(0, 0, 0, 0.2);
	margin-bottom: 1em;
}

#jp-relatedposts h3.jp-relatedposts-headline em {
	font-style: normal;
	font-weight: 700;
}

/* Related posts items (wrapping items) */

#jp-relatedposts .jp-relatedposts-items {
	clear: left;
}

#jp-relatedposts .jp-relatedposts-items-visual {
	margin-right: -20px;
}

/* Related posts item */

#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post {
	float: left;
	width: 33%;
	margin: 0 0 1em; /* Needs to be same as the main outer wrapper for Related Posts */
	box-sizing: border-box;
}

#jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post {
	padding-right: 20px;
	filter: alpha(opacity=80);
	-moz-opacity: 0.8;
	opacity: 0.8;
}

#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post:nth-child(3n+4),
#jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post:nth-child(3n+4) {
	clear: both;
}

#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post:hover .jp-relatedposts-post-title a {
	text-decoration: underline;
}

#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post:hover {
	filter: alpha(opacity=100);
	-moz-opacity: 1;
	opacity: 1;
}

/* Related posts item content */

#jp-relatedposts .jp-relatedposts-items-visual h4.jp-relatedposts-post-title,
#jp-relatedposts .jp-relatedposts-items p,
#jp-relatedposts .jp-relatedposts-items time {
	font-size: 14px;
	line-height: 20px;
	margin: 0;
}

#jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post-nothumbs {
	position: relative;
}

#jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post-nothumbs a.jp-relatedposts-post-aoverlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: block;
	border-bottom: 0;
}

#jp-relatedposts .jp-relatedposts-items p,
#jp-relatedposts .jp-relatedposts-items time {
	margin-bottom: 0;
}

#jp-relatedposts .jp-relatedposts-items-visual h4.jp-relatedposts-post-title {
	text-transform: none;
	margin: 0;
	font-family: inherit;
	display: block;
	max-width: 100%;
}

#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-title a {
	font-size: inherit;
	font-weight: 400;
	text-decoration: none;
	filter: alpha(opacity=100);
	-moz-opacity: 1;
	opacity: 1;
}

#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-title a:hover {
	text-decoration: underline;
}

#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post img.jp-relatedposts-post-img,
#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post span {
	display: block;
	max-width: 90%;
	overflow: hidden;
	text-overflow: ellipsis;
}

#jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post img.jp-relatedposts-post-img,
#jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post span {
	height: auto;
	max-width: 100%;
}

#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-date,
#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-context {
	opacity: 0.6;
}

/* Hide the date by default, but leave the element there if
 * a theme wants to use css to make it visible. */
.jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-date {
	display: none;
}

/* Behavior when there are thumbnails in visual mode */
#jp-relatedposts .jp-relatedposts-items-visual div.jp-relatedposts-post-thumbs p.jp-relatedposts-post-excerpt {
	display: none;
}

/* Behavior when there are no thumbnails in visual mode */
#jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post-nothumbs p.jp-relatedposts-post-excerpt {
	overflow: hidden;
}

#jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post-nothumbs span {
	margin-bottom: 1em;
}

/* List Layout */
#jp-relatedposts .jp-relatedposts-list .jp-relatedposts-post {
	clear: both;
	width: 100%;
}

#jp-relatedposts .jp-relatedposts-list .jp-relatedposts-post img.jp-relatedposts-post-img {
	float: left;
	overflow: hidden;
	max-width: 33%;
	margin-right: 3%;
}

#jp-relatedposts .jp-relatedposts-list h4.jp-relatedposts-post-title {
	display: inline-block;
	max-width: 63%;
}

/*
 * Responsive
 */

@media only screen and (max-width: 640px) {

	#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post {
		width: 50%;
	}

	#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post:nth-child(3n) {
		clear: left;
	}

	#jp-relatedposts .jp-relatedposts-items-visual {
		margin-right: 20px;
	}
}

@media only screen and (max-width: 320px) {

	#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post {
		width: 100%;
		clear: both;
		margin: 0 0 1em;
	}

	#jp-relatedposts .jp-relatedposts-list .jp-relatedposts-post img.jp-relatedposts-post-img,
	#jp-relatedposts .jp-relatedposts-list h4.jp-relatedposts-post-title {
		float: none;
		max-width: 100%;
		margin-right: 0;
	}
}

/*
 * Hide the related post section in the print view of a post
 */

@media print {

	.jp-relatedposts {
		display: none !important;
	}
}
/*
Theme Name: Extendable
Theme URI: https://github.com/extendify/extendable
Author: Extendify
Author URI: https://extendify.com
Description: Extendable is a distinct, dynamic block theme designed as a canvas for your next online venture. Sporting multiple style variations, Extendable is the most expressive block theme yet. Go fresh, bold, bohemian or minimal — with a single click.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 2.0.32
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: extendable
Tags: one-column, custom-colors, custom-menu, custom-logo, e-commerce, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments

Extendable is a derivative work of the code from the
Twenty Twenty-Two WordPress Theme, which is licensed GPLv2.

Extendable WordPress Theme, Copyright (C) 2021-2025 Extendify Inc.
Extendable therefore is also distributed under the terms of the GNU GPL.
*/


/* Fallback for deprecate variables.
---------------------------------------------------------------------------- */
:root {
	--wp--custom--spacing--small: var(--wp--preset--spacing--30, clamp(1.5rem, 5vw, 2rem));
	--wp--custom--spacing--medium: var(--wp--preset--spacing--50, clamp(2.5rem, 8vw, 4rem));
	--wp--custom--spacing--large: var(--wp--preset--spacing--60, clamp(2.5rem, 8vw, 6rem));
	--wp--custom--spacing--outer: max(1.25rem, 4vw);
    --wp--preset--spacing--80: min(8rem, 12vw);
}

/*
 * Smooth scrolling
 */

 html {
	scroll-behavior: smooth;
  }

/*
 * Font smoothing.
 * This is a niche setting that will not be available via Global Styles.
 * https://github.com/WordPress/gutenberg/issues/35934
 */

body {
	-moz-osx-font-smoothing: var(--wp--custom--typography--font-smoothing--moz, auto);
	-webkit-font-smoothing: var(--wp--custom--typography--font-smoothing--webkit, auto);
}

/*
 * Text and navigation link styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */

a {
	text-decoration-style: var(--wp--custom--elements--link--static--text-decoration-style, solid);
	text-decoration-thickness: var(--wp--custom--elements--link--text-decoration-thickness, 1px);
	text-underline-offset: var(--wp--custom--elements--link--text-underline-offset, 0.25ch);
}

a:hover,
a:focus {
	text-decoration-style: var(--wp--custom--elements--link--interactive--text-decoration-style, dashed);
}

:where(.wp-site-blocks *:focus) {
	outline-width:1px;
	outline-style:solid
}

a:active {
	text-decoration: none;
}

/*
 * Navigation Block
 */

 @media (min-width: 600px) {
    .site-logo-title {
        display:none
    }

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item, 
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container, 
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list {
		align-items: flex-start !important;
	}
}

 @media (max-width: 600px) {
	.has-modal-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item, 
	.has-modal-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container, 
	.has-modal-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list {
		align-items: flex-start !important;
	}
}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title {
    display: flex;
	flex-wrap: nowrap;
	max-width: 100%;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: var(--wp--preset--spacing--30);
    position: relative;
	padding-inline-end: 52px;
}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title::after {
    content: "";
    position: absolute;
    left: calc(-1 * var(--wp--preset--spacing--30));
    right: calc(-1 * var(--wp--preset--spacing--30));
    bottom: 0;
    height: 1px;
    background: #8080801d;
}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title img {
	max-height: 42px !important;
	height: auto !important;
	width: auto !important;

}

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open .site-logo-title .site-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wp--preset--color--foreground);
	text-transform: uppercase;
    letter-spacing: -0.02em;
    box-sizing: border-box;
    line-height: 1.15;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--preset--spacing--30);
}

.has-modal-open .wp-block-navigation__responsive-container-close {
	background-color:var(--wp--preset--color--tertiary);
	padding: 0.625rem;
	border-radius: 100%;
    top: -2.5px !important;
}

.has-modal-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	gap: 0 !important;
	width: 100%;
}

.has-modal-open .wp-block-navrigation__containe, .has-modal-open .wp-block-navigation__container ul {
    row-gap: 0.75rem !important;
    width: -webkit-fill-available;
  	max-width: 100%;
}

.has-modal-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > ul.wp-block-navigation__container > li.wp-block-navigation-item:not(.wp-block-navigation__submenu-container) {
	border-bottom: 1px solid #8080801d;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	width: -webkit-fill-available;
	max-width: 100%;
}

.has-modal-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
	padding: 0.75rem 0.75rem 0 0.75rem !important;
    gap: 0.75rem !important;
 }

.has-modal-open .wp-block-navigation__responsive-dialog ul.wp-block-navigation__container > li:not(.wp-block-navigation__submenu-container) > a.wp-block-navigation-item__content {
    font-size: 1.25rem;
	font-weight: 600;
}

.has-modal-open .wp-block-navigation__submenu-container {
   padding-top: 0.75rem !important;
}

.has-modal-open .wp-block-navigation__responsive-dialog ul.wp-block-navigation__container .wp-block-navigation-submenu .wp-block-navigation-item a {
    font-size: 1rem !important;
}

.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item a:focus {
	text-decoration: underline;
	text-decoration-style: solid;
}

/* Don't display the homepage in the Page List block, when located inside a navigation element. */
nav .wp-block-pages-list__item.wp-block-navigation-item.menu-item-home {
	display: none;
}

/*
 * Responsive menu container padding.
 * This ensures the responsive container inherits the same
 * spacing defined above. This behavior may be built into
 * the Block Editor in the future.
 */

.wp-block-navigation__responsive-container.is-menu-open {
	padding-top: var(--wp--preset--spacing--30);
	padding-bottom: var(--wp--preset--spacing--30);
	padding-right: var(--wp--preset--spacing--30);
	padding-left: var(--wp--preset--spacing--30);
}

/*
 * --------------------------------------------------------
 *  Custom - blocks
 * --------------------------------------------------------
 */

 /* Button
----------------------------------------------------------*/
.wp-element-button {
	transition: background-color 0.15s ease;
}
.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background):hover,
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
	background-color: rgba(159, 159, 159, 0.2);
}

/* Table
----------------------------------------------------------*/
.wp-block-table.is-style-stripes tbody tr:nth-child(odd){
	background-color: var(--wp--custom--blocks--core-table--variant-stripes--color--background, var(--wp--preset--color--tertiary));
}

/* Template Part Block
----------------------------------------------------------*/

/* Temporary fix until template-part blocks support spacing */

footer.wp-block-template-part:not([style*="margin-top"]) {
	margin-top: 0;
}

/* Quote - 'Plain' variation
----------------------------------------------------------*/
blockquote:is(.is-style-plain) {
	border: none;
	padding-left: 0;
}

/* Search Block
----------------------------------------------------------*/
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
	border-color: var(--wp--custom--elements--input--border--color);
	border-radius: var(--wp--custom--elements--button--border--radius);
	border-width: var(--wp--custom--elements--input--border--width);
}
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
	border-color: transparent;
}
.wp-block-search .wp-block-search__input {
	border-radius: var(--wp--custom--elements--button--border--radius);
}

/* Image
----------------------------------------------------------*/
.wp-block-image[style*="-radius"]:not([style*="overflow"]) { overflow: hidden }

/*
 * --------------------------------------------------------
 *  Custom - experimental
 * --------------------------------------------------------
 */

.block-editor-block-list__block.wp-block.is-default-size.wp-block-site-logo .components-resizable-box__container,
.wp-block-site-logo.is-default-size img {
    max-height: 42px !important;
    height: auto !important;
    width: auto !important;
}

/* Ensure default logo works well on light and dark backgrounds
----------------------------------------------------------*/
.wp-block-site-logo img[src*="extendify-demo-"],
.wp-block-site-logo img[src*="ext-custom-logo-"] {
	filter: var(--wp--preset--duotone--primary-foreground);
}


/*
 * Remove all animations, transitions and smooth scroll
 * for people that prefer not to see them.
 */
@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/*
 * Matching caret and focus outline colors.
 */
input, textarea {
	caret-color: inherit;
	outline-color: inherit;
}

/*
 * Matching input with outline button style.
 */
:where(.wp-block-post-comments-form) input:not([type=submit]),
:where(.wp-block-post-comments-form) textarea {
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
	border-color: inherit;
}


/*
 * Woocommerce temporarily customization until the woo blocks offer support
 */

.woocommerce-Tabs-panel--description h2, .woocommerce-Reviews-title {
	font-size: var(--wp--preset--font-size--medium);
}

.wp-block-button.wc-block-components-product-button {
	flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
	gap: 1rem;
}
.wp-block-button.wc-block-components-product-button a.added_to_cart {
	margin-top: 0;
}

.woocommerce-checkout.woocommerce-page header.wp-block-template-part nav.wp-block-navigation {
	visibility: hidden;
}

.wp-site-blocks .wp-block-group.woocommerce.product {
	margin-top: 0;
	margin-bottom: 0; 
}
/*
 * Adds offset for sticky header overlap
 */

 .sticky-header-offset-container .entry-content > .wp-block-group {
	scroll-margin-top: var(--wp--preset--spacing--60);
}

/*
 * Avoids parent/child color collision when child has no custom background.
 */

:not(.block-editor-block-preview__content-iframe)
.has-tertiary-background-color.has-background 
[class*='is-style-ext-preset--group--'][class*='item-card-1']:not(.has-background):not(.has-background)
 {
    background-color: var(--wp--preset--color--background);
}

.block-editor-block-preview__content-iframe 
[class*='is-style-ext-preset--group--natural-1'][class*='item-card-1'] {
    background-color: transparent !important;
}

/*
 * utilities
 */

 .m-0 {
	margin: 0 !important;
}

.z-0 {
	z-index: 0 !important;
}

.z-10 {
	z-index: 10 !important;
}
.z-20 {
	z-index: 20 !important;
}
.z-30 {
	z-index: 30 !important;
}


.d-none {
  display: none;
}

.d-block {
  display: block;
}

@media (min-width: 640px) {
  .sm-d-none {
    display: none;
  }

  .sm-d-block {
    display: block;
  }
}

@media (min-width: 768px) {
  .md-d-none {
    display: none;
  }

  .md-d-block {
    display: block;
  }
}

@media (min-width: 1024px) {
  .lg-d-none {
    display: none;
  }

  .lg-d-block {
    display: block;
  }
}/* ==========================================================
   Firebase Auth — Modern Clean UI
   Version: 2.0
   Scope: #auth-container OR .faf-auth
   ========================================================== */

/* ---------- CSS Variables ---------- */
:is(#auth-container, .faf-auth) {
  /* Colors */
  --c-bg: #0a0f1a;
  --c-card-bg: #12181f;
  --c-card-bg-elevated: #1a2332;
  --c-text: #f1f5f9;
  --c-text-muted: #94a3b8;
  --c-text-dim: #64748b;
  --c-border: #1e293b;
  --c-border-hover: #334155;
  --c-input-bg: #0f1419;
  --c-input-text: #e2e8f0;
  --c-input-placeholder: #64748b;
  
  /* Accent colors */
  --c-primary: #3b82f6;
  --c-primary-hover: #2563eb;
  --c-primary-glow: rgba(59, 130, 246, 0.15);
  --c-success: #10b981;
  --c-success-bg: rgba(16, 185, 129, 0.1);
  --c-error: #ef4444;
  --c-error-bg: rgba(239, 68, 68, 0.1);
  --c-warning: #f59e0b;
  
  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px var(--c-primary-glow);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ---------- Base Container ---------- */
:is(#auth-container, .faf-auth) {
  max-width: 420px;
  margin: 2.5rem auto;
  padding: 2rem 1.75rem;
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: var(--c-text);
  color-scheme: dark;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
}

:is(#auth-container, .faf-auth),
:is(#auth-container, .faf-auth) *,
:is(#auth-container, .faf-auth) *::before,
:is(#auth-container, .faf-auth) *::after {
  box-sizing: border-box;
}

/* ---------- Headings ---------- */
:is(#auth-container, .faf-auth) h1,
:is(#auth-container, .faf-auth) h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

:is(#auth-container, .faf-auth) .faf-subtitle {
  color: var(--c-text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* ---------- Social Login (Google) ---------- */
:is(#auth-container, .faf-auth) .faf-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

:is(#auth-container, .faf-auth) .faf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  background: var(--c-card-bg-elevated);
  color: var(--c-text);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

:is(#auth-container, .faf-auth) .faf-btn:hover {
  background: #1e2a3a;
  border-color: var(--c-border-hover);
  transform: translateY(-1px);
}

:is(#auth-container, .faf-auth) .faf-btn:active {
  transform: translateY(0);
}

:is(#auth-container, .faf-auth) .faf-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--c-card-bg), 0 0 0 4px var(--c-primary);
}

:is(#auth-container, .faf-auth) .faf-btn[disabled],
:is(#auth-container, .faf-auth) .faf-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

:is(#auth-container, .faf-auth) .faf-btn-google {
  background: #fff;
  color: #1f2937;
  border-color: #e5e7eb;
}

:is(#auth-container, .faf-auth) .faf-btn-google:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

:is(#auth-container, .faf-auth) .faf-btn-google svg {
  width: 20px;
  height: 20px;
}

/* ---------- Divider ---------- */
:is(#auth-container, .faf-auth) .faf-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--c-text-dim);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

:is(#auth-container, .faf-auth) .faf-divider::before,
:is(#auth-container, .faf-auth) .faf-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
}

/* ---------- Form & Inputs ---------- */
:is(#auth-container, .faf-auth) .faf-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

:is(#auth-container, .faf-auth) .faf-fields {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

:is(#auth-container, .faf-auth) .faf-field {
  position: relative;
}

:is(#auth-container, .faf-auth) .faf-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text-muted);
  margin-bottom: 0.375rem;
}

:is(#auth-container, .faf-auth) .faf-fields input,
:is(#auth-container, .faf-auth) input[type="email"],
:is(#auth-container, .faf-auth) input[type="password"],
:is(#auth-container, .faf-auth) input[type="text"] {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--c-input-bg);
  color: var(--c-input-text);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  outline: none;
  transition: all var(--transition-fast);
}

:is(#auth-container, .faf-auth) .faf-fields input::placeholder {
  color: var(--c-input-placeholder);
}

:is(#auth-container, .faf-auth) .faf-fields input:hover {
  border-color: var(--c-border-hover);
}

:is(#auth-container, .faf-auth) .faf-fields input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-glow), var(--shadow-glow);
}

:is(#auth-container, .faf-auth) .faf-fields input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Input validation states */
:is(#auth-container, .faf-auth) .faf-fields input[aria-invalid="true"],
:is(#auth-container, .faf-auth) .faf-fields input.is-invalid {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px var(--c-error-bg);
}

:is(#auth-container, .faf-auth) .faf-fields input.is-valid {
  border-color: var(--c-success);
  box-shadow: 0 0 0 3px var(--c-success-bg);
}

/* Password hint */
:is(#auth-container, .faf-auth) .faf-hint,
:is(#auth-container, .faf-auth) #pw-hint {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  margin-top: 0.375rem;
  min-height: 1.25rem;
}

/* ---------- Action Buttons ---------- */
:is(#auth-container, .faf-auth) .faf-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

:is(#auth-container, .faf-auth) .faf-actions button,
:is(#auth-container, .faf-auth) .faf-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

/* Primary button (Login) */
:is(#auth-container, .faf-auth) .faf-actions button[data-faf="login"],
:is(#auth-container, .faf-auth) .faf-actions .btn--primary {
  background: var(--c-primary);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

:is(#auth-container, .faf-auth) .faf-actions button[data-faf="login"]:hover,
:is(#auth-container, .faf-auth) .faf-actions .btn--primary:hover {
  background: var(--c-primary-hover);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

/* Secondary button (Register) */
:is(#auth-container, .faf-auth) .faf-actions button[data-faf="register"],
:is(#auth-container, .faf-auth) .faf-actions .btn--secondary {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}

:is(#auth-container, .faf-auth) .faf-actions button[data-faf="register"]:hover,
:is(#auth-container, .faf-auth) .faf-actions .btn--secondary:hover {
  background: var(--c-card-bg-elevated);
  border-color: var(--c-border-hover);
}

:is(#auth-container, .faf-auth) .faf-actions button:active {
  transform: translateY(0);
}

:is(#auth-container, .faf-auth) .faf-actions button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--c-card-bg), 0 0 0 4px var(--c-primary);
}

:is(#auth-container, .faf-auth) .faf-actions button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Message Banner ---------- */
:is(#auth-container, .faf-auth) #message,
:is(#auth-container, .faf-auth) .faf-message {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-top: 1rem;
  display: none;
  animation: faf-slideIn 0.2s ease;
}

:is(#auth-container, .faf-auth) #message.success,
:is(#auth-container, .faf-auth) .faf-message.success {
  background: var(--c-success-bg);
  color: var(--c-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

:is(#auth-container, .faf-auth) #message.error,
:is(#auth-container, .faf-auth) .faf-message.error {
  background: var(--c-error-bg);
  color: var(--c-error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes faf-slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Secondary Actions (Verify/Resend) ---------- */
:is(#auth-container, .faf-auth) .faf-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border);
}

:is(#auth-container, .faf-auth) .faf-secondary-actions button,
:is(#auth-container, .faf-auth) button[data-faf="verify"],
:is(#auth-container, .faf-auth) button[data-faf="resendVerification"] {
  flex: 1;
  min-width: 140px;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  background: transparent;
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

:is(#auth-container, .faf-auth) .faf-secondary-actions button:hover,
:is(#auth-container, .faf-auth) button[data-faf="verify"]:hover,
:is(#auth-container, .faf-auth) button[data-faf="resendVerification"]:hover {
  background: var(--c-primary-glow);
}

/* ---------- Utility Classes ---------- */
:is(#auth-container, .faf-auth) .is-hidden {
  display: none !important;
}

:is(#auth-container, .faf-auth) .is-loading {
  position: relative;
  pointer-events: none;
}

:is(#auth-container, .faf-auth) .is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-card-bg);
  opacity: 0.7;
  border-radius: inherit;
}

/* ---------- Loader Spinner ---------- */
:is(#auth-container, .faf-auth) .faf-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: faf-spin 0.6s linear infinite;
}

@keyframes faf-spin {
  to { transform: rotate(360deg); }
}

/* ========== POST-LOGIN MENU ========== */
:is(#auth-container, .faf-auth) #post-login-menu {
  width: 100%;
}

:is(#auth-container, .faf-auth) #post-login-menu .menu-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

:is(#auth-container, .faf-auth) #post-login-menu .menu-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 52px;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  background: var(--c-card-bg-elevated);
  color: var(--c-text);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

:is(#auth-container, .faf-auth) #post-login-menu .menu-actions .btn:hover {
  background: #1e2a3a;
  border-color: var(--c-border-hover);
  transform: translateY(-1px);
}

:is(#auth-container, .faf-auth) #post-login-menu .menu-actions .btn:active {
  transform: translateY(0);
}

/* Buy Tokens - Primary */
:is(#auth-container, .faf-auth) #post-login-menu .menu-actions [data-faf="buyTokens"],
:is(#auth-container, .faf-auth) #post-login-menu .menu-actions .btn--primary {
  background: linear-gradient(135deg, var(--c-primary), #6366f1);
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

:is(#auth-container, .faf-auth) #post-login-menu .menu-actions [data-faf="buyTokens"]:hover,
:is(#auth-container, .faf-auth) #post-login-menu .menu-actions .btn--primary:hover {
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Logout - Danger */
:is(#auth-container, .faf-auth) #post-login-menu .menu-actions [data-faf="logout"],
:is(#auth-container, .faf-auth) #post-login-menu .menu-actions .btn--danger {
  background: transparent;
  border-color: var(--c-error);
  color: var(--c-error);
}

:is(#auth-container, .faf-auth) #post-login-menu .menu-actions [data-faf="logout"]:hover,
:is(#auth-container, .faf-auth) #post-login-menu .menu-actions .btn--danger:hover {
  background: var(--c-error-bg);
}

/* Icon styling */
:is(#auth-container, .faf-auth) #post-login-menu .menu-actions .btn .emoji,
:is(#auth-container, .faf-auth) #post-login-menu .menu-actions .btn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

/* ========== MODAL (Token Purchase) ========== */
@keyframes faf-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes faf-scaleIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

:is(#auth-container, .faf-auth) #token-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 9997 !important;
  display: none;
  animation: faf-fadeIn 0.2s ease both;
}

:is(#auth-container, .faf-auth) #token-confirmation {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(90vw, 400px) !important;
  max-height: 85vh !important;
  overflow: auto !important;
  background: var(--c-card-bg) !important;
  color: var(--c-text) !important;
  border: 1px solid var(--c-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  z-index: 9998 !important;
  display: none;
  animation: faf-scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
  padding: 1.5rem !important;
}

:is(#auth-container, .faf-auth) #token-confirmation h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

:is(#auth-container, .faf-auth) #token-confirmation select,
:is(#auth-container, .faf-auth) #token-select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--c-input-bg);
  color: var(--c-input-text);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

:is(#auth-container, .faf-auth) #token-confirmation .modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

:is(#auth-container, .faf-auth) #token-confirmation .modal-actions button {
  flex: 1;
  min-height: 44px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

:is(#auth-container, .faf-auth) #confirm-buy {
  background: var(--c-primary);
  color: #fff;
  border: none;
}

:is(#auth-container, .faf-auth) #confirm-buy:hover {
  background: var(--c-primary-hover);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
  :is(#auth-container, .faf-auth) {
    margin: 1rem;
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }
  
  :is(#auth-container, .faf-auth) h1,
  :is(#auth-container, .faf-auth) h2 {
    font-size: 1.25rem;
  }
  
  :is(#auth-container, .faf-auth) .faf-fields input,
  :is(#auth-container, .faf-auth) .faf-actions button {
    min-height: 52px;
  }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  :is(#auth-container, .faf-auth) *,
  :is(#auth-container, .faf-auth) *::before,
  :is(#auth-container, .faf-auth) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== TOKEN BALANCE ========== */
:is(#auth-container, .faf-auth) .token-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--c-card-bg-elevated);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

:is(#auth-container, .faf-auth) .token-balance #token-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-primary);
}