body {
    background-color: #fff;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
}

.trans-container {
    padding: 0 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.row-slide-out {
    animation: slideOutRow 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
    background-color: #ecfeff !important;
}

@keyframes slideOutRow {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    30% {
        transform: translateX(2%) scale(0.98);
        opacity: 0.9;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
        height: 0;
        padding: 0;
        line-height: 0;
        border: none;
        display: none;
    }
}

.tab-bounce {
    animation: tabPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tabPop {
    0% {
        transform: scale(1);
        box-shadow: none;
    }

    50% {
        transform: scale(1.15);
        background-color: #a5f3fc;
        color: #0f172a;
        box-shadow: 0 4px 15px rgba(103, 232, 249, 0.6);
    }

    100% {
        transform: scale(1);
    }
}

.success-overlay {
    position: absolute;
    right: 50px;
    top: 50%;
    color: #10b981;
    font-weight: 800;
    font-size: 1.1rem;
    animation: flyUp 0.5s ease-out forwards;
    z-index: 10;
}

@keyframes flyUp {
    0% {
        transform: translateY(-50%);
        opacity: 1;
    }

    100% {
        transform: translateY(-150%);
        opacity: 0;
    }
}

.preview-row {
    background: #f8fafc !important;
}

.preview-row:hover {
    background: #f8fafc !important;
}

.preview-cell {
    padding: 24px 30px !important;
    border-top: 2px solid #e2e8f0;
    border-bottom: 2px solid #67e8f9;
}

.preview-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #334155;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

.preview-content::-webkit-scrollbar {
    width: 6px;
}

.preview-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 99px;
}

.preview-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}

.preview-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.preview-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
}

.preview-content h1,
.preview-content h2,
.preview-content h3 {
    color: #0f172a;
    margin: 12px 0 8px;
    font-weight: 700;
}

.preview-content p {
    margin: 8px 0;
}

.preview-content ul,
.preview-content ol {
    padding-left: 20px;
    margin: 8px 0;
}

.preview-content li {
    margin: 4px 0;
}

.row-actions-review:hover .qa-default {
    display: none;
}

.row-actions-review {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.review-icons-default {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.review-icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #334155;
    transition: all 0.15s;
}

.review-icon-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.review-btns-hover {
    display: none;
    gap: 8px;
    align-items: center;
}

.nav-group.open .chevron img {
    filter: brightness(0);
}

.trans-row:hover .review-icons-default {
    display: none;
}

.trans-row:hover .review-btns-hover {
    display: flex;
    animation: fadeIn 0.15s;
}

.trans-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    margin-top: 30px;
}

.trans-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
}

.trans-coins {
    background: #fff;
    padding: 8px 16px;
    border-radius: 99px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    border: 1px solid #f1f5f9;
    color: #334155;
}

.domain-bar {
    position: relative;
    background: transparent;
    padding: 8px 0;
    margin-top: 5px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    width: 100%;
}

.dropdown-icon img {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    opacity: 0.9;
}

.domain-bar.active .dropdown-icon img {
    transform: rotate(180deg);
}

.shop-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    min-width: 220px;
    background: linear-gradient(to bottom, #000000 0%, #000000 40%, #081C2D 100%);
    border-radius: 12px;
    padding: 8px;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid #334155;
    box-sizing: border-box;
}

.shop-dropdown.show {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

.shop-option-item {
    padding: 12px 14px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: left;
    transition: all 0.2s;
    display: block;
    margin-bottom: 4px;
}

.shop-option-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.shop-option-item.active {
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(to top, #000000 0%, #000000 10%, #081C2D 90%);
    border: none;
}

.shop-add-btn {
    border-top: 1px solid #334155;
    margin-top: 5px;
    padding-top: 12px;
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
}

.shop-add-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.flags-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    min-height: 50px;
}

.flag-home-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.flag-home-icon img {
    width: 100%;
    height: 100%;
}

.flag-separator {
    width: 1px;
    height: 28px;
    background: #cbd5e1;
    margin: 0 4px;
    flex-shrink: 0;
}

.master-locale-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #64748b;
    gap: 12px;
}

