/* SpaceSite System - Ultra-Premium Deep Violet / Purple Luxury CSS */
:root {
    /* Paleta Fioletu Premium */
    --ss-bg-dark: #090514;
    --ss-bg-card: #130a27;
    --ss-bg-card-elevated: #1a0f35;
    --ss-bg-card-header: #160d2f;
    --ss-bg-input: #1f133f;
    
    --ss-purple-50: #faf5ff;
    --ss-purple-100: #f3e8ff;
    --ss-purple-200: #e9d5ff;
    --ss-purple-300: #d8b4fe;
    --ss-purple-400: #c084fc;
    --ss-purple-500: #a855f7;
    --ss-purple-600: #9333ea;
    --ss-purple-700: #7e22ce;
    --ss-purple-800: #6b21a8;
    --ss-purple-900: #581c87;
    --ss-purple-neon: #d946ef;
    
    --ss-emerald: #10b981;
    --ss-emerald-glow: rgba(16, 185, 129, 0.35);
    --ss-rose: #f43f5e;
    --ss-rose-glow: rgba(244, 63, 94, 0.35);
    
    --ss-border: rgba(168, 85, 247, 0.2);
    --ss-border-hover: rgba(192, 132, 252, 0.45);
    --ss-border-focus: rgba(217, 70, 239, 0.75);
    
    --ss-shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
    --ss-shadow-glow: 0 4px 16px rgba(0, 0, 0, 0.35);
    --ss-shadow-neon: 0 8px 24px rgba(0, 0, 0, 0.4);
    
    --ss-radius: 16px;
    --ss-radius-sm: 10px;
}

/* Główne kontenery */
.spacesite-portal-wrap,
.spacesite-auth-wrapper,
.spacesite-packages-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #e9d5ff;
    line-height: 1.5;
    box-sizing: border-box;
    width: 100%;
}

.spacesite-portal-wrap *,
.spacesite-auth-wrapper *,
.spacesite-packages-container *,
.spacesite-purchase-modal-overlay * {
    box-sizing: border-box;
}

/* ==========================================================================
   ANIMACJE I EFEKTY PREMIUM (MATTE & CRISP)
   ========================================================================== */
@keyframes ssShimmer {
    0% { transform: translateX(-150%) skewX(-20deg); }
    50% { transform: translateX(150%) skewX(-20deg); }
    100% { transform: translateX(150%) skewX(-20deg); }
}

@keyframes ssPulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

@keyframes ssPulseEmerald {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes ssFloatGlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

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

/* ==========================================================================
   PORTAL WRAPPER & TOPBAR (FIOLET PREMIUM MATTE)
   ========================================================================== */
.spacesite-portal-wrap {
    max-width: 1200px;
    margin: 40px auto;
    padding: 34px;
    background: radial-gradient(1000px circle at 50% 0%, rgba(139, 92, 246, 0.12), transparent 50%),
                #090514;
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 24px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
}

.spacesite-topbar {
    background: linear-gradient(135deg, rgba(22, 13, 47, 0.9) 0%, rgba(31, 19, 63, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-badge {
    font-size: 11px;
    font-weight: 700;
    background: rgba(168, 85, 247, 0.25);
    border: 1px solid rgba(192, 132, 252, 0.4);
    color: #c084fc;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.brand-client {
    font-size: 13px;
    color: #c4b5fd;
}

.brand-client strong {
    color: #ffffff;
}

.spacesite-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.pill-active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.pill-inactive {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.35);
}

.status-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #10b981;
    animation: ssPulseEmerald 2s infinite;
}

.pill-inactive .status-pulse-dot {
    background-color: #f43f5e;
    animation: none;
}

.spacesite-btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #c4b5fd;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.spacesite-btn-logout:hover {
    background: rgba(244, 63, 94, 0.2);
    color: #fda4af;
    border-color: rgba(244, 63, 94, 0.4);
}

/* ==========================================================================
   NAWIGACJA ZAKŁADEK (TAB BAR)
   ========================================================================== */
.spacesite-nav-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 0 28px 0 !important;
    padding: 8px !important;
    background: rgba(14, 8, 30, 0.75) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(139, 92, 246, 0.22) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
    box-sizing: border-box !important;
    align-items: center !important;
    overflow: visible !important;
}

.portal-tab-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(139, 92, 246, 0.16) !important;
    border-radius: 11px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
    position: relative !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    text-shadow: none !important;
    text-overflow: clip !important;
}

.portal-tab-btn:hover {
    background: rgba(139, 92, 246, 0.18) !important;
    color: #ffffff !important;
    border-color: rgba(168, 85, 247, 0.45) !important;
    transform: translateY(-1px) !important;
}

.portal-tab-btn.active {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    color: #ffffff !important;
    border-color: rgba(192, 132, 252, 0.6) !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4) !important;
    transform: none !important;
}

.portal-tab-btn .tab-icon {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    color: inherit !important;
    vertical-align: middle !important;
}

.portal-tab-btn.active .tab-icon {
    color: #ffffff !important;
}

.portal-tab-pane {
    display: none !important;
    clear: both !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.portal-tab-pane.active {
    display: block !important;
    animation: fadeIn 0.25s ease-out !important;
}

/* ==========================================================================
   HERO STATUS CARD (PULPIT)
   ========================================================================== */
.portal-hero-card {
    border-radius: var(--ss-radius);
    padding: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: var(--ss-shadow-card);
    margin-bottom: 26px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ss-border);
}

.hero-active {
    background: linear-gradient(135deg, #130a27 0%, #1f1242 50%, #2e1663 100%);
    box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.6), 0 0 30px rgba(147, 51, 234, 0.25);
}

.hero-inactive {
    background: linear-gradient(135deg, #130a27 0%, #1c0e35 100%);
}

.hero-left {
    flex: 1;
    min-width: 280px;
    z-index: 2;
}

.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(192, 132, 252, 0.35);
    backdrop-filter: blur(8px);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #d8b4fe;
    margin-bottom: 14px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #34d399;
    animation: ssPulseEmerald 2s infinite;
}

.pulse-indicator-off {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #f43f5e;
}

.hero-left h2 {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.hero-left p {
    margin: 0 0 24px 0;
    color: #c4b5fd;
    font-size: 14px;
    max-width: 520px;
    line-height: 1.6;
}

.countdown-card {
    background: rgba(26, 15, 53, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(192, 132, 252, 0.25);
    border-radius: 14px;
    padding: 26px 32px;
    text-align: center;
    min-width: 220px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a78bfa;
    margin-bottom: 4px;
    font-weight: 700;
}

.countdown-days-number {
    font-size: 50px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    margin-bottom: 4px;
}

.days-text {
    font-size: 18px;
    font-weight: 600;
    color: #c084fc;
}

.countdown-subtext {
    font-size: 12px;
    color: #e9d5ff;
    margin-bottom: 14px;
}

.countdown-subtext strong {
    color: #ffffff;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 4px;
}

/* ==========================================================================
   2-COLUMN CARDS (OVERVIEW)
   ========================================================================== */
.portal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.portal-card {
    background: var(--ss-bg-card);
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    overflow: hidden;
    box-shadow: var(--ss-shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.portal-card:hover {
    border-color: var(--ss-border-hover);
    transform: translateY(-3px);
}

.portal-card-header {
    background: var(--ss-bg-card-header);
    border-bottom: 1px solid var(--ss-border);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon-title .icon-svg {
    width: 22px;
    height: 22px;
    color: #c084fc;
    filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.5));
}

.portal-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.portal-link-btn {
    background: none;
    border: none;
    color: #c084fc;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s;
}

.portal-link-btn:hover {
    color: #e9d5ff;
    text-decoration: underline;
}

.portal-card-body {
    padding: 24px;
}

/* Aesthetic Info Tiles (Overview) */
.aesthetic-info-tiles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.25s ease;
}

.info-tile:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(192, 132, 252, 0.35);
    transform: translateX(4px);
}

.tile-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.35) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid rgba(192, 132, 252, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c084fc;
    flex-shrink: 0;
}

