:root.trends-tlds {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --accent: #06b6d4;
    --gradient-main: linear-gradient(135deg, #059669 0%, #34d399 100%);
    --gradient-2: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --primary-bg-1: rgba(16, 185, 129, 0.05);
    --primary-bg-2: rgba(6, 182, 212, 0.05);
    --hero-filter: drop-shadow(0 4px 20px rgba(16, 185, 129, 0.3));
    --focus-shadow: 0 25px 50px rgba(16, 185, 129, 0.15), inset 0 0 0 2px rgba(16, 185, 129, 0.1);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-light: #e5e7eb;
    --bg-light: #f9fafb;
}

.options-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 4px;
}

.option-btn {
    padding: 6px 14px;
    background: transparent;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.option-btn.active {
    background: var(--gradient-main);
    border-color: transparent;
    color: #fff;
}

.compare-container {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.compare-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.compare-input {
    flex: 1;
    padding: 10px 16px;
    font-size: var(--font-size-base);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
}

.compare-input:focus {
    border-color: var(--primary);
}

.add-btn {
    padding: 10px 20px;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: var(--font-size-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.add-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.selected-tlds {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 36px;
}

.tld-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-light);
    color: #fff;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.tld-tag-remove {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.tld-tag-remove:hover {
    opacity: 1;
}

.compare-hint {
    margin-top: 10px;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    text-align: center;
}

.quick-tlds {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.quick-btn {
    padding: 6px 14px;
    background: #fff;
    border: 2px solid var(--border-light);
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg-1);
}

.charts-section {
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.chart-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    width: 100%;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.chart-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--primary-bg-1);
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.share-dropdown {
    position: relative;
}

.share-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
    overflow: hidden;
}

.share-dropdown:hover .share-menu,
.share-dropdown:focus-within .share-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all 0.15s;
}

.share-item:hover {
    background: var(--primary-bg-1);
    color: var(--primary);
}

.share-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    font-weight: 500;
}

.chart-loading::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 12px;
}

.chart-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: var(--error);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

.chart-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    font-size: var(--font-size-sm);
    color: #92400e;
}

.chart-note svg {
    flex-shrink: 0;
    color: #f59e0b;
}

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.share-modal.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.share-modal-content {
    position: relative;
    width: 90%;
    max-width: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s;
    overflow: hidden;
}

.share-modal.active .share-modal-content {
    transform: scale(1) translateY(0);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.share-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.share-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    border-radius: 8px;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.share-modal-close:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.share-modal-body {
    padding: 24px;
}

.share-modal-preview {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.share-modal-preview canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.share-modal-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.share-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.share-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg-1);
}

.share-action-btn.success {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.share-action-btn svg {
    width: 20px;
    height: 20px;
}

.share-modal-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.share-modal-divider::before,
.share-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.share-modal-divider span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.share-modal-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.share-social-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.share-social-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg-1);
    transform: translateY(-2px);
}

.share-social-btn svg {
    width: 22px;
    height: 22px;
}
.mode-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}

.mode-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.mode-option:hover {
    color: var(--primary);
}

.mode-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.mode-option input[type="radio"]:checked + span {
    color: var(--primary);
}

.selected-tlds-container {
    margin-top: 16px;
    text-align: center;
}

.selected-tlds {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    min-height: 36px;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .options-bar {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .option-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .charts-section {
        padding: 20px 15px;
        gap: 25px;
    }

    .chart-card {
        padding: 20px 15px;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .chart-title {
        font-size: var(--font-size-lg);
    }

    .chart-container {
        height: 300px;
    }

    .chart-loading,
    .chart-error {
        height: 300px;
    }

    .compare-container {
        padding: 15px;
    }

    .compare-input-row {
        flex-direction: column;
    }

    .add-btn {
        width: 100%;
    }

    .chart-note {
        font-size: var(--font-size-xs);
        padding: 10px 12px;
    }

    .share-modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
    }

    .share-modal-body {
        padding: 16px;
    }

    .share-modal-actions {
        flex-direction: column;
    }

    .share-action-btn {
        padding: 12px 16px;
    }

    .share-social-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .option-btn {
        padding: 5px 10px;
        font-size: var(--font-size-xs);
    }

    .chart-container {
        height: 250px;
    }

    .chart-loading,
    .chart-error {
        height: 250px;
    }

    .quick-tlds {
        gap: 6px;
    }

    .quick-btn {
        padding: 5px 10px;
        font-size: var(--font-size-xs);
    }

    .action-btn {
        width: 32px;
        height: 32px;
    }

    .action-btn svg {
        width: 16px;
        height: 16px;
    }

    .share-modal-header {
        padding: 16px 20px;
    }

    .share-modal-header h3 {
        font-size: 16px;
    }

    .share-social-btn {
        width: 40px;
        height: 40px;
    }

    .share-social-btn svg {
        width: 20px;
        height: 20px;
    }
}