.master-locale-info .mli-icon {
    width: 56px;
    height: 56px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.master-locale-info .mli-icon svg {
    width: 28px;
    height: 28px;
    stroke: #94a3b8;
    fill: none;
}

.master-locale-info .mli-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.master-locale-info .mli-desc {
    font-size: 0.9rem;
    color: #64748b;
    max-width: 400px;
    line-height: 1.6;
}

.flag-item {
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    border-radius: 99px;
    background: #fff;
    border: 1px solid transparent;
    position: relative;
}

.flag-item.no-img {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
}

.flag-item:not(.active) {
    width: 40px;
    height: 40px;
    opacity: 0.6;
    filter: grayscale(100%);
    border-color: #e2e8f0;
}

.flag-item:not(.active):hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
    border-color: #cbd5e1;
}

.flag-item:not(.active) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flag-item.active {
    background: #ecfeff;
    padding: 4px 16px 4px 4px;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(103, 232, 249, 0.25);
    border-color: #a5f3fc;
    opacity: 1;
    filter: none;
}

.flag-item.active img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    display: block;
}

.flag-item.flag-master {
    padding: 4px 16px 4px 4px;
    gap: 10px;
    opacity: 1 !important;
    filter: none !important;
    width: auto !important;
    height: auto !important;
    background: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: default;
}

.flag-item.flag-master img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    display: block;
}

.flag-item.flag-master .flag-label {
    display: inline !important;
    color: #475569;
}

.flag-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}

.trans-tabs {
    display: inline-flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 99px;
}

.trans-tab {
    padding: 10px 28px;
    border-radius: 99px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: #64748b;
    background: transparent;
}

.trans-tab:hover:not(.active) {
    color: #334155;
}

.trans-tab.active {
    background: #67e8f9;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(103, 232, 249, 0.25);
    font-weight: 700;
}

.trans-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-bar-container {
    position: relative;
    width: 320px;
    max-width: 100%;
}

.search-input {
    width: 100%;
    box-sizing: border-box;

    padding: 12px 45px 12px 20px;
    border-radius: 99px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s;
    color: #334155;
}

.search-input:focus {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 4px #f1f5f9;
}

.search-icon {
    position: absolute;
    right: 16px;

    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.6;
    pointer-events: none;
}

.trans-table-container {
    position: relative;

    width: 100%;
    box-sizing: border-box;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;

    min-height: 400px;
    border: 1px solid #e2e8f0;
}

.trans-table {
    width: 100%;
    border-collapse: collapse;
}

.trans-table th {
    text-align: left;
    padding: 20px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

.trans-table td {
    padding: 20px;
    vertical-align: middle;
    font-size: 0.95rem;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

.trans-row:nth-child(odd) {
    background-color: #F9F9F9;
}

.trans-row:nth-child(even) {
    background-color: #ffffff;
}

.trans-row:hover {
    background-color: #f1f5f9 !important;
}

.trans-row.selected {
    background-color: #ecfeff !important;
}

.trans-row.selected td {
    border-bottom-color: #cffafe;
}

.prod-img-mini {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
    padding: 2px;
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url('/public/icons/puste-pole.svg');
    margin: 0;
    transition: transform 0.1s;
}

.custom-checkbox:checked {
    background-image: url('/public/icons/zaznaczone.svg');
}

.custom-checkbox:hover {
    transform: scale(1.05);
}

.status-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.main-content {
    padding-bottom: 100px !important;

}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    font-size: 0.9rem;
    color: #64748b;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    position: fixed;
    bottom: 0;
    left: 260px;

    right: 0;
    z-index: 99;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.06);
    border-radius: 0;
}

@media (max-width: 900px) {
    .pagination-container {
        left: 0;
        padding: 15px;
        flex-direction: column !important;
        gap: 15px !important;
        justify-content: center !important;
        align-items: center !important;
    }

    #paginationControls {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }
}

.pagination-select {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    color: #334155;
    background: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 65px;
    transition: 0.2s;
}

.pagination-select:hover {
    border-color: #94a3b8;
}

.pagination-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px #e0f2fe;
}

.custom-limit-wrapper {
    position: relative;
    display: inline-block;
}

.custom-limit-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

    z-index: 1000;
}

.custom-limit-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.custom-limit-item {
    padding: 8px 16px;
    color: #475569;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    transition: 0.15s;
    user-select: none;
    font-weight: 500;
}

.custom-limit-item:hover:not(.active) {
    background: #f8fafc;
    color: #0f172a;
}

.custom-limit-item.active {
    background: #ecfeff;

    color: #0f172a;
    font-weight: 700;
}

.pagination-input {
    width: 60px;
    padding: 6px 16px 6px 12px;
    text-align: left;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    color: #334155;
    transition: 0.2s;
}

.pagination-input:hover {
    border-color: #94a3b8;
}

