/* ── Reset & Variables ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #1A3263;
    --navy-dark: #122349;
    --navy-light: #1e3d7a;
    --steel: #547792;
    --steel-light: #6a8fa8;
    --gold: #FAB95B;
    --gold-dark: #e8a444;
    --cream: #E8E2DB;
    --cream-dark: #d9d2c9;
    --white: #ffffff;
    --text: #1A3263;
    --text-dark: #0f1f3d;
    --text-muted: #547792;
    --border: #d4cdc5;
    --shadow: 0 2px 12px rgba(26,50,99,0.10);
    --shadow-card: 0 2px 8px rgba(26,50,99,0.08);
    --radius: 10px;
    --radius-sm: 6px;
    --nav-height: 64px;
    --transition: 0.2s ease;
}

html, body {
    font-family: 'Segoe UI', 'Noto Sans Thai', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── App Shell ───────────────────────────────────────────────────── */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.main-content {
    flex: 1;
}

.d-flex {
    display: flex;
}

.gap-2 {
    gap: 0.5rem;
}

.justify-content-start {
    justify-content: flex-start;
}

.flex-wrap {
    flex-wrap: wrap;
}


/* ── Navbar ──────────────────────────────────────────────────────── */
.navbar {
    background: var(--navy);
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(26,50,99,0.25);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative; 
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: auto;
}

.nav-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-brand-text {
    font-size: 30px;
    color: white;
}

/* เมนูอยู่กึ่งกลาง */
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

    .nav-link:hover {
        color: white;
        background: rgba(255,255,255,0.12);
    }

    .nav-link.active {
        color: var(--gold);
        background: rgba(250,185,91,0.12);
    }

/* ── Dropdown — Hover ────────────────────────────────────────────── */

.nav-dropdown {
    position: relative;
}

.drop-arrow {
    font-size: 0.7rem;
    transition: transform var(--transition);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(26,50,99,0.15);
    min-width: 200px;
    z-index: 200;
    overflow: hidden;
    padding: 0.25rem 0;
}

/* ใช้ class dropdown-open แทน :hover */
.nav-dropdown.dropdown-open .dropdown-menu {
    display: block;
}

.nav-dropdown.dropdown-open .drop-arrow {
    transform: rotate(180deg);
}

.nav-dropdown.dropdown-open .nav-link {
    color: white;
    background: rgba(255,255,255,0.12);
}


.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    color: var(--text);
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

    .dropdown-item:hover {
        background: var(--cream);
        color: var(--navy);
    }

    .dropdown-item.text-muted {
        color: var(--text-muted);
        cursor: default;
    }

.dropdown-item-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    color: var(--text-muted) !important;
}

    .dropdown-item-disabled i {
        color: var(--gold);
        font-size: 0.75rem;
    }

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

/* ── Nav Toggle (Mobile) ─────────────────────────────────────────── */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

    .nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: white;
        border-radius: 2px;
    }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: var(--nav-height);
        transform: none;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: var(--navy-dark);
        padding: 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        gap: 0;
    }

        .nav-links.open {
            display: flex;
        }

    .nav-dropdown.dropdown-open .dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.05);
        border-radius: var(--radius-sm);
        margin: 0.25rem 0;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.05);
        border-radius: var(--radius-sm);
        margin: 0.25rem 0;
        display: block;
    }

    .dropdown-item {
        color: rgba(255,255,255,0.8);
    }

        .dropdown-item:hover {
            background: rgba(255,255,255,0.1);
            color: white;
        }

    .dropdown-divider {
        background: rgba(255,255,255,0.1);
    }
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

    .hero::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 50px;
        background: var(--cream);
        clip-path: ellipse(55% 100% at 50% 100%);
    }

.hero-content {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
}

.btn-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--navy);
    color: white;
}

    .btn-primary:hover {
        background: var(--navy-dark);
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }

.btn-gold {
    background: var(--gold);
    color: var(--navy);
}

    .btn-gold:hover {
        background: var(--gold-dark);
        transform: translateY(-1px);
    }

.btn-outline {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
}

    .btn-outline:hover {
        background: rgba(255,255,255,0.25);
        transform: translateY(-1px);
    }

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.825rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Section ─────────────────────────────────────────────────────── */
.section {
    padding: 3.5rem 1.5rem;
}

.section-alt {
    background: white;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.page-header {
    margin-bottom: 2rem;
}

    .page-header h1 {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 0.25rem;
    }

    .page-header p {
        color: var(--text-muted);
    }

/* ── Cards ───────────────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

    .card:hover {
        transform: translateY(-3px);
        border-color: var(--steel);
        box-shadow: 0 8px 24px rgba(26,50,99,0.15);
    }

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-img-placeholder {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #e8e2db, #d4cdc5);
}

.card-body {
    padding: 1.1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Version Badge ───────────────────────────────────────────────── */
.version-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    background: rgba(26,50,99,0.08);
    color: var(--navy);
    border: 1px solid rgba(26,50,99,0.15);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

/* ── Program Detail ──────────────────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

    .back-link:hover {
        color: var(--navy);
    }

.program-detail-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
}

.program-thumbnail {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.program-detail-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.program-detail-info p {
    color: var(--text-muted);
    margin: 0.75rem 0;
    line-height: 1.8;
}

.program-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}


.download-count {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}


/* ── Release Notes ───────────────────────────────────────────────── */
.release-notes {
    margin-top: 2rem;
}

    .release-notes h2 {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--navy);
    }

.release-note-card {
    background: white;
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.release-note-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.release-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ── Reviews ─────────────────────────────────────────────────────── */
.review-section {
    margin-top: 2.5rem;
}

    .review-section h2 {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--navy);
    }

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.review-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-card);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.review-author {
    font-weight: 600;
    color: var(--navy);
}

