/* --- 1. GLOBALNE USTAWIENIA & RESET --- */
.woocommerce-account .page-title, .woocommerce-account h1, .woocommerce-MyAccount-header, .woocommerce-MyAccount-content > p { display: none !important; }
.woocommerce-account .woocommerce { 
    display: flex; gap: 48px; align-items: flex-start; margin: 40px auto 0 auto; padding: 0 20px;
}

/* --- 2. LEWE MENU (PREMIUM SIDEBAR) --- */
.woocommerce-MyAccount-navigation { 
    flex: 0 0 260px; background: #ffffff; border-radius: 24px; padding: 24px; 
    border: 1px solid rgba(226, 232, 240, 0.8); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    margin-top: 85px; position: sticky; top: 100px;
}
.woocommerce-MyAccount-navigation ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.woocommerce-MyAccount-navigation ul li { margin-bottom: 6px !important; }
.woocommerce-MyAccount-navigation ul li a { 
    display: flex !important; align-items: center !important; padding: 14px 18px !important; 
    color: #475569 !important; font-weight: 500 !important; font-size: 14.5px !important; 
    text-decoration: none !important; border-radius: 14px !important; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.woocommerce-MyAccount-navigation ul li a:hover { background: #f1f5f9; color: #4f46e5; }
.woocommerce-MyAccount-navigation ul li.is-active a { 
    background: #4f46e5 !important; color: #fff !important; 
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2); 
}

/* --- 3. IKONY MENU (LINE AWESOME) --- */
.woocommerce-MyAccount-navigation ul li a::before { 
    font-family: "Line Awesome Free" !important; font-weight: 900 !important; font-size: 20px !important; 
    margin-right: 14px !important; width: 24px !important; text-align: center !important; opacity: 0.7; 
}
.woocommerce-MyAccount-navigation-link--dashboard a::before { content: "\f0e4" !important; }
.woocommerce-MyAccount-navigation-link--orders a::before { content: "\f463" !important; }
.woocommerce-MyAccount-navigation-link--downloads a::before { content: "\f0ed" !important; }
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: "\f2b9" !important; }
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: "\f4fc" !important; }
.woocommerce-MyAccount-navigation-link--licenses a::before { content: "\f084" !important; }
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\f2f5" !important; }

/* --- 4. DASHBOARD (GLASS & SHADOW) --- */
.kds-dash-header { 
    display: flex; align-items: center; gap: 24px; margin-bottom: 40px; 
    background: #fff; padding: 28px; border-radius: 24px; border: 1px solid #f1f5f9;
}
.kds-avatar-circle { 
    width: 64px; height: 64px; background: linear-gradient(135deg, #6366f1, #4f46e5); 
    color: #fff; border-radius: 20px; display: flex; align-items: center; justify-content: center; 
    font-size: 24px; font-weight: 700; box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3); 
}
.kds-dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.kds-dash-card { 
    background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 24px; 
    text-decoration: none; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
}
.kds-dash-card:hover { border-color: #4f46e5; transform: translateY(-8px); box-shadow: 0 20px 30px rgba(0,0,0,0.06); }
.kds-dash-icon { 
    width: 48px; height: 48px; background: #eef2ff; color: #4f46e5; 
    border-radius: 14px; display: flex; align-items: center; justify-content: center; 
    font-size: 24px; margin-bottom: 20px; 
}
.kds-dash-title { color: #0f172a; font-size: 16px; margin: 0 0 6px; font-weight: 700; }
.kds-dash-desc { color: #94a3b8; font-size: 13px; margin: 0; line-height: 1.5; }

/* --- 5. RESPONSYWNOŚĆ --- */
@media (max-width: 992px) {
    .woocommerce-account .woocommerce { flex-direction: column; gap: 20px; }
    .woocommerce-MyAccount-navigation { flex: none; width: 100%; margin-top: 0; }
}
.kds-page-header { margin-bottom: 40px; }
.kds-header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.kds-status-badge { 
    background: #ecfdf5; color: #059669; padding: 6px 12px; 
    border-radius: 20px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px;
}

.kds-notice-bar { 
    margin-top: 20px; padding: 12px 16px; background: #fffbeb; border: 1px solid #fde68a; 
    border-radius: 12px; color: #92400e; font-size: 14px; display: flex; align-items: center; gap: 10px;
}
/* Dodatek dla strzałki w kafelku */
.kds-card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #4f46e5;
}

.kds-dash-card:hover .kds-card-arrow {
    opacity: 1;
    right: 25px;
}

.kds-dash-card {
    position: relative; /* Wymagane dla pozycjonowania strzałki */
}
.status-warning .kds-stat-value {
    color: #ef4444 !important; /* Czerwień dla nieopłaconych */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}
/* Stylizacja listy plików */
.kds-downloads-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }

.kds-download-card { 
    background: #fff; padding: 20px; border-radius: 16px; border: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
    transition: 0.3s;
}

.kds-download-card:hover { border-color: #4f46e5; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.05); }

.kds-download-info h4 { margin: 0 0 4px; color: #0f172a; font-size: 15px; }
.kds-download-info p { margin: 0; color: #94a3b8; font-size: 12px; }

.kds-btn-download { 
    background: #f1f5f9; color: #475569; padding: 10px 20px; border-radius: 10px;
    text-decoration: none; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px;
}
.kds-btn-download:hover { background: #4f46e5; color: #fff; }

.kds-empty-state { padding: 40px; text-align: center; color: #94a3b8; border: 2px dashed #e2e8f0; border-radius: 20px; }
/* Siatka adresów */
.kds-address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
