@font-face { font-display: swap; }
* { font-display: swap; box-sizing: border-box; }
*, body, html { padding: 0; margin: 0; }

:root {
    --primary-color: #1D4ED8;
    --secondary-color: #833AB4;
    --accent-color: #E1306C;
    --background-color: #FFFFFF;
    --text-color: #2C3E50;
    --light-text-color: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, var(--background-color), #fff);
    color: var(--text-color);
    line-height: 1.6;
}

/* ==========================================================================
   2. CRITICAL: Global Typography
   ========================================================================== */
h2, h3, nav[aria-label=Breadcrumb] { font-family: Roboto, sans-serif; color: var(--text-color); }
h2 { font-size: 1.5rem; margin-bottom: 1rem; text-align: center; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
[role=list] h2, [role=list] h3 { list-style: none; }

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 2rem 0 1rem 0;
    line-height: 1.2;
}

.main-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
    opacity: 0.9;
}
.main-intro strong { color: var(--primary-color); font-weight: 600; }

/* ==========================================================================
   3. CRITICAL: Layout & Above-The-Fold Elements
   ========================================================================== */
main { max-width: 900px; margin: 0 auto; padding: 1rem; }
.header-container { max-width: 900px; margin: 0 auto; padding: 1rem; box-shadow: 0 2px 4px rgb(0 0 0 / .1); display: flex; align-items: center; justify-content: space-between; border-radius: 20px; background-color: #fff; position: relative; z-index: 100; }

.top-announcement-bar {
    background-color: #ffffff;
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 8px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    top: 0;
    z-index: 1001;
    letter-spacing: 0.5px;
}
.static-flag { width: 16px; height: auto; border-radius: 2px; box-shadow: 0 1px 2px rgba(255, 255, 255, 0.1); }

header { background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color)); padding: 10px; box-shadow: 0 2px 4px rgb(0 0 0 / .2); text-align: center; color: var(--light-text-color); animation: 10s infinite gradientShift; }
.logo { font-size: 1.75rem; font-weight: 700; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color)); -webkit-background-clip: text; background-clip: text; color: transparent; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 15px; }

.hero-section { background: #fff; padding: 2rem 1rem; margin-bottom: 2rem; border-radius: 8px; box-shadow: 0 2px 4px rgb(0 0 0 / .1); text-align: center; opacity: 0; transform: translateY(20px); animation: .5s forwards fadeInUp; }
.hero-title { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 700; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--text-color); }
.hero-subtitle { font-size: 1rem; line-height: 1.6; max-width: 700px; margin: 0 auto; color: var(--text-color); }

nav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
nav ul li { margin: .5rem 1rem; }
nav ul li a { font-weight: 600; text-decoration: none; color: var(--light-text-color); }

nav#main-nav a { font-weight: 600; color: var(--text-color); text-decoration: none; }
nav#main-nav ul { display: flex; gap: 1.5rem; margin: 0; padding: 0; flex-wrap: nowrap; align-items: center; margin-top: 0; }
nav#main-nav ul li { margin: 0; }

nav[aria-label=Breadcrumb] { margin: 1.5rem auto; max-width: 900px; padding: 0 1rem; font-size: .9rem; }
nav[aria-label=Breadcrumb] ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
nav[aria-label=Breadcrumb] li { display: flex; align-items: center; }
nav[aria-label=Breadcrumb] li+li::before { content: '›'; margin: 0 .5rem; font-weight: 400; color: var(--text-color); }
nav[aria-label=Breadcrumb] a { color: var(--primary-color); text-decoration: none; }
nav[aria-label=Breadcrumb] li[aria-current=page] { color: var(--text-color); font-weight: 600; }

.dark-mode-toggle { background: transparent; border: none; color: var(--text-color); font-size: 1.5rem; cursor: pointer; transition: transform 0.3s ease, color 0.3s ease; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; }
.dark-mode-toggle:hover { transform: scale(1.1); color: var(--primary-color); }
.menu-toggle { display: none; background: none; border: none; flex-direction: column; justify-content: space-between; width: 24px; height: 18px; padding: 0; cursor: pointer; }
.menu-toggle span { display: block; height: 3px; background: var(--text-color); border-radius: 2px; transition: background 0.2s, transform 0.3s, opacity 0.3s; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================================================
   4. CRITICAL: Primary UI Controls (Generator Inputs & Tabs)
   ========================================================================== */
.generator-controls { position: sticky; top: 0; background: #fff; padding-top: 1rem; padding-bottom: .5rem; z-index: 50; border-bottom: 1px solid #eee; }
.input-wrapper { position: relative; width: 100%; }

#text-input { width: 100%; padding: .75rem 2.5rem .75rem .75rem; font-size: 1rem; border-radius: 8px; margin-bottom: 1.5rem; background: linear-gradient(#fff,#fff) padding-box, linear-gradient(45deg,var(--primary-color),var(--secondary-color),var(--accent-color)) border-box; border: 2px solid transparent; box-sizing: border-box; }
#clear-input { position: absolute; right: .75rem; top: 0; bottom: 0; margin: -20px 0 auto; border: none; font-size: 2rem; line-height: 1; z-index: 2; background: transparent; display: none; color: var(--text-color); }

.font-size-slider { display: flex; align-items: center; gap: .5rem; margin: .5rem 0; }
.font-size-slider label { font-size: .95rem; font-weight: 600; color: var(--text-color); }
.font-size-slider #font-size-value { width: 3.5rem; text-align: right; font-size: .9rem; color: var(--text-color); }
.font-size-slider input[type=range] { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; outline: 0; background: linear-gradient(45deg,var(--primary-color),var(--secondary-color)); }
.font-size-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--light-text-color); border: 2px solid var(--secondary-color); }
.font-size-slider input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--light-text-color); border: 2px solid var(--secondary-color); }

