/* Copyright (c) 2026 ITech4net SAS. All rights reserved. */

:root {
    --bg-color: #0a0a0f;
    --text-color: #ffffff;
    --accent-color: #00d4ff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #38ef7d;
    --error-color: #ff0055;
    --subtitle-color: rgba(255, 255, 255, 0.7);
    --section-title-color: rgba(255, 255, 255, 0.9);
    --input-bg: rgba(255, 255, 255, 0.08);
    --input-text-color: #ffffff;
    --input-muted-color: rgba(255, 255, 255, 0.8);
    --chip-default-bg: rgba(255, 255, 255, 0.05);
    --chip-default-border: rgba(255, 255, 255, 0.1);
    --chip-default-color: rgba(255, 255, 255, 0.6);
    --surface-bg: rgba(255, 255, 255, 0.08);
    --surface-hover-bg: rgba(255, 255, 255, 0.15);
    --surface-text-color: rgba(255, 255, 255, 0.7);
    --segment-bg: rgba(255, 255, 255, 0.05);
    --segment-text-color: rgba(255, 255, 255, 0.6);
    --segment-hover-text-color: #ffffff;
    --table-heading-color: rgba(255, 255, 255, 0.7);
    --table-text-color: rgba(255, 255, 255, 0.9);
    --domain-link-hover-color: #ffffff;
    --detail-text-color: rgba(255, 255, 255, 0.6);
    --modal-overlay: rgba(0, 0, 0, 0.8);
    --modal-bg: rgba(15, 15, 20, 0.95);
    --modal-border: rgba(255, 255, 255, 0.15);
    --modal-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --modal-title-color: #ffffff;
    --modal-text-color: rgba(255, 255, 255, 0.7);
    --modal-cancel-bg: rgba(255, 255, 255, 0.05);
    --modal-cancel-hover-bg: rgba(255, 255, 255, 0.1);
    --warning-bg: rgba(255, 165, 0, 0.1);
    --warning-border: rgba(255, 165, 0, 0.3);
    --warning-text: #ffaa00;
    --badge-bg: rgba(0, 0, 0, 0.6);
    --badge-border: rgba(255, 255, 255, 0.1);
    --badge-text: #ffffff;
    --copy-toast-bg: rgba(15, 15, 20, 0.97);
    --copy-toast-border: rgba(255, 255, 255, 0.12);
    --copy-toast-shadow: 0 0 0 1px rgba(0, 212, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.6), 0 32px 64px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --copy-toast-sublabel: rgba(255, 255, 255, 0.35);
    --poll-desc-color: rgba(255, 255, 255, 0.7);
    --filter-label-color: rgba(255, 255, 255, 0.4);
    --mobile-back-bg: rgba(15, 15, 20, 0.9);
    --theme-toggle-bg: rgba(255, 255, 255, 0.08);
    --theme-toggle-hover-bg: rgba(255, 255, 255, 0.16);
    --theme-toggle-border: rgba(255, 255, 255, 0.15);
    --theme-toggle-color: rgba(255, 255, 255, 0.85);
}