.pagination-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px #e0f2fe;
}

.pagination-input::-webkit-inner-spin-button,
.pagination-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pagination-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.pagination-arrow {
    background: none;
    border: none;
    cursor: pointer;
    color: #334155;
    font-size: 1.1rem;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    opacity: 0.8;
}

.pagination-arrow:not(.disabled):hover {
    color: #0ea5e9;
    opacity: 1;
}

.pagination-arrow.disabled {
    color: #cbd5e1;
    cursor: default;
    opacity: 0.5;
}

.btn-action {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.btn-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#actionBar {
    display: none;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.row-actions {
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.trans-row:hover .row-actions {
    opacity: 1;
}

.btn-mini {
    padding: 0 16px;
    height: 36px;
    border-radius: 99px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #334155;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-icon-only {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

.btn-mini:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-mini.primary {
    background: #0f172a;
    color: #fff;
    border: 1px solid #0f172a;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.btn-mini.primary:hover {
    background: #1e293b;
    border-color: #1e293b;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.25);
    transform: translateY(-1px);
}

.btn-quick-translate {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #0f172a;
    border-radius: 99px;
    padding: 6px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-quick-translate:hover {
    background-color: #0f172a;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    opacity: 1 !important;
}

.btn-quick-translate:hover .coin-highlight {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.0);
    opacity: 1 !important;
}

.coin-highlight {
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-left: 4px;
    color: #64748b;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 3px;
}

.qa-badge {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #0f172a;
}

.qa-icon-box {
    background: #0f172a;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.qa-hover {
    display: none;
}

.qa-default {
    display: flex;
}

.trans-row:hover .qa-default {
    display: none;
}

.trans-row:hover .qa-hover {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.2s;
}

html,
body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.mobile-header {
    display: none;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.mobile-overlay.show {
    display: block !important;
}

@media (max-width: 900px) {
    .mobile-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 15px 20px !important;
        background: linear-gradient(to bottom, #000000 0%, #000000 40%, #081C2D 100%) !important;
        color: #fff !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
        border-bottom: 1px solid #1f2937 !important;
    }

    .header-balance-badge {
        width: auto !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }

    .mobile-header .mobile-brand {
        font-weight: 700 !important;
        font-size: 1.2rem !important;
        margin: 0 !important;
    }

    .mobile-header .hamburger-btn {
        background: none !important;
        border: none !important;
        color: #fff !important;
        font-size: 1.8rem !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body:has(.sidebar.mobile-open) .mobile-header {
        display: none !important;
    }

    .sidebar {
        transform: translateX(-100%) !important;
        width: 85% !important;
        max-width: 320px !important;
        box-shadow: none !important;
        z-index: 1001 !important;
        height: 100% !important;
        bottom: 0 !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    }

    .sidebar.mobile-open {
        transform: translateX(0) !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.7) !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 110px 15px 120px 15px !important;
        box-sizing: border-box !important;
    }


    .trans-table-container {
        display: block !important;
        width: 100% !important;
        overflow: hidden !important;
        border: none !important;
        background: transparent !important;
    }

    .trans-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .trans-table thead {
        display: none !important;
    }


    .trans-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }


    .trans-table tr {
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
        padding: 15px !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        background: #fff !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .trans-table td {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 6px 0 !important;
        border: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: left !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }


    .scrollable-table-container,
    .table-responsive {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border: none !important;
    }


    .shops-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
    }

    .clean-table {
        display: table !important;
        width: 100% !important;
        min-width: 650px !important;
    }

    .clean-table thead,
    .shops-table thead {
        display: table-header-group !important;
    }

    .clean-table tbody,
    .shops-table tbody {
        display: table-row-group !important;
        width: auto !important;
    }

    .clean-table tr,
    .shops-table tr {
        display: table-row !important;
        box-shadow: none !important;
        padding: 0 !important;
        border: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        background: transparent !important;
    }

    .clean-table td,
    .shops-table td {
        display: table-cell !important;
        padding: 15px !important;
        border: none !important;
        width: auto !important;
        min-width: auto !important;
        word-break: normal !important;
        white-space: nowrap !important;
        text-align: left !important;
        vertical-align: middle !important;
    }


    .user-cell,
    .brand-subtitle,
    .text-muted {
        word-break: break-all !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }


    .settings-card,
    .stat-item {
        padding: 15px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .card-header h2 {
        margin-bottom: 5px !important;
    }

    .platform-selector {
        flex-wrap: wrap !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .btn-toggle {
        white-space: normal !important;
        text-align: center !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .card-header>div,
    .card-header>button {
        width: 100% !important;
        justify-content: center !important;
    }

    .status-text {
        word-break: break-all !important;
        white-space: normal !important;
    }

    form[onsubmit="connectShop(event)"]>div[style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    form[onsubmit="connectShop(event)"]>div[style*="justify-content: space-between"]>div {
        width: 100% !important;
        text-align: left !important;
    }


    .row-actions {
        opacity: 1 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        justify-content: flex-start !important;
        margin-top: 10px !important;
        width: 100% !important;
    }

    .qa-default {
        display: none !important;
    }

    .qa-hover {
        display: flex !important;
        margin-top: 5px !important;
    }

    .review-icons-default {
        display: none !important;
    }

    .review-btns-hover {
        display: flex !important;
        flex-wrap: wrap !important;
        position: static !important;
        gap: 6px !important;
        margin-top: 5px !important;
        width: 100% !important;
    }


    .trans-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-top: 15px !important;
        margin-bottom: 25px !important;
        gap: 15px !important;
    }

    .trans-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }

    .toolbar-left {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .trans-toolbar>div:nth-child(2) {
        width: 100% !important;
        flex-wrap: wrap !important;
    }

    .search-bar-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .search-wrapper {
        width: 100% !important;
    }

    .trans-search-input {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .trans-filter-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    #actionBar {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
        margin-bottom: 15px !important;
    }

    .pagination {
        flex-wrap: wrap !important;
        gap: 5px !important;
        justify-content: center !important;
        padding-top: 15px !important;
    }

    .page-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .header-actions-wrapper {
        align-self: flex-end !important;
    }

    .notification-bell-container {
        display: none !important;
    }

    .trans-container {
        padding: 0 !important;
    }

    .trans-tabs {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        width: 100% !important;
        border-radius: 12px !important;
        padding: 5px !important;
        gap: 5px !important;
        box-sizing: border-box !important;
        will-change: transform !important;
        transform: translateZ(0) !important;
    }

    .trans-tabs::-webkit-scrollbar,
    .flags-row::-webkit-scrollbar {
        display: none;
    }

    .trans-tab {
        white-space: nowrap !important;
        flex: 0 0 auto !important;
        font-size: 0.85rem !important;
        padding: 8px 20px !important;
    }

    .flags-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        padding-bottom: 15px !important;
        margin-bottom: 15px !important;
        will-change: transform !important;
        transform: translateZ(0) !important;
    }

    .flag-item {
        flex: 0 0 auto !important;
    }
}

.expired-plan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.4);
    z-index: 100;
    display: block;

}

.expired-content-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 600px;
    width: 90%;
    margin: 100px auto;

    position: sticky;
    top: 150px;

    animation: slideUp 0.4s ease-out forwards;
}

.expired-sloth-img {
    width: 140px;
    height: auto;
    object-fit: contain;
}

.expired-text-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.expired-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.expired-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.btn-renew {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.btn-renew img {
    width: 14px;
    filter: brightness(0) invert(1);
}

.btn-renew:hover {
    background: #333;
    transform: translateY(-1px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@media (max-width: 768px) {
    .expired-content-box {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .expired-sloth-img {
        width: 100px;
    }

    .btn-renew {
        margin: 15px auto 0;
    }
}

body {
    zoom: 0.9;
    width: 100% !important;
}

.sidebar {
    height: 100% !important;
}

.sync-locked,
button.sync-locked,
.btn-action.sync-locked {
    cursor: not-allowed !important;
    pointer-events: auto !important;
    position: relative;
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
}

.sync-locked img {
    opacity: 0.35;
    filter: grayscale(100%);
}

.sync-locked .coin-highlight {
    color: #94a3b8 !important;
}

.sync-locked:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #e2e8f0 !important;
}

.sync-locked::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid #E2E8F0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
    z-index: 100;
}

.sync-locked:hover::after {
    visibility: visible;
    opacity: 1;
}

/* ============================================================
   FLAG "+" BUTTON — dodaj nową wersję językową
   ============================================================ */

.flag-add-btn {
    height: 40px;
    border-radius: 99px;
    background: #F1F5F9;
    border: 1.5px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94A3B8;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.flag-add-btn:hover {
    background: #E2E8F0;
    color: #475569;
    border-color: #94A3B8;
    transform: scale(1.03);
}

/* ============================================================
   FLAG BAR — "Sprawdzanie języka" (loading state)
   ============================================================ */

.flag-checking-btn {
    height: 40px;
    border-radius: 99px;
    background: #ecfeff;
    border: 1.5px solid #a5f3fc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0e7490;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
    animation: flagCheckPulse 2s ease-in-out infinite;
}

.flag-checking-btn:hover {
    background: #cffafe;
    border-color: #67e8f9;
}

@keyframes flagCheckPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.3);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(103, 232, 249, 0);
    }
}

.flag-checking-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #a5f3fc;
    border-top: 2px solid #67e8f9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* ============================================================
   SHARED BUTTON: btn-primary2 (czarny pill)
   ============================================================ */

.btn-primary2 {
    background: #0F172A;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-primary2:hover {
    background: #1E293B;
}

.btn-primary2:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================================
   EMPTY STATE: Brak wersji językowych (leniwiec) — Tłumaczenia
   ============================================================ */

.trans-no-langs-empty {
    padding: 50px 20px;
}

.trans-no-langs-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    max-width: 700px;
    margin: 0 auto;
}

