/* assets/css/style.css */
:root {
    /* Brand Core Colors - User Specified */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;

    /* Supporting Palette */
    --secondary-color: #a855f7;
    --accent-color: #ec4899;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f8f9fa;
    --bg-glass: rgba(255, 255, 255, 0.9);

    /* Enhanced Branding Accents */
    --border-color: rgba(99, 102, 241, 0.15);
    /* Tinted with brand color */
    --highlight-color: rgba(99, 102, 241, 0.08);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(99, 102, 241, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* Brand tinted shadow */
    --shadow-lg: 0 10px 15px -3px rgba(99, 102, 241, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-color: rgba(99, 102, 241, 0.25);

    /* Legacy variables mapping for compatibility */
    --primary: var(--primary-color);
    --secondary: var(--secondary-color);
    --accent: var(--accent-color);
    --text-main: var(--text-primary);
    --text-muted: var(--text-secondary);

    /* Brand Integration System */
    --brand-primary: var(--primary-color);
    --brand-secondary: var(--secondary-color);
    --brand-gradient: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(34, 211, 238, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    background: #0a0a0a;
    border-bottom: 2px solid var(--primary-color);
    /* Added Brand Border */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px -5px rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.025em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center
}

.nav-menu a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active {
    font-weight: 700;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 70px);
}

/* Global Dark Hero Section */
.hero {
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -2rem;
    margin-bottom: 2rem;
    padding: 2rem 1rem 1rem;
    background: #0f172a;
    /* Dark background */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.15), transparent 25%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1rem;
    color: #caced6;
    /* Light gray text */
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.hero .disclaimer {
    color: #bb0000;
}

/* Hero Pill Badge */
.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24;
    /* Gold/Yellow accent */
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compatibility-link {
    display: inline-block;
    margin-top: 1rem;
    padding: .6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all .2s;
}

.compatibility-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tool-container {
    padding: 2rem 0;
    margin-bottom: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}


.input-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: .5rem;
    display: block
}

textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color)
}

textarea::placeholder {
    color: #999
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .5rem;
    flex-wrap: wrap;
    gap: .5rem
}

.char-counter {
    font-size: .85rem;
    color: #666
}

.share-buttons {
    display: flex;
    gap: .5rem;
    align-items: center
}

.share-buttons span {
    font-size: .8rem;
    color: #888
}

.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: #fff;
    transition: transform .2s
}

.share-btn:hover {
    transform: scale(1.1)
}

.share-btn.twitter {
    background: #000
}

.share-btn.facebook {
    background: #4267B2
}

.share-btn.whatsapp {
    background: #25D366
}

.share-btn.copy-link {
    background: #FCD34D;
    color: #333
}

.filter-container {
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    text-align: center
}

.filter-label {
    font-size: .9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: .5rem;
    display: block
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .3rem
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #6366f1 !important;
    color: #000000;
    padding: .5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: .85rem;
    transition: all .3s;
    text-decoration: none
}

.filter-btn:hover {
    border-color: #6366f1;
    background: #f0f9ff
}

.results-preview {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center
}

.preview-count {
    color: var(--primary-color);
    font-weight: 600
}

/* Tool Sections & Categories */
.category-section {
    margin-bottom: 2.5rem;
}

.category-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-primary);
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.category-title span {
    margin-right: 0.5rem;
}

.see-all-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.see-all-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Jump Navigation */
.jump-nav {
    margin: 1.5rem 0 2rem;
    text-align: center;
}

.jump-nav-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.jump-link {
    display: inline-block;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
}

.jump-link:hover {
    border-color: var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Output Grid & Font Cards */
.output-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.font-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.font-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.font-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.card-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.copy-btn,
.preview-btn {
    border: none;
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.copy-btn {
    background: var(--brand-primary);
}

.preview-btn {
    background: #6c757d;
}

.copy-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.preview-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #28a745;
}

.styled-text {
    font-size: 1.2rem;
    word-break: break-word;
    overflow-wrap: anywhere;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    height: 85px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    flex-grow: 1;
    overflow-y: auto;
}

.sticky-input-bar {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 90;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    padding: .8rem 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease
}

.sticky-input-bar.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible
}

