/* EdgeFlyte public tools storefront */

/* ——— Layout ——— */
.tool-page {
    font-family: 'Titillium Web', sans-serif;
}

.tools-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.tools-sidebar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 1rem;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--onyx);
    margin-bottom: 1.25rem;
}

.filter-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.filter-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--onyx);
    margin-bottom: 0.375rem;
}

.filter-group select,
.filter-group input[type="text"] {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
}

.search-group {
    display: flex;
    gap: 0.5rem;
}

.search-group input {
    flex: 1;
}

.search-btn {
    background: var(--egyptian-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 0.875rem;
    cursor: pointer;
}

.clear-filters {
    display: block;
    text-align: center;
    color: var(--egyptian-blue);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
}

.delivery-model-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.delivery-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    color: var(--onyx);
    background: white;
    transition: all 0.2s;
}

.delivery-chip:hover,
.delivery-chip.is-active {
    background: var(--egyptian-blue);
    color: white;
    border-color: var(--egyptian-blue);
}

.group-section {
    margin-bottom: 3rem;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.group-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--onyx);
    margin: 0;
}

.group-count {
    background: #f1f5f9;
    color: var(--gray);
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.group-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.no-tools {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.no-tools h3 {
    color: var(--onyx);
    margin-bottom: 0.75rem;
}

/* ——— Tool cards (listings) ——— */
.tool-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.tool-card-cover {
    height: 180px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tool-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-card-cover-placeholder {
    font-size: 3rem;
    color: var(--egyptian-blue);
}

.tool-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-card-id {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
    margin-bottom: 0.375rem;
}

.tool-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--onyx);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.tool-card-desc {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.5;
    margin: 0 0 1rem;
    flex: 1;
}

.tool-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.625rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.delivery-model-cloud-hosted { background: #dbeafe; color: #1e40af; }
.delivery-model-web-application { background: #e0e7ff; color: #3730a3; }
.delivery-model-api-integration { background: #fef3c7; color: #92400e; }
.delivery-model-specialized { background: #f3e8ff; color: #6b21a8; }
.delivery-model-desktop-client { background: #dcfce7; color: #166534; }
.hosting-badge.hosted-edgeflyte { background: #cffafe; color: #0e7490; }
.hosting-badge.hosted-external { background: #f3f4f6; color: #4b5563; }

.category-badge { background: #f1f5f9; color: #475569; }
.status-badge { background: #d1fae5; color: #065f46; text-transform: uppercase; }
.status-badge.status-testing { background: #fef3c7; color: #92400e; }
.status-badge.status-maintenance { background: #fee2e2; color: #991b1b; }
.status-badge.status-legacy { background: #f3f4f6; color: #374151; }

.tool-card-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--pigment-green);
    margin-bottom: 0.75rem;
}

.tool-card-price.is-paid {
    color: var(--onyx);
}

.tool-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background: var(--egyptian-blue);
    color: white;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.tool-card-link:hover {
    background: var(--egyptian-blue-dark);
}

/* ——— Category page ——— */
.category-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.category-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.category-header-badge {
    background: var(--egyptian-blue);
    color: white;
    padding: 0.375rem 1.25rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.category-header-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--onyx);
    margin: 0 0 0.75rem;
}

.category-header-desc {
    color: var(--gray);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.category-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-sort select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-button {
    padding: 0.625rem 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: var(--onyx);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.page-button:hover,
.page-button.active {
    background: var(--egyptian-blue);
    color: white;
    border-color: var(--egyptian-blue);
}

/* ——— Detail page ——— */
.tool-detail-page {
    padding-bottom: 4rem;
}

.tool-detail-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.tool-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2rem 0 2.5rem;
    align-items: start;
}

.tool-hero-media {
    position: relative;
}

.tool-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.tool-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s ease;
}

.tool-carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-carousel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--egyptian-blue);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.tool-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--egyptian-blue);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-carousel-nav:hover {
    background: var(--egyptian-blue);
    color: white;
}

.tool-carousel-prev { left: 10px; }
.tool-carousel-next { right: 10px; }

.tool-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.tool-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.2s;
}

.tool-carousel-dot.is-active {
    background: white;
}

.tool-carousel-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--egyptian-blue);
    z-index: 2;
}

.tool-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
}

.tool-thumbnail {
    flex-shrink: 0;
    width: 72px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s, border-color 0.2s;
}

.tool-thumbnail.is-active {
    border-color: var(--egyptian-blue);
    opacity: 1;
}

.tool-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-hero-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-id-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
}

.tool-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--onyx);
    margin: 0;
    line-height: 1.2;
}

.tool-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.type-badge { background: #f0fdf4; color: #166534; }
.version-badge { background: #f3f4f6; color: #374151; }

.tool-hero-summary-text {
    color: var(--gray);
    line-height: 1.65;
    font-size: 1rem;
}

.tool-price-summary {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--onyx);
}

.tool-price-summary.is-free {
    color: var(--pigment-green);
}

.tool-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.tool-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tool-page .btn i {
    font-size: 0.875rem;
    line-height: 1;
    flex-shrink: 0;
}

.tool-hero-actions .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
}

.btn-primary {
    background: var(--egyptian-blue);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--egyptian-blue-dark);
    color: white;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: var(--egyptian-blue);
    border: 1px solid var(--egyptian-blue) !important;
}

.btn-secondary:hover {
    background: #f8fafc;
    color: var(--egyptian-blue-dark);
    border-color: var(--egyptian-blue-dark) !important;
}

.tool-page a.btn {
    text-decoration: none;
}

.tool-page a.btn-primary,
.tool-page a.btn-primary:hover {
    color: white;
}

.tool-page a.btn-secondary:hover {
    color: var(--egyptian-blue-dark);
}

.tool-license-notice {
    font-size: 0.875rem;
    color: #dc2626;
    width: 100%;
}

.tool-license-active {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #166534;
}

/* ——— Section nav ——— */
.tool-section-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.tool-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-section-nav a {
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.2s;
}

.tool-section-nav a:hover,
.tool-section-nav a.is-active {
    background: var(--egyptian-blue);
    color: white;
}

/* ——— Sections ——— */
.tool-section {
    padding: 2.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    scroll-margin-top: 4rem;
}

.tool-section:last-child {
    border-bottom: none;
}

.tool-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--onyx);
    margin: 0 0 1.25rem;
}