.review-stars {
    color: var(--gold);
    letter-spacing: 1px;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: auto;
}

.review-comment {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ── Review Form ─────────────────────────────────────────────────── */
.review-form {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

    .review-form h3 {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 1.25rem;
        color: var(--navy);
    }

.form-group {
    margin-bottom: 1rem;
}

    .form-group label {
        display: block;
        font-size: 0.82rem;
        color: var(--text-muted);
        margin-bottom: 0.4rem;
        font-weight: 500;
    }

.form-input {
    width: 100%;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
    resize: vertical;
}

    .form-input:focus {
        outline: none;
        border-color: var(--steel);
        background: white;
    }

.star-picker {
    display: flex;
    gap: 0.35rem;
}

.star {
    font-size: 1.6rem;
    color: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

    .star.active, .star:hover {
        color: var(--gold);
    }

.error-msg {
    color: #DC2626;
    font-size: 0.825rem;
    margin-bottom: 0.75rem;
}

.success-msg {
    color: #16A34A;
    font-size: 0.825rem;
    margin-bottom: 0.75rem;
}

/* ── About ───────────────────────────────────────────────────────── */
.about-section {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.avatar-img {
    width: 100%;
    border-radius: 50%;
    border: 3px solid var(--gold);
}

.dev-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.2rem;
}

.dev-title {
    color: var(--steel);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.dev-bio {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.dev-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.skill-tag {
    padding: 0.25rem 0.65rem;
    background: rgba(26,50,99,0.08);
    border: 1px solid rgba(26,50,99,0.15);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--navy);
    font-weight: 500;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
    background: var(--navy);
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    color: rgba(255,255,255,0.6);
    font-size: 0.825rem;
}

/* ── Loading & Empty ─────────────────────────────────────────────── */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 3rem;
    color: var(--text-muted);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.see-all {
    text-align: center;
    margin-top: 1.5rem;
}

/* ── App Loading ─────────────────────────────────────────────────── */
.app-loading {
    position: fixed;
    inset: 0;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
}

.app-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.app-loading-text {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-loading-subtext {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 400;
}

.app-loading-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* ── Error UI ────────────────────────────────────────────────────── */
#blazor-error-ui {
    display: none;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--navy-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        gap: 0;
    }

        .nav-links.open {
            display: flex;
        }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.05);
        border-radius: var(--radius-sm);
        margin: 0.25rem 0;
    }

    .dropdown-item {
        color: rgba(255,255,255,0.8);
    }

        .dropdown-item:hover {
            background: rgba(255,255,255,0.1);
            color: white;
        }

    .dropdown-divider {
        background: rgba(255,255,255,0.1);
    }

    .program-detail-header {
        grid-template-columns: 1fr;
    }

    .about-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .avatar-img {
        width: 130px;
    }

    .dev-skills {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}
/* ── Sponsor Section ─────────────────────────────────────────────── */
.sponsor-section {
    background: var(--navy-light);
    padding: 1.25rem 0;
    overflow: hidden;
    width: 100%;
}

.sponsor-header {
    text-align: center;
    margin-bottom: 1rem;
}

.sponsor-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sponsor-track-wrapper {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.sponsor-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: scroll-left 50s linear infinite;
    width: max-content;
    padding: 0 2rem;
}

    .sponsor-track:hover {
        animation-play-state: paused;
    }

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sponsor-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: var(--transition);
}

.sponsor-item:hover .sponsor-img {
    opacity: 1;
}

.sponsor-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    color: #ffffff !important;
    font-size: 0.75rem;
    height: 100px;
    width: 120px;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
}

    .sponsor-placeholder i {
        font-size: 28px;
        color: #ffffff !important;
    }

    .sponsor-placeholder span {
        color: #ffffff !important;
    }

@keyframes scroll-left {
    0% {
        transform: translateX(75%);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
    background: var(--navy);
    padding: 1.5rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.825rem;
}
.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    transition: var(--transition);
}

    .footer-link:hover {
        color: var(--gold);
    }

    .footer-link .bi-youtube {
        color: #FF0000;
    }

    .footer-link .bi-facebook {
        color: #1877F2;
    }

    .footer-link:hover .bi-youtube,
    .footer-link:hover .bi-facebook {
        color: var(--gold);
    }

/* ── Tools Page ──────────────────────────────────────────────────── */
.coming-soon-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(250,185,91,0.15);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.25rem;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

    .coming-soon-banner i {
        color: var(--gold);
        font-size: 1.1rem;
    }

.tool-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

    .tool-card.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
        filter: grayscale(30%);
    }

.tool-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(26,50,99,0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--navy);
    flex-shrink: 0;
}

.tool-card-body {
    flex: 1;
}

.tool-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.tool-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    background: rgba(250,185,91,0.15);
    border: 1px solid var(--gold);
    border-radius: 999px;
    font-size: 0.72rem;
    color: var(--navy);
    font-weight: 600;
}


/* ── Card Badge ──────────────────────────────────────────────────── */
.card-img-wrapper {
    position: relative;
}

.card-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.detail-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: white;
}

.badge-new {
    background: #EF4444;
}

.badge-update {
    background: #F59E0B;
}


/* ── Price Badge ──────────────────────────────────────────────────── */
.price-badge {
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    margin-top: .3rem;
}

.price-free {
    background: #d1fae5;
    color: #065f46;
}

.price-paid {
    background: #fef3c7;
    color: #92400e;
}

.price-display {
    margin: .5rem 0;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
}