.trans-no-langs-sloth {
    width: 200px;
    height: auto;
    flex-shrink: 0;
}

.trans-no-langs-text {
    max-width: 380px;
}

.trans-no-langs-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 10px 0;
}

.trans-no-langs-desc {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   POPUP MODAL: Jak dodać nową wersję językową
   ============================================================ */

.lang-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: langModalFadeIn 0.2s ease;
}

@keyframes langModalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lang-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px 32px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: langModalSlideUp 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes langModalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

.lang-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.lang-modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.lang-modal-close:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.lang-modal-subtitle {
    font-size: 0.85rem;
    color: #94A3B8;
    margin: 0 0 20px 0;
}

.lang-modal-step {
    border-bottom: 1px solid #F1F5F9;
    padding: 16px 0;
}

.lang-modal-step:last-of-type {
    border-bottom: none;
}

.lang-modal-step-num {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0F172A;
    margin-bottom: 6px;
}

.lang-modal-step p {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

/* Outline buttons in Step 1 */
.lang-modal-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: nowrap;
}

a.lang-modal-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 14px;
    background: #fff;
    color: #0F172A;
    border: 1.5px solid #0F172A;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

a.lang-modal-btn-outline:hover {
    background: #0F172A;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

a.lang-modal-btn-outline.lang-modal-btn-filled {
    background: #0F172A;
    color: #fff;
    border-color: #0F172A;
}

a.lang-modal-btn-outline.lang-modal-btn-filled:hover {
    background: #1E293B;
    border-color: #1E293B;
}

/* "Sprawdź nowy rynek" button in Step 2 (idle) */
.lang-modal-btn-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0F172A;
    color: #fff;
    border: none;
    border-radius: 99px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}

