/* ─────────────────────────────────────────────
   TOOLS STYLESHEET - Universal Unit Converter (Premium Overhaul)
   ───────────────────────────────────────────── */

/* --- Desktop Dropdown Styling --- */
.navbar-nav-links .dropdown-menu {
    border: 1px solid var(--border-color);
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    margin-top: 8px !important;
    animation: dropdown-fade-in 0.2s ease-out;
}

@keyframes dropdown-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar-nav-links .dropdown-item {
    border-radius: var(--border-radius-sm);
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #e2e8f0;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
}

.navbar-nav-links .dropdown-item:hover {
    background: var(--color-primary);
    color: white;
    transform: translateX(4px);
}

.navbar-nav-links .dropdown-divider {
    border-color: var(--border-color);
    margin: 6px 0;
}

/* --- Tools Hub Page (Premium Cards) --- */
.tools-hero {
    background: var(--bg-hero);
    color: white;
    padding: 28px 0 18px;
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
}

.tools-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.tools-hero-sub {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.tool-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

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

.tool-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-card-icon {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-primary);
}

.tool-card-title {
    font-size: 1.25rem;
    font-weight: 750;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.tool-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    flex-grow: 1;
    margin: 0;
}

/* --- Premium Calculators --- */
.calc-container {
    max-width: 480px;
    margin: 0 auto 40px;
}

.calc-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.calc-display-section {
    background: #0b0f19;
    color: #e2e8f0;
    padding: 32px 28px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-history-preview {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: #64748b;
    text-align: right;
    min-height: 24px;
    word-wrap: break-word;
    word-break: break-all;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.calc-main-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-primary-light);
    text-align: right;
    word-wrap: break-word;
    word-break: break-all;
    min-height: 56px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 20px;
    background: var(--bg-surface);
}

.calc-grid-adv {
    grid-template-columns: repeat(5, 1fr);
    padding: 16px;
    gap: 6px;
}

.calc-btn {
    border: none;
    background: var(--bg-surface-3);
    height: 64px;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 650;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.1s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-btn:hover {
    background: var(--bg-surface-2);
    transform: scale(1.03);
}

.calc-btn:active {
    background: var(--border-color);
    transform: scale(0.96);
}

.calc-btn-op {
    background: rgba(99, 102, 241, 0.12);
    color: var(--color-primary);
}

.calc-btn-op:hover {
    background: var(--color-primary);
    color: white;
}

.calc-btn-clear {
    color: var(--color-danger);
    background: rgba(239, 68, 68, 0.12);
}

.calc-btn-clear:hover {
    background: var(--color-danger);
    color: white;
}

.calc-btn-eq {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    box-shadow: var(--shadow-primary);
}

.calc-btn-eq:hover {
    box-shadow: 0 4px 14px var(--color-primary-glow);
}

.calc-btn-fn {
    background: var(--bg-surface-2);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

/* --- Premium Calendar --- */
.calendar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 28px;
}

.calendar-table {
    border-collapse: separate;
    border-spacing: 4px;
}

.calendar-table th {
    border-bottom: none;
    padding: 16px 0;
    font-size: 0.88rem;
}

.calendar-cell {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-2);
    height: 96px;
    transition: all 0.2s ease;
}

.calendar-cell:hover:not(.week-number-cell) {
    background: var(--bg-surface-3);
    border-color: var(--color-primary-light);
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.calendar-cell.week-number-cell {
    background: rgba(99, 102, 241, 0.06);
    color: var(--color-primary);
    border-color: transparent;
}

.calendar-date-number {
    font-family: 'JetBrains Mono', monospace;
}

.calendar-event-dot {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    color: white;
    font-size: 0.72rem;
    border-left: none;
    border-radius: 6px;
    padding: 2px 6px;
    box-shadow: var(--shadow-sm);
}

/* --- Premium Tip Splitter --- */
.tip-input-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.tip-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.tip-currency-symbol {
    position: absolute;
    left: 16px;
    font-weight: 700;
    color: var(--text-tertiary);
    font-size: 1.2rem;
}

.tip-bill-input {
    width: 100%;
    padding: 14px 16px 14px 36px !important;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-surface-2);
    color: var(--text-primary);
    font-size: 1.25rem !important;
    font-weight: 700;
    transition: var(--transition);
}

