/* ============================================================
   QUESTO – Toolkits Page
   Premium SaaS Toolkit Builder & Resource Directory
   ============================================================ */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

/* ===== Hero Section ===== */
.tk-hero {
    position: relative;
    padding: 100px 24px 70px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #0c1a2e 40%, #132f4c 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tk-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(249, 223, 123, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: tk-hero-pulse 6s ease-in-out infinite;
}

@keyframes tk-hero-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Floating shapes */
.tk-hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.08;
}

.tk-hero-shape--1 {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -60px;
    background: linear-gradient(135deg, #f9df7b, #0d9488);
    animation: tk-float-1 12s ease-in-out infinite;
}

.tk-hero-shape--2 {
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: -50px;
    background: linear-gradient(135deg, #0d9488, #f9df7b);
    animation: tk-float-2 10s ease-in-out infinite;
}

.tk-hero-shape--3 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 10%;
    background: #f9df7b;
    animation: tk-float-3 8s ease-in-out infinite;
}

@keyframes tk-float-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-30px, 20px) rotate(15deg);
    }
}

@keyframes tk-float-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, -25px) rotate(-10deg);
    }
}

@keyframes tk-float-3 {

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

    50% {
        transform: translate(15px, 15px);
    }
}

.tk-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.tk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(249, 223, 123, 0.12);
    border: 1px solid rgba(249, 223, 123, 0.25);
    border-radius: 30px;
    color: #f9df7b;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.tk-hero-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 850;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.18;
    margin-bottom: 16px;
}

.tk-hero-title span {
    background: linear-gradient(135deg, #f9df7b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tk-hero-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto 28px;
}

.tk-hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tk-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 30px;
    background: linear-gradient(135deg, #f9df7b, #e8d05f);
    color: #020617;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 18px rgba(249, 223, 123, 0.25);
    text-decoration: none;
    font-family: inherit;
}

.tk-hero-cta:hover {
    background: linear-gradient(135deg, #ffe893, #f9df7b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 223, 123, 0.35);
}

.tk-hero-cta--secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary, #e2e8f0);
    box-shadow: none;
}

.tk-hero-cta--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(249, 223, 123, 0.4);
}

.tk-chip--saved {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #fbbf24 !important;
}

.tk-chip--saved:hover,
.tk-chip--saved.active {
    background: rgba(245, 158, 11, 0.2) !important;
    border-color: #f59e0b !important;
    color: #fbbf24 !important;
}

/* ===== Container ===== */
.tk-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Section Titles ===== */
.tk-section {
    padding: 60px 0;
}

.tk-section-header {
    margin-bottom: 36px;
}

.tk-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.tk-section-title i {
    color: #0d9488;
    font-size: 1.2rem;
}

.tk-section-desc {
    font-size: 0.92rem;
    color: var(--text-muted, #94a3b8);
}

/* ===== Builder Page Dedicated Layout ===== */
.tk-builder-page {
    min-height: 85vh;
    padding-top: 100px;
    padding-bottom: 70px;
}

.tk-builder-back-wrap {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-start;
}

.tk-builder-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px auto;
}