.tile-icon-box svg {
    width: 20px;
    height: 20px;
}

.tile-icon-box.icon-emerald {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.tile-icon-box.icon-rose {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.35);
    color: #fb7185;
}

.tile-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tile-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #a78bfa;
}

.tile-value {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2px;
}

.status-text-emerald {
    color: #34d399;
    font-weight: 600;
}

.status-text-rose {
    color: #fb7185;
    font-weight: 600;
}

.text-danger-glow {
    color: #f43f5e;
    font-weight: 700;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.12);
    font-size: 14px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #a78bfa;
    font-weight: 500;
}

.info-val {
    font-weight: 600;
    color: #ffffff;
    text-align: right;
}

.val-link {
    color: #c084fc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.val-link:hover {
    color: #f3e8ff;
    text-decoration: underline;
}

.val-empty {
    color: #7e6e9b;
    font-style: italic;
}

.shield-badge {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(192, 132, 252, 0.35);
    color: #e9d5ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.shield-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shield-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    font-size: 14px;
}

.shield-checklist li:last-child {
    border-bottom: none;
}

.shield-check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
}

.active-item .shield-check-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.inactive-item .shield-check-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #7e6e9b;
}

.shield-checklist li div {
    display: flex;
    flex-direction: column;
}

.shield-checklist li strong {
    color: #ffffff;
}

.shield-checklist li span {
    font-size: 12px;
    color: #a78bfa;
}

.inactive-item {
    opacity: 0.45;
}

/* ==========================================================================
   PRICING CARDS (PAKIETY) - MATTE LUXURY
   ========================================================================== */
.portal-section-intro {
    text-align: center;
    margin-bottom: 36px;
}

.portal-section-intro h2 {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.portal-section-intro p {
    font-size: 15px;
    color: #c4b5fd;
    margin: 0;
}

.spacesite-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 26px;
    align-items: stretch;
}

.spacesite-price-card {
    background: var(--ss-bg-card);
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    padding: 34px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--ss-shadow-card);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.spacesite-price-card:hover {
    transform: translateY(-8px);
    border-color: var(--ss-border-hover);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.85);
}

.spacesite-price-card.is-featured {
    background: linear-gradient(180deg, #1b0e38 0%, #150a2c 100%);
    border: 2px solid #a855f7;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.85);
}

.spacesite-price-card.is-current {
    border: 2px solid #10b981;
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.7);
}

.pricing-card-badge {
    position: absolute;
    top: -1px;
    right: 24px;
    background: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 0 0 12px 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pricing-card-header h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
}

.pricing-card-desc {
    margin: 0;
    font-size: 13px;
    color: #c4b5fd;
    min-height: 42px;
    line-height: 1.5;
}

.pricing-card-price-box {
    margin: 24px 0;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-currency {
    font-size: 20px;
    font-weight: 800;
    color: #c084fc;
}

.price-val {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.price-period {
    font-size: 13px;
    color: #a78bfa;
}

.pricing-card-features {
    flex: 1;
    margin-bottom: 28px;
}

.pricing-card-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pricing-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #e9d5ff;
    margin-bottom: 14px;
    line-height: 1.5;
}

.pricing-card-features .check-icon {
    width: 18px;
    height: 18px;
    color: #34d399;
    flex-shrink: 0;
    margin-top: 2px;
    filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.5));
}

.pricing-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-secure-note {
    font-size: 11px;
    color: #a78bfa;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ==========================================================================
   BUTTONS (PREMIUM SHIMMER & GLOW)
   ========================================================================== */
.spacesite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--ss-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.spacesite-btn-block {
    width: 100%;
}

.spacesite-btn-primary,
.spacesite-btn-featured {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.spacesite-btn-primary:hover,
.spacesite-btn-featured:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 50%, #a855f7 100%);
    box-shadow: 0 6px 28px rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
    color: #ffffff;
}

.spacesite-btn-hero {
    background: #ffffff;
    color: #6b21a8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.spacesite-btn-hero:hover {
    background: #f3e8ff;
    color: #581c87;
    transform: translateY(-2px);
}

.spacesite-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid var(--ss-border);
}

.spacesite-btn-outline:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
    color: #ffffff;
    transform: translateY(-2px);
}

.spacesite-btn-active-pkg {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    cursor: default;
}

/* Shimmer na przyciskach */
.btn-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-150%) skewX(-20deg);
    animation: ssShimmer 4s infinite;
}

/* ==========================================================================
   DEDYKOWANY MODAL ZAKUPU (CUSTOM PURCHASE MODAL - SCROLLABLE & MATTE)
   ========================================================================== */
.spacesite-purchase-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(6, 2, 16, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important; /* Blokada przewijania tła */
    overscroll-behavior: none !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

.spacesite-purchase-modal-overlay:not([style*="display: none"]):not([style*="display:none"]) {
    display: flex !important;
}

html.spacesite-modal-locked,
body.spacesite-modal-locked {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none !important;
}

.spacesite-purchase-modal-box,
.custom-checkout-box {
    width: 100% !important;
    max-width: 500px !important; /* Piękny, zgrabny prostokąt */
    max-height: 85vh !important; /* Idealna wysokość bez ucinania */
    height: auto !important;
    margin: auto !important;
    background: #0f0822 !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
    border-radius: 18px !important;
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(168, 85, 247, 0.22) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
    animation: ssModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.spacesite-purchase-modal-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 85vh !important;
    overflow: hidden !important;
    position: relative !important;
}

.purchase-modal-header {
    background: linear-gradient(135deg, #150b2e 0%, #1c0e3e 100%);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    flex-shrink: 0;
}

.header-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    flex-shrink: 0;
}

.header-titles h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.header-titles p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #c4b5fd;
    line-height: 1.2;
}

.purchase-modal-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #c4b5fd;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.purchase-modal-close:hover {
    background: rgba(244, 63, 94, 0.25);
    color: #fda4af;
    border-color: rgba(244, 63, 94, 0.4);
}

/* Belka wybranego pakietu */
.selected-package-bar {
    background: rgba(124, 58, 237, 0.12);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.selected-pkg-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #c084fc;
    font-weight: 700;
}

.selected-pkg-left h4 {
    margin: 1px 0 0 0;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.selected-pkg-price {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
}

.selected-pkg-price .cur {
    font-size: 14px;
    color: #c084fc;
}

.selected-pkg-price .per {
    font-size: 11px;
    color: #a78bfa;
    font-weight: 500;
}

/* Przewijalny obszar wewnątrz modala */
.checkout-scroll-area {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    max-height: calc(85vh - 120px) !important;
    padding: 16px 20px 22px 20px !important;
}

.checkout-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.checkout-scroll-area::-webkit-scrollbar-track {
    background: rgba(10, 5, 24, 0.5);
}

.checkout-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.35);
    border-radius: 4px;
}

.checkout-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.65);
}

/* Formularz zakupu */
.purchase-form {
    padding: 0 !important;
    margin: 0 !important;
}