#tabs { display: flex; gap: .5rem; position: relative; background: #f0f0f0; padding: 4px; border-radius: 8px; --_indicator-left: 0; --_indicator-width: 0; overflow: hidden; margin-bottom: 1.5rem; }
#tabs::before { content: ""; position: absolute; top: 4px; left: var(--_indicator-left); width: var(--_indicator-width); height: calc(100% - 8px); border-radius: 6px; background: linear-gradient(45deg,var(--primary-color),var(--secondary-color)); transition: left 0.3s ease, width 0.3s ease; z-index: 0; }
.tab-button { flex: 1; position: relative; z-index: 1; padding: .75rem 0; background: transparent; border: none; font-size: 1rem; font-weight: 600; color: var(--text-color); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: color 0.3s, transform 0.2s; }
.tab-button span { font-size: 1.2rem; margin-right: 0.5rem; }
.tab-button.active { color: var(--light-text-color); transform: scale(1.05); }

#subtabs { display: flex; overflow-x: auto; padding: .5rem 0; gap: .5rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-bottom: 1.5rem; }
#subtabs::-webkit-scrollbar { height: 6px; }
#subtabs::-webkit-scrollbar-track { background: transparent; }
#subtabs::-webkit-scrollbar-thumb { background: var(--secondary-color); border-radius: 3px; }
#subtabs .subtab-button { flex: 0 0 auto; scroll-snap-align: start; padding: 0.5rem 1rem; background: #eee; border: none; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: background 0.3s, transform 0.2s; }
#subtabs .subtab-button.active { background: var(--secondary-color); color: var(--light-text-color); transform: scale(1.05); }
#subtabs .subtab-button:hover { background: #ddd; }
#subtabs button { background: #ffffff; border: 2px solid #eeeeee; border-radius: 12px; padding: 8px 18px; font-size: 0.95rem; font-weight: 600; color: var(--text-color); cursor: pointer; white-space: nowrap; transition: all 0.1s cubic-bezier(0.4, 0.0, 0.2, 1); box-shadow: 0 4px 0 #dcdcdc, 0 5px 8px rgba(0,0,0,0.05); transform: translateY(0); -webkit-tap-highlight-color: transparent; outline: none; }
#subtabs button:active { transform: translateY(4px); box-shadow: 0 0px 0 #dcdcdc, 0 1px 2px rgba(0,0,0,0.05); }
#subtabs button.active, #subtabs button.active:focus { background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important; color: #fff !important; border: 2px solid transparent; box-shadow: 0 4px 0 #a92055, 0 5px 8px rgba(0,0,0,0.2); }
#subtabs button.active:active { transform: translateY(4px); box-shadow: 0 0px 0 #a92055, 0 1px 2px rgba(0,0,0,0.2); }

.cta-button { background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color)); color: var(--light-text-color); padding: .75rem 2rem; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: .3s; display: inline-block; box-shadow: 0 2px 4px rgb(0 0 0 / .2); text-decoration: none; }