.lang-modal-btn-check:hover {
    background: #1E293B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.lang-modal-btn-check:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Step 2 — Loading state */
.lang-modal-step2-loading {
    margin-top: 8px;
}

.lang-modal-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.lang-modal-status-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.lang-modal-status-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0e7490;
}

.lang-modal-progress-track {
    width: 100%;
    height: 8px;
    background: #F1F5F9;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 12px;
}

.lang-modal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #22d3ee, #67e8f9);
    border-radius: 99px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.lang-modal-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShimmer 1.5s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.lang-modal-loading-text {
    font-size: 0.82rem;
    color: #64748B;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.lang-modal-loading-text .info-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.lang-modal-loading-hint {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-top: 8px;
    font-style: italic;
}

/* Step 2 — Error state */
.lang-modal-step2-error {
    margin-top: 8px;
}

.lang-modal-error-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.lang-modal-error-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.lang-modal-error-text {
    font-size: 0.85rem;
    color: #991B1B;
    line-height: 1.5;
}

.lang-modal-btn-retry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: #0F172A;
    color: #fff;
    border: none;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-modal-btn-retry:hover {
    background: #1E293B;
    transform: translateY(-1px);
}

.lang-modal-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #0F172A;
    color: #fff !important;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    margin-top: 4px;
}

.lang-modal-video-btn:hover {
    background: #1E293B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.lang-modal-link {
    color: #3B82F6 !important;
    text-decoration: underline !important;
    word-break: break-all;
}

.lang-modal-link:hover {
    color: #1D4ED8 !important;
}

.lang-modal-hint {
    font-size: 0.82rem !important;
    color: #5f646b !important;
    font-style: normal;
}

