:root {
    --primary: #ff2442;
    --primary-light: #fff0f1;
    --primary-glow: rgba(255, 36, 66, 0.15);
    --secondary: #3b82f6;
    --bg-light: #f6f8fa;
    --bg-white: #ffffff;
    --text-main: #111827;
    --text-muted: #4b5563;
    --border-color: #f1f3f5;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 5px 15px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 10px 20px -10px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-text,
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Accents */
.bg-accent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 36, 66, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.03) 0%, transparent 40%),
        #f6f8fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    background: transparent;
    transition: var(--transition);
    transform: translateZ(0);
    backface-visibility: hidden;
}

header.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(255, 36, 66, 0.2);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #ff4d6d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-btns {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0 1.5rem;
    /* Use height instead of vertical padding */
    height: 48px;
    /* Fixed height for stability */
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    gap: 0.5rem;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 8px 20px -6px rgba(255, 36, 66, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.btn-primary:hover::after {
    left: 100%;
    opacity: 1;
}

.btn-primary:hover {
    background-color: #f11c3a;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(255, 36, 66, 0.5);
}

.btn-outline {
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(255, 36, 66, 0.05);
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Cards */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-xl);
}

/* Global Component: Section Padding */
.section-padding {
    padding: 100px 0;
}

/* Global Component: Headings */
h1,
h2,
h3 {
    color: var(--text-main);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: var(--transition);
}


.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
}

/* User Center */
.user-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

.sidebar {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    height: fit-content;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu li:last-child {
    margin-bottom: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(255, 36, 66, 0.1);
    color: var(--primary);
}

/* Footer */
footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 3rem;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand p {
    max-width: 300px;
    margin-top: 1rem;
    color: var(--text-muted);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: #111827;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Parser Section */
.parser-section {
    padding: 140px 0 60px;
}

.parser-box {
    padding: 3rem;
    text-align: center;
    background: white;
    border: 2px solid var(--border-color);
}

.parser-box h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
}

.parser-box p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 36, 66, 0.1);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Parse Results */
.parse-results {
    margin-top: 3rem;
    text-align: left;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

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

.result-item {
    padding: 0.5rem;
    position: relative;
}

.item-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
}

.item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-type-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    backdrop-filter: blur(4px);
}

.item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.25rem;
}