.purchase-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.purchase-input-group {
    margin-bottom: 12px;
}

.purchase-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #e9d5ff;
    margin-bottom: 5px;
}

.purchase-input-group label .req {
    color: #f43f5e;
}

.purchase-input-group label small {
    display: block;
    font-size: 11px;
    color: #a78bfa;
    font-weight: 400;
    margin-top: 2px;
}

.p-input-wrap {
    position: relative;
}

.p-field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #a78bfa;
    pointer-events: none;
}

.p-input-wrap input {
    width: 100% !important;
    padding: 10px 12px 10px 38px !important;
    font-size: 13px !important;
    background: var(--ss-bg-input) !important;
    border: 1px solid var(--ss-border) !important;
    border-radius: var(--ss-radius-sm) !important;
    color: #ffffff !important;
    outline: none !important;
    transition: all 0.25s ease !important;
}

.p-input-wrap input:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.35) !important;
    background: #201340 !important;
}

.highlight-input {
    background: rgba(168, 85, 247, 0.08);
    padding: 12px;
    border-radius: 10px;
    border: 1px dashed rgba(192, 132, 252, 0.35);
}

.purchase-guarantee-bar {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin: 14px 0;
    font-size: 11px;
    color: #c4b5fd;
    flex-wrap: wrap;
}

.p-guar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.p-guar-item svg {
    color: #34d399;
}

/* Główny przycisk przejścia do płatności */
.spacesite-btn-purchase-submit {
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #c026d3 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.spacesite-btn-purchase-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.btn-purchase-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.purchase-modal-alert {
    margin: 12px 20px 0 20px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.purchase-modal-alert.alert-error {
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
}

.purchase-modal-alert.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

/* ==========================================================================
   FORMULARZ AUTH (LOGOWANIE / REJESTRACJA) - LUXURY PURPLE
   ========================================================================== */
.spacesite-auth-wrapper {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.spacesite-auth-card {
    background: var(--ss-bg-card);
    width: 100%;
    max-width: 480px;
    border-radius: var(--ss-radius);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95);
    border: 1px solid var(--ss-border);
    overflow: hidden;
}

.spacesite-auth-header {
    background: linear-gradient(135deg, #160d2f 0%, #241447 60%, #3b1d73 100%);
    padding: 34px 30px 24px 30px;
    text-align: center;
    color: #ffffff;
    border-bottom: 1px solid var(--ss-border);
}

.spacesite-auth-badge {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px auto;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.spacesite-auth-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.spacesite-auth-header p {
    margin: 6px 0 20px 0;
    font-size: 13px;
    color: #c4b5fd;
}

.spacesite-auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #c4b5fd;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(147, 51, 234, 0.4);
}

.spacesite-auth-body {
    padding: 30px;
}

.spacesite-auth-pane {
    display: none;
}

.spacesite-auth-pane.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

.spacesite-input-group {
    margin-bottom: 18px;
}

.spacesite-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #e9d5ff;
    margin-bottom: 6px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #a78bfa;
    pointer-events: none;
}

.input-with-icon input {
    width: 100% !important;
    padding: 12px 14px 12px 42px !important;
    font-size: 14px !important;
    background: var(--ss-bg-input) !important;
    border: 1px solid var(--ss-border) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    outline: none !important;
    transition: all 0.25s ease !important;
}

.input-with-icon input:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.35) !important;
    background: #201340 !important;
}

.spacesite-input-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.label-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spacesite-link-muted {
    font-size: 12px;
    color: #c084fc;
    text-decoration: none;
    font-weight: 600;
}

.spacesite-link-muted:hover {
    color: #e9d5ff;
    text-decoration: underline;
}

.spacesite-remember-row {
    margin: 14px 0 20px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #c4b5fd;
    cursor: pointer;
    user-select: none;
    gap: 8px;
}

.required-star {
    color: #f43f5e;
}

.spacesite-terms-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12px;
    color: #c4b5fd;
    line-height: 1.5;
    margin: 16px 0 20px 0;
    text-align: left;
}

.spacesite-terms-hint strong {
    color: #ffffff;
}

.terms-shield-icon {
    flex-shrink: 0;
    color: #a855f7;
    margin-top: 2px;
}

.spacesite-auth-footer {
    background: var(--ss-bg-card-header);
    border-top: 1px solid var(--ss-border);
    padding: 16px 30px;
    text-align: center;
}

.secure-badge-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #a78bfa;
    font-weight: 500;
}

.secure-badge-row svg {
    color: #34d399;
}

/* ==========================================================================
   TOAST & SPINNERS
   ========================================================================== */
.spacesite-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1f133f;
    border: 1px solid #a855f7;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.4);
    z-index: 9999999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spacesite-toast.toast-success {
    border-color: #34d399;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.4);
}

.spacesite-toast.toast-error {
    border-color: #f43f5e;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(244, 63, 94, 0.4);
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ORDERS & PROFILE STYLING (TABS 3 & 4)
   ========================================================================== */
.portal-form-container {
    max-width: 640px;
    margin: 0 auto;
    background: var(--ss-bg-card);
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    padding: 34px;
    box-shadow: var(--ss-shadow-card);
}

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

.spacesite-orders-table th,
.spacesite-orders-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.12);
    text-align: left;
    font-size: 14px;
}

.spacesite-orders-table th {
    background: var(--ss-bg-card-header);
    font-weight: 700;
    color: #c4b5fd;
}