.tool-section-content {
    color: var(--gray);
    line-height: 1.7;
    font-size: 1rem;
}

.tool-section-content p {
    margin-bottom: 1rem;
}

/* ——— Features roadmap ——— */
.tool-roadmap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tool-roadmap-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.tool-roadmap-name {
    font-weight: 600;
    color: var(--onyx);
    margin-bottom: 0.25rem;
}

.tool-roadmap-desc {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
}

.feature-status {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.feature-status-planned { background: #f1f5f9; color: #475569; }
.feature-status-in-development { background: #dbeafe; color: #1e40af; }
.feature-status-completed { background: #dcfce7; color: #166534; }
.feature-status-deprecated { background: #fee2e2; color: #991b1b; }

/* ——— Videos ——— */
.tool-video-featured {
    margin-bottom: 2rem;
}

.tool-video-featured iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 12px;
}

.tool-video-featured h3 {
    margin: 0.75rem 0 0.25rem;
    color: var(--onyx);
}

.tool-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.tool-video-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.tool-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.tool-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.tool-video-card h4 {
    padding: 0.75rem 1rem 0;
    margin: 0;
    font-size: 0.9375rem;
    color: var(--onyx);
}

.tool-video-card p {
    padding: 0.25rem 1rem 1rem;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--gray);
}

/* ——— Pricing ——— */
.pricing-options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-option-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.pricing-type-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.375rem;
}

.pricing-type-free { background: #dcfce7; color: #166534; }
.pricing-type-permanent { background: #f3e8ff; color: #6b21a8; }
.pricing-type-subscription { background: #dbeafe; color: #1e40af; }

.pricing-option-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--onyx);
}

.pricing-option-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--onyx);
    line-height: 1;
}

.pricing-amount.is-free {
    color: var(--pigment-green);
}

.pricing-period {
    font-size: 0.8125rem;
    color: var(--gray);
}

.legacy-pricing {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--onyx);
}

/* ——— Requirements ——— */
.specs-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.spec-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid #f1f5f9;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    padding: 0.875rem 1rem;
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--onyx);
}

.spec-value {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: var(--gray);
}

/* ——— Downloads ——— */
.tool-downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.download-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.download-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.download-card-icon.windows { color: #0078d4; }
.download-card-icon.linux { color: #fcc624; }
.download-card-icon.mac { color: #000; }
.download-card-icon.android { color: #3ddc84; }

.download-card h3 {
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
    text-transform: capitalize;
    color: var(--onyx);
}

.download-card-meta {
    font-size: 0.8125rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.download-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: center;
}

.download-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    width: 0%;
    transition: width 0.3s ease;
}

/* ——— Documentation ——— */
.doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ——— Related tools ——— */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.related-tool-image {
    height: 140px;
    background: #f1f5f9;
    overflow: hidden;
}

.related-tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-tool-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--egyptian-blue);
}

.related-tool-content {
    padding: 1rem;
}

.related-tool-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
}

.related-tool-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--onyx);
    margin: 0.25rem 0;
}

.related-tool-description {
    font-size: 0.8125rem;
    color: var(--gray);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.related-tool-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--egyptian-blue);
}

/* ——— Fullscreen modal ——— */
.tool-fullscreen-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.tool-fullscreen-modal.is-open {
    display: flex;
}

.tool-fullscreen-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
}

.tool-fullscreen-image {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
}

.tool-fullscreen-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.tool-fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}

.tool-fullscreen-prev { left: -60px; }
.tool-fullscreen-next { right: -60px; }

.tool-fullscreen-counter {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.875rem;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tool-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ——— Responsive ——— */
@media (max-width: 992px) {
    .tools-layout {
        grid-template-columns: 1fr;
    }

    .tools-sidebar {
        position: static;
    }

    .tool-hero {
        grid-template-columns: 1fr;
    }

    .tool-carousel {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .category-header-title {
        font-size: 2rem;
    }

    .tool-hero-title {
        font-size: 1.75rem;
    }

    .tool-roadmap-item {
        grid-template-columns: 1fr;
    }

    .spec-row {
        grid-template-columns: 1fr;
    }

    .spec-label {
        border-bottom: none;
        padding-bottom: 0.25rem;
    }

    .pricing-option-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .pricing-option-right {
        width: 100%;
        justify-content: space-between;
    }

    .tool-fullscreen-prev { left: 8px; }
    .tool-fullscreen-next { right: 8px; }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-carousel {
        height: 260px;
    }
}