.item-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Hero Extension */
.hero-extension {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 80px 0;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content h2 span {
    color: var(--primary);
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-mockup img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Features */
.features-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    background: rgba(255, 36, 66, 0.05);
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 16px;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Guide Box */
.guide-box {
    padding: 4rem;
}

.guide-box h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
}

.step {
    text-align: center;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.step h4 {
    margin-bottom: 0.75rem;
}

.step p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Buttons & Utils */
.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.btn-icon-only {
    padding: 0.5rem;
    width: 32px;
    height: 32px;
    justify-content: center;
}

@media (max-width: 992px) {
    .hero-extension {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-mockup {
        order: -1;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }

    .parser-box {
        padding: 1.5rem;
    }
}

/* Hero New */
.hero-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 110px 0 80px;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.badge-new .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-main-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-main-content h1 span {
    color: var(--primary);
    position: relative;
}

.hero-main-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 36, 66, 0.1);
    z-index: -1;
}

.parser-wrapper {
    margin-top: 3rem;
}

.input-group-new {
    display: flex;
    align-items: center;
    background: white;
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.input-group-new:focus-within {
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(255, 36, 66, 0.08);
}

.input-group-new i {
    padding: 0 1rem;
    color: var(--text-muted);
}

.input-group-new input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem 0;
}

/* Stats Bar */
.stats-bar {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 80px;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Hero Visual */
.visual-container {
    position: relative;
}

.visual-container img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    animation: float 4s ease-in-out infinite;
}

.floating-badge.b1 {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.floating-badge.b2 {
    bottom: 20%;
    right: -10%;
    animation-delay: 1s;
}

.floating-badge i {
    color: var(--primary);
}

/* Features New */
.sub-title {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.feature-card-new {
    text-align: left;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.icon-box.red {
    background: #fff0f1;
    color: #ff2442;
}

.icon-box.blue {
    background: #eef2ff;
    color: #4f46e5;
}

.icon-box.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.icon-box.green {
    background: #f0fdf4;
    color: #16a34a;
}

/* Pro Card */
.pro-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    background: linear-gradient(135deg, #1a1d21, #2d3139);
    color: white;
    padding: 4rem;
    border-radius: 24px;
    margin-top: 100px;
}

.pro-tag {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.pro-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.pro-content p {
    color: #94a3b8;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.pro-image img {
    width: 100%;
    border-radius: 12px;
    transform: perspective(1000px) rotateY(-10deg) rotateX(10deg);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 992px) {
    .hero-new {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .pro-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        text-align: center;
    }

    .pro-image {
        display: none;
    }
}

/* How it Works New */
.how-it-works {
    padding: 100px 0;
}

.steps-new-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 36, 66, 0.05);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 1.5rem;
}

.step-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .steps-new-grid {
        grid-template-columns: 1fr;
    }
}

/* Parser Details */
.input-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.action-btn:hover,
.action-btn:hover i {
    background: transparent;
    color: var(--primary);
}

.paste-btn {
    color: var(--text-muted);
    /* Start with a subtle color */
    background: transparent;
    font-weight: 500;
}

.paste-btn:hover {
    background: transparent;
    color: var(--primary);
}

.parser-tips {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.parser-tips span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.parser-tips a {
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Hero Visual Decoration */
.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 36, 66, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.visual-decoration {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.vd1 {
    width: 100px;
    height: 100px;
    top: -20px;
    right: -20px;
}

.vd2 {
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: -30px;
    background: var(--secondary);
}

/* Animation tweak */
.animate-fade {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item h4::before {
    content: 'Q';
    color: var(--primary);
    font-weight: 900;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Footer Enhanced */
.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

/* FAB */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.fab-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.fab-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    color: var(--primary);
}

.back-to-top {
    background: var(--primary);
    color: white;
    border: none;
}

.back-to-top:hover {
    background: #f11c3a;
    color: white;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 40px rgba(255, 36, 66, 0.1);
}

.popular-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-header h4 {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 3rem;
    flex: 1;
}

.pricing-features li {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}

.pricing-features li i.fa-check {
    color: #10b981;
}

.pricing-features li i.fa-times {
    color: #ef4444;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery & Alignment Fixes */
.input-group-new {
    display: flex;
    align-items: center;
    background: white;
    padding: 0.4rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    min-height: 60px;
    /* Fixed height for better alignment */
}

.input-group-new i.fa-link {
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.input-group-new input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem 0;
    background: transparent;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 120px;
    /* Ensure button width is stable during loading */
}

.btn i {
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
}

.fa-spinner {
    color: white !important;
    margin-right: 0 !important;
    display: block !important;
    /* Force block to respect flex centering */
}

/* Gallery Section */
.parse-results-gallery {
    margin-top: 2.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-weight: 700;
}

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

.gallery-item {
    padding: 0.5rem !important;
}

.item-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-badge {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.item-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.icon-btn-small {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn-small:hover {
    background: var(--primary);
    color: white;
}

/* PRO Section Optimization */
.pro-features-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.pro-feat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.pro-feat-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.pro-img-wrapper {
    position: relative;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pro-img-wrapper img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.pro-card:hover .pro-img-wrapper img {
    transform: scale(1.02) translateY(-5px);
}

/* Internal Pages Hero */
.internal-hero {
    padding: 140px 0 30px;
    background: linear-gradient(135deg, #fff, #f6f8fa);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.internal-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.internal-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.internal-hero .bg-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Tutorial Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.category-card i {
    font-size: 2.8rem;
    /* Slightly larger since no box */
    color: var(--primary);
    margin-bottom: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Timeline for Changelog */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.timeline-content .version-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Hero Ratio Adjustment (7:3) */
.hero-new {
    display: flex;
    align-items: flex-start;
    /* Align parser to top */
    gap: 4rem;
    padding: 100px 0 80px;
}

.hero-main-content {
    flex: 0 0 70%;
    /* 70% width */
}

.hero-visual {
    flex: 0 0 30%;
    /* 30% width */
}

/* Play Button Overlay */
.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.play-icon-wrap {
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-left: 5px;
    /* Visual center adjustment for play icon */
    box-shadow: 0 0 0 0 rgba(255, 36, 66, 0.4);
    animation: pulse-red 2s infinite;
}

.play-btn-overlay span {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.play-btn-overlay:hover {
    transform: translate(-50%, -55%);
}

.play-btn-overlay:hover .play-icon-wrap {
    background: #f11c3a;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 36, 66, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 36, 66, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 36, 66, 0);
    }
}

/* Video Modal */
.video-modal-content {
    background: #000;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.video-container-modal {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    text-align: center;
    color: white;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

@media (max-width: 1024px) {
    .hero-new {
        flex-direction: column;
    }

    .hero-main-content,
    .hero-visual {
        flex: 0 0 100%;
        width: 100%;
    }
}

/* Disabled Button State */
.btn-disabled,
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-disabled::after {
    display: none !important;
    /* Hide shimmer effect when disabled */
}

/* Hero Background Effects */
.hero-new {
    position: relative;
    /* Ensure relative for absolute decorations */
    z-index: 1;
}

.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 36, 66, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float-blob 20s infinite alternate ease-in-out;
}

.b-red {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.b-purple {
    width: 500px;
    height: 500px;
    background: #a855f7;
    /* Purple accent */
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Enhancing Visual depth */
.hero-main-content {
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

/* Restore Horizontal Layout & Full Screen Support */
.hero-new {
    min-height: 100vh;
    display: flex;
    align-items: flex-start; /* Change from center to flex-start */
    padding: 120px 0 100px !important; /* Restore padding and keep !important to override previous definitions */
}

.hero-content-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
    padding-top: 80px;
    /* Header space */
}

.hero-main-content {
    flex: 0 0 65% !important;
    text-align: left !important;
    margin: 0 !important;
}

.hero-visual {
    flex: 0 0 35% !important;
    margin: 0 !important;
}

@media (max-width: 1024px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-main-content,
    .hero-visual {
        flex: 0 0 100% !important;
        text-align: center !important;
    }
}

/* --- Comprehensive Mobile Optimization --- */

@media (max-width: 768px) {

    /* Global Container Padding */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Header & Mobile Nav */
    header nav {
        height: 70px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        gap: 2rem;
        align-items: flex-start;
    }

    .nav-links.mobile-active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        font-size: 1.25rem;
        width: 100%;
        display: block;
    }

    .nav-btns {
        display: none;
        /* Hide desktop buttons */
    }

    .mobile-only-btns {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-top: 2rem;
    }

    .mobile-nav-toggle {
        display: flex !important;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-main);
        z-index: 101;
    }

    /* Hero Section Mobile */
    .hero-new {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .hero-content-wrapper {
        flex-direction: column !important;
        gap: 3rem;
    }

    .hero-main-content {
        flex: 0 0 100% !important;
        text-align: center !important;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    .input-group-new {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
        background: white;
    }

    .input-group-new input {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }

    .input-group-new .btn-primary {
        width: 100%;
        height: 50px;
    }

    .input-actions {
        position: absolute;
        right: 15px;
        top: 25px;
    }

    .parser-tips {
        flex-direction: column;
        gap: 1rem;
    }

    /* Features & Grid Mobile */
    .feature-grid,
    .pricing-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    /* Internal Hero */
    .internal-hero {
        padding: 120px 0 60px;
        text-align: center;
    }

    .internal-hero h1 {
        font-size: 2rem !important;
    }

    /* Internal Page Content */
    .guide-page-layout {
        display: flex !important;
        flex-direction: column !important;
    }

    aside {
        display: none;
        /* Hide sidebar on mobile or implement a toggle */
    }

    .card {
        padding: 20px !important;
    }

    /* Stats Bar */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Helper for mobile logic */
.mobile-only-btns {
    display: none;
}

.mobile-nav-toggle {
    display: none;
}

/* Pro Extension Buttons Optimization */
.pro-btns {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .pro-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .pro-btns .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced Internal Hero Styles */
.internal-hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(180deg, rgba(255, 36, 66, 0.03) 0%, #fff 100%);
    overflow: hidden;
    text-align: center;
}

.internal-hero .container {
    position: relative;
    z-index: 10;
}

.internal-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.internal-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Background Effects for Internal Pages */
.internal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 36, 66, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

.internal-hero .bg-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.08;
    top: -50px;
    right: -50px;
    border-radius: 50%;
    z-index: 1;
}

.internal-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: #a855f7;
    filter: blur(150px);
    opacity: 0.05;
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    z-index: 1;
}

@media (max-width: 768px) {
    .internal-hero {
        padding: 120px 0 60px;
    }

    .internal-hero h1 {
        font-size: 2.5rem;
    }

    .internal-hero p {
        font-size: 1.1rem;
    }
}

/* Optimized Installation Steps Flow */
.steps-flow-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin: 4rem 0;
}

.step-flow-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 24px;
    transition: var(--transition);
}

.step-flow-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-visual {
    position: relative;
    margin-bottom: 1.5rem;
}

.step-num {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    border: 2px solid white;
}

.step-icon-bg {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.step-flow-item:hover .step-icon-bg {
    background: var(--primary);
    color: white;
}

.step-text h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-flow-line {
    flex: 0 0 40px;
    height: 2px;
    background: var(--border-color);
    margin-top: 60px;
    position: relative;
}

.step-flow-line::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -5px;
    top: -8px;
    color: var(--border-color);
}

@media (max-width: 992px) {
    .steps-flow-container {
        flex-direction: column;
        gap: 2rem;
    }

    .step-flow-line {
        display: none;
    }

    .step-flow-item {
        width: 100%;
    }
}

/* Guide Tabs & Article Grid */
.tab-btn {
    padding: 0.75rem 2rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 36, 66, 0.2);
}

.tab-btn:hover:not(.active) {
    background: var(--bg-light);
    color: var(--primary);
}

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

.article-card {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.article-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-thumb img {
    transform: scale(1.05);
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
}

.article-body {
    padding: 1.5rem;
}

.article-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.article-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Card-style Category Tabs */
.category-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.category-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-card.active {
    border-color: var(--primary);
    background: #fff9fa;
    /* Solid opaque background to hide grid lines */
    box-shadow: 0 10px 30px rgba(255, 36, 66, 0.1);
}

.category-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
}

.active-indicator {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.1;
}

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

    .category-card {
        padding: 1.5rem 1rem;
    }

    .category-card i {
        font-size: 1.8rem;
    }
}

/* Rich Text Styles for Guide */
.rich-text h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.rich-text h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 3rem 0 1.5rem;
}

.rich-text h4 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.rich-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.rich-text ul,
.rich-text ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.rich-text li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.rich-text code {
    background: var(--bg-light);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

.rich-text blockquote {
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
}

/* Changelog Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-version {
    background: rgba(255, 36, 66, 0.1);
    color: var(--primary);
}

.badge-feature {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-bug {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge-event {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.badge-maint {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* Layout Utilities */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.mt-neg-hero {
    margin-top: -80px;
}

.z-high {
    position: relative;
    z-index: 30;
}

/* Typography Consistency */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted);
}

.font-bold {
    font-weight: 700;
}

.font-ebold {
    font-weight: 800;
}

/* Standard Internal Hero */
.internal-hero {
    padding: 140px 0 160px;
    background: linear-gradient(135deg, var(--bg-white) 0%, #fff5f6 100%);
    position: relative;
    overflow: hidden;
}

/* Standard Internal Hero */
.internal-hero {
    padding: 140px 0 160px;
    background: linear-gradient(135deg, var(--bg-white) 0%, #fff5f6 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
    /* Fixed: Centered for consistency with homepage */
}

.internal-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.internal-hero h1 span {
    color: var(--primary);
}

.internal-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    line-height: 1.6;
    margin: 0 auto;
    /* Fixed: Centering the paragraph */
}

color: var(--text-muted);
max-width: 600px;
}

/* Feature Cards & Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
}

/* Global Input Styles */
input,
textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: white;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 36, 66, 0.1);
}

/* Auth Modal Styles */
.auth-modal {
    width: 100%;
    max-width: 440px;
    /* Slightly narrower */
    padding: 2.5rem 2rem !important;
    /* Reduced padding */
    position: relative;
    border-radius: 24px !important;
    max-height: 90vh;
    /* Prevent overflow */
    overflow-y: auto;
    scrollbar-width: thin;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
    /* Reduced margin */
}

.auth-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1rem;
    /* Reduced margin */
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

/* Password field with eye toggle */
.pwd-wrap {
    position: relative;
}
.pwd-wrap input {
    width: 100%;
    padding-right: 2.5rem;
}
.pwd-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem;
}
.pwd-toggle:hover {
    color: #666;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-footer a,
.auth-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.auth-footer a:hover,
.auth-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    animation: toastSlideIn 0.3s ease;
}
.toast-error { background: #ef4444; }
.toast-success { background: #22c55e; }
.toast-info { background: #3b82f6; }

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: rotate(90deg);
}
/* Option Card for Forms */
.option-card {
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    background: white;
}

.option-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.option-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 4px 12px rgba(255, 36, 66, 0.1);
}

.option-card input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.option-card span {
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-card.active span {
    color: var(--primary);
    font-weight: 700;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #f9fafb;
    position: relative;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-area i {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.upload-area p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* User Dropdown Menu Styles */
.user-menu-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.user-menu-wrap:hover {
    background: white;
    border-color: rgba(255, 36, 66, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.user-avatar-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(255, 36, 66, 0.2);
}

.user-info-text {
    display: flex;
    flex-direction: column;
}

.user-info-text .user-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 200px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    padding: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-menu-wrap:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 25px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 1.25rem;
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.dropdown-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 0.5rem 0.8rem;
}

.dropdown-item.logout-btn {
    color: var(--primary);
}

.dropdown-item.logout-btn:hover {
    background: #fff1f2;
}

/* Navigation Dropdown */
.nav-links .has-dropdown {
    position: relative;
}

.nav-links .has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links .has-dropdown > a i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-links .has-dropdown:hover > a i {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 260px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    padding: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
