/* Tool-specific styles only - base styles are in tool-layout.css */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0a;
    color: #e5e7eb;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #141414;
    border-bottom: 1px solid #374151;
    z-index: 100;
}

    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

    margin-top: 60px;
    padding: 48px 24px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    max-width: 720px;
    margin: 0 auto;
}

.tool-main {
    flex: 1;
    padding: 32px 24px 120px;
}

.tool-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group > label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.text-input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.text-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.text-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.text-input::placeholder {
    color: #6b7280;
}

.text-input-small {
    width: 80px;
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
}

.button-row {
    display: flex;
    gap: 12px;
}

.button-primary {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
}

.button-secondary {
    background-color: #1a1a1a;
    color: #e5e7eb;
    border: 1px solid #374151;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
}

.niche-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.niche-label {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.niche-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.niche-btn {
    background-color: transparent;
    border: 1px solid #374151;
    color: #d1d5db;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.niche-btn:hover {
    border-color: #667eea;
    color: #ffffff;
    background-color: rgba(102, 126, 234, 0.1);
}

.niche-btn.active {
    border-color: #667eea;
    color: #ffffff;
    background-color: #667eea;
}

.summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background-color: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

.summary-info {
    font-size: 15px;
    color: #d1d5db;
}

.summary-count {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.summary-text {
    color: #9ca3af;
}

#summary-topic {
    color: #667eea;
    font-weight: 500;
}

.button-copy {
    background-color: #667eea;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.button-copy:hover {
    background-color: #5a6fd6;
}

.button-copy.copied {
    background-color: #059669;
}

.button-copy-tier {
    background-color: #1a1a1a;
    color: #d1d5db;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid #374151;
    cursor: pointer;
    transition: all 150ms ease;
    align-self: flex-start;
}

.button-copy-tier:hover {
    background-color: #374151;
    color: #ffffff;
}

.button-copy-tier.copied {
    background-color: #059669;
    border-color: #059669;
    color: #ffffff;
}

.no-results {
    text-align: center;
    padding: 32px 24px;
    background-color: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

.no-results-title {
    font-size: 16px;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 8px;
}

.no-results-text {
    font-size: 14px;
    color: #6b7280;
}

.output-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tier-section {
    background-color: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

.tier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: background-color 150ms ease;
    user-select: none;
}

.tier-header:hover {
    background-color: #1a1a1a;
}

.tier-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tier-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tier-indicator-high {
    background-color: #ef4444;
}

.tier-indicator-medium {
}

.tier-indicator-low {
    background-color: #10b981;
}

.tier-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.tier-count {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
}

.tier-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tier-description {
    font-size: 13px;
    color: #6b7280;
}

.tier-chevron {
    font-size: 12px;
    color: #6b7280;
    transition: transform 200ms ease;
}

.tier-header[aria-expanded="false"] .tier-chevron {
    transform: rotate(180deg);
}

.tier-body {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 300ms ease, padding 300ms ease, opacity 200ms ease;
    opacity: 1;
}

.tier-body.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.tier-header-high {
    border-left: 3px solid #ef4444;
}

.tier-header-medium {
    border-left: 3px solid #f59e0b;
}

.tier-header-low {
    border-left: 3px solid #10b981;
}

.hashtag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hashtag-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 400;
    color: #d1d5db;
    cursor: pointer;
    transition: all 150ms ease;
    user-select: none;
}

.hashtag-chip:hover {
    background-color: #2a2a2a;
    border-color: #374151;
    color: #ffffff;
}

.hashtag-chip.copied {
    background-color: #059669;
    border-color: #059669;
    color: #ffffff;
}

.hashtag-chip.banned {
    border-color: #dc2626;
    color: #fca5a5;
}

.hashtag-chip .banned-indicator {
    margin-left: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #ef4444;
    text-transform: uppercase;
}

.pro-section {
    background-color: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.pro-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #2a2a2a;
}

.pro-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.pro-badge {
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pro-section-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pro-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 10, 10, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    z-index: 10;
}

.lock-text {
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.lock-description {
    font-size: 14px;
    color: #9ca3af;
}

.banned-status {
    font-size: 14px;
    color: #9ca3af;
}

.banned-status.has-banned {
    color: #fca5a5;
}

.banned-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.banned-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: #1a0a0a;
    border: 1px solid #3f1515;
    border-radius: 6px;
    font-size: 14px;
}

.banned-item-tag {
    font-weight: 500;
    color: #fca5a5;
}

.banned-item-reason {
    font-size: 12px;
    color: #9ca3af;
    margin-left: auto;
}

.group-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-empty {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    padding: 12px;
}

.group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
}