.order-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.order-status-badge.status-completed { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.order-status-badge.status-processing { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.order-status-badge.status-pending { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.order-link-btn {
    color: #c084fc;
    text-decoration: none;
    font-weight: 700;
}

.order-link-btn:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   LIVE PING & HEALTH CHECK STYLING
   ========================================================================== */
.tile-web-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.btn-live-ping {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-live-ping:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #a855f7;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.ping-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #34d399;
    border-radius: 50%;
    animation: ssPulseGreen 1.8s infinite;
}

@keyframes ssPulseGreen {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}

.ping-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(192, 132, 252, 0.3);
    border-top-color: #c084fc;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.live-ping-result {
    margin-top: 6px;
}

.ping-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

.ping-badge-ok {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.ping-badge-warn {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
}

.ping-badge-error {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
}

.ping-tag.tag-ssl {
    background: rgba(139, 92, 246, 0.3);
    color: #e9d5ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.ping-tag.tag-no-ssl {
    background: rgba(244, 63, 94, 0.3);
    color: #fecdd3;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.ping-time {
    color: #94a3b8;
    font-size: 10px;
}

/* ==========================================================================
   CUSTOM CHECKOUT MODAL & PAYMENT METHODS STYLING
   ========================================================================== */
.custom-checkout-box {
    max-width: 500px !important;
}

.checkout-sections-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0;
}

.checkout-section {
    background: rgba(19, 10, 39, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 12px;
    padding: 14px 16px;
}

.section-badge-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #e9d5ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.12);
}

.section-badge-label .step-num {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #7c3aed 0%, #d946ef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.payment-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==========================================================================
   STRIPE PAYMENT ACCORDION (BLIK, KARTA, KLARNA, GOOGLE PAY, APPLE PAY)
   ========================================================================== */
.stripe-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.p-AccordionItem {
    position: relative;
    background: rgba(20, 12, 46, 0.75);
    border: 1.5px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.p-AccordionItem:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(27, 16, 62, 0.85);
}

.p-AccordionItem.active {
    border-color: #8b5cf6;
    background: rgba(27, 16, 62, 0.95);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.p-AccordionButton {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    outline: none;
}

.p-AccordionButtonContent {
    flex: 1;
}

.p-PaymentAccordionButtonView {
    display: flex;
    align-items: center;
    gap: 14px;
}

.p-PaymentAccordionButtonIconContainer {
    width: 32px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.p-PaymentAccordionButtonIconContainer svg {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.p-PaymentAccordionButtonText {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.p-AccordionRadio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.4);
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.p-AccordionItem.active .p-AccordionRadio {
    border-color: #8b5cf6;
    background: #8b5cf6;
}

.p-AccordionItem.active .p-AccordionRadio::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.p-AccordionPanel {
    border-top: 1px dashed rgba(168, 85, 247, 0.2);
    padding: 16px 20px 20px 20px;
    background: rgba(10, 5, 25, 0.65);
    animation: saasFadeIn 0.2s ease;
}

/* BLIK Panel */
.blik-panel-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.blik-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #e9d5ff;
    margin-bottom: 8px;
    display: block;
}

.blik-input-box {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.blik-code-field {
    width: 200px !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    letter-spacing: 5px !important;
    text-align: center !important;
    color: #ffffff !important;
    background: #090416 !important;
    border: 2px solid #8b5cf6 !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

.blik-code-field:focus {
    border-color: #c084fc !important;
    box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.3) !important;
}

.blik-bank-hint {
    font-size: 12px;
    color: #a78bfa;
}

.blik-helper-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #a78bfa;
    margin-top: 12px;
}

.blik-helper-text svg {
    color: #38bdf8;
    flex-shrink: 0;
}

/* Card Panel */
.card-panel-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Klarna & Wallets Panels */
.klarna-panel-inner,
.wallet-panel-inner {
    font-size: 13px;
    color: #c4b5fd;
    line-height: 1.6;
}

.klarna-panel-inner p,
.wallet-panel-inner p {
    margin: 0;
}

/* Modal State Overlays (BLIK Waiting & Success) */
.modal-state-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 7, 29, 0.97);
    backdrop-filter: blur(10px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
    border-radius: 20px;
    animation: saasFadeIn 0.25s ease;
}

.state-overlay-card {
    max-width: 440px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.phone-pulse-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    border: 2px solid rgba(168, 85, 247, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.phone-pulse-icon svg {
    color: #c084fc;
}

.pulse-ring {
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.4);
    animation: pulsePing 1.8s infinite cubic-bezier(0, 0, 0.2, 1);
}

@keyframes pulsePing {
    75%, 100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.state-overlay-card h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.state-overlay-card p {
    margin: 0 0 18px 0;
    font-size: 14px;
    color: #c4b5fd;
    line-height: 1.5;
}

.blik-timer-bar-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.blik-timer-bar {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
    width: 100%;
}

.blik-timer-countdown {
    font-size: 13px;
    color: #e9d5ff;
}

.blik-waiting-card {
    max-width: 480px;
}

.blik-phone-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.blik-logo-pill {
    background: #000000;
    border: 1px solid #ea1d25;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.blik-pill-text {
    color: #ffffff;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 1px;
}

.blik-live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #c4b5fd;
}

.pulse-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a855f7;
    animation: ssPulseGlow 1.5s infinite;
}

.blik-waiting-sub {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #c4b5fd;
    line-height: 1.5;
}

.blik-steps-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    text-align: left;
}

.blik-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #e9d5ff;
}

.b-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blik-timer-box {
    width: 100%;
    margin-bottom: 12px;
}

.blik-countdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #c4b5fd;
    margin-top: 6px;
}

.blik-countdown-row strong {
    color: #ec4899;
    font-size: 14px;
}

.badge-status-completed {
    color: #10b981 !important;
    background: rgba(16, 185, 129, 0.15) !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
}

.badge-status-processing {
    color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.15) !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
}

.success-check-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid rgba(16, 185, 129, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.success-details-box {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #c4b5fd;
}

.detail-row strong {
    color: #ffffff;
}

.detail-row code {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
}

.invoice-toggle-row {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(168, 85, 247, 0.2);
}

.custom-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #c4b5fd;
    user-select: none;
}

.custom-switch-label input {
    display: none;
}

.custom-switch-slider {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.custom-switch-label input:checked + .custom-switch-slider {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    border-color: #a855f7;
}

.custom-switch-label input:checked + .custom-switch-slider::before {
    transform: translateX(20px);
}

.invoice-fields-container {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.checkout-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 7, 26, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.summary-left .sum-row {
    font-size: 13px;
    color: #c4b5fd;
    margin-bottom: 4px;
}

.sum-lbl {
    color: #a78bfa;
}

.sum-val {
    color: #ffffff;
    font-weight: 700;
}

.sum-val-free {
    color: #34d399;
    font-weight: 600;
}

.summary-right {
    text-align: right;
}

.sum-total-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #a78bfa;
    display: block;
}

.sum-total-val {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
}

.checkout-trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
    color: #a78bfa;
}

.checkout-trust-footer svg {
    color: #34d399;
}

/* ==========================================================================
   HELPDESK TICKETS STYLING (TAB 4)
   ========================================================================== */
.priority-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.priority-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 15, 53, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.priority-choice input {
    display: none;
}

.priority-choice:hover {
    border-color: rgba(168, 85, 247, 0.6);
}

.priority-choice.active {
    border-color: #a855f7;
    background: rgba(59, 29, 115, 0.5);
}

.priority-choice.danger-choice.active {
    border-color: #f43f5e;
    background: rgba(244, 63, 94, 0.2);
}