.lang-modal-flags-img {
    width: 100%;
    max-width: 400px;
    margin-top: 12px;
    border-radius: 12px;
}

.lang-modal-footer {
    padding-top: 16px;
    border-top: 1px solid #F1F5F9;
    margin-top: 8px;
}

.lang-modal-footer p {
    font-size: 0.8rem;
    color: #94A3B8;
    line-height: 1.5;
    margin: 0;
}

.lang-modal-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
}

.lang-modal-note-icon {
    flex-shrink: 0;
    font-size: 0.85rem;
}

/* ============================================================
   TOAST — Wykryliśmy nową wersję językową
   ============================================================ */

.market-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    border-radius: 14px;
    padding: 18px 48px 18px 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(103, 232, 249, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 380px;
    width: max-content;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.market-toast.toast-exit {
    animation: toastFadeOut 0.35s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

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

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

.market-toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ecfeff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.market-toast-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.market-toast-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0F172A;
}

.market-toast-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.market-toast-lang img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.market-toast-sub {
    font-size: 0.8rem;
    color: #64748B;
    margin-top: 2px;
}

.market-toast-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #94A3B8;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: 0.15s;
    line-height: 1;
}

.market-toast-close:hover {
    background: #F1F5F9;
    color: #475569;
}

@media (max-width: 600px) {
    .trans-no-langs-inner {
        flex-direction: column;
        text-align: center;
    }

    .trans-no-langs-sloth {
        width: 150px;
    }

    .lang-modal-content {
        padding: 20px;
    }

    .lang-modal-btn-row {
        flex-direction: column;
    }

    .market-toast {
        right: 12px;
        left: 12px;
        max-width: none;
        width: auto;
    }
}

/* ============================================================
   SELECTION BOTTOM BAR — fixed nad paginacją
   ============================================================ */

.selection-bottom-bar {
    position: fixed;
    bottom: 75px;
    left: 260px;
    right: 0;
    background: #fff;
    color: #0f172a;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    z-index: 90;
    border-radius: 99px;
    margin: 0 24px;

    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0, 0, 0, 0.04);
    font-size: 0.92rem;
    animation: sbbSlideIn 0.25s ease;
}

.selection-bottom-bar.visible {
    display: flex;
}

@keyframes sbbSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.sbb-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.92rem;
    color: #475569;
    white-space: nowrap;
}

.sbb-left-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sbb-left strong {
    color: #0f172a;
    font-weight: 700;
    font-size: 1rem;
}

/* Etykieta "Tłumaczysz na:" — pod flagami */
.translating-to-label {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0 0 24px 0;
    padding: 0;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Gdy label jest ukryty, przywróć oryginalny margines pod flagami */
.translating-to-label[style*="display: none"]+.trans-tabs,
.translating-to-label[style*="display:none"]+.trans-tabs {
    margin-top: 24px;
}

.translating-to-label strong {
    color: #0f172a;
    font-weight: 600;
}

/* Etykieta "Tłumaczysz na:" — w dolnym pasku */
.sbb-lang-info {
    color: #475569;
    font-weight: 400;
    margin-top: 2px;
    white-space: nowrap;
}

.sbb-lang-info strong {
    color: #0f172a;
    font-weight: 600;
}

/* Tagi darmowe / płatne pod "Wybrano" */
.sbb-sub-info {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 1px;
}

.sbb-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
    line-height: 1.3;
}

.sbb-tag-paid {
    background: #f1f5f9;
    color: #475569;
}

.sbb-tag-free {
    background: #dcfce7;
    color: #16a34a;
}

.sbb-center {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.sbb-label {
    color: #64748b;
    font-size: 0.85rem;
}

.sbb-net {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.sbb-net-label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.sbb-gross {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-left: 4px;
}

.sbb-right {
    display: flex;
    align-items: center;
}

.sbb-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 99px;
    padding: 12px 28px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.sbb-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.sbb-btn:active {
    transform: scale(0.98);
}

.sbb-btn-disabled,
.sbb-btn-disabled:hover {
    background: #94a3b8 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    position: relative;
}

.sbb-btn-disabled:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 100;
}

@media (max-width: 900px) {
    .selection-bottom-bar {
        left: 16px;
        right: 16px;
        margin: 0;
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 10px;
        border-radius: 20px;
        bottom: 80px;
    }

    .sbb-center {
        flex-wrap: wrap;
        gap: 4px;
    }

    .sbb-net {
        font-size: 1.2rem;
    }

    .sbb-btn {
        width: 100%;
        text-align: center;
    }
}