.tk-builder-title {
    font-size: 2.2rem;
    font-weight: 850;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.tk-builder-title span {
    background: linear-gradient(135deg, #f9df7b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tk-builder-subtitle {
    font-size: 0.94rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.6;
}

.tk-wizard {
    display: none;
    max-width: 740px;
    margin: 0 auto;
    padding: 0;
}

.tk-wizard.active {
    display: block;
    animation: tk-fade-in 0.4s ease;
}

@keyframes tk-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.tk-wizard-topbar-spacer {
    width: 130px;
}

/* Progress bar */
.tk-wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 44px;
}

.tk-wizard-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted, #94a3b8);
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.tk-wizard-step-dot.active {
    background: linear-gradient(135deg, #f9df7b, #e8d05f);
    border-color: #f9df7b;
    color: #020617;
    box-shadow: 0 0 20px rgba(249, 223, 123, 0.35);
}

.tk-wizard-step-dot.completed {
    background: #f9df7b;
    border-color: #f9df7b;
    color: #020617;
}

.tk-wizard-step-line {
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease;
}

.tk-wizard-step-line.completed {
    background: #f9df7b;
}

/* Wizard step content */
.tk-wizard-panel {
    display: none;
}

.tk-wizard-panel.active {
    display: block;
    animation: tk-fade-in 0.35s ease;
}

.tk-wizard-question {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.tk-wizard-hint {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 32px;
}

/* Options grid */
.tk-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.tk-options-grid--wide {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.tk-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-muted, #94a3b8);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    user-select: none;
}

.tk-option:hover {
    border-color: rgba(249, 223, 123, 0.3);
    background: rgba(249, 223, 123, 0.05);
    color: var(--text-primary, #e2e8f0);
    transform: translateY(-2px);
}

.tk-option.selected {
    border-color: #f9df7b;
    background: rgba(249, 223, 123, 0.1);
    color: #f9df7b;
    box-shadow: 0 0 16px rgba(249, 223, 123, 0.18);
}

.tk-option i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

/* Wizard navigation */
.tk-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 16px;
}

.tk-wizard-btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

.tk-wizard-btn--back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted, #94a3b8);
    text-decoration: none !important;
}

.tk-wizard-btn--back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #e2e8f0);
    text-decoration: none !important;
}

.tk-wizard-btn--next {
    background: linear-gradient(135deg, #f9df7b, #e8d05f);
    color: #020617;
    box-shadow: 0 4px 16px rgba(249, 223, 123, 0.2);
}

.tk-wizard-btn--next:hover {
    background: linear-gradient(135deg, #ffe893, #f9df7b);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 223, 123, 0.35);
}

.tk-wizard-btn--next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== Search & Filters Bar ===== */
.tk-toolbar {
    position: sticky;
    top: 64px;
    z-index: 50;
    background: rgba(9, 13, 22, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0;
}

.tk-toolbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tk-search-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tk-search-box {
    flex: 1;
    position: relative;
}

.tk-search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #94a3b8);
    font-size: 0.9rem;
    pointer-events: none;
}

.tk-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary, #e2e8f0);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.25s ease;
}

.tk-search-input:focus {
    border-color: #f9df7b;
    box-shadow: 0 0 18px rgba(249, 223, 123, 0.15);
}

.tk-search-input::placeholder {
    color: #64748b;
}

.tk-sort-select {
    padding: 12px 36px 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary, #e2e8f0);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 160px;
}

.tk-sort-select option {
    background: #0f172a;
    color: #f1f5f9;
}

/* Filter chips */
.tk-chips {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 4px 0 !important;
    width: 100% !important;
}

.tk-chips::-webkit-scrollbar {
    display: none !important;
}

.tk-chip {
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    color: var(--text-muted, #94a3b8);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap !important;
    user-select: none;
    flex-shrink: 0 !important;
}

.tk-chip:hover {
    border-color: rgba(249, 223, 123, 0.3);
    color: var(--text-primary, #e2e8f0);
}

.tk-chip.active {
    background: #f9df7b !important;
    border-color: transparent !important;
    color: #020617 !important;
    font-weight: 700;
}

/* ===== Results Counter ===== */
.tk-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.tk-results-count {
    font-size: 0.88rem;
    color: var(--text-muted, #94a3b8);
    font-weight: 500;
}

.tk-results-count strong {
    color: var(--text-primary, #e2e8f0);
    font-weight: 700;
}

/* ===== Tool Cards Grid ===== */
.tk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

/* Tool Card */
.tk-card {
    background: rgba(17, 28, 51, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #6366f1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tk-card:hover {
    border-color: rgba(13, 148, 136, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

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

/* Card header */
.tk-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.tk-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(13, 148, 136, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #2dd4bf;
    flex-shrink: 0;
    border: 1px solid rgba(13, 148, 136, 0.18);
    overflow: hidden;
}

.tk-card-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.tk-card-info {
    flex: 1;
    min-width: 0;
}

.tk-card-name {
    font-size: 1.05rem;
    font-weight: 750;
    color: #fff;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tk-card-category {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    font-weight: 500;
}

.tk-card-save {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tk-card-save:hover,
.tk-card-save.saved {
    color: #f59e0b;
}

/* Card description */
.tk-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badges */
.tk-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.tk-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.2px;
}

.tk-badge--free {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tk-badge--freemium {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.tk-badge--paid {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.tk-badge--platform {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.tk-badge--feature {
    background: rgba(56, 189, 248, 0.08);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.15);
}

.tk-badge--lang {
    background: rgba(244, 114, 182, 0.1);
    color: #f9a8d4;
    border: 1px solid rgba(244, 114, 182, 0.15);
}

.tk-badge--difficulty {
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

/* Status panel */
.tk-status-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tk-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-muted, #94a3b8);
}

.tk-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tk-status-dot--green {
    background: #34d399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.4);
}

.tk-status-dot--red {
    background: #f87171;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.3);
}

.tk-status-dot--yellow {
    background: #fbbf24;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.3);
}

.tk-status-value {
    margin-left: auto;
    font-weight: 650;
    color: var(--text-primary, #e2e8f0);
    font-size: 0.74rem;
}

.tk-status-value--yes {
    color: #34d399;
}

.tk-status-value--no {
    color: #f87171;
}

/* Difficulty & Rating */
.tk-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.8rem;
}

.tk-difficulty {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted, #94a3b8);
    font-weight: 600;
}

.tk-difficulty-bars {
    display: flex;
    gap: 2px;
}

.tk-difficulty-bar {
    width: 14px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.tk-difficulty-bar.filled {
    background: #0d9488;
}

.tk-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.82rem;
}

.tk-rating i {
    font-size: 0.72rem;
}

/* Works great with */
.tk-compat {
    margin-bottom: 14px;
}

.tk-compat-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tk-compat-chain {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.tk-compat-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    transition: all 0.2s ease;
    cursor: default;
}

.tk-compat-arrow {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
}

/* Card actions */
.tk-card-actions {
    display: flex;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tk-card-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 650;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.tk-card-btn--primary {
    background: linear-gradient(135deg, #f9df7b, #e8d05f);
    color: #020617;
    font-weight: 700;
}

.tk-card-btn--primary:hover {
    background: linear-gradient(135deg, #ffe893, #f9df7b);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(249, 223, 123, 0.3);
}

.tk-card-btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #e2e8f0);
}

.tk-card-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Featured Toolkits Section ===== */
.tk-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.tk-featured-card {
    background: rgba(17, 28, 51, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.tk-featured-card:hover {
    border-color: rgba(13, 148, 136, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.tk-featured-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.tk-featured-name {
    font-size: 1rem;
    font-weight: 750;
    color: #fff;
    margin-bottom: 6px;
}

.tk-featured-desc {
    font-size: 0.82rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.5;
    margin-bottom: 12px;
}

.tk-featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.76rem;
    color: var(--text-muted, #94a3b8);
}

.tk-featured-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== Alternatives ===== */
.tk-alts {
    margin-bottom: 14px;
}

.tk-alts-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tk-alts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tk-alt-tag {
    padding: 3px 8px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #a5b4fc;
    cursor: default;
}

/* ===== Loading Skeleton ===== */
.tk-skeleton {
    border-radius: 16px;
    background: rgba(17, 28, 51, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    animation: tk-shimmer 1.8s ease-in-out infinite;
}

.tk-skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 12px;
}

.tk-skeleton-line--short {
    width: 40%;
}

.tk-skeleton-line--medium {
    width: 65%;
}

.tk-skeleton-line--full {
    width: 100%;
}

.tk-skeleton-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

@keyframes tk-shimmer {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== Empty State ===== */
.tk-empty {
    text-align: center;
    padding: 60px 24px;
}

.tk-empty-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.tk-empty-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary, #e2e8f0);
    margin-bottom: 8px;
}

.tk-empty-desc {
    font-size: 0.88rem;
    color: var(--text-muted, #94a3b8);
}

/* ===== Shareable Toolkit Page ===== */
.tk-share-hero {
    padding: 120px 24px 40px;
    text-align: center;
}

.tk-share-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: 20px;
    color: #2dd4bf;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.tk-share-title {
    font-size: 2rem;
    font-weight: 850;
    color: #fff;
    margin-bottom: 10px;
}

.tk-share-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 24px;
}

.tk-share-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tk-share-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .tk-hero {
        padding: 110px 16px 60px;
    }

    .tk-hero-title {
        font-size: 1.8rem;
    }

    .tk-hero-subtitle {
        font-size: 0.92rem;
    }

    .tk-grid {
        grid-template-columns: 1fr;
    }

    .tk-featured-grid {
        grid-template-columns: 1fr;
    }

    .tk-toolbar {
        top: 64px;
        padding: 10px 0;
    }

    .tk-toolbar-inner {
        padding: 0 16px;
        gap: 8px;
    }

    .tk-search-row {
        flex-direction: row;
        gap: 8px;
    }

    .tk-search-input {
        padding: 9px 12px 9px 34px;
        font-size: 0.82rem;
        border-radius: 10px;
    }

    .tk-sort-select {
        width: auto;
        min-width: 110px;
        max-width: 135px;
        padding: 9px 24px 9px 10px;
        font-size: 0.76rem;
        border-radius: 10px;
        background-position: right 8px center;
    }

    .tk-chip {
        padding: 6px 14px;
        font-size: 0.78rem;
        border-radius: 20px;
    }

    /* Builder Page Mobile Responsiveness */
    .tk-builder-page {
        padding-top: 85px;
        padding-bottom: 40px;
    }

    .tk-builder-header {
        margin-bottom: 28px;
    }

    .tk-builder-title {
        font-size: 1.65rem;
        margin-bottom: 8px;
    }

    .tk-builder-subtitle {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .tk-wizard {
        padding: 0;
    }

    .tk-wizard-progress {
        gap: 0;
        margin-bottom: 30px;
    }

    .tk-wizard-step-dot {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }

    .tk-wizard-step-line {
        width: 35px;
    }

    .tk-wizard-question {
        font-size: 1.25rem;
    }

    .tk-wizard-hint {
        font-size: 0.82rem;
        margin-bottom: 22px;
    }

    .tk-options-grid,
    .tk-options-grid--wide {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tk-option {
        padding: 14px 10px;
        border-radius: 12px;
        font-size: 0.82rem;
        gap: 6px;
    }

    .tk-option i {
        font-size: 1.2rem;
    }

    .tk-wizard-nav {
        margin-top: 28px;
        gap: 10px;
    }

    .tk-wizard-btn {
        padding: 10px 20px;
        font-size: 0.84rem;
        border-radius: 10px;
    }

    .tk-status-panel {
        grid-template-columns: 1fr;
    }

    .tk-card-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .tk-hero {
        padding: 85px 14px 45px;
    }

    .tk-wizard {
        padding: 75px 12px 30px;
    }

    .tk-wizard-topbar {
        margin-bottom: 22px;
    }

    .tk-wizard-topbar-title {
        font-size: 0.82rem;
    }

    .tk-wizard-step-line {
        width: 25px;
    }

    .tk-wizard-step-dot {
        width: 28px;
        height: 28px;
        font-size: 0.74rem;
    }

    .tk-options-grid,
    .tk-options-grid--wide {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .tk-option {
        padding: 12px 8px;
        font-size: 0.78rem;
    }

    .tk-wizard-btn {
        padding: 9px 16px;
        font-size: 0.8rem;
    }

    .tk-container {
        padding: 0 14px;
    }

    .tk-toolbar-inner {
        padding: 0 12px;
    }

    .tk-search-input {
        font-size: 0.8rem;
        padding: 8px 10px 8px 32px;
    }

    .tk-search-box i {
        left: 12px;
        font-size: 0.8rem;
    }

    .tk-sort-select {
        min-width: 100px;
        max-width: 120px;
        padding: 8px 22px 8px 8px;
        font-size: 0.74rem;
    }

    .tk-chip {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}

/* ===== Master Resource Type Segmented Switcher ===== */
.tk-master-switcher-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    padding: 0 16px;
    width: 100%;
}

.tk-master-switcher {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 9999px !important;
    padding: 6px 8px !important;
    gap: 6px !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 100%;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
}

.tk-master-switcher::before,
.tk-master-switcher::after {
    content: '' !important;
    display: inline-block !important;
    width: 6px !important;
    height: 1px !important;
    flex-shrink: 0 !important;
}

.tk-master-switcher::-webkit-scrollbar {
    display: none;
}

.tk-switcher-btn {
    padding: 6px 14px !important;
    border-radius: 9999px !important;
    font-size: 0.8rem !important;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    user-select: none;
    overflow: hidden;
    outline: none;
    flex-shrink: 0;
}

.tk-switcher-btn i {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.tk-switcher-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted, #94a3b8);
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.tk-switcher-btn:hover {
    color: var(--text-primary, #f8fafc);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 9999px !important;
}

.tk-switcher-btn:hover i {
    transform: scale(1.1);
}

.tk-switcher-btn.active {
    background: #f9df7b !important;
    color: #020617 !important;
    border-color: transparent !important;
    box-shadow: 0 4px 18px rgba(249, 223, 123, 0.25);
    font-weight: 800;
    border-radius: 9999px !important;
}

.tk-switcher-btn.active .tk-switcher-badge {
    background: rgba(2, 6, 23, 0.2) !important;
    color: #020617 !important;
}

.tk-switcher-btn--youtube.active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(244, 63, 94, 0.3));
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.4);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
}

.tk-switcher-btn--youtube.active .tk-switcher-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.tk-switcher-btn--social.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.3));
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.tk-switcher-btn--social.active .tk-switcher-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.tk-badge--youtube {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.tk-badge--social {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}