.copy-button, .favorite-button, .remove-button { width: auto; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0.7rem 1rem; height: 30px; line-height: 30px; border: none; border-radius: 5px; cursor: pointer; font-size: 0.9rem; transition: opacity 0.3s, transform 0.2s, background 0.3s; }
.copy-button { background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); color: var(--light-text-color); }
.copy-button.copied { background: var(--accent-color); }
.favorite-button { background-color: #fff; padding: 0; margin: 0; font-size: 1.5rem; color: #ccc; width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); }
.favorite-button.favorited { color: #E1306C; }

/* ==========================================================================
   5. PERFORMANCE: LCP Content Visibility Constraints
   ========================================================================== */
#output { min-height: 1850px; contain: layout style paint; content-visibility: auto; contain-intrinsic-size: 900px 1850px; }
#output > section.style-group, #output > section.favorite-style-group { content-visibility: auto; contain-intrinsic-size: 148px 1px; }
#output > div.symbol-item { content-visibility: auto; contain-intrinsic-size: 64px 1px; }
.ad-banner-wrapper {
    max-width: 340px;
    margin: 5px auto 5px;
    min-height: 106px;
    padding: 8px;
    background: #fafafa;
    text-align: center;
    overflow: hidden;
}

/* ==========================================================================
   6. CRITICAL: Dark Mode Global Overrides 
   ========================================================================== */
body.dark-mode { --background-color: #121212; --text-color: #e0e0e0; background: #121212; }
body.dark-mode section, body.dark-mode .header-container, body.dark-mode .usage-card, body.dark-mode .feature-card, body.dark-mode .modal-content, body.dark-mode #tabs, body.dark-mode .tech-matrix-section, body.dark-mode .generator-controls, body.dark-mode .bookmark-banner, body.dark-mode .top-announcement-bar, body.dark-mode .share-bar, body.dark-mode .share-toggle { background-color: #1e1e1e; color: #e0e0e0; border-color: #333; }
body.dark-mode .input-wrapper #text-input { background: #1e1e1e; color: #fff; border: 1px solid #333; }
body.dark-mode #subtabs button { background: #2a2a2a; border-color: #444; color: #e0e0e0; box-shadow: 0 4px 0 #111, 0 5px 8px rgba(0,0,0,0.2); }
body.dark-mode #subtabs button:active { box-shadow: 0 0px 0 #111, 0 1px 2px rgba(0,0,0,0.2); }
body.dark-mode .tech-table th { background: #1e1e1e; color: #aaa; border-bottom-color: #333; }
body.dark-mode .tech-table td { border-bottom-color: #333; color: #e0e0e0; }
body.dark-mode .tech-table tr:hover td { background-color: #2a2a2a; }
body.dark-mode .matrix-header, body.dark-mode .table-legend { background: #2a2a2a; border-color: #333; }
body.dark-mode .matrix-header h2 { color: #e0e0e0; }
body.dark-mode .fb-chat-btn { box-shadow: 0 0 10px rgba(0, 132, 255, 0.3); }

/* ==========================================================================
   7. SECONDARY: Content Below The Fold
   ========================================================================== */
section { padding: 1rem; box-shadow: 0 2px 4px rgb(0 0 0 / .1); background: #fff; border-radius: 8px; margin-bottom: 2rem; opacity: 0; transform: translateY(20px); animation: .5s forwards fadeInUp; }
section:first-of-type { animation-delay: 0s; }
section:nth-of-type(2) { animation-delay: .2s; }

.section-title { font-size: 1.5rem; margin-bottom: 1rem; text-align: center; font-weight: 700; color: var(--text-color); }
.features-section { padding: 1rem; margin-bottom: 2rem; border-radius: 8px; box-shadow: 0 2px 4px rgb(0 0 0 / .1); background: #fff; opacity: 0; transform: translateY(20px); animation: .5s .2s forwards fadeInUp; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card { background: var(--background-color); border: 1px solid #e0e0e0; border-radius: 8px; padding: 1.5rem; transition: .3s; text-align: center; }
.feature-icon { width: 60px; height: 60px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 1.5rem; font-weight: 700; color: var(--light-text-color); }

.icon-fonts { background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); }
.icon-speed { background: linear-gradient(45deg, var(--secondary-color), var(--accent-color)); }
.icon-free { background: linear-gradient(45deg, var(--accent-color), var(--primary-color)); }
.icon-trends { background: linear-gradient(45deg, var(--primary-color), var(--accent-color)); }
.icon-favorites { background: linear-gradient(45deg, var(--secondary-color), var(--primary-color)); }
.icon-updates { background: linear-gradient(45deg, var(--accent-color), var(--secondary-color)); }

.feature-title { font-size: 1.25rem; margin-bottom: .75rem; color: var(--text-color); font-weight: 700; }
.feature-description { line-height: 1.6; opacity: .8; color: var(--text-color); }

.stats-section { background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / .1); margin-bottom: 2rem; padding: 1rem; border-radius: 8px; text-align: center; opacity: 0; transform: translateY(20px); animation: .5s .4s forwards fadeInUp; }
.stats-title, .cta-title { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; color: var(--text-color); }
.stats-subtitle, .cta-subtitle { color: var(--text-color); opacity: .8; margin-bottom: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.stat-item { background: var(--background-color); padding: 1rem; border-radius: 8px; }
.stat-number { font-size: 2rem; display: block; font-weight: 700; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: .5rem; }
.stat-label { font-size: .95rem; opacity: .8; color: var(--text-color); }

.cta-section { background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / .1); padding: 1rem; border-radius: 8px; text-align: center; opacity: 0; transform: translateY(20px); animation: .5s .6s forwards fadeInUp; }

.tech-matrix-section { background: #fff; border: 1px solid #e1e4e8; border-radius: 12px; margin-bottom: 2rem; overflow: hidden; padding: 0!important; }
.matrix-header { padding: 1.5rem; border-bottom: 1px solid #f0f0f0; background: #fafbfc; }
.matrix-header h2 { font-size: 1.8rem; font-weight: 700; color: #333; margin-bottom: 10px; }
.matrix-header p { font-size: 1rem; color: #586069; margin: 0; }
.table-responsive { overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; }
.tech-table { width: 100%; border-collapse: collapse; min-width: 700px; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif; font-size: 14px; }
.tech-table th { background: #fff; color: #586069; font-weight: 600; text-transform: uppercase; font-size: .75rem; letter-spacing: .5px; padding: 1rem 1.5rem; text-align: left; border-bottom: 2px solid #eaecef; }
.tech-table td { padding: 1.25rem 1.5rem; border-bottom: 1px solid #eaecef; vertical-align: top; color: #24292e; }
.tech-table tr:last-child td { border-bottom: none; }
.tech-table tr:hover td { background-color: #f6f8fa; }
.row-title { display: block; font-weight: 600; color: var(--secondary-color); font-size: 1rem; margin-bottom: 4px; }
.font-list { font-size: .85rem; color: #6a737d; line-height: 1.5; }
.meta-info { display: block; font-size: .8rem; color: #959da5; margin-top: 2px; }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 12px; font-size: .75rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge.success { background-color: #dafbe1; color: #1a7f37; border-color: rgb(27 31 35 / .15); }
.badge.warning { background-color: #fff8c5; color: #9a6700; border-color: rgb(27 31 35 / .15); }
.badge.crit { background-color: #ffebe9; color: #cf222e; border-color: rgb(27 31 35 / .15); }
.capacity { font-weight: 600; font-size: .9rem; }
.capacity.low { color: #cf222e; }
.capacity.med { color: #9a6700; }
.capacity.high { color: #1a7f37; }
.capacity.crit { color: #cf222e; text-decoration: underline; }
.risk-item { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: .9rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.success { background-color: #2da44e; }
.dot.warning { background-color: #d29922; }
.dot.crit { background-color: #cf222e; }
.risk-desc { font-size: .85rem; color: #586069; line-height: 1.5; }
.table-legend { background: #f6f8fa; padding: 1rem 1.5rem; border-top: 1px solid #eaecef; font-size: .85rem; color: #586069; line-height: 1.5; }
.table-legend strong { color: #24292e; }

.trending-container { max-width: 1400px; margin: 0 auto; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; background: linear-gradient(135deg,#e1306c 0,#5851db 50%,#405de6 100%); min-height: 100vh; padding: 20px; overflow-x: hidden; border-radius: 20px; }
.trending-header { margin-bottom: 40px; position: relative; text-align: center; }
.trending-title { font-size: clamp(1.75rem, 5vw, 1.5rem); font-weight: 800; background: linear-gradient(45deg, #fff, #f0f0f0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; text-shadow: 0 0 20px rgb(255 255 255 / .2); animation: 10s infinite gradientShift; }
.trending-subtitle { font-size: 1.2rem; color: rgb(255 255 255 / .9); font-weight: 400; letter-spacing: .5px; }

.floating-icons { position: absolute; top: -20px; left: 0; right: 0; pointer-events: none; }
.floating-icon { position: absolute; color: rgb(255 255 255 / .3); animation: 6s ease-in-out infinite float; }
.floating-icon:first-child { left: 10%; animation-delay: -1s; }
.floating-icon:nth-child(2) { left: 20%; animation-delay: -2s; }
.floating-icon:nth-child(3) { right: 20%; animation-delay: -3s; }
.floating-icon:nth-child(4) { right: 10%; animation-delay: -4s; }

.fonts-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(400px,1fr)); gap: 25px; perspective: 1000px; }
.font-card { position: relative; overflow: hidden; background: rgb(255 255 255 / .15); backdrop-filter: blur(20px); border-radius: 20px; padding: 30px; border: 1px solid rgb(255 255 255 / .2); transition: .4s cubic-bezier(.25,.46,.45,.94); cursor: pointer; transform-style: preserve-3d; }
.font-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg,transparent,rgb(255 255 255 / .2),transparent); transition: left .6s; }
.font-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.font-icon { position: relative; overflow: hidden; width: 60px; height: 60px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; }
.font-icon::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg,transparent,rgb(255 255 255 / .1),transparent); animation: 2s infinite shimmer; }

.aesthetic-vaporwave .font-icon { background: linear-gradient(135deg,#e1306c,#5851db); }
.tiktok-style .font-icon { background: linear-gradient(135deg,#e1306c,#405de6); }
.y2k-cyber .font-icon { background: linear-gradient(135deg,#5851db,#405de6); }
.instagram-cursive .font-icon { background: linear-gradient(135deg,#e1306c,#ff6b6b); }
.gaming-pro .font-icon { background: linear-gradient(135deg,#405de6,#5851db); }
.kawaii-cute .font-icon { background: linear-gradient(135deg,#e1306c,#fda4ba); }

.popularity-badge { background: rgb(255 255 255 / .2); color: #fff; padding: 5px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / .3); }
.font-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 15px; letter-spacing: -.5px; }
.font-preview { text-align: center; font-size: 2.2rem; margin: 20px 0; padding: 15px; background: rgb(0 0 0 / .2); border-radius: 12px; color: #fff; font-weight: 600; letter-spacing: 1px; transition: .3s; border: 1px solid rgb(255 255 255 / .1); position: relative; }
.font-preview::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: linear-gradient(90deg,#e1306c,#5851db); transition: width .3s; }

.aesthetic-preview { font-family: 'Courier New',monospace; letter-spacing: 3px; }
.tiktok-preview { font-family: Impact,sans-serif; letter-spacing: -1px; text-transform: lowercase; }
.cyber-preview { font-family: 'Courier New',monospace; text-transform: uppercase; }
.cursive-preview { font-family: 'Brush Script MT',cursive; letter-spacing: 2px; }
.gaming-preview { font-family: 'Arial Black',sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.kawaii-preview { font-family: 'Comic Sans MS',cursive; letter-spacing: 1px; }

.popularity-meter { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.popularity-label { color: rgb(255 255 255 / .8); font-size: .9rem; font-weight: 500; }
.popularity-bar { border-radius: 10px; position: relative; width: 120px; height: 6px; background: rgb(255 255 255 / .2); overflow: hidden; }
.popularity-fill { border-radius: 10px; position: relative; height: 100%; transition: width 1s ease-out; }
.popularity-fill::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg,transparent,rgb(255 255 255 / .4),transparent); animation: 2s infinite popularityShine; }
.popularity-percentage { color: #fff; font-weight: 600; font-size: .9rem; }
.stats-overlay { position: absolute; top: 15px; right: 15px; background: rgb(0 0 0 / .3); color: #fff; padding: 5px 10px; border-radius: 15px; font-size: .7rem; font-weight: 600; backdrop-filter: blur(5px); }

/* Utilities / Usage / Text Blocks */
.category-heading { font-size: 2rem; margin: 1.5rem 0 1rem; border-bottom: 2px solid #eee; padding-bottom: .5rem; }
.font-style-name { font-size: 1.5rem; margin: 1rem 0 .5rem; }
.style-group, .favorite-style-group { margin-bottom: 1.5rem; padding: 1rem; border: 1px solid #f0f0f0; border-radius: 8px; }
.transformed-text { margin: .5rem 0; font-size: 1.2em; overflow-wrap: break-word; word-break: break-word; }
.style-controls { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; }

.style-item, .symbol-item, .recent-item { display: grid; grid-template-columns: 2fr auto auto; align-items: center; gap: 0.5rem; padding: 0.75rem; background: #fff; margin-bottom: 1rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); transition: transform 0.2s, box-shadow 0.2s; overflow-wrap: break-word; }
.style-item span, .symbol-item span, .recent-item span { word-break: break-all; white-space: normal; }

#how-to-use, #user-benefits, #what-are-insta-fonts { background: #fff; border-radius: 12px; padding: 2rem; margin: 2rem 0; border-bottom: 4px solid var(--primary-color); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
#how-to-use h2, #user-benefits h2, #what-are-insta-fonts h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-color); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
#how-to-use h2::before, #user-benefits h2::before, #what-are-insta-fonts h2::before { content: ''; width: 4px; height: 24px; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); border-radius: 2px; }
#how-to-use p, #user-benefits ul li, #what-are-insta-fonts p { font-size: 1rem; line-height: 1.7; color: var(--text-color); opacity: 0.8; margin-bottom: 1.2rem; }
#how-to-use ol { list-style: decimal; margin-left: 1.5rem; margin-bottom: 1rem; }
#how-to-use ol li { margin-bottom: 0.5rem; }
#user-benefits ul { margin: 1rem 0; padding-left: 1.5rem; }

.guide { display: block; margin-left: auto; margin-right: auto; max-width: 100%; height: auto; border-radius: 8px; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); }

#faq h3 { color: var(--secondary-color); margin-top: 1.5rem; font-size: 1.1rem; font-weight: 700; }
#faq h3:first-of-type { margin-top: .5rem; }
#faq p { color: #555; margin-bottom: 1rem; line-height: 1.7; }

.usage-container { padding: 40px 20px; max-width: 1000px; margin: 0 auto; text-align: center; }
.usage-title { font-size: 1.8rem; margin-bottom: 10px; color: #333; }
.usage-subtitle { color: #666; margin-bottom: 35px; font-size: 1rem; }
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; padding: 10px; }
.usage-card { background: #fff; border-radius: 20px; padding: 30px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; border: 1px solid rgba(0,0,0,0.03); transition: transform 0.3s, box-shadow 0.3s; }
.usage-icon { font-size: 3rem; margin-bottom: 20px; background: -webkit-linear-gradient(45deg, #f09433 0, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.usage-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: #222; font-weight: 700; }
.usage-card p { font-size: .95rem; color: #555; line-height: 1.6; }

#recently-used { margin-top: 2rem; }
#clear-recent { display: block; margin: 20px auto 0; padding: 10px 20px; background-color: #99007B; color: white; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; transition: background-color 0.3s ease; }

#reviews { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,.1); margin-top: 2rem; display: flex; flex-direction: column; align-items: center; }
#reviews h2 { font-size: 1.5rem; margin-bottom: .5rem; color: var(--text-color); }
.aggregate-rating { font-size: 1.125rem; margin-bottom: 1.5rem; color: #9F1442; font-weight: 700; }
.reviews-carousel { position: relative; width: 100%; max-width: 800px; display: flex; align-items: center; margin-bottom: 1.5rem; }
.carousel-track-container { overflow: hidden; flex: 1; }
.carousel-track { display: flex; gap: 1.5rem; transition: transform .4s ease; }
.carousel-btn { background: none; border: none; font-size: 1.75rem; color: var(--text-color); cursor: pointer; padding: 0 .75rem; }
.carousel-btn:disabled { opacity: .3; cursor: default; }
.review-card { display: flex; align-items: flex-start; border-radius: 8px; background: linear-gradient(#fff,#fff) padding-box, linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color)) border-box; border: 2px solid transparent; padding: 1rem; min-width: 260px; box-sizing: border-box; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin-right: 1rem; flex-shrink: 0; }
.review-body { flex: 1; }
.review-text { font-weight: 600; margin-bottom: .25rem; color: var(--text-color); }
.review-rating { color: transparent; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color)); -webkit-background-clip: text; background-clip: text; font-size: 1.25rem; margin-bottom: .75rem; }
.review-comment { font-style: italic; color: #333; margin: 0; }
.review-cta-button { padding: .75rem 1.5rem; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); color: #fff; border-radius: 4px; text-decoration: none; font-weight: 600; display: inline-block; text-align: center; }

/* ==========================================================================
   8. SECONDARY UI: Action Buttons, Forms, Modals & Previews
   ========================================================================== */
#preview-launcher { position: fixed; top: 50%; right: 0; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; overflow: hidden; max-width: 48px; min-width: 48px; height: 48px; padding: 0; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color)); color: var(--light-text-color); border: none; border-radius: 10px 0 0 10px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 1000; animation: 2s ease-in-out infinite preview-pulse; transition: max-width .3s ease, padding .3s ease; }
#preview-launcher .launcher-text { display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .3s ease .1s, opacity .2s ease .1s; }
#preview-launcher.expanded { max-width: 200px; padding: 0 1rem; }
#preview-launcher.expanded .launcher-text { max-width: 140px; opacity: 1; margin-left: 8px; }

#preview-modal { display: none; position: fixed; inset: 0; z-index: 999; }
#preview-modal .modal-overlay { position: absolute; inset: 0; backdrop-filter: blur(6px); background: rgba(0,0,0,.3); }
#preview-modal .modal-content { position: relative; background: #fff; width: 90%; max-width: 400px; margin: 5vh auto; padding: 1.5rem; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; color: #262626; max-height: 80vh; overflow-y: auto; }
#preview-modal .close-btn { position: absolute; top: .75rem; right: .75rem; background: none; border: none; font-size: 1.25rem; cursor: pointer; color: #999; transition: color .2s; }

.tab-buttons { display: flex; margin: 1rem 0; border-bottom: 1px solid #dbdbdb; }
.tab-btn { flex: 1; padding: .5rem 0; background: none; border: none; font-weight: 600; cursor: pointer; color: #555; transition: color .2s; }
.tab-panel { display: block; }
.tab-panel[hidden] { display: none; }
.preview-input { width: 100%; min-height: 6rem; border: none; resize: vertical; background: transparent; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; font-size: .95rem; line-height: 1.4; color: #262626; padding: 0; margin: 0; outline: none; }
.preview-info { background: rgba(225,48,108,.1); border-left: 4px solid var(--primary-color); padding: .75rem 1rem; margin: 1rem 0; border-radius: 4px; font-size: .95rem; color: var(--text-color); }
.preview-info p { margin: 0; line-height: 1.4; }

.avatar, .avatar-sm { border-radius: 50%; object-fit: cover; display: block; }
.insta-profile-preview { background: #fff; border: 1px solid #dbdbdb; border-radius: 6px; padding: 1rem; margin-bottom: 1rem; }
.profile-header { display: flex; align-items: center; margin-bottom: .75rem; }
.profile-header .avatar { width: 60px; height: 60px; margin-right: 1rem; }
.profile-info .username { font-weight: 600; font-size: 1rem; line-height: 1; }
.profile-info .meta { font-size: .85rem; color: #8e8e8e; }
.bio-preview { font-size: .95rem; line-height: 1.4; }

.insta-post-preview { background: #fff; border: 1px solid #dbdbdb; border-radius: 6px; overflow: hidden; margin-bottom: 1rem; }
.post-header { display: flex; align-items: center; padding: .75rem; }
.post-header .avatar-sm { width: 32px; height: 32px; margin-right: .75rem; }
.post-user { font-weight: 600; font-size: .95rem; flex-grow: 1; }
.post-menu { font-size: 1.25rem; line-height: 1; color: #262626; cursor: pointer; }
.post-image { background: #eee; height: 300px; display: flex; align-items: center; justify-content: center; color: #8e8e8e; font-size: 1rem; }
.post-actions { display: flex; justify-content: space-between; padding: .5rem .75rem; }
.post-actions .icon { font-size: 1.2rem; margin-right: .75rem; cursor: pointer; }
.post-actions .right-icon .icon { margin-right: 0; }
.post-caption { padding: 0 .75rem 1rem; font-size: .9rem; line-height: 1.3; }
.post-caption .post-user { margin-right: .5rem; }

/* ── INSTAGRAM BIO PREVIEW — pixel-accurate overrides ── */
.insta-bio-preview {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  color: #000;
  font-size: 14px;
}

.bio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
}
.bio-header .back-button,
.bio-header .more-options {
  background: none;
  border: none;
  font-size: 20px;
  color: #000;
  cursor: pointer;
  padding: 4px;
}
.bio-header .bio-username {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  flex: 1;
  text-align: center;
}

.bio-profile-info {
  display: flex;
  align-items: center;
  padding: 8px 16px 12px;
  gap: 0;
}

/* Profile picture — Instagram gradient ring */
.bio-picture {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  flex-shrink: 0;
  margin-right: 28px;
}
.bio-picture-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bio-picture-inner svg {
  width: 44px;
  height: 44px;
}

/* Stats row — numbers bold black, labels gray */
.bio-stats {
  flex: 1;
  display: flex;
  justify-content: space-around;
  text-align: center;
  gap: 4px;
}
.bio-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bio-stats .stat-number {
  font-size: 16px;
  font-weight: 700;
  color: #000 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  display: block;
  line-height: 1.2;
}
.bio-stats .stat-label {
  font-size: 13px;
  font-weight: 400;
  color: #000;
  line-height: 1.2;
}

/* Bio details */
.bio-details {
  padding: 0 16px 12px;
}
.bio-name {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  margin-bottom: 2px;
}
.bio-category {
  font-size: 12px;
  font-weight: 400;
  color: #737373;
  margin-bottom: 4px;
}
.bio-description {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  line-height: 1.5;
  margin-bottom: 4px;
  outline: none;
}
.bio-description p {
  margin: 0;
  line-height: 1.5;
}
.bio-details strong p {
  font-size: 14px;
  font-weight: 600;
  color: #00376b;
  margin: 4px 0;
}
.bio-followed-by {
  font-size: 13px;
  color: #737373;
  margin-top: 4px;
}
.bio-followed-by a {
  color: #000;
  font-weight: 600;
  text-decoration: none;
}

/* Action buttons — exact Instagram style */
.bio-actions {
  display: flex;
  gap: 4px;
  padding: 4px 12px 16px;
}
.bio-actions .btn {
  flex: 1;
  height: 32px;
  min-width: 0;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  background-color: #efefef;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.bio-actions .btn:hover {
  background-color: #dbdbdb;
}
.bio-actions .btn-dropdown {
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  font-size: 11px;
  padding: 0;
}

.insta-post-realistic { width: 100%; max-width: 400px; margin: 0 auto 1rem; background-color: #fff; border: 1px solid #dbdbdb; border-radius: 3px; overflow: hidden; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; color: #262626; }
.post-header-realistic { display: flex; align-items: center; justify-content: space-between; padding: 14px; }
.post-profile { display: flex; align-items: center; }
.post-avatar img { width: 32px; height: 32px; border-radius: 50%; margin-right: 12px; }
.post-user-realistic { font-weight: 600; font-size: 14px; color: #262626; display: flex; align-items: center; }
.post-user-realistic .verified { color: #3897f0; margin-left: 4px; font-size: 12px; }
.post-more { background: none; border: none; padding: 0; cursor: pointer; color: #262626; font-size: 16px; }
.post-image-realistic { position: relative; width: 100%; padding-bottom: 100%; background-color: #f1f1f1; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #8e8e8e; }
.quote-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.15); width: 80%; max-width: 300px; }
.quote-header { display: flex; align-items: center; margin-bottom: 12px; }
.quote-pic img { width: 24px; height: 24px; border-radius: 50%; margin-right: 8px; }
.quote-user { font-size: 13px; font-weight: 600; }
.quote-text { font-size: 14px; line-height: 1.4; margin: 0; }
.post-actions-realistic { display: flex; justify-content: space-between; padding: 8px 12px; }
.left-actions { display: flex; gap: 16px; }
.action-btn, .save-btn { background: none; border: none; padding: 0; cursor: pointer; color: #262626; font-size: 20px; }
.post-likes { padding: 0 16px; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.post-caption-realistic { padding: 0 16px; margin-bottom: 8px; font-size: 14px; line-height: 1.4; }
.view-comments-realistic { padding: 0 16px; margin-bottom: 8px; font-size: 14px; color: #8e8e8e; background: none; border: none; text-align: left; cursor: pointer; }
.post-time-realistic { padding: 0 16px; margin-bottom: 16px; font-size: 10px; color: #8e8e8e; text-transform: uppercase; }
.share-prompt-realistic { padding: 16px; border-top: 1px solid #efefef; font-size: 14px; color: #8e8e8e; }
.post-hashtags-realistic { padding: 4px 16px 16px; font-size: 14px; color: #00376b; line-height: 1.4; word-break: break-all; }

.floating-share { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 999; }
.share-bar { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 30px 12px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-radius: 0 30px 30px 0; box-shadow: 4px 8px 25px rgba(0,0,0,.18); transition: transform 0.35s cubic-bezier(.25, .46, .45, .94); transform: translateX(-100%); }
.floating-share.open .share-bar { transform: translateX(0); }
.share-btn { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; box-shadow: 0 3px 12px rgba(0,0,0,.15); transition: transform 0.2s ease; }
.floating-share a { text-decoration: none!important; }
.floating-share a:hover, .floating-share a:active, .floating-share a:focus { text-decoration: none!important; }
.share-btn:hover, .share-btn:active { transform: scale(1.1); }
.whatsapp { background: #25D366; }
.facebook { background: #1877F2; }
.twitter { background: #000; }
.telegram { background: #08c; }
.pinterest { background: #E60023; }
.copy { background: linear-gradient(45deg,#E1306C,#5851DB); }
.share-toggle { position: absolute; left: 100%; top: 100%; transform: translateY(-50%); width: 45px; height: 45px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-radius: 50%; box-shadow: 4px 8px 25px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #333; cursor: pointer; transition: all 0.3s ease; margin-left: -80px; }
.share-toggle:hover, .share-toggle:active { transform: translateY(-50%) scale(1.1); background: #fff; }
.floating-share.open .share-toggle i { transform: rotate(180deg); }
.share-toggle i { transition: transform 0.35s ease; }

.share-buttons { display: none; justify-content: center; margin-top: 5px; }
.share-buttons a { margin: 0 5px; font-size: 20px; color: #000; text-decoration: none; }
.share-buttons a:hover { color: #555; }

.fb-chat-btn { background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color)); color: #ffffff!important; padding: 10px 20px; border-radius: 50px; font-weight: 700; text-decoration: none; transition: all 0.3s ease; white-space: nowrap; box-shadow: 0 0 10px rgb(0 132 255 / .5); animation: pulse-glow 2s infinite; }
.fb-chat-btn:hover { transform: scale(1.05); background-color: #0078e8; }

.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.8); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 10px; box-sizing: border-box; }
.modal-content { background: #fff; border-radius: 16px; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,.4); width: 100%; max-width: 650px; max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden; animation: modalFadeIn 0.3s ease-out; }
.modal-header { padding: 20px 25px 15px; border-bottom: 1px solid #eee; position: relative; flex-shrink: 0; }
.modal-header h2 { margin: 0; font-size: 1.5rem; line-height: 1.3; padding-right: 35px; background: linear-gradient(45deg,#E1306C,#5851DB); -webkit-background-clip: text; background-clip: text; color: transparent; }
.close-btn { position: absolute; top: 15px; right: 15px; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; font-size: 2rem; cursor: pointer; color: #ccc; border-radius: 50%; transition: background 0.2s; line-height: 1; }
.close-btn:hover { background: #f5f5f5; color: #666; }
.modal-body { padding: 20px 25px; overflow-y: auto; flex-grow: 1; }
.modal-body p { color: #555; line-height: 1.5; margin-top: 0; margin-bottom: 20px; }
.google-form-wrapper { width: 100%; height: 500px; background: #f9f9f9; border-radius: 12px; overflow: hidden; border: 1px solid #eee; }
.google-form-wrapper iframe { width: 100%; height: 100%; border: none; display: block; }
.modal-footer { padding: 15px; text-align: center; border-top: 1px solid #eee; font-size: .85rem; color: #888; flex-shrink: 0; }

#scroll-to-top { position: fixed; bottom: 1.5rem; left: 1.5rem; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); color: white; border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3); transition: all 0.3s ease; }
#scroll-to-top:hover { transform: scale(1.1); }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--primary-color); color: #9F1442; padding: 8px; z-index: 100; transition: top .3s; }
.skip-link:focus { top: 0; }

/* ==========================================================================
   Toast Notification (Copy Indicator)
   ========================================================================== */
.copy-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    pointer-events: none; /* Prevents it from blocking clicks */
    
    /* Hides the notification by default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.copy-indicator.show, 
.copy-indicator.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
footer { background: #333; color: var(--light-text-color); margin-top: 2rem; border-top: 4px solid transparent; border-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) 1; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }
.footer-about .footer-logo { font-size: 1.5rem; font-weight: 700; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; background-clip: text; color: transparent; text-decoration: none; margin-bottom: .5rem; display: inline-block; }
.footer-about p { font-size: .9rem; line-height: 1.4; color: var(--light-text-color); margin: 0; }
.footer-col h3 { font-size: 1.1rem; margin-bottom: .75rem; color: var(--light-text-color); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: var(--light-text-color); text-decoration: none; font-size: .95rem; opacity: .9; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #444; text-align: center; padding: 1rem; font-size: .85rem; color: #bbb; }

footer .social-icons { display: flex; gap: 1.2rem; margin-top: 1.5rem; flex-wrap: wrap; }
footer .social-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(45deg,#e91e63,#9c27b0); color: #fff; text-decoration: none; transition: all .3s ease; opacity: .9; }
footer .social-icon:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(233,30,99,.3); }

/* ==========================================================================
   10. ANIMATIONS & HOVER STATES
   ========================================================================== */
@keyframes gradientShift { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); opacity: .5; } 50% { transform: translateY(-20px) rotate(180deg); opacity: 1; } }
@keyframes shimmer { 0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); } 100% { transform: translateX(100%) translateY(100%) rotate(45deg); } }
@keyframes popularityShine { 0% { left: -100%; } 100% { left: 100%; } }
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 rgb(0 132 255 / .7); } 70% { box-shadow: 0 0 15px 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes preview-pulse { 0%, 100% { box-shadow: 0 0 4px rgba(255,255,255,.6), 0 0 12px rgba(64,93,230,.4); } 50% { box-shadow: 0 0 8px rgba(255,255,255,.8), 0 0 20px rgba(64,93,230,.6); } }

.cta-button:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgb(0 0 0 / .3); }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgb(0 0 0 / .15); }
.tab-button:not(.active):hover { color: var(--primary-color); }
.tab-btn:not(.active):hover { color: #000; }
.font-card:hover::before { left: 100%; }
.font-card:hover { transform: translateY(-10px) rotateX(5deg); box-shadow: 0 25px 50px rgba(0,0,0,.3); border-color: rgba(255,255,255,.4); }
.font-card:hover .font-preview::after { width: 100%; }
.font-card:hover .font-preview { transform: scale(1.05); background: rgba(255,255,255,.1); }
#preview-modal .close-btn:hover { color: #333; }
#preview-launcher:hover { animation-play-state: paused; transform: translateY(-50%) scale(1.05); }
.usage-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,.1); }
.style-item:hover, .symbol-item:hover, .recent-item:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); }
.copy-button:hover, .favorite-button:hover { opacity: 0.9; }
.copy-button:active { transform: scale(0.95); }
.favorite-button:hover { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }
#clear-recent:hover { background-color: #0056b3; }
#clear-recent:active { background-color: #004085; }
.review-cta-button:hover { opacity: .9; }

@media (hover: hover) {
    #subtabs button:not(.active):hover { background: #fafafa; border-color: #e0e0e0; }
}

/* ==========================================================================
   11. MEDIA QUERIES
   ========================================================================== */
@media (min-width: 768px) {
    .cta-title, .hero-title, .section-title, .stats-title, h2 { font-size: 1.75rem; }
    .tab-button { padding: .75rem 2rem; }
    header p { font-size: 1.25rem; }
    .subtab-button { padding: 0.75rem 2rem; }
    .style-item, .symbol-item, .recent-item { padding: 1rem; }
    .bookmark-banner { max-width: 480px; left: 50%; transform: translateX(-50%) translateY(120px); border-radius: 24px; border: 1px solid rgba(0,0,0,.08); padding: 40px; }
    .bookmark-banner.show { transform: translateX(-50%) translateY(0); }
    .bookmark-banner::after { height: 0; }
    .mobile-instructions { display: none; }
    .desktop-instructions { display: block; text-align: center; font-size: 1.1rem; }
    .share-btn { width: 52px; height: 52px; font-size: 26px; }
    .share-bar { gap: 12px; padding: 40px 14px; }
    .share-toggle { width: 56px; height: 56px; font-size: 24px; margin-left: -16px; }
}

@media (max-width: 1024px) {
    .menu-toggle { display: flex; }
    nav#main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: #fff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); flex-direction: column; padding: 1rem 0; z-index: 100; }
    nav#main-nav.open { display: flex; }
    nav#main-nav ul { flex-direction: column; gap: 1rem; padding: 0 1.5rem; }
}

@media (max-width: 768px) {
    .fonts-grid { grid-template-columns: 1fr; gap: 20px; }
    .font-card { padding: 25px 20px; }
    .font-preview { font-size: 1.8rem; }
    .trending-title { font-size: 2.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dark-mode-toggle { width: 32px; height: 32px; font-size: 1.25rem; }
    .header-actions { gap: 12px; }
    #reviews { padding: 1rem; }
    #reviews h2 { font-size: 1.25rem; }
    .reviews-carousel { max-width: 100%; }
    .carousel-btn { font-size: 1.25rem; padding: 0 .5rem; }
}

@media (max-width: 600px) {
    .usage-grid { grid-template-columns: 1fr; gap: 20px; }
    .usage-card { padding: 25px; flex-direction: column; text-align: center; align-items: center; }
    .usage-icon { font-size: 2.5rem; margin-bottom: 15px; margin-right: 0; margin-top: 0; }
    .matrix-header { padding: 1rem; }
    .tech-table th, .tech-table td { padding: 1rem; }
    .font-list { display: none; }
    .modal-header { padding: 15px 20px; }
    .modal-header h2 { font-size: 1.2rem; }
    .modal-body { padding: 15px 20px; }
    .google-form-wrapper { height: 400px; }
    .modal-content { max-height: 95dvh; }
}

@media (max-height: 600px) {
    .device-instructions { padding: 18px; }
    .instruction-row { gap: 14px; margin-bottom: 16px; }
    .instruction-icon { width: 40px; height: 40px; }
    .instruction-icon svg { width: 24px; height: 24px; }
    .banner-title { font-size: 1.35rem; }
    .banner-actions { gap: 12px; }
    .bookmark-btn { padding: 14px; font-size: 1rem; }
}

@media (max-width: 480px) {
    nav[aria-label=Breadcrumb] { font-size: .8rem; }
    nav[aria-label=Breadcrumb] li+li::before { margin: 0 .25rem; }
    #preview-modal .modal-content { margin: 2vh auto; padding: 1rem; }
    .post-image-realistic { padding-bottom: 75%; }
    .insta-bio-preview, .insta-post-realistic { max-width: 100%; }
    footer .social-icons { justify-content: center; }
    .footer-container { grid-template-columns: 1fr; text-align: center; padding: 1.5rem 1rem; gap: 1.5rem; }
    .post-image { height: 200px; }
    .copy-button, .favorite-button, .remove-button { margin-top: 0; }
    .style-item, .symbol-item, .recent-item { grid-template-columns: 1fr auto auto; }
}

@media (max-width: 360px) {
    .share-btn { width: 40px; height: 40px; font-size: 20px; }
    .share-bar { padding: 25px 10px; }
    .share-toggle { width: 44px; height: 44px; font-size: 18px; }
}