.p-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-normal { background: #38bdf8; }
.dot-low { background: #94a3b8; }
.dot-critical { background: #f43f5e; }

.p-title {
    font-size: 12px;
    font-weight: 700;
    color: #e9d5ff;
}

.tickets-stream {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.ticket-card-item {
    background: rgba(19, 10, 39, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.ticket-card-item:hover {
    border-color: rgba(168, 85, 247, 0.45);
    background: rgba(26, 15, 53, 0.8);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.t-badge-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticket-id-tag {
    font-size: 11px;
    font-weight: 800;
    color: #a78bfa;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.t-priority-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
}

.priority-normal { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }
.priority-low { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.priority-critical { background: rgba(244, 63, 94, 0.25); color: #fda4af; }

.ticket-status-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
}

.ticket-status-open { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.ticket-status-progress { background: rgba(168, 85, 247, 0.25); color: #c084fc; }
.ticket-status-resolved { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.ticket-card-subject {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.ticket-card-msg {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0 0 10px 0;
    line-height: 1.4;
    white-space: pre-line;
}

.ticket-card-footer {
    display: flex;
    justify-content: flex-end;
}

.t-date-lbl {
    font-size: 11px;
    color: #8b7ca8;
}

.spacesite-empty-state-mini {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon-mini {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
}

.spacesite-empty-state-mini h4 {
    margin: 0 0 6px 0;
    color: #ffffff;
    font-size: 15px;
}

.spacesite-empty-state-mini p {
    margin: 0;
    color: #a78bfa;
    font-size: 13px;
    line-height: 1.4;
}

/* ==========================================================================
   SECURITY LOGS & SHIELD (TAB 5)
   ========================================================================== */
.security-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.sec-stat-card {
    background: var(--ss-bg-card);
    border: 1px solid var(--ss-border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--ss-shadow-card);
}

.sec-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sec-icon-circle svg {
    width: 24px;
    height: 24px;
}

.icon-shield-violet { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.icon-backup-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.icon-scanner-emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.icon-uptime-amber { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }

.sec-stat-info {
    display: flex;
    flex-direction: column;
}

.sec-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #a78bfa;
}

.sec-val {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 2px 0;
}

.text-emerald-glow {
    color: #34d399;
    font-weight: 700;
}

.sec-hint {
    font-size: 11px;
    color: #94a3b8;
}

.security-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 3px 10px;
    border-radius: 20px;
}

.pulse-dot-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: ssPulseGreen 1.6s infinite;
}

/* Header strumienia audytu i przycisk skanowania */
.sec-stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sec-stream-subtitle {
    display: block;
    font-size: 12px;
    color: #a78bfa;
    margin-top: 2px;
    font-weight: 400;
}

.sec-stream-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sec-audit-info-box {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #c4b5fd;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
}

.sec-audit-label strong {
    color: #ffffff;
}

.spacesite-btn-audit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    border: 1px solid rgba(192, 132, 252, 0.4);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
}

.spacesite-btn-audit:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #7e22ce 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.spacesite-btn-audit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.audit-spinner {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

.security-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 28px;
}

.security-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, #8b5cf6 0%, #3b1d73 50%, rgba(139, 92, 246, 0.1) 100%);
}

.timeline-entry {
    position: relative;
}

.tl-bullet {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #130a27;
}

.bullet-ok { background: #34d399; }
.bullet-info { background: #38bdf8; }
.bullet-shield { background: #a855f7; }

.tl-content {
    background: rgba(19, 10, 39, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    padding: 14px 18px;
}

.tl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 6px;
}

.tl-header strong {
    font-size: 13px;
    color: #ffffff;
}

.tl-time {
    font-size: 11px;
    color: #a78bfa;
}

.tl-content p {
    margin: 0;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
}

/* ==========================================================================
   NOWY, ELEGANCKI EMPTY STATE DLA ZAMÓWIEŃ (CENTROWANY & MATTE SAAS)
   ========================================================================== */
.spacesite-empty-orders {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 30px 45px;
    background: radial-gradient(circle at 50% 10%, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

.empty-icon-shield {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(147, 51, 234, 0.25) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c084fc;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
}

.spacesite-empty-orders h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.empty-orders-lead {
    max-width: 540px;
    margin: 0 auto 24px auto;
    font-size: 14px;
    color: #c4b5fd;
    line-height: 1.6;
}

.empty-orders-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.empty-feat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #e9d5ff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
}

.empty-feat-pill svg {
    color: #34d399;
}

.empty-orders-cta {
    margin-top: 6px;
}

.empty-orders-cta .spacesite-btn-primary {
    padding: 13px 28px;
    font-size: 14px;
}

/* ==========================================================================
   WOOCOMMERCE CHECKOUT / ORDER-PAY HEADER CLEARANCE & STYLING
   ========================================================================== */
.woocommerce-checkout,
.woocommerce-order-pay,
.woocommerce-page .woocommerce {
    padding-top: 130px !important;
}

/* ==========================================================================
   LIVE HELPDESK MESSENGER (DARK SAAS MATTE THREADED CHAT)
   ========================================================================== */
.portal-messenger-wrap {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    background: #130c2e;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 18px;
    overflow: hidden;
    min-height: 580px;
}

.messenger-sidebar {
    background: #0f0826;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
}

.sidebar-top-action {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.new-ticket-box {
    padding: 16px;
    background: #140b33;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.new-ticket-box h4 {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.form-group-mini {
    margin-bottom: 10px;
}

.form-group-mini label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.form-group-mini input,
.form-group-mini select,
.form-group-mini textarea {
    width: 100%;
    background: #0a051d !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    color: #ffffff !important;
    font-size: 12px !important;
    outline: none !important;
}

.drawer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

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

.messenger-threads-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.empty-threads-placeholder {
    padding: 36px 16px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
}

.empty-threads-placeholder svg {
    margin: 0 auto 10px;
    display: block;
    color: #475569;
}

.thread-item {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thread-item:hover {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.15);
}

.thread-item.active {
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.35);
}

.thread-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.thread-id {
    font-size: 11px;
    font-family: monospace;
    color: #a78bfa;
    font-weight: 700;
}

.thread-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thread-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.thread-date {
    color: #64748b;
}

/* Chat Box */
.messenger-chat-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #140c31;
}

.chat-header-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.chat-ticket-id {
    font-size: 12px;
    font-family: monospace;
    font-weight: 700;
    color: #c084fc;
}

.chat-status-pill {
    font-size: 11px;
    font-weight: 600;
    color: #e2e8f0;
}

.chat-priority-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.chat-subject {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.chat-live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #34d399;
    font-weight: 600;
}

.chat-messages-stream {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 420px;
}

.chat-bubble-row {
    display: flex;
    width: 100%;
}

.chat-bubble-row.msg-client {
    justify-content: flex-end;
}

.chat-bubble-row.msg-admin {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.msg-client .chat-bubble {
    background: #5b21b6;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.msg-admin .chat-bubble {
    background: #1e133d;
    color: #f1f5f9;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-bottom-left-radius: 4px;
}

.chat-bubble-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 11px;
}

.msg-client .bubble-author {
    color: #e9d5ff;
    font-weight: 600;
}

.msg-admin .bubble-author {
    color: #c084fc;
    font-weight: 600;
}

.bubble-time {
    color: #94a3b8;
    font-size: 10px;
}

.chat-bubble-body {
    word-break: break-word;
}

/* Reply Bar */
.chat-reply-bar {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #0f0826;
}

.reply-input-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.reply-input-wrap textarea {
    flex: 1;
    background: #140b33 !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    resize: none;
    outline: none !important;
}

.reply-input-wrap textarea:focus {
    border-color: #8b5cf6 !important;
}

.chat-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-send-btn:hover {
    background: #7c3aed;
}

.chat-reply-hint {
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
}

.chat-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.empty-chat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.chat-empty-state h3 {
    font-size: 16px;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.chat-empty-state p {
    font-size: 13px;
    color: #94a3b8;
    max-width: 380px;
    margin-bottom: 20px;
}

/* ==========================================================================
   DEEP VULNERABILITY SCANNER UI (MATTE SAAS RADAR & SCORE)
   ========================================================================== */
.scanner-search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.scanner-url-input {
    flex: 1;
    background: #0a051d !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    color: #ffffff !important;
    font-size: 14px !important;
}

.audit-score-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #0d0722;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}

.score-circle-box {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 4px solid #10b981;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
}

.score-val {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.score-max {
    font-size: 11px;
    color: #94a3b8;
}

.score-details .grade-badge {
    display: inline-block;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.score-details h4 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.score-details p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

.audit-findings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.finding-card {
    background: #0d0722;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    border-left: 4px solid transparent;
}

.finding-critical {
    border-left-color: #ef4444;
}

.finding-warning {
    border-left-color: #f59e0b;
}

.finding-passed {
    border-left-color: #10b981;
}

.f-type-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    align-self: flex-start;
}

.finding-critical .f-type-tag {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.finding-warning .f-type-tag {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.finding-passed .f-type-tag {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.f-content {
    flex: 1;
}

.f-cat {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}

.f-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.f-content p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.f-solution {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    color: #d8b4fe;
}

/* ==========================================================================
   LICENSE KEY & SHIELD AGENT TAB
   ========================================================================== */
.license-display-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.license-key-box {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    background: #0a051d;
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 12px 20px;
    border-radius: 10px;
    color: #c084fc;
    letter-spacing: 1px;
}

.spacesite-btn-warning {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 10px;
    color: #fde047;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.spacesite-btn-warning:hover {
    background: rgba(234, 179, 8, 0.22);
    border-color: #facc15;
    color: #fef08a;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.25);
}

.license-key-locked {
    background: rgba(12, 6, 24, 0.85);
    border: 1px dashed rgba(239, 68, 68, 0.45) !important;
    color: #64748b !important;
}

.badge-status-inactive {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.license-status-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #0d0722;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px 18px;
}

.lic-status-item {
    font-size: 12px;
}

.lic-lbl {
    color: #64748b;
    margin-right: 6px;
}

.lic-val {
    font-weight: 600;
}

.telemetry-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.telem-box {
    background: #0d0722;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.telem-val {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
}

.telem-lbl {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.telem-sub {
    font-size: 11px;
    color: #64748b;
}

.text-purple { color: #c084fc; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.step-card {
    background: #0d0722;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 24px;
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 14px;
}

.step-card h4 {
    font-size: 15px;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.step-card p {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.step-card code {
    background: #090417;
    color: #a78bfa;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .portal-messenger-wrap {
        grid-template-columns: 1fr;
    }
    .scanner-search-bar {
        flex-direction: column;
    }
    .portal-grid-2,
    .purchase-form-grid-2,
    .spacesite-input-grid-2 {
        grid-template-columns: 1fr;
    }
    .portal-hero-card {
        flex-direction: column;
        align-items: stretch;
    }
    .countdown-card {
        width: 100%;
    }
    .spacesite-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .sec-stream-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================================
   13. DWUSTOPNIOWA NAWIGACJA ZAKŁADEK (TIER 1 + TIER 2) & MODALE BAZOWE
   ========================================================================= */

/* TIER 1: 3 GŁÓWNE ZAKŁADKI KATEGORII */
.spacesite-main-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
    width: 100%;
}

.main-cat-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(14, 8, 32, 0.75);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    outline: none;
}

.main-cat-btn:hover {
    background: rgba(26, 14, 58, 0.85);
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.18);
}

.main-cat-btn.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.28) 0%, rgba(76, 29, 149, 0.2) 100%);
    border-color: #8b5cf6;
    box-shadow: 0 6px 28px rgba(124, 58, 237, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.main-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c084fc;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.main-cat-btn:hover .main-cat-icon {
    border-color: rgba(168, 85, 247, 0.5);
    color: #e9d5ff;
}

.main-cat-btn.active .main-cat-icon {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: #a855f7;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45);
}

.main-cat-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.main-cat-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-cat-btn.active .main-cat-title {
    color: #ffffff;
}

.main-cat-subtitle {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-cat-btn.active .main-cat-subtitle {
    color: #c4b5fd;
}

.main-cat-indicator {
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: transparent;
    border-radius: 3px 3px 0 0;
    transition: all 0.25s ease;
}

.main-cat-btn.active .main-cat-indicator {
    background: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

/* TIER 2: PASEK PODZAKŁADEK (SUBTABS CONTAINER) */
.spacesite-subnav-container {
    background: rgba(12, 6, 28, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 14px;
    padding: 8px 12px;
    margin-bottom: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.spacesite-subnav-group {
    display: none;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.spacesite-subnav-group.active {
    display: flex;
}

.spacesite-subnav-container .portal-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(24, 13, 50, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
}

.spacesite-subnav-container .portal-tab-btn:hover {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.spacesite-subnav-container .portal-tab-btn.active {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: #a855f7;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
    font-weight: 700;
}

.spacesite-subnav-container .portal-tab-btn .tab-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #c084fc;
    transition: color 0.2s ease;
}

.spacesite-subnav-container .portal-tab-btn.active .tab-icon {
    color: #ffffff;
}

/* BAZOWE BEZPIECZNE STYLE MODALI */
.spacesite-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.spacesite-modal[style*="display: none"],
.spacesite-modal[style*="display:none"] {
    display: none !important;
    pointer-events: none !important;
}

.spacesite-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 3, 14, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.spacesite-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: auto;
}

/* =========================================================================
   14. NOWY MODAL ZGŁOSZENIA & KARTY WYBORU PRIORYTETU
   ========================================================================= */
.spacesite-modal-ticket-dialog {
    max-width: 680px !important;
}

.form-group-ticket {
    margin-bottom: 20px;
}

.form-group-ticket label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.form-group-ticket .req-star {
    color: #f43f5e;
}

.ticket-input,
.ticket-textarea {
    width: 100%;
    background: #0d071e;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.ticket-input:focus,
.ticket-textarea:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
    background: #140b2e;
}

.ticket-priority-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.priority-card {
    background: rgba(22, 12, 45, 0.7);
    border: 1.5px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 14px 14px 12px 14px;
    cursor: pointer;
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    user-select: none;
}

.priority-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(29, 16, 61, 0.9);
    transform: translateY(-2px);
}

.priority-card.active {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.16);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.priority-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-green { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.dot-yellow { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.6); }
.dot-red { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.7); }

.priority-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    flex: 1;
}

.priority-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
}

.badge-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-yellow { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-red { background: rgba(239, 68, 68, 0.25); color: #f87171; font-weight: 800; }

.priority-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}

/* =========================================================================
   15. CUSTOMOWE ZARZĄDZANIE PŁATNOŚCIAMI I MODAL SZCZEGÓŁÓW
   ========================================================================= */
.order-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.spacesite-btn-order-details {
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 8px;
    color: #c084fc;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spacesite-btn-order-details:hover {
    background: #8b5cf6;
    color: #ffffff;
    border-color: #8b5cf6;
}

.spacesite-btn-order-pay {
    padding: 6px 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.spacesite-btn-order-pay:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.spacesite-btn-order-cancel {
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #f87171;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spacesite-btn-order-cancel:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.spacesite-modal-order-dialog {
    max-width: 640px !important;
}

.order-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: #0d071e;
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 12px;
    padding: 18px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-weight: 600;
}

.detail-val {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.detail-val-total {
    font-size: 18px;
    font-weight: 800;
    color: #c084fc;
}

.order-items-breakdown {
    background: #0d071e;
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 12px;
    padding: 16px;
}

/* =========================================================================
   16. TESTER SZYBKOŚCI & TRUST BADGE GENERATOR
   ========================================================================= */
.speed-hero-score {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 18px;
}

.speed-score-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #10b981;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    flex-shrink: 0;
}

.speed-number {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.speed-out-of {
    font-size: 10px;
    color: #a7f3d0;
    margin-top: 2px;
}

.speed-score-text h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #ffffff;
}

.speed-score-text p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.speed-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.speed-stat-box {
    background: #0d071e;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.speed-metric-lbl {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.speed-metric-val {
    font-size: 15px;
    font-weight: 700;
}

.speed-metric-hint {
    font-size: 11px;
    color: #64748b;
}

.trust-badge-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.trust-col-lbl {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-badge-widget {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: #090416;
    border: 1px solid rgba(168, 85, 247, 0.45);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.tb-shield-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tb-shield-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.tb-shield-desc {
    display: block;
    font-size: 11px;
    color: #c084fc;
}

.tb-shield-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    position: absolute;
    top: 12px;
    right: 12px;
}

.badge-code-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-code-area {
    width: 100%;
    background: #090416;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    color: #cbd5e1;
    font-family: monospace;
    font-size: 11px;
    resize: none;
    outline: none;
}

@media (max-width: 900px) {
    .spacesite-main-tabs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .main-cat-indicator {
        display: none;
    }
    .spacesite-subnav-group {
        justify-content: stretch;
    }
    .spacesite-subnav-container .portal-tab-btn {
        flex: 1;
        justify-content: center;
    }
    .ticket-priority-cards {
        grid-template-columns: 1fr;
    }
    .speed-metrics-row,
    .trust-badge-columns,
    .order-details-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   3-DAY FREE TRIAL HERO CARD & ANTI-ABUSE UI
   ========================================================================== */
.trial-hero-card {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 15, 53, 0.95), rgba(15, 8, 33, 0.98));
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
}

.trial-hero-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.22), transparent 70%);
    pointer-events: none;
}

/* Stan: Oferta Darmowego Testu */
.trial-hero-card.trial-offer-state {
    border-color: rgba(168, 85, 247, 0.45);
    background: linear-gradient(135deg, #180c35 0%, #100624 100%);
}

.trial-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.trial-offer-badge svg {
    color: #c084fc;
}

.trial-offer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 32px;
    align-items: center;
}

.trial-offer-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.trial-offer-info p {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.55;
    margin: 0 0 16px 0;
}

.trial-features-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trial-bullet {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 500;
}

.trial-bullet .check-icon {
    width: 16px;
    height: 16px;
    color: #10b981;
    flex-shrink: 0;
}

.trial-form-wrap {
    background: rgba(9, 4, 22, 0.65);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    padding: 20px;
}

.trial-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e9d5ff;
    margin-bottom: 10px;
}

.trial-input-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trial-domain-input-box {
    display: flex;
    align-items: center;
    background: #090416;
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.trial-domain-input-box:focus-within {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.trial-input-prefix {
    padding: 0 0 0 14px;
    color: #94a3b8;
    font-size: 13px;
    font-family: monospace;
    user-select: none;
}

.trial-domain-input-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.trial-domain-input-box input::placeholder {
    color: #64748b;
}

.spacesite-btn-trial-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    color: #ffffff;
    border: 1px solid rgba(192, 132, 252, 0.4);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.35);
}

.spacesite-btn-trial-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

.spacesite-btn-trial-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.trial-anti-abuse-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 10px;
    line-height: 1.4;
}

.trial-anti-abuse-notice svg {
    color: #a855f7;
    flex-shrink: 0;
}

.trial-feedback-box {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
    line-height: 1.4;
}

.trial-feedback-box.trial-msg-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.trial-feedback-box.trial-msg-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

/* Stan: Test Aktywny */
.trial-hero-card.trial-active-state {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #0c201a 0%, #0d1326 100%);
}

.trial-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.trial-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trial-pill-active {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
}

.trial-pill-expired {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
}

.trial-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.trial-active-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.trial-active-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.trial-active-text p {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
}

.spacesite-btn-trial-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: #e9d5ff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.spacesite-btn-trial-upgrade:hover {
    background: rgba(168, 85, 247, 0.35);
    border-color: #a855f7;
    color: #ffffff;
}

/* Stan: Test Wygasł */
.trial-hero-card.trial-expired-state {
    border-color: rgba(239, 68, 68, 0.35);
    background: linear-gradient(135deg, #1a0b12 0%, #130a27 100%);
}

.trial-expired-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.trial-expired-content p {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.55;
    margin: 0;
}

/* ==========================================================================
   TAB: KATALOG 50 MODUŁÓW SHIELD
   ========================================================================== */
.catalog-tier-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: linear-gradient(135deg, #150b2e 0%, #0d061e 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 18px;
    padding: 24px 30px;
    margin-bottom: 24px;
}

.tier-banner-badge {
    margin-bottom: 8px;
}

.badge-pkg-crown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-pkg-standard {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #c084fc;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-pkg-basic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #60a5fa;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-pkg-inactive {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.tier-banner-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.tier-banner-info h3 strong {
    color: #c084fc;
}

.tier-banner-info p {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0 0 12px 0;
    max-width: 720px;
}

.tier-progress-track {
    width: 100%;
    max-width: 460px;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.tier-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9333ea, #d946ef);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.catalog-controls-card {
    background: #110826;
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.catalog-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.catalog-search-wrap .search-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.catalog-search-wrap input {
    width: 100%;
    background: #090416;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 10px;
    padding: 12px 40px 12px 42px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-search-wrap input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

#btn-clear-catalog-search {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

#btn-clear-catalog-search:hover {
    color: #ffffff;
}

.catalog-category-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.module-cat-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.module-cat-pill:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.35);
    color: #e9d5ff;
}

.module-cat-pill.active {
    background: #9333ea;
    border-color: #a855f7;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(147, 51, 234, 0.4);
}

.catalog-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.catalog-module-card {
    background: #130a27;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-module-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 8px 24px -5px rgba(0, 0, 0, 0.5);
}

.catalog-module-card.is-locked {
    opacity: 0.88;
    background: #0f0720;
    border-color: rgba(139, 92, 246, 0.15);
}

.module-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.module-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.15);
}

.cat-icon-waf { color: #f43f5e; background: rgba(244, 63, 94, 0.15); }
.cat-icon-login { color: #f59e0b; background: rgba(245, 158, 11, 0.15); }
.cat-icon-seo { color: #10b981; background: rgba(16, 185, 129, 0.15); }
.cat-icon-speed { color: #06b6d4; background: rgba(6, 182, 212, 0.15); }
.cat-icon-database { color: #8b5cf6; background: rgba(139, 92, 246, 0.15); }
.cat-icon-files { color: #ec4899; background: rgba(236, 72, 153, 0.15); }
.cat-icon-headers { color: #3b82f6; background: rgba(59, 130, 246, 0.15); }

.module-cat-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.module-card-body {
    flex: 1;
    margin-bottom: 16px;
}

.module-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.module-desc {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
}

.module-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.module-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 12px;
}

.module-status-badge.is-active-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.module-locked-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.module-status-badge.is-locked-badge {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.module-status-badge.badge-tier-standard {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
    border-color: rgba(168, 85, 247, 0.3);
}

.module-status-badge.badge-tier-pro {
    background: rgba(245, 158, 11, 0.15);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.35);
}

.btn-module-upgrade {
    background: none;
    border: none;
    color: #c084fc;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 3px 6px;
    transition: color 0.2s;
}

.btn-module-upgrade:hover {
    color: #ffffff;
    text-decoration: underline;
}

.catalog-no-results-box {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.catalog-no-results-box svg {
    margin-bottom: 12px;
    color: #64748b;
}

.catalog-no-results-box h4 {
    font-size: 16px;
    color: #cbd5e1;
    margin: 0 0 6px 0;
}

.catalog-no-results-box p {
    font-size: 13px;
    margin: 0;
}

@media (max-width: 768px) {
    .trial-offer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .trial-active-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .catalog-tier-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .catalog-modules-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   UNIVERSAL SPACESITE MODAL SYSTEM & CLEAN CLOSE BUTTON (FIXED)
   ========================================================================== */
.spacesite-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.spacesite-modal-backdrop {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(6, 2, 16, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    z-index: 1 !important;
}

.spacesite-modal-dialog {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 600px !important;
    max-height: 90vh !important;
    background: #0f0822 !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
    border-radius: 18px !important;
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(168, 85, 247, 0.22) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: ssModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.spacesite-modal-ticket-dialog {
    max-width: 660px !important;
}

.spacesite-modal-order-dialog {
    max-width: 620px !important;
}

.spacesite-modal-header {
    background: linear-gradient(135deg, #150b2e 0%, #1c0e3e 100%) !important;
    border-bottom: 1px solid rgba(168, 85, 247, 0.22) !important;
    padding: 18px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    position: relative !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.modal-header-icon-title {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.modal-header-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4) !important;
    flex-shrink: 0 !important;
}

.spacesite-modal-title {
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
}

.spacesite-modal-subtitle {
    margin: 4px 0 0 0 !important;
    font-size: 12.5px !important;
    color: #c4b5fd !important;
    line-height: 1.35 !important;
}

/* Perfekcyjny przycisk zamykania modala (Eliminacja brzydkiego kwadratu) */
.spacesite-modal-close,
.purchase-modal-close {
    all: unset !important;
    box-sizing: border-box !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.spacesite-modal-close svg,
.purchase-modal-close svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
}

.spacesite-modal-close:hover,
.purchase-modal-close:hover {
    background: rgba(244, 63, 94, 0.25) !important;
    color: #fda4af !important;
    border-color: rgba(244, 63, 94, 0.5) !important;
    transform: rotate(90deg) scale(1.05) !important;
}

.spacesite-modal-body {
    padding: 22px 24px !important;
    overflow-y: auto !important;
    max-height: calc(90vh - 150px) !important;
    box-sizing: border-box !important;
}

.spacesite-modal-footer {
    background: rgba(10, 5, 24, 0.6) !important;
    border-top: 1px solid rgba(168, 85, 247, 0.18) !important;
    padding: 16px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   FORMULARZ I KARTY PRIORYTETÓW W ZGŁOSZENIU (TICKET MODAL)
   ========================================================================== */
.form-group-ticket {
    margin-bottom: 18px;
}

.form-group-ticket label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.req-star {
    color: #f43f5e;
    font-weight: 800;
}

.ticket-input,
.ticket-textarea {
    width: 100% !important;
    background: #090416 !important;
    border: 1px solid rgba(168, 85, 247, 0.28) !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-family: inherit !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.ticket-input:focus,
.ticket-textarea:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25) !important;
}

.ticket-priority-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.priority-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.priority-card:hover {
    border-color: rgba(168, 85, 247, 0.45);
    background: rgba(168, 85, 247, 0.08);
}

.priority-card.active {
    border-color: #a855f7 !important;
    background: rgba(168, 85, 247, 0.16) !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.3) !important;
}

.priority-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.dot-yellow { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.dot-red { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

.priority-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.priority-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: auto;
    text-transform: uppercase;
}

.badge-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-yellow { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-red { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.priority-desc {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.35;
    margin: 0;
}

@media (max-width: 640px) {
    .ticket-priority-cards {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MODAL SZCZEGÓŁÓW ZAMÓWIENIA (ORDER DETAILS MODAL)
   ========================================================================== */
.order-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-lbl {
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-val {
    font-size: 13.5px;
    color: #f1f5f9;
    font-weight: 600;
}

.detail-val-total {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
}

/* ==========================================================================
   PRZEŁĄCZNIK OKRESU ROZLICZENIOWEGO (1, 3, 6, 12 MIESIĘCY)
   ========================================================================== */
.pricing-period-selector-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 34px auto;
    text-align: center;
}

.pricing-period-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.pricing-period-buttons {
    display: inline-flex;
    background: rgba(14, 7, 32, 0.85);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.period-tab-btn {
    all: unset;
    box-sizing: border-box;
    padding: 10px 18px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.period-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.period-tab-btn.is-active {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45) !important;
}

.period-badge-save {
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    line-height: 1;
}

.period-tab-btn.is-active .period-badge-save {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.pricing-period-subtotal {
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 6px;
    font-weight: 600;
    background: rgba(168, 85, 247, 0.12);
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
}

.pkg-duration-pill {
    display: inline-block;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
}

/* ==========================================================================
   3 ZRÓŻNICOWANE KOLORYSTYKI PAKIETÓW (CYAN / FIOLET / ZŁOTO)
   ========================================================================== */
/* Karta 1: Pakiet Start (Turkus / Cyan) */
.spacesite-price-card.pkg-theme-cyan {
    border-color: rgba(6, 182, 212, 0.4) !important;
}

.spacesite-price-card.pkg-theme-cyan:hover {
    border-color: rgba(6, 182, 212, 0.8) !important;
    box-shadow: 0 20px 50px -10px rgba(6, 182, 212, 0.35) !important;
}

.spacesite-price-card.pkg-theme-cyan .pricing-card-badge {
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: #38bdf8;
}

.spacesite-price-card.pkg-theme-cyan .pricing-card-title {
    color: #38bdf8;
}

.spacesite-price-card.pkg-theme-cyan .check-icon {
    color: #22d3ee;
}

.spacesite-price-card.pkg-theme-cyan .spacesite-btn-outline:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
    color: #ffffff;
}

/* Karta 2: Pakiet Standard (Electric Violet / Purpurowy) */
.spacesite-price-card.pkg-theme-purple {
    border-color: rgba(168, 85, 247, 0.5) !important;
}

.spacesite-price-card.pkg-theme-purple:hover {
    border-color: rgba(168, 85, 247, 0.85) !important;
    box-shadow: 0 20px 50px -10px rgba(168, 85, 247, 0.4) !important;
}

.spacesite-price-card.pkg-theme-purple .pricing-card-badge {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.spacesite-price-card.pkg-theme-purple .pricing-card-title {
    color: #c084fc;
}

.spacesite-price-card.pkg-theme-purple .check-icon {
    color: #c084fc;
}

/* Karta 3: Pakiet VIP / Enterprise (Luxury Gold / Amber) */
.spacesite-price-card.pkg-theme-gold {
    border-color: rgba(245, 158, 11, 0.45) !important;
}

.spacesite-price-card.pkg-theme-gold:hover {
    border-color: rgba(245, 158, 11, 0.85) !important;
    box-shadow: 0 20px 50px -10px rgba(245, 158, 11, 0.35) !important;
}

.spacesite-price-card.pkg-theme-gold .pricing-card-badge {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.spacesite-price-card.pkg-theme-gold .pricing-card-title {
    color: #fbbf24;
}

.spacesite-price-card.pkg-theme-gold .check-icon {
    color: #fbbf24;
}

.spacesite-price-card.pkg-theme-gold .spacesite-btn-outline:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #ffffff;
}

/* ==========================================================================
   PORADNIK DLA KLIENTA: JAK ZACZĄĆ W 4 PROSTYCH KROKACH
   ========================================================================== */
.client-guide-card {
    background: linear-gradient(135deg, #110826 0%, #160a33 100%);
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 18px;
    padding: 26px 30px;
    margin-top: 28px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.client-guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.18);
}

.guide-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.guide-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.guide-subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.4;
}

.guide-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.client-guide-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.guide-step-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.guide-step-item:hover {
    transform: translateY(-3px);
    border-color: rgba(168, 85, 247, 0.45);
    background: rgba(168, 85, 247, 0.06);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.step-num-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.25);
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: #c084fc;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.guide-step-item h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.guide-step-item p {
    margin: 0 0 14px 0;
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.5;
    flex: 1;
}

.guide-step-item code {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c084fc;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11.5px;
}

.guide-action-link {
    all: unset;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #c084fc;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.guide-action-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .client-guide-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .client-guide-steps-grid {
        grid-template-columns: 1fr;
    }
    .client-guide-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