body[data-theme="light"] {
    --bg-color: #f5f7fb;
    --text-color: #111827;
    --card-bg: rgba(255, 255, 255, 0.88);
    --border-color: rgba(148, 163, 184, 0.32);
    --subtitle-color: rgba(17, 24, 39, 0.72);
    --section-title-color: #111827;
    --input-bg: rgba(15, 23, 42, 0.05);
    --input-text-color: #111827;
    --input-muted-color: rgba(17, 24, 39, 0.72);
    --chip-default-bg: rgba(15, 23, 42, 0.04);
    --chip-default-border: rgba(148, 163, 184, 0.28);
    --chip-default-color: rgba(17, 24, 39, 0.65);
    --surface-bg: rgba(15, 23, 42, 0.05);
    --surface-hover-bg: rgba(15, 23, 42, 0.1);
    --surface-text-color: rgba(17, 24, 39, 0.72);
    --segment-bg: rgba(15, 23, 42, 0.05);
    --segment-text-color: rgba(17, 24, 39, 0.64);
    --segment-hover-text-color: #111827;
    --table-heading-color: rgba(17, 24, 39, 0.62);
    --table-text-color: rgba(17, 24, 39, 0.92);
    --domain-link-hover-color: #111827;
    --detail-text-color: rgba(17, 24, 39, 0.58);
    --modal-overlay: rgba(15, 23, 42, 0.35);
    --modal-bg: rgba(243, 244, 246, 0.98);
    --modal-border: rgba(148, 163, 184, 0.3);
    --modal-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
    --modal-title-color: #111827;
    --modal-text-color: rgba(17, 24, 39, 0.7);
    --modal-cancel-bg: rgba(15, 23, 42, 0.05);
    --modal-cancel-hover-bg: rgba(15, 23, 42, 0.1);
    --warning-bg: rgba(245, 158, 11, 0.12);
    --warning-border: rgba(245, 158, 11, 0.32);
    --warning-text: #b45309;
    --badge-bg: rgba(255, 255, 255, 0.86);
    --badge-border: rgba(148, 163, 184, 0.3);
    --badge-text: #111827;
    --copy-toast-bg: rgba(243, 244, 246, 0.98);
    --copy-toast-border: rgba(148, 163, 184, 0.3);
    --copy-toast-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
    --copy-toast-sublabel: rgba(17, 24, 39, 0.5);
    --poll-desc-color: rgba(17, 24, 39, 0.72);
    --filter-label-color: rgba(17, 24, 39, 0.46);
    --mobile-back-bg: rgba(255, 255, 255, 0.92);
    --theme-toggle-bg: rgba(255, 255, 255, 0.82);
    --theme-toggle-hover-bg: rgba(255, 255, 255, 0.96);
    --theme-toggle-border: rgba(148, 163, 184, 0.35);
    --theme-toggle-color: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.bg-animation::before,
.bg-animation::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 20s infinite ease-in-out;
}

.bg-animation::before {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    top: -100px;
    left: -100px;
}

.bg-animation::after {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8800ff, #ff0055);
    bottom: -100px;
    right: -100px;
    animation-delay: 10s;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 3rem;
    margin: 0 0 10px 0;
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 40%, #d946ef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    font-family: 'Space Grotesk', 'Urbanist', sans-serif;
}

.page-subtitle {
    color: var(--subtitle-color);
    font-size: 1.1rem;
}

.extension-input-section {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.extension-input-section h3 {
    margin-bottom: 15px;
    color: var(--section-title-color);
    font-size: 1rem;
}

.extension-input-wrapper {
    display: flex;
    gap: 10px;
}

.extension-input {
    flex: 1;
    padding: 10px 15px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--input-text-color);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.extension-input::placeholder,
#new-brand-input::placeholder,
#custom-separator-input::placeholder {
    color: var(--input-muted-color);
}

.extension-input:focus,
#new-brand-input:focus,
#custom-separator-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12);
}

.add-extension-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #8800ff, #ff0055);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-extension-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(136, 0, 255, 0.3);
}

.brands-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
}

.check-all-section {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
}

.check-all-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.check-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.check-all-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.check-all-btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.extension-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 100px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.chip .remove-chip {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.chip .remove-chip:hover {
    opacity: 1;
}

.chip.default {
    background: var(--chip-default-bg);
    border-color: var(--chip-default-border);
    color: var(--chip-default-color);
}

.chip.default .remove-chip {
    display: none;
}

.brand-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), filter 0.5s ease, opacity 0.5s ease, border-color 0.3s ease, background 0.3s ease;
}

body[data-theme="light"] .brand-card {
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.brand-card.reordering {
    transform: scale(0.98);
    opacity: 0.7;
}

.visibility-btn,
.delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--surface-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--surface-text-color);
}

.visibility-btn:hover,
.delete-btn:hover {
    background: var(--surface-hover-bg);
    color: var(--text-color);
}

.delete-btn:hover {
    color: var(--error-color);
    border-color: rgba(255, 0, 85, 0.3);
}

.visibility-btn svg,
.delete-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.favorite-btn {
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    position: relative;
}

body[data-theme="light"] .favorite-btn {
    color: rgba(17, 24, 39, 0.2);
}

.favorite-btn svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease, fill 0.3s ease;
}