.sticky-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center
}

.sticky-input-bar input {
    flex: 1;
    padding: .6rem 1rem;
    font-size: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px
}

.sticky-input-bar input:focus {
    outline: none;
    border-color: var(--primary-color)
}

.sticky-label {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    font-size: .9rem
}

.back-to-top {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: .5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: .85rem;
    white-space: nowrap
}

.category-section {
    margin-bottom: 2rem;
    scroll-margin-top: 140px
}

#platform-compatibility {
    scroll-margin-top: 140px
}

.category-header {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 3px solid var(--brand-primary);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.header-actions {
    display: flex;
    align-items: center;
}

.see-all-link {
    font-size: 0.9rem;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.see-all-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.category-header .emoji {
    font-size: 1.5rem
}

.output-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr))
}

.font-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1rem;
    transition: all .3s
}

.font-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    border-color: #6366f1
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem
}

.font-name {
    font-weight: 600;
    color: #333;
    font-size: .9rem
}

.copy-btn {
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: .4rem .8rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: .8rem;
    transition: all .3s
}

.copy-btn:hover {
    background: var(--primary-hover)
}

.copy-btn.copied {
    background: #28a745
}

.styled-text {
    font-size: 1.1rem;
    background: #f8f9fa;
    padding: .8rem;
    border-radius: 6px;
    height: 78px;
    line-height: 1.3;
    overflow-y: auto;
    word-break: break-word
}

.scroll-hint {
    font-size: .65rem;
    color: #bbb;
    margin-right: .3rem;
    display: none
}

.scroll-hint.visible {
    display: inline
}

.flag-toggle,
.font-toggle {
    font-size: .75rem;
    font-weight: normal;
    margin-left: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .3rem
}

.flag-toggle input,
.font-toggle input {
    cursor: pointer
}

.toggle-label {
    color: #666
}

/* Professional Content Design (Tag-based) */
main>section:not(.hero):not(.tool-container):not(.category-section),
.content-section {
    padding: 3rem 0;
    margin-bottom: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

main>section h2,
.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #111827;
    padding-left: 1.25rem;
    border-left: 4px solid var(--primary-color);
    line-height: 1.2;
    display: block;
}

main>section h3,
.content-section h3 {
    font-size: 1.35rem;
    margin: 2.5rem 0 1rem;
    color: #1f2937;
    font-weight: 700;
}

main>section p,
.content-section p {
    margin-bottom: 1.5rem;
    color: #4b5563;
    line-height: 1.8;
    font-size: 1.05rem;
}

main>section ul,
main>section ol,
.content-section ul,
.content-section ol {
    margin: 1.5rem 0 2rem 1.5rem;
    color: #4b5563;
}

main>section li,
.content-section li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    position: relative;
    padding-left: 0.5rem;
}

/* Section Dividers for Seemless Flow */
main>section:not(:last-of-type):not(.hero):not(.tool-container) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Global FAQ Styling */
.faq-grid {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.faq-item {
    background: #fdfdfd;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.05);
}

.faq-question {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-question::before {
    content: 'Q:';
    color: var(--primary-color);
    font-weight: 800;
}

.faq-answer {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
    padding-left: 1.5rem;
}

/* Global Highlight Box Styling */
.highlight-box {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.02));
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    position: relative;
}

.highlight-box strong {
    color: var(--primary-hover);
}

.highlight-box code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 600;
}

.tools-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    justify-items: center;
    margin: 1.5rem 0;
}


.tool-card .cta {
    color: var(--primary-color);
    font-weight: 600;
    font-size: .9rem
}

/* Search Bar Styles */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-left: 3rem;
    padding-right: 8rem;
    /* Space for button */
    font-size: 1.1rem;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.search-input:focus {
    outline: none;
    box-shadow: var(--shadow-lg), 0 0 0 2px var(--primary-color);
    border-color: transparent;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    pointer-events: none;
}

.search-btn-main {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 40px;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
    font-size: 0.95rem;
}

.search-btn-main:hover {
    transform: scale(1.02);
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Premium Tool Card Styles */
.tool-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    min-height: 220px;
    width: 100%;
    max-width: 320px;
    /* Prevent stretching */
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 20px var(--shadow-color);
    background: #ffffff;
    border-color: transparent;
}