.tip-bill-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 4px var(--color-primary-glow);
}

/* Custom range sliders styling */
.form-range {
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
}

.form-range::-webkit-slider-thumb {
    background: var(--color-primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
    box-shadow: var(--shadow-md);
    transition: transform 0.1s ease;
}

.form-range::-webkit-slider-thumb:active {
    transform: scale(1.25);
    background: var(--color-primary-light);
}

/* Premium Receipt Visual Result Panel */
.receipt-panel {
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.receipt-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg, var(--color-primary) 0, var(--color-primary) 8px, transparent 8px, transparent 16px);
}

.receipt-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px dashed var(--border-color);
}

.receipt-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.receipt-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
}

.receipt-total-row {
    background: rgba(99, 102, 241, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.receipt-total-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

/* --- Premium Loan Calculator --- */
.loan-result-ring-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 28px;
    height: 100%;
}

.loan-ratio-bar {
    height: 12px;
    border-radius: 6px;
    background: #cbd5e1;
    overflow: hidden;
    display: flex;
}

.loan-ratio-principal {
    background: var(--color-primary);
    height: 100%;
    transition: width 0.3s ease;
}

.loan-ratio-interest {
    background: var(--color-primary-light);
    height: 100%;
    transition: width 0.3s ease;
}

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

.legend-dot-p { background: var(--color-primary); }
.legend-dot-i { background: var(--color-primary-light); }

/* --- Advanced Tip Splitter Styles --- */
.mode-toggle-container {
    display: inline-flex;
    background: var(--bg-surface-3);
    padding: 4px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.mode-toggle-btn {
    border: none;
    background: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-toggle-btn.active {
    background: var(--bg-surface);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.quick-tip-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-surface-2);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.quick-tip-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.people-list-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.person-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.person-badge-remove {
    background: none;
    border: none;
    color: var(--color-danger);
    font-size: 1rem;
    margin-left: 8px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.item-list-table th {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 8px;
}

.item-row-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.assignment-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.assignment-pill-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.assignment-pill-btn.active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--color-primary);
    border-color: var(--color-primary-light);
}

.summary-receipt-text {
    width: 100%;
    height: 120px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    background: var(--bg-surface-3);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    resize: none;
    outline: none;
}

/* --- BMI Calculator Styles --- */
.bmi-scale-bar {
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(to right, #38bdf8 0%, #38bdf8 18.5%, #4ade80 18.5%, #4ade80 25%, #facc15 25%, #facc15 30%, #f87171 30%, #f87171 100%);
    position: relative;
    margin-top: 16px;
    overflow: visible;
}

.bmi-scale-pointer {
    width: 6px;
    height: 24px;
    background: #0f172a;
    border: 2px solid white;
    border-radius: 3px;
    position: absolute;
    top: -4px;
    transform: translateX(-50%);
    box-shadow: var(--shadow-md);
    transition: left 0.3s ease;
}

.bmi-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.bmi-underweight { background-color: #38bdf8; }
.bmi-normal { background-color: #4ade80; }
.bmi-overweight { background-color: #facc15; color: #0f172a !important; }
.bmi-obese { background-color: #f87171; }

/* --- Password Generator Styles --- */
.pw-option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.strength-meter-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    overflow: hidden;
    margin-top: 8px;
}

.strength-meter-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.pw-output-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-surface-2);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 16px;
}

.pw-output-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    overflow-x: auto;
    white-space: nowrap;
    flex-grow: 1;
    margin-right: 16px;
}

.pw-copy-btn {
    border: none;
    background: var(--color-primary);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pw-copy-btn:hover {
    background: var(--color-primary-light);
}

/* --- Age Calculator Stat Cards --- */
.age-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.age-stat-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.age-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
}

.age-stat-label {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 4px;
}

/* --- Advanced Tools Styles --- */

/* Timezone Planner */
.timezone-row {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.timezone-info {
    display: flex;
    flex-direction: column;
}

.timezone-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.timezone-offset {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

.timezone-time-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 750;
    color: var(--color-primary);
}

.suitability-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.suitability-green { background-color: #4ade80; }
.suitability-yellow { background-color: #facc15; }
.suitability-red { background-color: #f87171; }

.suitability-text {
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* Hash Suite */
.drag-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    background: var(--bg-surface-2);
    cursor: pointer;
    transition: all 0.15s ease;
}

.drag-drop-zone:hover {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.04);
}

.hash-output-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.hash-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.hash-value-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hash-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    word-break: break-all;
    flex-grow: 1;
    overflow-x: auto;
}

/* Mortgage Extra Payments Chart list */
.amort-list-scroll {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.mortgage-highlight-card {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
}

.mortgage-highlight-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
}

/* --- Premium Tools Hub Styles --- */
.search-box-wrapper {
    transition: all 0.2s ease;
}

.search-box-wrapper:focus-within {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

.filter-pill {
    border-radius: 20px !important;
    font-weight: 700;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
    background: var(--bg-surface-2) !important;
}

.filter-pill:hover {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
    background: rgba(99, 102, 241, 0.05) !important;
}

.filter-pill.active {
    background: var(--color-primary) !important;
    color: white !important;
    border-color: var(--color-primary) !important;
    box-shadow: var(--shadow-sm);
}

.no-results-card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
}

.tool-card {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease !important;
}

.tool-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
}

/* --- Tools Favorite Pins & Badges --- */
.tool-fav-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.18rem;
    color: var(--text-tertiary);
    cursor: pointer;
    z-index: 10;
    transition: all 0.15s ease;
    padding: 4px;
    line-height: 1;
}

.tool-fav-btn:hover {
    color: var(--color-primary);
    transform: scale(1.18);
}

.tool-card-tag {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 6px;
    margin-top: 8px;
    display: inline-block;
}

.fav-section-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- AI Tools Pill --- */
.bg-purple {
    background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
}

.filter-pill.ai-pill {
    background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
    color: white !important;
    border-color: transparent !important;
}

.filter-pill.ai-pill:hover {
    background: linear-gradient(135deg, #6d28d9, #4f46e5) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4) !important;
}

.filter-pill.ai-pill.active {
    background: linear-gradient(135deg, #5b21b6, #4338ca) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.5) !important;
}

/* --- Text Tools Pill --- */
.filter-pill.text-pill {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    color: white !important;
    border-color: transparent !important;
}

.filter-pill.text-pill:hover {
    background: linear-gradient(135deg, #0369a1, #1d4ed8) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
}

.filter-pill.text-pill.active {
    background: linear-gradient(135deg, #075985, #1e40af) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.5) !important;
}

/* --- Writing Tools Pill --- */
.filter-pill.writing-pill {
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    color: white !important;
    border-color: transparent !important;
}

.filter-pill.writing-pill:hover {
    background: linear-gradient(135deg, #9f1239, #881337) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4) !important;
}

.filter-pill.writing-pill.active {
    background: linear-gradient(135deg, #881337, #4c0519) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.5) !important;
}

/* --- Network Tools Pill --- */
.filter-pill.network-pill {
    background: linear-gradient(135deg, #0d9488, #059669) !important;
    color: white !important;
    border-color: transparent !important;
}

.filter-pill.network-pill:hover {
    background: linear-gradient(135deg, #0f766e, #047857) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4) !important;
}

.filter-pill.network-pill.active {
    background: linear-gradient(135deg, #115e59, #065f46) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.5) !important;
}

/* --- Security Tools Pill --- */
.filter-pill.security-pill {
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    color: white !important;
    border-color: transparent !important;
}

.filter-pill.security-pill:hover {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4) !important;
}

.filter-pill.security-pill.active {
    background: linear-gradient(135deg, #7f1d1d, #450a0a) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5) !important;
}

/* --- Image Tools Pill --- */
.filter-pill.image-pill {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
    color: white !important;
    border-color: transparent !important;
}

.filter-pill.image-pill:hover {
    background: linear-gradient(135deg, #7c3aed, #5b21b6) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
}

.filter-pill.image-pill.active {
    background: linear-gradient(135deg, #5b21b6, #4c1d95) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5) !important;
}

/* --- PDF Tools Pill --- */
.filter-pill.pdf-pill {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: white !important;
    border-color: transparent !important;
}

.filter-pill.pdf-pill:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45) !important;
}

.filter-pill.pdf-pill.active {
    background: linear-gradient(135deg, #991b1b, #7f1d1d) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.55) !important;
}

/* --- Converters Pill --- */
.filter-pill.converters-pill {
    background: linear-gradient(135deg, #06b6d4, #3b82f6) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.converters-pill:hover {
    background: linear-gradient(135deg, #0891b2, #2563eb) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4) !important;
}
.filter-pill.converters-pill.active {
    background: linear-gradient(135deg, #0e7490, #1d4ed8) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.55) !important;
}

/* --- Math Tools Pill --- */
.filter-pill.math-pill {
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.math-pill:hover {
    background: linear-gradient(135deg, #4f46e5, #9333ea) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
}
.filter-pill.math-pill.active {
    background: linear-gradient(135deg, #3730a3, #6b21a8) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.55) !important;
}

/* --- Color Tools Pill --- */
.filter-pill.colors-pill {
    background: linear-gradient(135deg, #ec4899, #f43f5e) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.colors-pill:hover {
    background: linear-gradient(135deg, #db2777, #e11d48) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4) !important;
}
.filter-pill.colors-pill.active {
    background: linear-gradient(135deg, #9d174d, #9f1239) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.55) !important;
}

/* --- QR & Barcode Pill --- */
.filter-pill.qr-pill {
    background: linear-gradient(135deg, #4b5563, #1f2937) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.qr-pill:hover {
    background: linear-gradient(135deg, #374151, #111827) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.4) !important;
}
.filter-pill.qr-pill.active {
    background: linear-gradient(135deg, #1f2937, #030712) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(75, 85, 99, 0.55) !important;
}

/* --- Business Pill --- */
.filter-pill.business-pill {
    background: linear-gradient(135deg, #0d9488, #0f766e) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.business-pill:hover {
    background: linear-gradient(135deg, #0f766e, #115e59) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4) !important;
}
.filter-pill.business-pill.active {
    background: linear-gradient(135deg, #115e59, #134e4a) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.55) !important;
}

/* --- Timers Pill --- */
.filter-pill.timers-pill {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.timers-pill:hover {
    background: linear-gradient(135deg, #ea580c, #ca8a04) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4) !important;
}
.filter-pill.timers-pill.active {
    background: linear-gradient(135deg, #c2410c, #a16207) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.55) !important;
}

/* --- Dates Pill --- */
.filter-pill.dates-pill {
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.dates-pill:hover {
    background: linear-gradient(135deg, #0284c7, #1d4ed8) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4) !important;
}
.filter-pill.dates-pill.active {
    background: linear-gradient(135deg, #0369a1, #1e40af) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.55) !important;
}

/* --- Email Pill --- */
.filter-pill.email-pill {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.email-pill:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
}
.filter-pill.email-pill.active {
    background: linear-gradient(135deg, #3730a3, #312e81) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.55) !important;
}

/* --- Domain Pill --- */
.filter-pill.domain-pill {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.domain-pill:hover {
    background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
}
.filter-pill.domain-pill.active {
    background: linear-gradient(135deg, #5b21b6, #1d4ed8) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.55) !important;
}

/* --- Website Pill --- */
.filter-pill.website-pill {
    background: linear-gradient(135deg, #d946ef, #7c3aed) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.website-pill:hover {
    background: linear-gradient(135deg, #c084fc, #6d28d9) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.4) !important;
}
.filter-pill.website-pill.active {
    background: linear-gradient(135deg, #a21caf, #5b21b6) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(217, 70, 239, 0.55) !important;
}

/* --- Browser Pill --- */
.filter-pill.browser-pill {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.browser-pill:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4) !important;
}
.filter-pill.browser-pill.active {
    background: linear-gradient(135deg, #b45309, #78350f) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.55) !important;
}

/* --- Device Pill --- */
.filter-pill.device-pill {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.device-pill:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}
.filter-pill.device-pill.active {
    background: linear-gradient(135deg, #047857, #064e3b) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.55) !important;
}

/* --- Calculators Pill --- */
.filter-pill.calculators-pill {
    background: linear-gradient(135deg, #6b7280, #374151) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.calculators-pill:hover {
    background: linear-gradient(135deg, #4b5563, #1f2937) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4) !important;
}
.filter-pill.calculators-pill.active {
    background: linear-gradient(135deg, #1f2937, #111827) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.55) !important;
}

/* --- Finance Pill --- */
.filter-pill.finance-pill {
    background: linear-gradient(135deg, #10b981, #0d9488) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.finance-pill:hover {
    background: linear-gradient(135deg, #059669, #0f766e) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}
.filter-pill.finance-pill.active {
    background: linear-gradient(135deg, #047857, #115e59) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.55) !important;
}

/* --- Time & Calendar Pill --- */
.filter-pill.time-pill {
    background: linear-gradient(135deg, #8b5cf6, #d946ef) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.time-pill:hover {
    background: linear-gradient(135deg, #7c3aed, #c084fc) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
}
.filter-pill.time-pill.active {
    background: linear-gradient(135deg, #5b21b6, #a21caf) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.55) !important;
}

/* --- Education Pill --- */
.filter-pill.education-pill {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.education-pill:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}
.filter-pill.education-pill.active {
    background: linear-gradient(135deg, #1e40af, #1e3a8a) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.55) !important;
}

/* --- Health & Fitness Pill --- */
.filter-pill.health-pill {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.health-pill:hover {
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}
.filter-pill.health-pill.active {
    background: linear-gradient(135deg, #991b1b, #7f1d1d) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.55) !important;
}

/* --- Home & Build Pill --- */
.filter-pill.home-pill {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.home-pill:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4) !important;
}
.filter-pill.home-pill.active {
    background: linear-gradient(135deg, #b45309, #78350f) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.55) !important;
}

/* --- Dev & Admin Pill --- */
.filter-pill.dev-pill {
    background: linear-gradient(135deg, #10b981, #047857) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.dev-pill:hover {
    background: linear-gradient(135deg, #059669, #065f46) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}
.filter-pill.dev-pill.active {
    background: linear-gradient(135deg, #065f46, #064e3b) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.55) !important;
}

/* --- Fun & Games Pill --- */
.filter-pill.fun-pill {
    background: linear-gradient(135deg, #ec4899, #be185d) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.fun-pill:hover {
    background: linear-gradient(135deg, #db2777, #9d174d) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4) !important;
}
.filter-pill.fun-pill.active {
    background: linear-gradient(135deg, #9d174d, #701a75) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.55) !important;
}

/* --- Science & Audio Pill --- */
.filter-pill.science-pill {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.science-pill:hover {
    background: linear-gradient(135deg, #7c3aed, #5b21b6) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
}
.filter-pill.science-pill.active {
    background: linear-gradient(135deg, #5b21b6, #4c1d95) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.55) !important;
}

/* --- Mobile & Hardware Pill --- */
.filter-pill.mobile-pill {
    background: linear-gradient(135deg, #6366f1, #4338ca) !important;
    color: white !important;
    border-color: transparent !important;
}
.filter-pill.mobile-pill:hover {
    background: linear-gradient(135deg, #4f46e5, #3730a3) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
}
.filter-pill.mobile-pill.active {
    background: linear-gradient(135deg, #3730a3, #312e81) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.55) !important;
}