.favorite-btn:hover {
    color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

body[data-theme="light"] .favorite-btn:hover {
    color: rgba(17, 24, 39, 0.45);
}

.favorite-btn.favorited {
    color: #bf5af2;
    animation: favPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Delete brand button - positioned at top right of card header */
.delete-brand-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    margin-left: auto;
    border-radius: 8px;
}

body[data-theme="light"] .delete-brand-btn {
    color: rgba(17, 24, 39, 0.3);
}

.delete-brand-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.delete-brand-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

body[data-theme="light"] .delete-brand-btn:hover {
    background: rgba(239, 68, 68, 0.15);
}

.favorite-btn.favorited svg {
    fill: #bf5af2;
    filter: drop-shadow(0 0 10px rgba(191, 90, 242, 0.4));
}

@keyframes favPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(90deg, #00d4ff, #8800ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.domain-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.domain-table thead {
    display: none;
}

.domain-table th,
.domain-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.domain-table th:nth-child(1),
.domain-table td:nth-child(1) {
    width: 25%;
}

.domain-table th:nth-child(2),
.domain-table td:nth-child(2) {
    width: 12%;
}

.domain-table th:nth-child(3),
.domain-table td:nth-child(3) {
    width: 23%;
}

.domain-table th:nth-child(4),
.domain-table td:nth-child(4) {
    width: 35%;
}

.domain-table th:nth-child(5),
.domain-table td:nth-child(5) {
    width: 80px;
    text-align: right;
    white-space: nowrap;
    padding-right: 15px;
}

.domain-table th {
    color: var(--table-heading-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.domain-table td {
    color: var(--table-text-color);
}

.domain-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    opacity: 0.9;
}

.domain-link::after {
    content: ' ↗';
    font-size: 0.8em;
    opacity: 0.6;
    margin-left: 2px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.domain-link:hover {
    color: var(--domain-link-hover-color);
    text-shadow: 0 0 8px var(--accent-color);
    opacity: 1;
}

.domain-link:hover::after {
    transform: translate(2px, -2px);
    opacity: 1;
}

.buy-btn,
.check-btn {
    width: 75px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    height: 32px;
    box-sizing: border-box;
}

.check-btn {
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    color: var(--input-text-color);
}

.check-btn:hover {
    background: var(--surface-hover-bg);
}

.check-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.visibility-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--surface-text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    vertical-align: middle;
}

.visibility-btn:hover {
    background: var(--surface-hover-bg);
    color: var(--text-color);
    transform: scale(1.05);
}

.visibility-btn.hidden {
    background: rgba(255, 0, 85, 0.1);
    border-color: rgba(255, 0, 85, 0.2);
    color: var(--error-color);
    opacity: 0.6;
}

.visibility-btn.hidden:hover {
    background: rgba(255, 0, 85, 0.15);
    opacity: 1;
}

.delete-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid rgba(255, 0, 85, 0.3);
    border-radius: 6px;
    color: var(--error-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    vertical-align: middle;
    margin-left: 4px;
}

.delete-btn:hover {
    background: rgba(255, 0, 85, 0.2);
    border-color: rgba(255, 0, 85, 0.5);
    transform: scale(1.05);
}

.segmented-control {
    display: flex;
    background: var(--segment-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
    width: fit-content;
}

.segment-btn {
    border: none;
    background: transparent;
    color: var(--segment-text-color);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.poll-section {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.poll-btn {
    padding: 10px 20px;
    background: rgba(191, 90, 242, 0.15);
    border: 1px solid rgba(191, 90, 242, 0.3);
    border-radius: 8px;
    color: #bf5af2;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.poll-btn:hover {
    background: rgba(191, 90, 242, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(191, 90, 242, 0.2);
}

.vote-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #bf5af2;
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 6px;
    min-width: 14px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.vote-badge.visible {
    transform: scale(1);
}

.vote-badge.zero {
    background: rgba(191, 90, 242, 0.1);
    border: 1px solid rgba(191, 90, 242, 0.5);
    color: #bf5af2;
    box-shadow: none;
}

.qr-code-frame {
    background: #ffffff;
    padding: 18px;
    border-radius: 24px;
    display: inline-block;
    margin: 20px auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.qr-code-frame img {
    display: block;
    width: 180px;
    height: 180px;
}

.share-url-container {
    display: flex;
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px;
    margin: 15px 0;
    gap: 5px;
}

.share-url-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--input-muted-color);
    font-size: 0.85rem;
    padding: 5px 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.share-url-input:focus {
    outline: none;
}

.copy-btn {
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.copy-btn.copied {
    background: var(--success-color);
}

.poll-active-banner {
    background: linear-gradient(90deg, rgba(191, 90, 242, 0.2), transparent);
    border-left: 4px solid #bf5af2;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
}

body[data-theme="light"] .poll-active-banner {
    background: linear-gradient(90deg, rgba(191, 90, 242, 0.12), rgba(191, 90, 242, 0.03));
}

.poll-active-banner.visible {
    display: flex;
}

.segment-btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.segment-btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.segment-btn:hover:not(.active) {
    background: var(--surface-bg);
    color: var(--segment-hover-text-color);
}

.segment-btn.active {
    background: linear-gradient(135deg, #00d4ff, #8800ff);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
}

.segment-btn.active.success {
    background: linear-gradient(135deg, #38ef7d, #00cc66);
    color: white;
    box-shadow: 0 2px 8px rgba(56, 239, 125, 0.4);
}

.segment-btn svg,
.segment-btn span.icon {
    width: 16px;
    height: 16px;
}

.status-available {
    color: var(--success-color);
    font-weight: 500;
}

.status-available .check-mark {
    color: var(--success-color);
    font-size: 1.1em;
    margin-left: 2px;
}

.status-unavailable {
    color: var(--error-color);
    font-weight: 500;
}

.status-unavailable .error-mark {
    color: var(--error-color);
    font-size: 1.1em;
    margin-left: 2px;
}

.status-checking {
    color: var(--accent-color);
    opacity: 0.7;
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--input-text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--surface-hover-bg);
}

#brands-container {
    position: relative;
}

#brands-container.animating-sort > .brand-card:not(.sorting-item) {
    filter: blur(8px);
    opacity: 0.4;
    pointer-events: none;
}

.brand-card.sorting-item {
    z-index: 100 !important;
    box-shadow: 0 20px 60px rgba(191, 90, 242, 0.5) !important;
    border-color: var(--purple-accent) !important;
    transform: scale(1.04) translateY(-20px) !important;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.visible {
    display: flex;
}

.modal-content {
    background: var(--modal-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--modal-border);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: var(--modal-shadow);
    color: var(--text-color);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h3 {
    margin: 0 0 16px 0;
    font-size: 1.4rem;
    color: var(--modal-title-color);
    font-family: 'Outfit', sans-serif;
}

.modal-content p {
    margin-bottom: 24px;
    color: var(--modal-text-color);
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.modal-btn-cancel {
    background: var(--modal-cancel-bg);
    border-color: var(--border-color);
    color: var(--input-text-color);
}

.modal-btn-cancel:hover {
    background: var(--modal-cancel-hover-bg);
}

.modal-btn-confirm {
    background: linear-gradient(135deg, var(--error-color), #ff3377);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 0, 85, 0.3);
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 85, 0.5);
}

.domain-option {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

body[data-theme="light"] .domain-option {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(148, 163, 184, 0.28);
}

.domain-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.3);
}

body[data-theme="light"] .domain-option:hover {
    background: rgba(15, 23, 42, 0.06);
}

.domain-option input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #00d4ff;
}

.domain-option .option-label {
    flex: 0 0 auto;
    color: var(--table-text-color);
    font-size: 0.9rem;
    margin-right: 12px;
}

.domain-option .option-preview {
    flex: 1;
    text-align: right;
    color: #00d4ff;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
}

.domain-option input[type="radio"]:checked ~ .option-label {
    color: var(--text-color);
    font-weight: 600;
}

.domain-option input[type="radio"]:checked ~ .option-preview {
    color: #00d4ff;
}

.domain-option:has(input[type="radio"]:checked) {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
}

.buy-btn {
    background: linear-gradient(135deg, var(--success-color), #00cc66);
    border: 1px solid transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(56, 239, 125, 0.3);
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 239, 125, 0.5);
}

.domain-details {
    font-size: 0.75rem;
    color: var(--detail-text-color);
    margin-top: 4px;
}

.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 8px;
}

.status-badge.dns {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.status-badge.whois {
    background: rgba(136, 0, 255, 0.2);
    color: #8800ff;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

body[data-theme="light"] .toggle-switch {
    background: rgba(15, 23, 42, 0.08);
}

.toggle-switch.active {
    background: var(--success-color);
    border-color: var(--success-color);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active::after {
    transform: translateX(20px);
}

.footer {
    text-align: center;
    padding: 50px 20px 30px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

body[data-theme="light"] .footer {
    color: rgba(17, 24, 39, 0.5);
}

.footer a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

body[data-theme="light"] .footer a:hover {
    color: #111827;
}

.suggestion-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.suggestion-tag {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: 0 0 5px rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
    }
}

.suggestion-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.suggestion-btn.accept-btn {
    background: rgba(56, 239, 125, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(56, 239, 125, 0.3);
}

.suggestion-btn.accept-btn:hover {
    background: rgba(56, 239, 125, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(56, 239, 125, 0.4);
}

.suggestion-btn.reject-btn {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.suggestion-btn.reject-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.brand-card-proposed {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(239, 68, 68, 0.08)) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1), inset 0 0 30px rgba(245, 158, 11, 0.03);
}

.brand-card-proposed:hover {
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.2), inset 0 0 30px rgba(245, 158, 11, 0.05);
}

.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: var(--copy-toast-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--copy-toast-border);
    border-radius: 20px;
    padding: 32px 40px 28px;
    z-index: 99999;
    text-align: center;
    pointer-events: auto;
    opacity: 0;
    box-shadow: var(--copy-toast-shadow);
    min-width: 300px;
    overflow: hidden;
}

.copy-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.6) 40%, rgba(56, 239, 125, 0.6) 60%, transparent);
}

.copy-toast.show {
    animation: copyToastIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes copyToastIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -46%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes copyToastOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -55%) scale(0.95);
    }
}

.copy-toast-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(56, 239, 125, 0.15));
    border: 1px solid rgba(0, 212, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
    animation: iconAppear 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes iconAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.copy-toast-icon-wrap svg {
    color: #00d4ff;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.5));
}

.copy-toast-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(0, 212, 255, 0.7);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.copy-toast-domain {
    font-size: 1.45rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
    display: block;
    margin-bottom: 4px;
    background: linear-gradient(90deg, #00d4ff, #38ef7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(56, 239, 125, 0.3));
}

.copy-toast-sublabel {
    font-size: 0.73rem;
    color: var(--copy-toast-sublabel);
    margin-top: 10px;
    display: block;
}

.copy-toast-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.copy-toast-btn {
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-toast-btn-open {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(56, 239, 125, 0.2));
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--text-color);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.15);
}

.copy-toast-btn-open:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.35), rgba(56, 239, 125, 0.35));
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.25);
}