.tool-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    /* Reduced space */
    transition: transform 0.3s ease;
}

.tool-card h3 {
    margin-top: 0;
    /* Remove browser default margin */
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.tool-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    width: 100%;
}

.tool-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    background: #f3f4f6;
    color: var(--text-secondary);
}

.tool-badge.popular {
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent-color);
}

.tool-badge.new {
    background: rgba(34, 211, 238, 0.1);
    color: #0891b2;
}

.tool-badge.hot {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.arrow-icon {
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.tool-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

.faq-question {
    font-weight: 600;
    color: #333;
    margin-bottom: .5rem
}

.faq-answer {
    color: #555;
    line-height: 1.6
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: .5rem
}

.feature-item .icon {
    color: var(--primary-color);
    font-size: 1.2rem
}

footer {
    text-align: center;
    padding: 2rem;
    background: #0a0a0a;
    border-top: 2px solid var(--primary-color);
    margin-top: 3rem;
    box-shadow: 0 -4px 20px -5px rgba(99, 102, 241, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap
}

.footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.footer-links a:hover {
    color: var(--primary-color)
}

footer p {
    color: #9ca3af;
    margin-top: .5rem
}

@media(max-width:768px) {
    nav {
        height: 60px;
        padding: 0 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #0a0a0a;
        border-top: 2px solid var(--primary-color);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all .3s;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .3)
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible
    }

    .mobile-menu {
        display: block
    }

    .hero h1 {
        font-size: 1.5rem
    }

    main {
        padding: 1rem
    }

    .output-grid {
        grid-template-columns: 1fr
    }

    .tools-grid {
        grid-template-columns: 1fr
    }

    .filter-btn {
        font-size: .75rem;
        padding: .4rem .7rem
    }

    .sticky-inner {
        flex-wrap: wrap
    }

    .sticky-label {
        display: none;
    }

    .sticky-input-bar input {
        min-width: 0
    }

    .category-header {
        flex-direction: space-between;
        align-items: flex-start;
        gap: 0.75rem;
        font-size: 18px;
    }

    .header-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .see-all-link {
        display: block;
        width: 100%;
    }

    .category-header .font-toggle {
        margin-left: 0;
    }

}

.highlight-box {
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-left: 4px solid #ffcc02;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0
}

.platform-item {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all .3s
}

.platform-icon {
    font-size: 1.5rem;
    margin-bottom: .3rem
}

.platform-name {
    font-weight: 600;
    font-size: .85rem;
    color: #333
}

.platform-status {
    font-size: .7rem;
    color: #28a745
}

@media(max-width:768px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

/* ... existing footer is at lines 815-843, keeping that ... */

.category-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #e5e7eb 0%, transparent 100%);
}

/* ===== TOAST NOTIFICATION SYSTEM ===== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 18px;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid;
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-hide {
    opacity: 0;
    transform: translateX(400px) scale(0.9);
}

.toast-icon {
    font-size: 1.3rem;
    font-weight: bold;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.toast-info {
    border-left-color: #3b82f6;
}

.toast-info .toast-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

@media (max-width: 640px) {
    .toast-container {
        top: 80px;
        right: 12px;
        left: 12px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* ===== FAVORITE BUTTON STYLES ===== */
.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.3rem;
    color: #d1d5db;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.favorite-btn:hover {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    transform: scale(1.1);
}

.favorite-btn.favorited {
    color: #fbbf24;
}

.favorite-btn:active {
    transform: scale(0.95);
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {

    .copy-btn,
    .preview-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.6rem 1rem;
    }

    .favorite-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .share-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .filter-btn,
    .jump-link {
        min-height: 44px;
        padding: 0.7rem 1.2rem;
    }

    .card-buttons {
        gap: 0.75rem;
    }

    .styled-text {
        font-size: 1.15rem;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 0;
}

@media (prefers-contrast: high) {
    .font-card {
        border-width: 3px;
    }

    .copy-btn,
    .preview-btn {
        border: 2px solid currentColor;
    }
}

@media (prefers-reduced-motion: reduce) {

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

    .toast {
        transition: opacity 0.1s;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}