.group-item-info {
    flex: 1;
    min-width: 0;
}

.group-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-item-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.group-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.group-action-btn {
    background-color: transparent;
    border: 1px solid #374151;
    color: #d1d5db;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.group-action-btn:hover {
    background-color: #374151;
    color: #ffffff;
}

.group-action-btn.delete:hover {
    background-color: #7f1d1d;
    border-color: #dc2626;
    color: #fca5a5;
}

.group-save-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.group-save-row .text-input {
    flex: 1;
}

.group-save-row .button-secondary {
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.mix-niches,
.mix-groups {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mix-label {
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
}

.mix-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

label.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #e5e7eb;
}

label.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 4px;
    position: relative;
    transition: all 150ms ease;
    flex-shrink: 0;
}

label.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #667eea;
    border-color: #667eea;
}

label.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mix-settings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mix-setting-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mix-setting-item > label {
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    white-space: nowrap;
}

.mix-balance-buttons {
    display: flex;
    gap: 6px;
}

.balance-btn {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #d1d5db;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.balance-btn:hover {
    background-color: #374151;
}

.balance-btn.active {
    background-color: #667eea;
    border-color: #667eea;
    color: #ffffff;
}

.mix-result {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
}

.mix-result-header {
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
}

#mix-result-count {
    font-weight: 700;
    color: #ffffff;
}

.mix-group-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pro-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.pro-cta-text {
    font-size: 14px;
    color: #d1d5db;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
}

.modal-overlay.modal-hidden {
    display: none;
}

.modal-overlay.modal-visible {
    display: flex;
}

.modal {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 0;
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 150ms ease;
}

.modal-close:hover {
    color: #e5e7eb;
}

.modal-content {
    padding: 24px;
}

.pro-features-list {
    margin-bottom: 24px;
}

.pro-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.feature-check {
    width: 20px;
    height: 20px;
    background-color: #059669;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    color: #e5e7eb;
}

.modal-cta {
    width: 100%;
    display: block;
}

.footer {
    background-color: #0a0a0a;
    border-top: 1px solid #374151;
    padding: 32px 24px;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 14px;
    color: #6b7280;
}

@media (max-width: 768px) {
        padding: 32px 16px;
    }

        font-size: 28px;
        line-height: 36px;
    }

        font-size: 14px;
    }

    .tool-main {
        padding: 24px 16px 100px;
    }

    .tool-container {
        gap: 20px;
    }

    .niche-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .tier-description {
        display: none;
    }

    .summary-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .button-copy {
        width: 100%;
    }

    .mix-checkbox-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .mix-balance-buttons {
        flex-wrap: wrap;
    }

    .group-save-row {
        flex-direction: column;
    }

    .group-save-row .button-secondary {
        width: 100%;
    }

    .pro-cta-content {
        flex-direction: column;
        gap: 10px;
    }

        padding: 0 16px;
    }

    .group-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .group-item-actions {
        width: 100%;
    }

    .group-action-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .button-row {
        flex-direction: column;
    }

    .niche-row {
        gap: 6px;
    }

    .mix-checkbox-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .tier-meta {
        gap: 8px;
    }
}