#finish-poll-confirm-modal {
    z-index: 10000 !important;
}

#finish-poll-confirm-modal .modal-content {
    pointer-events: auto !important;
    z-index: 10001 !important;
}

#finish-poll-confirm {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 10002 !important;
}

.theme-toggle-btn {
    position: fixed;
    top: 20px;
    right: 120px;
    z-index: 1001;
    min-width: 96px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--theme-toggle-border);
    background: var(--theme-toggle-bg);
    color: var(--theme-toggle-color);
    backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: var(--theme-toggle-hover-bg);
    transform: translateY(-1px);
}

.theme-toggle-icon {
    font-size: 14px;
    line-height: 1;
}

.inline-icon-sm {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

.inline-icon-accent {
    vertical-align: middle;
    margin: 0 4px;
    color: #bf5af2;
}

.inline-icon-md {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

.inline-icon-lg {
    width: 18px;
    height: 18px;
}

.filter-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.filter-group-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--filter-label-color);
}

.poll-banner-status {
    color: #bf5af2;
    font-weight: 600;
    margin-right: 10px;
}

.poll-banner-description {
    color: var(--poll-desc-color);
    font-size: 0.9rem;
}

.poll-banner-actions {
    display: flex;
    gap: 10px;
}

.create-poll-btn {
    margin-left: 15px;
}

