/**
 * VIP Generator - Styles (zintegrowane z DLE)
 */

/* Container w DLE */

.vip-generator-wrapper {
    width: 100%;
    position: relative;
}

.vip-container-dle {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* Page header */
.vip-page-header {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-main);
}

.vip-page-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vip-page-header h1 i {
    color: var(--accent);
}

.vip-page-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Add section */
.vip-add-section {
    margin-bottom: 16px;
}

.vip-add-form {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 16px;
}

.vip-form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

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

.vip-input-group label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.vip-input-group input {
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
}

.vip-input-group input:focus {
    outline: none;
    border-color: var(--border-main);
}

.vip-input-group input::placeholder {
    color: var(--text-muted);
}

.vip-input-link {
    flex: 1;
}

.vip-input-size {
    width: 120px;
}

.vip-supported-hosts {
    margin-top: 12px;
    color: var(--text-muted);
}

.vip-supported-hosts span {
    color: var(--text-secondary);
}

/* Login notice */
.vip-login-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent);
    border-radius: 8px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.vip-login-notice i {
    color: var(--accent);
    font-size: 18px;
}

.vip-login-notice span {
    flex: 1;
}

/* Buttons */
.vip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.vip-btn-primary {
    background: var(--accent);
    color: var(--text-on-accent);
}

.vip-btn-primary:hover {
    background: var(--accent-hover);
}

.vip-btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-main);
}

.vip-btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-main);
}

.vip-btn-success {
    background: #3fb950;
    color: #fff;
}

.vip-btn-success:hover {
    background: #4cc65f;
}

.vip-btn-small {
    padding: 6px 12px;
}

.vip-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Filters */
.vip-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.vip-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.vip-filter-btn:hover {
    border-color: var(--border-main);
    color: var(--text-primary);
}

.vip-filter-btn.active {
    background: var(--accent-subtle);
    border-color: var(--border-main);
    color: var(--accent);
}

/* Requests list */
.vip-requests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vip-request {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s;
}

/* .vip-request:hover - removed */
.vip-request:hover {
    /* removed */
}

.vip-request-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.vip-request-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-request-avatar {
    width: 32px;
    height: 32px;
    background: var(--bg-input);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

.vip-request-user-info {
    display: flex;
    flex-direction: column;
}

.vip-request-username {
    font-weight: 600;
    font-size: 14px;
}

.vip-request-username a {
    color: var(--text-primary);
    text-decoration: none;
}

.vip-request-username a:hover {
    color: var(--accent);
}

.vip-request-time {
    color: var(--text-muted);
}

.vip-request-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.vip-status-pending {
    background: var(--accent-subtle);
    color: var(--accent);
}

.vip-status-resolved {
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
}

.vip-request-body {
    margin-bottom: 16px;
}

.vip-request-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: 8px;
    word-break: break-all;
}

.vip-request-host {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.vip-request-host i {
    color: var(--accent);
}

.vip-request-url {
    flex: 1;
    font-size: 13px;
}

.vip-request-url a {
    color: var(--text-secondary);
    text-decoration: none;
}

.vip-request-url a:hover {
    color: var(--accent);
}

.vip-request-size {
    color: var(--text-muted);
    flex-shrink: 0;
}

.vip-request-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vip-request-actions {
    display: flex;
    gap: 8px;
}

.vip-generated-section {
    margin-top: 12px;
    padding: 12px;
    background: rgba(63, 185, 80, 0.15);
    border: 1px solid #3fb950;
    border-radius: 8px;
}

.vip-generated-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #3fb950;
    margin-bottom: 8px;
}

.vip-generated-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vip-generated-link input {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
}

.vip-generated-by {
    color: var(--text-muted);
    margin-top: 8px;
}

/* Loading */
.vip-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.vip-loading i {
    margin-right: 8px;
}

.vip-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.vip-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

/* Pagination */
.vip-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.vip-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.vip-page-btn:hover {
    border-color: var(--border-main);
    color: var(--text-primary);
}

.vip-page-btn.active {
    background: var(--accent);
    border-color: var(--border-main);
    color: var(--text-on-accent);
}

.vip-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Modal */
.vip-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.vip-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.vip-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.vip-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-main);
}

.vip-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.vip-modal-header h3 i {
    color: var(--accent);
}

.vip-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.vip-modal-close:hover {
    color: var(--text-primary);
}

.vip-modal-body {
    padding: 20px;
}

.vip-modal-info {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: 8px;
}

.vip-modal-info strong {
    display: block;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.vip-original-link {
    font-size: 13px;
    word-break: break-all;
}

.vip-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-main);
}

/* Toasts */
.vip-toasts {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vip-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    min-width: 280px;
    animation: vip-toast-in 0.3s ease;
}

.vip-toast.removing {
    animation: vip-toast-out 0.3s ease forwards;
}

