:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --blue: #3b82f6;
    --blue-dark: #2563eb;
    --navy: #0f172a;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    padding-top: var(--header-h);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--navy);
}

.logo-icon {
    color: var(--primary);
    font-size: 1.8rem;
}

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

.mobile-menu-btn {
    display: none;
}

.nav-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-alt);
    padding: 4px;
    border-radius: 12px;
}

.nav-tab {
    padding: 8px 18px;
    border: none;
    background: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 8px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-tab i {
    font-size: 1.2rem;
}

.nav-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Hero */
section {
    padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 100px;
    margin-bottom: 20px;
    background: rgba(249, 115, 22, 0.1);
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--navy);
    letter-spacing: -1px;
}

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

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
    align-items: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    text-decoration: none;
    min-width: 200px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-outline {
    background: white;
    color: var(--navy);
    border: 1.5px solid var(--border);
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat .val {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
}

.stat .lbl {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-card {
    background: var(--navy);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.3);
    position: relative;
}

.card-header {
    padding: 15px;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.card-body {
    padding: 30px;
    padding-bottom: 65px;
    font-family: monospace;
    background: #1e1e1e;
    color: #d4d4d4;
    font-size: 0.85rem;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.code-line {
    white-space: nowrap;
}

.indent {
    padding-left: 20px;
}

.indent2 {
    padding-left: 40px;
}

.key {
    color: #d73a49; /* brighter red for keys */
}

.val {
    color: #005cc5; /* brighter blue for values */
}

.str {
    color: #22863a; /* brighter green for strings */
}

.punctuation {
    color: #6a737d; /* gray for brackets, commas, semicolons */
    font-weight: normal;
}

.card-floating-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 800;
    transform: rotate(5deg);
}

/* Audience & Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.audience-card {
    padding: 40px;
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: 0.3s;
    text-align: center;
}

.audience-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: var(--navy);
    color: white;
}

.aud-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Process */
.process-box {
    background: var(--bg-alt);
    padding: 50px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.proc-item {
    text-align: center;
    flex: 1;
}

.proc-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.price-card-old {
    padding: 40px;
    background: white;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    transition: 0.3s;
    text-align: center;
    position: relative;
}

.price-card-old:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.price-card-old.popular {
    border-color: #ff5f56;
}

.pop-tag-old {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff5f56;
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(255, 95, 86, 0.3);
}

.amount-old {
    font-size: 3rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 10px;
}

.features-old {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.features-old li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.features-old li i {
    color: #22c55e;
}

.btn-buy-old {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    background: var(--blue);
    color: white;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.btn-buy-old:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* SPREAD */
.spread-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-spread {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    background: var(--blue);
}

.btn-spread:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* REVIEWS - FIXED */
.review-form-container {
    max-width: 900px;
    margin: 0 auto 40px;
}

.horizontal-form {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 15px;
    background: var(--bg-alt);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border-radius: 12px;
    border: 1px solid var(--border);
    outline: none;
    font-family: inherit;
    font-size: 1rem;
}

.horizontal-form button {
    padding: 0 40px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.horizontal-form button:hover {
    background: var(--primary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.review-card-modern {
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: white;
    transition: 0.3s;
    word-break: break-word;
    overflow-wrap: break-word;
}

.review-card-modern:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.review-header .name {
    font-weight: 700;
    color: var(--primary);
}

.review-header .date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    color: var(--navy);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Premium Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    /* Gentle backdrop overlay */
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-inner {
    background: #ffffff;
    /* Tech light theme container */
    width: 95%;
    max-width: 1000px;
    height: 90vh;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.15);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

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

/* Elegant glassmorphic toolbar at top */
.modal-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: var(--navy);
    z-index: 10;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-title {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
    color: var(--navy);
}

.toolbar-title i {
    color: var(--primary);
    font-size: 1.3rem;
}

.toolbar-center {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
}

.toolbar-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    color: var(--navy);
    background: rgba(15, 23, 42, 0.05);
}

.zoom-level {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 45px;
    text-align: center;
    color: var(--navy);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    border: 1px solid rgba(249, 115, 22, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.toolbar-download-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.toolbar-close-btn {
    background: #f1f5f9;
    border: none;
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.toolbar-close-btn:hover {
    color: white;
    background: #ef4444;
}

/* Beautiful light scroll area for document pages */
.preview-scroll {
    flex: 1;
    overflow-y: auto;
    background: #f1f5f9;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.preview-zoom-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 800px;
    transform-origin: top center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.preview-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.preview-end-card {
    background: #fff7ed;
    border: 1.5px dashed rgba(249, 115, 22, 0.3);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    margin: 20px 0;
    color: #ea580c;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.preview-end-card i {
    font-size: 2.2rem;
    color: var(--primary);
}

.preview-end-note {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    color: #c2410c;
}

/* Elegant Modal Footer */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.footer-promo-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 60%;
    line-height: 1.5;
}

.footer-promo-text span strong {
    color: var(--navy);
}

.buy-full-cta {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
    animation: btnPulse 2s infinite;
}

.buy-full-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

@media (max-width: 768px) {
    .modal-inner {
        height: 100vh;
        width: 100%;
        border-radius: 0;
    }

    .modal-toolbar {
        padding: 12px 16px;
    }

    .toolbar-title span {
        display: none;
        /* Only show icon on mobile title */
    }

    .toolbar-download-btn span {
        display: none;
        /* Only show download icon on mobile */
    }

    .toolbar-download-btn {
        padding: 8px 12px;
    }

    .preview-scroll {
        padding: 20px 15px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }

    .footer-promo-text {
        max-width: 100%;
        font-size: 0.85rem;
    }

    .buy-full-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Result Screens */
.modal-screen {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.modal-box {
    background: white;
    padding: 50px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.modal-box h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.modal-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.success-icon {
    font-size: 5rem;
    color: #22c55e;
    margin-bottom: 20px;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    background: var(--bg-alt);
    color: var(--text);
}

.footer-contact {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 900px) {

    .hero-grid,
    .audience-grid,
    .pricing-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .process-box {
        flex-direction: column;
        gap: 40px;
    }

    .horizontal-form {
        grid-template-columns: 1fr;
    }

    .spread-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        min-width: 0;
        width: 100%;
    }

    .hero-card {
        width: 100%;
    }

    .card-body {
        padding: 20px;
        padding-bottom: 55px;
        font-size: 0.75rem;
        overflow-x: hidden;
    }

    .code-line {
        white-space: pre-wrap;
        word-break: break-word;
    }

    .indent {
        padding-left: 15px;
    }

    .indent2 {
        padding-left: 30px;
    }

    .card-floating-badge {
        font-size: 0.85rem;
        right: 10px;
        bottom: 15px;
        padding: 6px 12px;
    }

    /* Mobile Hamburger Menu */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 2.2rem;
        color: var(--navy);
        cursor: pointer;
    }

    .nav-tabs {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid var(--border);
        border-radius: 0 0 16px 16px;
        z-index: 999;
    }

    .nav-tabs.show {
        display: flex;
        animation: fadeInDown 0.3s ease;
    }

    .nav-tab {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 20px;
        font-size: 1.05rem;
        background: var(--bg-alt);
    }

    .nav-tab.active {
        background: var(--primary);
        color: white;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ================== BLOG SECTION ================== */
.blog-section {
    padding: 60px 0;
}

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

.blog-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--navy);
    line-height: 1.4;
    transition: color 0.3s;
}

.blog-card:hover h3 {
    color: var(--primary);
}

.blog-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.read-more {
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Hero Blog Post */
.hero-blog-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    align-items: center;
}

.hero-blog-card .blog-card-img {
    height: 400px;
    border-radius: 16px 0 0 16px;
}

.hero-blog-card .blog-card-content {
    padding: 50px;
}

.hero-blog-card h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-blog-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .hero-blog-card {
        grid-template-columns: 1fr;
    }

    .hero-blog-card .blog-card-img {
        height: 250px;
        border-radius: 16px 16px 0 0;
    }

    .hero-blog-card .blog-card-content {
        padding: 25px;
    }

    .hero-blog-card h3 {
        font-size: 1.5rem;
    }
}

/* Blog Search Bar */
.blog-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.blog-search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-muted);
}

.blog-search-container input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.blog-search-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.1);
}

/* Blog Tags (Glassmorphism) */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.blog-tag {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(249, 115, 22, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================== PRACTICE SECTION (BRAND HARMONY) ================== */
.practice-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 22px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-main);
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: #fff7ed;
    color: var(--primary);
    border-color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.practice-search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 45px;
    position: relative;
}

.practice-search-container i {
    position: absolute;
    left: 22px;
    top: 18px;
    font-size: 1.3rem;
    color: var(--text-muted);
}

.practice-search-container input {
    flex: 1;
    padding: 16px 16px 16px 55px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    background: white;
}

.practice-search-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.practice-search-container .search-btn {
    padding: 0 40px;
    background: var(--navy);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.practice-search-container .search-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

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

.exam-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.exam-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--primary);
}

.exam-card h3 {
    font-size: 1.25rem;
    color: var(--navy);
    line-height: 1.5;
    font-weight: 700;
    transition: color 0.3s;
}

.exam-card:hover h3 {
    color: var(--primary);
}

.exam-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.exam-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exam-info i {
    color: var(--primary);
    font-size: 1.1rem;
}

.exam-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.exam-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 6px;
    background: #fff7ed;
    color: var(--primary);
    border: 1px solid #ffedd5;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exam-card .btn-detail {
    margin-top: auto;
    width: 100%;
    padding: 14px;
    border: 2px solid var(--navy);
    color: var(--navy);
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
    text-align: center;
    font-size: 0.95rem;
}

.exam-card:hover .btn-detail {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* Exam Modal Layout */
.exam-modal-inner {
    max-width: 1100px;
    width: 95%;
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
    background: white;
}

.exam-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    min-height: 80vh;
}

@media (max-width: 900px) {
    .exam-layout {
        grid-template-columns: 1fr;
    }
}

.exam-main {
    padding: 50px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.exam-sidebar {
    padding: 50px;
    background: #fcfcfd;
}

.exam-title {
    font-size: 2.2rem;
    margin-top: 15px;
    margin-bottom: 30px;
    color: var(--navy);
    font-weight: 800;
    line-height: 1.2;
}

.exam-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.exam-tab {
    padding: 10px 20px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--text-main);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.exam-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.exam-stats-info {
    display: flex;
    gap: 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.exam-stats-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exam-stats-info i {
    color: var(--primary);
    font-size: 1.2rem;
}

.exam-action-tabs {
    display: flex;
    gap: 35px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 35px;
}

.exam-action-tabs span {
    padding: 15px 0;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    font-weight: 700;
    transition: 0.3s;
}

.exam-action-tabs span:hover {
    color: var(--navy);
}

.exam-action-tabs span.active {
    color: var(--primary);
}

.exam-action-tabs span.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.pro-tips-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    gap: 18px;
    margin-bottom: 35px;
    align-items: flex-start;
    color: #166534;
    font-size: 1rem;
    line-height: 1.6;
}

.pro-tips-banner i {
    font-size: 1.6rem;
    margin-top: 2px;
}

.exam-sections {
    margin-bottom: 35px;
}

.exam-parts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.part-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    background: white;
}

.part-checkbox:hover {
    border-color: var(--primary);
    background: #fff7ed;
}

.part-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.part-checkbox span {
    font-weight: 600;
    color: var(--navy);
}

.exam-time-limit select {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 35px;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.exam-time-limit select:focus {
    border-color: var(--primary);
}

.exam-start-btn {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.2);
}

/* Sidebar Components */
.exam-author-card {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid var(--border);
}

.author-avatar {
    font-size: 4.5rem;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.author-name {
    font-weight: 800;
    color: var(--navy);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.author-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.stats-btn {
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stats-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.2);
}

.exam-upsell-sidebar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 30px;
    border-radius: 16px;
    color: white;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.exam-upsell-sidebar:hover {
    transform: scale(1.02);
}

.upsell-badge {
    position: absolute;
    top: 12px;
    right: -30px;
    background: #ef4444;
    padding: 5px 35px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.exam-upsell-sidebar h4 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.exam-upsell-sidebar p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-upsell {
    background: var(--primary);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.btn-upsell:hover {
    background: #ea580c;
}




/* Article Detail (Chuẩn báo chí) */
.article-section {
    padding: 40px 0 80px;
    background: white;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--bg-alt);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

.related-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.related-item:hover .related-title {
    color: var(--primary);
}

.related-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    background: white;
    border: 1px solid var(--border);
}

.related-info {
    flex: 1;
}

.related-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 5px;
    line-height: 1.4;
    transition: 0.2s;
}

.related-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.btn-back-blog {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 30px;
    font-size: 1rem;
    transition: 0.2s;
}

.btn-back-blog:hover {
    color: var(--primary);
}

.article-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-meta .author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--navy);
}

.article-meta .avatar {
    width: 32px;
    height: 32px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
}

.article-content p code,
.article-content li code,
.article-content blockquote code {
    background: #fff7ed;
    color: #c2410c;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.95em;
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    color: var(--text-muted);
    font-style: italic;
    margin: 30px 0;
    background: #fff7ed;
    padding: 20px;
    border-radius: 0 10px 10px 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--navy);
    line-height: 1.4;
}

.article-content .sapo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.6;
    margin-bottom: 30px;
}

.article-image {
    margin: 35px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.article-image .caption {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* MacOS Code Window (Ray.so style) */
.mac-window {
    background: #2b2b2b;
    border-radius: 12px;
    overflow: hidden;
    margin: 35px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid #444;
}

.mac-header {
    background: #3c3f41;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #444;
}

.mac-buttons {
    display: flex;
    gap: 8px;
}

.mac-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.mac-btn.close {
    background: #ff5f56;
}

.mac-btn.minimize {
    background: #ffbd2e;
}

.mac-btn.maximize {
    background: #27c93f;
}

.mac-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #858585;
    font-size: 0.8rem;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.mac-body {
    padding: 20px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
}

.mac-body pre {
    margin: 0;
    background: transparent !important;
    padding: 0 !important;
    white-space: pre-wrap;
    word-break: break-word;
}

.mac-body code {
    font-family: inherit;
    color: #e2e8f0;
}

/* Article Bottom Tags (Dân Trí style) */
.article-bottom-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.tags-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-right: 5px;
}

.article-tag {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.article-tag:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

.article-tag:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

/* Upsell Banner trong bài viết */
.article-upsell-banner {
    background: linear-gradient(135deg, #fffedd 0%, #fff4ec 100%);
    border: 2px dashed #f97316;
    padding: 30px;
    border-radius: 16px;
    margin: 40px 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.upsell-icon {
    font-size: 3rem;
    color: #ef4444;
}

.upsell-text {
    flex: 1;
}

.upsell-text h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.upsell-text p {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* ================== PRACTICE (QUIZ) ================== */
.practice-container {
    max-width: 800px;
    margin: 0 auto;
}

.question-card {
    background: white;
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.question-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--navy);
    line-height: 1.5;
}

.option-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1rem;
}

.option-label:hover {
    background: var(--bg-alt);
}

.option-label input[type="radio"] {
    margin-top: 4px;
    accent-color: var(--primary);
    transform: scale(1.2);
}

.option-label.correct {
    background: #dcfce7;
    border-color: #22c55e;
}

.option-label.wrong {
    background: #fee2e2;
    border-color: #ef4444;
}

.quiz-submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    border-radius: 16px;
    margin-top: 20px;
}

.result-box {
    text-align: center;
    padding: 50px 30px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.result-icon {
    font-size: 5rem;
    color: #22c55e;
    margin-bottom: 20px;
}

.result-box h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.result-feedback {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

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

    .article-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .article-section {
        padding: 24px 0 60px;
    }

    .article-section .container {
        padding: 0 16px;
    }

    .btn-back-blog {
        margin-bottom: 18px;
        font-size: 0.95rem;
    }

    .article-header {
        padding-bottom: 18px;
        margin-bottom: 22px;
    }

    .article-header h1 {
        font-size: clamp(1.7rem, 7vw, 2rem);
        margin-bottom: 14px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 0.85rem;
    }

    .article-content {
        font-size: 1rem;
        line-height: 1.75;
    }

    .article-content .sapo {
        font-size: 1.15rem;
        margin-bottom: 24px;
    }

    .article-content h2 {
        font-size: 1.4rem;
        margin: 30px 0 16px;
    }

    .article-content p {
        font-size: 1rem;
    }

    .article-content img,
    .article-image img {
        border-radius: 10px;
    }

    .article-image img {
        max-width: 100%;
        height: auto;
    }

    .article-image {
        margin: 22px 0;
    }

    .mac-window {
        margin: 24px 0;
        border-radius: 10px;
    }

    .mac-header {
        padding: 10px 14px;
    }

    .mac-body {
        padding: 14px;
        font-size: 0.88rem;
    }

    .article-bottom-tags {
        margin-top: 32px;
        padding-top: 18px;
        gap: 8px;
    }

    .article-tag {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .article-upsell-banner {
        flex-direction: column;
        text-align: center;
        padding: 22px;
        margin: 28px 0;
    }

    .article-upsell-banner .btn-primary {
        width: 100%;
        min-width: 0;
    }

    .sidebar-widget {
        padding: 18px;
    }

    .related-item {
        gap: 12px;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* ===== TOOLS TAB STYLES ===== */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .tools-grid { grid-template-columns: 1fr; }
}

.tool-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.tool-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 100%);
}

.tool-card-header .tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.tool-icon.md-icon {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}
.tool-icon.soap-icon {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: white;
}

.tool-card-header h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}
.tool-card-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.tool-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
  gap: 12px;
}

.tool-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--border);
}
.tool-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.tool-tab-btn.active {
  background: white;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.tool-tab-btn:hover:not(.active) {
  color: var(--navy);
}

.tool-input-area {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 200px;
  background: #0f172a;
  color: #94a3b8;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.tool-input-area:focus {
  border-color: #6366f1;
  color: #e2e8f0;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

/* MD Preview */
.md-preview-pane {
  flex: 1;
  min-height: 200px;
  background: #fafbff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}


/* SoapUI XML Viewer */
.soap-output {
  flex: 1;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 14px;
  overflow: auto;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  min-height: 200px;
  white-space: pre-wrap;
}
.soap-output .xml-tag { color: #38bdf8; }
.soap-output .xml-attr { color: #a78bfa; }
.soap-output .xml-val  { color: #86efac; }
.soap-output .xml-text { color: #e2e8f0; }
.soap-output .xml-comment { color: #64748b; font-style: italic; }
.soap-output .xml-cdata { color: #fbbf24; }
.soap-output .xml-pi { color: #f97316; }

/* Soap info panel */
.soap-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.soap-info-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
}
.soap-info-item .si-label { color: var(--text-muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; }
.soap-info-item .si-val { color: var(--navy); font-weight: 700; margin-top: 2px; word-break: break-all; }

.tools-action-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tool-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  border: none;
}
.tool-btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(249,115,22,0.2);
}
.tool-btn.primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.tool-btn.ghost {
  background: white;
  border: 1px solid var(--border);
  color: var(--navy);
}
.tool-btn.ghost:hover { background: var(--bg-alt); }
.tool-btn.violet {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.tool-btn.violet:hover { opacity: 0.9; transform: translateY(-1px); }
.tool-btn.cyan {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: white;
  box-shadow: 0 2px 8px rgba(14,165,233,0.25);
}
.tool-btn.cyan:hover { opacity: 0.9; transform: translateY(-1px); }

.empty-tool-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 24px;
}
.empty-tool-hint i { font-size: 2.5rem; opacity: 0.4; }