.custom-separator-input {
    width: 60px;
    height: 32px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--input-text-color);
    padding: 6px;
    border-radius: 6px;
    text-align: center;
    margin-left: 8px;
}

.custom-char-warning {
    display: none;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 6px;
    color: var(--warning-text);
    font-size: 0.85rem;
}

.info-modal-actions {
    margin-top: 20px;
}

.info-modal-close-btn {
    min-width: 100px;
}

#add-brand-modal .modal-content {
    max-width: 400px;
    padding: 30px;
}

#add-brand-modal h3 {
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

#new-brand-input {
    width: 100%;
    height: 44px;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: left;
}

#confirm-add-brand-btn,
#domain-construction-confirm {
    background: linear-gradient(135deg, #00d4ff, #3a7bd5);
}

#domain-construction-modal .modal-content {
    max-width: 500px;
    padding: 30px;
}

#domain-construction-modal h3 {
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
}

#domain-construction-modal p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.domain-construction-preview {
    color: #00d4ff;
    font-weight: 600;
}

.domain-construction-options {
    margin-bottom: 20px;
}

.domain-construction-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#finish-poll-btn {
    background: rgba(255, 0, 85, 0.1);
    border-color: rgba(255, 0, 85, 0.3);
    color: #ff4d8d;
}

#finish-poll-btn:hover {
    background: rgba(255, 0, 85, 0.16);
}