.vip-toast-success {
    border-color: #3fb950;
}

.vip-toast-success i {
    color: #3fb950;
}

.vip-toast-error {
    border-color: #f85149;
}

.vip-toast-error i {
    color: #f85149;
}

.vip-toast i {
    font-size: 18px;
}

.vip-toast span {
    flex: 1;
    font-size: 14px;
}

@keyframes vip-toast-in {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes vip-toast-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

/* Responsive */
@media (max-width: 1px) /* MOBILE DISABLED */ {
    .vip-form-row {
        flex-direction: column;
    }
    
    .vip-input-size {
        width: 100%;
    }
    
    .vip-btn {
        width: 100%;
    }
    
    .vip-filters {
        flex-wrap: wrap;
    }
    
    .vip-filter-btn {
        flex: 1;
        justify-content: center;
    }
    
    .vip-request-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .vip-request-link {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vip-request-footer {
        flex-direction: column;
    }
    
    .vip-request-actions {
        width: 100%;
    }
    
    .vip-request-actions .vip-btn {
        flex: 1;
    }
}

/* ========================================
   CLICKABLE REQUEST CARDS
   ======================================== */
.vip-request-clickable {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vip-request-clickable:hover {
    transform: translateY(-2px);
    /* box-shadow removed */
}

.vip-request-click-hint {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.vip-request-clickable:hover .vip-request-click-hint {
    opacity: 1;
    color: var(--accent, #be7b3b);
}

/* ========================================
   DETAIL MODAL
   ======================================== */
.vip-detail-content {
    max-width: 600px;
}

.vip-detail-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-input, #21262d);
    border-radius: 10px;
    margin-bottom: 0;
}

.vip-detail-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-subtle, rgba(190,123,59,0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent, #be7b3b);
}

.vip-detail-user-info {
    flex: 1;
}

.vip-detail-username {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-primary, #f0f0f0);
    text-decoration: none;
}

.vip-detail-username:hover {
    color: var(--accent, #be7b3b);
}

.vip-detail-time {
    margin-top: 2px;
}

.vip-detail-status {
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.vip-detail-link-section {
    margin-bottom: 16px;
}

.vip-detail-label {
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vip-detail-original-link {
    background: var(--bg-input, #21262d);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    word-break: break-all;
}

.vip-detail-original-link a {
    color: var(--accent, #be7b3b);
    text-decoration: none;
    font-size: 14px;
}

.vip-detail-original-link a:hover {
    text-decoration: underline;
}

.vip-detail-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary, #8b949e);
}

.vip-detail-meta i {
    margin-right: 5px;
    opacity: 0.7;
}

/* Detail Actions */
.vip-detail-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-main, #30363d);
}

/* Waiting state (own request) */
.vip-detail-waiting {
    text-align: center;
    padding: 30px 20px;
}

.vip-detail-waiting-icon {
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border-main);
}

.vip-detail-waiting-text {
    font-size: 16px;
    color: var(--text-primary, #f0f0f0);
    margin-bottom: 8px;
}

.vip-detail-waiting-hint {
    font-size: 13px;
    margin-bottom: 16px;
}

/* Resolve form */
.vip-detail-resolve-form {
    background: var(--bg-input, #21262d);
    padding: 20px;
    border-radius: 10px;
}

.vip-detail-resolve-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #f0f0f0);
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border-main);
}

.vip-detail-resolve-header i {
    color: var(--accent, #be7b3b);
    margin-right: 8px;
}

.vip-detail-resolve-form .vip-input-group {
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border-main);
}

.vip-btn-large {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
}

/* Resolved state */
.vip-detail-resolved {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.3);
    padding: 20px;
    border-radius: 10px;
}

.vip-detail-resolved-header {
    font-size: 16px;
    font-weight: 600;
    color: #3fb950;
    margin-bottom: 10px;
}

.vip-detail-resolved-header i {
    margin-right: 8px;
}

.vip-detail-resolved-by {
    font-size: 13px;
    color: var(--text-secondary, #8b949e);
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border-main);
}

.vip-detail-generated-link {
    display: flex;
    gap: 10px;
}

.vip-detail-generated-link input {
    flex: 1;
    padding: 12px 15px;
    background: var(--bg-body, #0d1117);
    border: 1px solid var(--border-main, #30363d);
    border-radius: 8px;
    color: var(--text-primary, #f0f0f0);
    font-size: 14px;
}

.vip-detail-generated-link button {
    white-space: nowrap;
}

/* No access state */
.vip-detail-no-access {
    background: var(--bg-input, #21262d);
    border-color: var(--border-main, #30363d);
}

.vip-detail-no-access .vip-detail-resolved-header {
    color: var(--text-secondary, #8b949e);
}

.vip-detail-no-access-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.vip-detail-no-access-info i {
    font-size: 16px;
}

/* Login required */
.vip-detail-login-required {
    text-align: center;
    padding: 30px;
}

.vip-detail-login-required i {
    font-size: 40px;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border-main);
    display: block;
}

/* Danger button */
.vip-btn-danger {
    background: #f85149;
    color: #fff;
}

.vip-btn-danger:hover {
    background: #da3633;
}

/* Original link wrapper with copy button */
.vip-detail-original-link-wrapper {
    display: flex;
    gap: 10px;
    background: var(--bg-input, #21262d);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.vip-detail-original-link-wrapper input {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg-body, #0d1117);
    border: 1px solid var(--border-main, #30363d);
    border-radius: 6px;
    color: var(--accent, #be7b3b);
    font-size: 13px;
    min-width: 0;
}

.vip-detail-original-link-wrapper .vip-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Hosting icons */
.vip-host-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.vip-host-icon-large {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 6px;
}

/* New detail link section layout */
.vip-detail-link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.vip-detail-link-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vip-detail-link-info .vip-detail-label {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary, #8b949e);
}

.vip-detail-host-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--accent-subtle, rgba(190,123,59,0.15));
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent, #be7b3b);
}

.vip-detail-size-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--bg-input, #21262d);
    border-radius: 6px;
}

.vip-detail-size-badge i {
    margin-right: 5px;
}

.vip-detail-link-actions {
    display: flex;
    gap: 8px;
}

.vip-detail-link-url {
    margin-top: 0;
    overflow: hidden;
    max-width: 100%;
}

.vip-detail-link-url input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    background: var(--bg-input, #21262d);
    border: 1px solid var(--border-main, #30363d);
    border-radius: 8px;
    color: var(--accent, #be7b3b);
    font-size: 13px;
    font-family: monospace;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.vip-detail-link-url input:focus {
    outline: none;
    border-color: var(--accent, #be7b3b);
}

/* Responsive */
@media (max-width: 1px) /* MOBILE DISABLED */ {
    .vip-detail-link-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vip-detail-link-actions {
        width: 100%;
    }
    
    .vip-detail-link-actions .vip-btn {
        flex: 1;
    }
}

/* Avatar styles */
.vip-request-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-input, #21262d);
    flex-shrink: 0;
}

.vip-detail-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-input, #21262d);
    flex-shrink: 0;
}

.vip-mini-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 6px;
}

.vip-detail-resolved-by {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary, #8b949e);
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border-main);
}

/* Fix: Input nie wychodzi poza modal */
.vip-detail-link-url {
    overflow: hidden;
}

.vip-detail-link-url input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    box-sizing: border-box;
    text-overflow: ellipsis;
    overflow: hidden;
}

.vip-modal-content {
    max-width: 600px;
    width: calc(100% - 40px);
    box-sizing: border-box;
    overflow: hidden;
}

.vip-modal-body {
    overflow: hidden;
    word-break: break-word;
}

.vip-detail-generated-link {
    overflow: hidden;
}

.vip-detail-generated-link input {
    min-width: 0;
    text-overflow: ellipsis;
}

/* Ensure modal content doesn't overflow */
.vip-detail-content {
    max-width: 600px;
    width: calc(100% - 40px);
    overflow: hidden;
}

.vip-detail-content .vip-modal-body {
    overflow: hidden;
}

.vip-detail-link-section {
    overflow: hidden;
    max-width: 100%;
}

/* ========================================
   DETAIL PAGE VIEW (zamiast popup)
   ======================================== */

.vip-detail-page {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.vip-detail-back {
    margin-bottom: 16px;
}

.vip-detail-back .vip-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vip-detail-card {
    background: var(--bg-card, #161b22);
    border: 1px solid var(--border-main, #30363d);
    border-radius: 12px;
    overflow: hidden;
}

.vip-detail-header {

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px 8px 8px;
    border-bottom: 1px solid var(--border-main, #30363d);
    background: var(--bg-input, #21262d);
}

.vip-detail-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-detail-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.vip-detail-username {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-primary, #f0f0f0);
    text-decoration: none;
}

.vip-detail-username:hover {
    color: var(--accent, #be7b3b);
}

.vip-detail-time {
    font-size: 12px;
    margin-top: 2px;
}

.vip-detail-time i {
    margin-right: 5px;
}

/* Link section */
.vip-detail-link-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-main, #30363d);
}

.vip-detail-link-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border-main);
    flex-wrap: wrap;
}

.vip-detail-host-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: var(--accent-subtle, rgba(190,123,59,0.15));
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent, #be7b3b);
}

.vip-detail-host-badge img {
    margin-right: 8px;
}

.vip-detail-size-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: var(--bg-input, #21262d);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary, #8b949e);
}

.vip-detail-size-badge i {
    margin-right: 6px;
}

.vip-detail-link-box {
    background: var(--bg-input, #21262d);
    border-radius: 10px;
    padding: 15px;
}

.vip-detail-link-label {
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vip-detail-link-box textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-body, #0d1117);
    border: 1px solid var(--border-main, #30363d);
    border-radius: 8px;
    color: var(--accent, #be7b3b);
    font-size: 13px;
    font-family: monospace;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
}

.vip-detail-link-box textarea:focus {
    outline: none;
    border-color: var(--accent, #be7b3b);
}

.vip-detail-link-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* Actions section */
.vip-detail-actions {
    padding: 20px;
}

/* Resolve form */
.vip-detail-resolve-form {
    background: var(--bg-input, #21262d);
    padding: 20px;
    border-radius: 10px;
}

.vip-detail-resolve-header {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #f0f0f0);
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border-main);
}

.vip-detail-resolve-header i {
    color: var(--accent, #be7b3b);
    margin-right: 10px;
}

.vip-detail-resolve-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-body, #0d1117);
    border: 1px solid var(--border-main, #30363d);
    border-radius: 8px;
    color: var(--text-primary, #f0f0f0);
    font-size: 14px;
    font-family: monospace;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
}

.vip-detail-resolve-form textarea:focus {
    outline: none;
    border-color: var(--accent, #be7b3b);
}

.vip-detail-resolve-form .vip-btn-large {
    margin-top: 15px;
}

/* Generated link */
.vip-detail-generated-link textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-body, #0d1117);
    border: 1px solid rgba(63, 185, 80, 0.3);
    border-radius: 8px;
    color: #3fb950;
    font-size: 13px;
    font-family: monospace;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
    margin-bottom: 16px;
}

/* Waiting state */
.vip-detail-waiting {
    text-align: center;
    padding: 40px 20px;
}

.vip-detail-waiting-icon {
    margin-bottom: 16px;
}

.vip-detail-waiting-text {
    font-size: 18px;
    color: var(--text-primary, #f0f0f0);
    margin-bottom: 10px;
}

.vip-detail-waiting-hint {
    font-size: 14px;
    margin-bottom: 25px;
}

/* Login required */
.vip-detail-login-required {
    text-align: center;
    padding: 40px;
}

.vip-detail-login-required i {
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border-main);
    display: block;
}

/* Mobile responsive */
@media (max-width: 1px) /* MOBILE DISABLED */ {
    .vip-detail-header {

        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .vip-detail-link-buttons {
        flex-direction: column;
    }
    
    .vip-detail-link-buttons .vip-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Fix: Resolved section layout */
.vip-detail-resolved {
    background: rgba(63, 185, 80, 0.08);
    border: 1px solid rgba(63, 185, 80, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.vip-detail-resolved-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #3fb950;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border-main);
}

.vip-detail-resolved-header i {
    font-size: 22px;
}

.vip-detail-resolved-by {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--bg-input, #21262d);
    border-radius: 8px;
    margin-bottom: 16px;
}

.vip-detail-resolved-by .vip-mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(63, 185, 80, 0.3);
}

.vip-detail-resolved-by span {
    color: var(--text-secondary, #8b949e);
    font-size: 14px;
}

.vip-detail-resolved-by strong {
    color: var(--text-primary, #f0f0f0);
    font-weight: 600;
}

.vip-detail-generated-link {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vip-detail-generated-link textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-body, #0d1117);
    border: 1px solid rgba(63, 185, 80, 0.3);
    border-radius: 8px;
    color: #3fb950;
    font-size: 14px;
    font-family: monospace;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
}

.vip-detail-generated-link textarea:focus {
    outline: none;
    border-color: #3fb950;
}

.vip-detail-generated-link .vip-btn {
    align-self: flex-start;
    padding: 10px 20px;
}

/* ========================================
   DYNAMIC LINK ROWS FORM
   ======================================== */

.vip-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border-main);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-main, #30363d);
}

.vip-form-header > span:first-child {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary, #f0f0f0);
}

.vip-form-header > span:first-child i {
    color: var(--accent, #be7b3b);
    
}

.vip-link-count {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 3px 8px;
    background: var(--bg-input);
    border-radius: 6px;
    font-weight: 500;
}
    padding: 4px 10px;
    background: var(--bg-input);
    border-radius: 12px;
    font-weight: 500;
}

.vip-link-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    
}


.vip-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-input, #21262d);
    border: 1px solid var(--border-main, #30363d);
    border-radius: 8px;
    transition: border-color 0.2s;
    flex-wrap: nowrap;
}

.vip-link-row:hover {
    border-color: var(--border-main);
}

.vip-link-row:focus-within {
    border-color: var(--border-main);
}

.vip-row-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle, rgba(190,123,59,0.15));
    color: var(--accent, #be7b3b);
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}

.vip-link-row .vip-input-group {
    margin: 0;
    gap: 0;
}

.vip-link-row .vip-input-group label {
    display: none;
}

.vip-link-row .vip-input-link {
    flex: 1;
    min-width: 0;
}

.vip-link-row .vip-input-size {
    width: 100px;
    flex-shrink: 0;
}

.vip-link-row .vip-input-group input {
    padding: 10px 12px;
    font-size: 13px;
}

.vip-link-row .vip-input-group input:focus {
    outline: none;
    border-color: var(--text-muted);
}

.vip-btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.vip-btn-icon:hover {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
}

.vip-btn-remove {
    opacity: 0.5;
}

.vip-link-row:hover .vip-btn-remove {
    opacity: 1;
}

/* Gdy tylko jeden wiersz - ukryj przycisk usuwania */
.vip-link-rows:has(.vip-link-row:only-child) .vip-btn-remove {
    visibility: hidden;
}

.vip-form-actions {
    display: flex;
    margin-top: 15px;
    gap: 10px;
}

.vip-form-actions .vip-btn {
    flex: 1;
}

#addRowBtn {
    flex: 0 0 auto;
}

#addRequestBtn {
    flex: 1;
}

/* Animacja dodawania wiersza */
@keyframes rowSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vip-link-row.new-row {
    animation: rowSlideIn 0.2s ease;
}

/* Animacja usuwania wiersza */
@keyframes rowSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

.vip-link-row.removing {
    animation: rowSlideOut 0.2s ease forwards;
}

/* Mobile responsive */
@media (max-width: 1px) /* MOBILE DISABLED */ {
    .vip-link-row {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .vip-row-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .vip-link-row .vip-input-link {
        flex: 1 1 calc(100% - 80px);
        order: 1;
    }
    
    .vip-link-row .vip-input-size {
        width: 70px;
        order: 2;
    }
    
    .vip-btn-icon {
        width: 32px;
        height: 32px;
        order: 3;
    }
    
    .vip-form-actions {
        flex-direction: column;
    }
    
    #addRowBtn {
        order: 2;
    }
    
    #addRequestBtn {
        order: 1;
    }
}

/* ========================================
   MULTI-LINK REQUEST STYLES
   ======================================== */

/* Status częściowy */
html.light-mode .vip-status-partial {
    background: rgba(217, 119, 6, 0.2);
    color: #b45309;
}

.vip-status-partial {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

/* Lista linków w szczegółach */
.vip-detail-links-section {
    padding: 20px;
}

.vip-detail-links-header {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #f0f0f0);
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border-main);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-main, #30363d);
}

.vip-detail-links-header i {
    color: var(--accent, #be7b3b);
    margin-right: 8px;
}

.vip-detail-links-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Pojedynczy link w zgłoszeniu */
.vip-detail-link-item {
    background: var(--bg-input, #21262d);
    border: 1px solid var(--border-main, #30363d);
    border-radius: 10px;
    padding: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

/* .vip-detail-link-item:hover - removed */
.vip-detail-link-item:hover {
    /* removed */
}

.vip-detail-link-item.vip-link-resolved {
    border-color: rgba(63, 185, 80, 0.3);
    background: rgba(63, 185, 80, 0.05);
}

.vip-link-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.vip-link-item-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle, rgba(190,123,59,0.15));
    color: var(--accent, #be7b3b);
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}

.vip-link-resolved .vip-link-item-num {
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
}

.vip-link-item-host {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-card, #161b22);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary, #8b949e);
}

.vip-link-item-size {
    font-size: 13px;
    font-weight: 700;
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(88, 166, 255, 0.3);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vip-link-item-status {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 20px;
}

.vip-link-pending .vip-link-item-status {
    background: var(--accent-subtle, rgba(190,123,59,0.15));
    color: var(--accent, #be7b3b);
}

.vip-link-resolved .vip-link-item-status {
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
}

.vip-link-item-url {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.vip-link-item-url textarea {
    flex: 1;
    padding: 10px;
    background: var(--bg-body, #0d1117);
    border: 1px solid var(--border-main, #30363d);
    border-radius: 6px;
    color: var(--accent, #be7b3b);
    font-family: monospace;
    resize: none;
    min-width: 0;
}

.vip-link-item-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Sekcja rozwiązania linku */
.vip-link-item-resolved {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-main, #30363d);
}

.vip-link-item-resolved-by {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-secondary, #8b949e);
}

.vip-link-item-resolved-by .vip-mini-avatar {
    width: 24px;
    height: 24px;
}

.vip-link-item-resolved-by strong {
    color: var(--text-primary, #f0f0f0);
}

.vip-generated-textarea {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    padding: 10px;
    background: var(--bg-body, #0d1117);
    border: 1px solid rgba(63, 185, 80, 0.3);
    border-radius: 6px;
    color: #3fb950;
    font-family: monospace;
    resize: none;
    margin-bottom: 8px;
}

.vip-link-item-no-access {
    background: var(--bg-input, #21262d);
}

.vip-link-no-access {
    padding: 10px;
    background: var(--bg-body, #0d1117);
    border-radius: 6px;
}

.vip-link-no-access i {
    margin-right: 6px;
}

/* Formularz rozwiązywania linku */
.vip-link-item-resolve-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-main, #30363d);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: hidden;
}

.vip-link-item-resolve-form textarea {
    flex: 1;
    box-sizing: border-box;
    max-width: 100%;
    padding: 10px;
    background: var(--bg-body, #0d1117);
    border: 1px solid var(--border-main, #30363d);
    border-radius: 6px;
    color: var(--text-primary, #f0f0f0);
    font-size: 13px;
    font-family: monospace;
    resize: none;
}

.vip-link-item-resolve-form textarea:focus {
    outline: none;
    border-color: var(--accent, #be7b3b);
}

/* Akcje właściciela */
.vip-detail-own-actions {
    padding: 20px;
    border-top: 1px solid var(--border-main, #30363d);
    text-align: center;
}

/* Preview linków na liście */
.vip-request-links-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vip-link-preview-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-input, #21262d);
    border-radius: 6px;
    color: var(--text-secondary, #8b949e);
}

.vip-link-preview-item.resolved {
    background: rgba(63, 185, 80, 0.1);
    color: #3fb950;
}

.vip-link-preview-item small {
}

.vip-link-preview-more {
    padding: 4px 10px;
}

.vip-host-icon-small {
    width: 14px;
    height: 14px;
}

/* Mobile */
@media (max-width: 1px) /* MOBILE DISABLED */ {
    .vip-link-item-header {
        flex-wrap: wrap;
    }
    
    .vip-link-item-status {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        text-align: center;
    }
    
    .vip-link-item-url {
        flex-direction: column;
    }
    
    .vip-link-item-actions {
        flex-direction: row;
    }
    
    .vip-link-item-resolve-form {
        flex-direction: column;
    }
}

/* ============================================
   SYSTEM PODZIĘKOWAŃ / REAKCJI
   ============================================ */

/* Sekcja wymagająca podziękowania */
.vip-thank-required {
    
    
    
    padding: 10px 0;
    margin-bottom: 16px;
    padding-bottom: 0;
    
    text-align: center;
}

.vip-thank-message {
    color: #ffc107;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vip-thank-message i {
    font-size: 18px;
}

/* Przyciski reakcji */
.vip-reactions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.vip-reaction-btn {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #8b949e;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-reaction-btn:hover {
    transform: scale(1.15);
    border-color: var(--accent, #be7b3b);
    color: var(--accent, #be7b3b);
    background: rgba(190, 123, 59, 0.15);
}

.vip-reaction-btn:active {
    transform: scale(0.95);
}

/* Animacja podczas dziękowania */
.vip-reaction-btn.thanking {
    animation: pulse-reaction 0.5s ease infinite;
    border-color: #3fb950;
    color: #3fb950;
}

@keyframes pulse-reaction {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Poszczególne reakcje - kolory */
.vip-reaction-btn[data-reaction="thanks"]:hover { color: #58a6ff; border-color: #58a6ff; background: rgba(88, 166, 255, 0.15); }
.vip-reaction-btn[data-reaction="love"]:hover { color: #f85149; border-color: #f85149; background: rgba(248, 81, 73, 0.15); }
.vip-reaction-btn[data-reaction="fire"]:hover { color: #ff7b00; border-color: #ff7b00; background: rgba(255, 123, 0, 0.15); }
.vip-reaction-btn[data-reaction="star"]:hover { color: #ffc107; border-color: #ffc107; background: rgba(255, 193, 7, 0.15); }
.vip-reaction-btn[data-reaction="thumbsup"]:hover { color: #3fb950; border-color: #3fb950; background: rgba(63, 185, 80, 0.15); }

/* Info o podziękowaniu */
.vip-thanks-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* Licznik podziękowań */
.vip-thanks-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f85149;
    margin-left: auto;
    background: rgba(248, 81, 73, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Sekcja kopiowania */
.vip-copy-section {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

/* Przycisk zablokowany */
.vip-btn-disabled {
    background: rgba(139, 148, 158, 0.2) !important;
    color: #6e7681 !important;
    cursor: not-allowed !important;
    border: 1px solid rgba(139, 148, 158, 0.2) !important;
}

.vip-btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Animacja po skopiowaniu */
.vip-btn.copied {
    background: #3fb950 !important;
    border-color: #3fb950 !important;
}

/* Resolved by z licznikiem */
.vip-link-item-resolved-by {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Mobile responsywność */
@media (max-width: 1px) /* MOBILE DISABLED */ {
    .vip-reactions {
        gap: 8px;
    }
    
    .vip-reaction-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .vip-thank-message {
        font-size: 13px;
    }
}

/* Zamaskowany link - przed podziękowaniem */
.vip-link-masked {
    background: linear-gradient(135deg, rgba(139, 148, 158, 0.1) 0%, rgba(110, 118, 129, 0.15) 100%);
    border: 1px dashed rgba(139, 148, 158, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #6e7681;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    user-select: none;
}

.vip-link-masked i {
    font-size: 18px;
    opacity: 0.7;
}

/* Zablokowany textarea - nie można zaznaczyć tekstu */
.vip-textarea-locked {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    pointer-events: none;
    opacity: 0.7;
    filter: blur(2px);
    cursor: not-allowed;
}

/* Kontener z overlayem blokującym */
.vip-link-item-resolved {
    position: relative;
}

/* Size badge in list preview */
.vip-size-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(88, 166, 255, 0.3);
    margin-left: 4px;
    vertical-align: middle;
}

/* Opis strony */
.vip-description {
    color: var(--text-secondary, #8b949e);
    margin-bottom: 16px;
    font-size: 14px;
}

/* Light mode - lepszy kontrast dla inputów */
html.light-mode .vip-input-group input {
    background: #ffffff;
    border-color: #b0b3b8;
    color: #1a1a1a;
}

html.light-mode .vip-input-group input::placeholder {
    color: #6b7280;
}

html.light-mode .vip-input-group input:focus {
    border-color: var(--border-main);
    
}

/* Light mode - lepszy kontrast dla kart zgłoszeń */
html.light-mode .vip-request {
    background: #ffffff;
    border: 1px solid #b0b3b8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

html.light-mode .vip-request-username {
    color: #1a1a1a;
}

html.light-mode .vip-request-time {
    color: #4b5563;
}

html.light-mode .vip-link-preview-item {
    background: #e5e7eb;
    color: #374151;
    border: 1px solid #d1d5db;
}

html.light-mode .vip-link-preview-item.resolved {
    background: rgba(22, 163, 74, 0.15);
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.3);
}


/* Mniejsze marginesy - podobne do feedback page */
.static-content .vip-add-form,
.static-content .vip-request,
.static-content .vip-detail-card {
    margin-left: -18px;
    margin-right: -18px;
}

.static-content .vip-filters {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
}

/* Korekta szerokości dla link items wewnątrz detail-card */
.static-content .vip-detail-links-section {
    padding-left: 38px;
    padding-right: 38px;
}


.vip-detail-link-item {
}

/* Fix dla szerokości link items - nadpisanie */
.vip-detail-links-list .vip-detail-link-item {
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 1;
}

/* Fix textarea overflow */
.vip-link-item-url {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.vip-link-item-url textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.vip-link-item-header {
    min-width: 0 !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
}

/* Kolory reakcji dla vip-thanks-info */
.vip-thanks-info.reaction-thanks { color: #58a6ff; background: rgba(88, 166, 255, 0.15); }
.vip-thanks-info.reaction-love { color: #f85149; background: rgba(248, 81, 73, 0.15); }
.vip-thanks-info.reaction-fire { color: #ff7b00; background: rgba(255, 123, 0, 0.15); }
.vip-thanks-info.reaction-star { color: #ffc107; background: rgba(255, 193, 7, 0.15); }
.vip-thanks-info.reaction-thumbsup { color: #3fb950; background: rgba(63, 185, 80, 0.15); }

/* Kolory reakcji dla vip-thanks-count */
.vip-thanks-count.reaction-thanks { color: #58a6ff; background: rgba(88, 166, 255, 0.1); }
.vip-thanks-count.reaction-love { color: #f85149; background: rgba(248, 81, 73, 0.1); }
.vip-thanks-count.reaction-fire { color: #ff7b00; background: rgba(255, 123, 0, 0.1); }
.vip-thanks-count.reaction-star { color: #ffc107; background: rgba(255, 193, 7, 0.1); }
.vip-thanks-count.reaction-thumbsup { color: #3fb950; background: rgba(63, 185, 80, 0.1); }

/* ============================================
   MODAL - Brak punktów
   ============================================ */
.vip-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vip-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 16px;
    width: 100%;
    margin: auto;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.vip-modal-header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-main);
    background: rgba(220, 38, 38, 0.08);
}

.vip-modal-header i {
    font-size: 48px;
    color: #f85149;
    margin-bottom: 16px;
    display: block;
}

.vip-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.vip-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.vip-points-status {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.vip-points-status > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.vip-points-status > div:not(:last-child) {
    border-bottom: 1px solid var(--border-main);
}

.vip-points-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.vip-points-value {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.vip-points-negative {
    color: #f85149 !important;
}

.vip-earning-section h4 {
    margin: 0 0 14px 0;
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-earning-section h4 i {
    color: var(--accent);
}

.vip-earning-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vip-earning-tip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-input);
    border-radius: 8px;
    border: 1px solid var(--border-main);
}

.vip-earning-action {
    color: var(--text-primary);
    font-size: 14px;
}

.vip-earning-points {
    color: #3fb950;
    font-weight: 600;
    font-size: 14px;
}

.vip-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-main);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.vip-modal-footer .vip-btn {
    flex: 1;
}

/* Points display in form */
.vip-points-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

.vip-points-display i {
    color: #f6c343;
}

/* Cost info in form */
.vip-cost-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.vip-cost-info i {
    color: var(--accent);
}

/* Resolve reward badge */
.vip-resolve-reward {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(63, 185, 80, 0.15);
    border: 1px solid rgba(63, 185, 80, 0.3);
    border-radius: 6px;
    color: #3fb950;
    font-size: 11px;
    font-weight: 500;
    margin: 8px 0 0 0;
    order: 2;
}

.vip-resolve-reward i {
    color: #f6c343;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .vip-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .vip-modal-header {
        padding: 20px;
    }
    
    .vip-modal-header i {
        font-size: 40px;
    }
    
    .vip-modal-header h3 {
        font-size: 18px;
    }
    
    .vip-modal-body {
        padding: 16px;
    }
    
    .vip-modal-footer {
        flex-direction: column-reverse;
    }
}

/* FIX: Modal centrowanie - nadpisanie */
#notEnoughPointsModal.vip-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px) !important;
}

#notEnoughPointsModal .vip-modal {
    position: relative !important;
    margin: 20px !important;
    max-width: 480px !important;
    width: calc(100% - 40px) !important;
}

/* Kompaktowy modal - tip rows */
.vip-tip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: var(--bg-input);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-primary);
}
.vip-tip-pts {
    color: #3fb950;
    font-weight: 600;
    font-size: 12px;
}

/* Resolve form layout fix */
.vip-link-item-resolve-form textarea {
    order: 1;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    flex: none !important;
    margin-bottom: 8px;
}

.vip-link-item-resolve-form .vip-resolve-reward {
    order: 2;
}

.vip-link-item-resolve-form .vip-btn {
    order: 3;
    margin-left: auto;
}

/* Przycisk Moje prośby - po prawej stronie */
.vip-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vip-filter-mine {
    margin-left: auto !important;
}



/* ============================================
   MOBILE - VIP Generator
   ============================================ */
@media (max-width: 1024px) {

    /* === FORMULARZ DODAWANIA === */
    
    /* Form header: "Linki do wygenerowania" w 1 linii, 
       "(1 link)" + "220 pkt" w 2 linii */
    .vip-form-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .vip-form-header > span:first-child {
        flex-basis: 100%;
        font-size: 14px;
    }
    
    .vip-points-display {
        margin-left: auto;
    }
    
    /* Link row: link input w 1 linii,
       rozmiar w 2 linii */
    .vip-link-row {
        flex-wrap: wrap;
        padding: 10px;
        gap: 8px;
    }
    
    .vip-row-number {
        flex-shrink: 0;
    }
    
    .vip-link-row .vip-input-link {
        flex: 1 1 calc(100% - 70px);
        min-width: 0;
    }
    
    .vip-link-row .vip-btn-icon {
        flex-shrink: 0;
    }
    
    .vip-link-row .vip-input-size {
        flex: 1 1 100%;
        width: 100%;
        margin-left: 0;
    }
    
    /* Form actions */
    .vip-form-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .vip-form-actions .vip-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
    
    /* Supported hosts */
    .vip-supported-hosts {
        font-size: 11px;
    }
    
    /* === WIDOK SZCZEGÓŁÓW LINKU === */
    
    /* Link item header: numer + host + status w 1 linii,
       rozmiar w 2 linii */
    .vip-link-item-header {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .vip-link-item-num {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .vip-link-item-host {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .vip-link-item-status {
        margin-left: auto;
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .vip-link-item-size {
        flex-basis: 100%;
        width: fit-content;
        font-size: 12px;
        padding: 3px 8px;
        margin-left: 32px;
    }
    
    .vip-detail-link-item {
        padding: 12px;
    }
    
    .vip-link-item-url {
        flex-direction: column;
        gap: 6px;
    }
    
    .vip-link-item-url textarea {
        font-size: 11px;
    }
    
    .vip-detail-links-header {
        font-size: 14px;
    }
    
    .vip-link-item-resolve-form {
        flex-direction: column;
    }
    
    .vip-request-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .vip-detail-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .vip-detail-status {
        font-size: 12px;
    }
}

/* Points info bar */
.vip-points-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}
.vip-points-info i {
    font-size: 12px;
}
.vip-points-info strong {
    color: var(--text-primary);
}
.vip-points-sep {
    color: var(--border-main);
    font-size: 11px;
}
@media (max-width: 768px) {
    .vip-points-info {
        font-size: 11px;
        gap: 4px 8px;
        padding: 6px 10px;
    }
    .vip-points-sep {
        display: none;
    }
}