#finish-poll-confirm {
    background: linear-gradient(135deg, #ff0055, #ff4d8d);
}

.poll-terminated-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

#poll-terminated-close {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .extension-input-section {
        padding: 15px;
        margin-bottom: 30px;
    }

    .status-badge {
        display: none !important;
    }

    .domain-table td {
        padding: 12px 6px;
    }

    .domain-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 0;
    }

    .domain-table td:nth-child(1) {
        width: 100% !important;
        font-weight: 600;
        border-bottom: none;
        padding-bottom: 4px;
    }

    .domain-table td:nth-child(2) {
        width: auto !important;
        border-bottom: none;
    }

    .domain-table td:nth-child(3) {
        width: auto !important;
        flex: 1;
        border-bottom: none;
        text-align: right;
    }

    .domain-table td:nth-child(4) {
        display: none !important;
    }

    .domain-table td:nth-child(5) {
        width: auto !important;
        border-bottom: none;
    }

    .buy-btn,
    .check-btn {
        width: 65px;
        height: 28px;
        padding: 0;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .extension-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .extension-input {
        width: 100%;
    }

    .add-extension-btn {
        width: 100%;
        padding: 12px;
    }

    .brands-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .brand-card {
        padding: 20px;
    }

    .brand-name {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .domain-table {
        font-size: 0.9rem;
    }

    .domain-table th,
    .domain-table td {
        padding: 10px 8px;
    }

    .back-btn {
        top: auto;
        bottom: 15px;
        left: 10px;
        width: 44px;
        height: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: var(--mobile-back-bg);
        backdrop-filter: blur(12px);
        font-size: 20px;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .poll-active-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 15px;
        background: linear-gradient(180deg, rgba(191, 90, 242, 0.15), rgba(191, 90, 242, 0.05));
        border-left: none;
        border-top: 3px solid #bf5af2;
    }

    .poll-active-banner > div:last-child,
    .poll-banner-actions {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .poll-active-banner .poll-btn {
        flex: 1;
        min-width: 140px;
        padding: 10px;
        font-size: 0.85rem;
        justify-content: center;
    }

    .check-all-section {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-width: 400px;
        width: 100%;
        margin: 0 auto 20px;
    }

    .check-all-section .poll-btn,
    .create-poll-btn {
        margin-left: 0 !important;
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .check-all-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .theme-toggle-btn {
        top: auto;
        bottom: 32px;
        right: 92px;
        min-width: 32px;
        width: 32px;
        height: 32px;
        padding: 0;
        border-radius: 8px;
        gap: 0;
        font-size: 0.72rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .theme-toggle-btn #theme-toggle-label {
        display: none;
    }

    .theme-toggle-btn .theme-toggle-icon {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .suggestion-container {
        flex-wrap: wrap;
        gap: 6px;
    }

    .suggestion-tag {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .suggestion-btn {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }

    .brand-card {
        padding: 15px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .domain-table {
        font-size: 0.85rem;
    }

    .domain-table th,
    .domain-table td {
        padding: 8px 6px;
    }

    .domain-table th:nth-child(4),
    .domain-table td:nth-child(4) {
        display: none;
    }

    .buy-btn,
    .check-btn {
        width: 60px;
        height: 26px;
        font-size: 0.7rem;
    }
}
