/**
 * ZooPet Club - Style
 * IZOLOWANE - wszystkie style działają tylko na elementy z klasą .zoopet-*
 */

/* === ZMIENNE CSS === */
:root {
    --zoopet-primary: #6366f1;
    --zoopet-primary-light: #818cf8;
    --zoopet-secondary: #10b981;
    --zoopet-accent: #f59e0b;
    --zoopet-error: #ef4444;
    --zoopet-warning: #f59e0b;
    --zoopet-success: #10b981;
    --zoopet-text: #1f2937;
    --zoopet-text-light: #6b7280;
    --zoopet-border: #e5e7eb;
    --zoopet-bg: #ffffff;
    --zoopet-bg-light: #f9fafb;
    --zoopet-radius: 12px;
    --zoopet-radius-sm: 8px;
    --zoopet-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --zoopet-shadow-lg: 0 4px 15px rgba(0,0,0,0.1);
    --zoopet-transition: all 0.2s ease;
}

/* === RESET TYLKO DLA ZOOPET === */
[class^="zoopet-"],
[class*=" zoopet-"] {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* === BUTTONS === */
.zoopet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--zoopet-radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    transition: var(--zoopet-transition);
    border: none;
    line-height: 1.4;
}

.zoopet-btn-primary {
    background: var(--zoopet-primary) !important;
    color: var(--zpp-on-accent) !important;
}
.zoopet-btn-primary:hover {
    background: var(--zoopet-primary-light) !important;
    color: var(--zpp-on-accent) !important;
}

.zoopet-btn-outline {
    background: transparent !important;
    border: 1px solid var(--zoopet-border) !important;
    color: var(--zoopet-text) !important;
}
.zoopet-btn-outline:hover {
    border-color: var(--zoopet-primary) !important;
    color: var(--zoopet-primary) !important;
}

.zoopet-btn-text {
    background: transparent !important;
    color: var(--zoopet-text-light) !important;
    padding: 10px 12px;
}
.zoopet-btn-text:hover { 
    color: var(--zoopet-error) !important; 
}

.zoopet-btn-lg { padding: 14px 28px; font-size: 16px; }
.zoopet-btn-sm { padding: 6px 12px; font-size: 13px; }
.zoopet-btn-block { width: 100%; }
.zoopet-btn-disabled { opacity: 0.5; cursor: not-allowed; }

/* === WELCOME CARD === */
.zoopet-welcome-card {
    background: linear-gradient(135deg, var(--zoopet-primary), var(--zoopet-primary-light));
    color: var(--zpp-on-accent);
    padding: 24px 30px;
    border-radius: var(--zoopet-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.zoopet-welcome-card h2 { 
    margin: 0 0 4px 0; 
    font-size: 24px; 
    color: var(--zpp-on-accent);
}
.zoopet-welcome-card p { 
    margin: 0; 
    opacity: 0.9; 
    color: var(--zpp-on-accent);
}
.zoopet-welcome-logo {
    max-height: 50px;
    margin-bottom: 10px;
}

.zoopet-tier-badge {
    padding: 10px 20px;
    border-radius: 50px;
    text-align: center;
}
.zoopet-tier-badge .zoopet-tier-name { 
    display: block; 
    font-weight: 600; 
    color: var(--zpp-on-accent);
}
.zoopet-tier-badge .zoopet-tier-multiplier { 
    font-size: 12px; 
    opacity: 0.9; 
    color: var(--zpp-on-accent);
}

/* === STATS GRID === */
.zoopet-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.zoopet-stat-card {
    background: var(--zoopet-bg);
    border: 1px solid var(--zoopet-border);
    border-radius: var(--zoopet-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.zoopet-stat-icon { font-size: 28px; }
.zoopet-stat-value { 
    font-size: 28px; 
    font-weight: 700; 
    color: var(--zoopet-text); 
}
.zoopet-stat-label { 
    font-size: 13px; 
    color: var(--zoopet-text-light); 
}
.zoopet-stat-warning { 
    font-size: 12px; 
    color: var(--zoopet-warning); 
    margin-top: 8px; 
}

/* === BIRTHDAY ALERT === */
.zoopet-birthday-alert {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: var(--zoopet-radius);
    padding: 20px;
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.zoopet-birthday-icon { font-size: 32px; }
.zoopet-birthday-content h4 { 
    margin: 0 0 8px 0; 
    color: #92400e; 
}
.zoopet-birthday-content p { 
    margin: 4px 0; 
    color: #78350f; 
}

/* === SECTION === */
.zoopet-section {
    background: var(--zoopet-bg);
    border: 1px solid var(--zoopet-border);
    border-radius: var(--zoopet-radius);
    padding: 24px;
    margin-bottom: 24px;
}
.zoopet-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.zoopet-section-header h3 { 
    margin: 0; 
    font-size: 18px; 
    color: var(--zoopet-text);
}
.zoopet-link { 
    color: var(--zoopet-primary) !important; 
    text-decoration: none !important; 
    font-size: 14px; 
}

/* === ANIMALS === */
.zoopet-animals-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.zoopet-animal-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--zoopet-bg-light);
    border-radius: var(--zoopet-radius-sm);
}
.zoopet-animal-mini-card .zoopet-animal-name { 
    font-weight: 600; 
    display: block; 
    color: var(--zoopet-text);
}
.zoopet-animal-mini-card .zoopet-animal-type { 
    font-size: 13px; 
    color: var(--zoopet-text-light); 
}

/* === QUICK LINKS === */
.zoopet-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.zoopet-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--zoopet-bg);
    border: 1px solid var(--zoopet-border);
    border-radius: var(--zoopet-radius);
    text-decoration: none !important;
    color: var(--zoopet-text) !important;
    transition: var(--zoopet-transition);
}
.zoopet-quick-link:hover {
    border-color: var(--zoopet-primary);
    box-shadow: var(--zoopet-shadow-lg);
    transform: translateY(-2px);
}
.zoopet-quick-icon { font-size: 24px; }

/* === EMPTY STATE === */
.zoopet-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--zoopet-bg-light);
    border-radius: var(--zoopet-radius);
}
.zoopet-empty-icon { 
    font-size: 48px; 
    margin-bottom: 16px; 
}
.zoopet-empty-state h4 { 
    margin: 0 0 8px 0; 
    color: var(--zoopet-text);
}
.zoopet-empty-state p { 
    color: var(--zoopet-text-light); 
    margin-bottom: 20px; 
}

/* === PAGE HEADER === */
.zoopet-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.zoopet-page-header h2 { 
    margin: 0; 
    color: var(--zoopet-text);
}

/* === ANIMALS GRID === */
.zoopet-animals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.zoopet-animal-card {
    background: var(--zoopet-bg);
    border: 1px solid var(--zoopet-border);
    border-radius: var(--zoopet-radius);
    overflow: hidden;
    transition: var(--zoopet-transition);
}
.zoopet-animal-card:hover { 
    box-shadow: var(--zoopet-shadow-lg); 
}

.zoopet-animal-header {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--zoopet-bg-light);
}
.zoopet-animal-header h3 { 
    margin: 0 0 4px 0; 
    color: var(--zoopet-text);
}
.zoopet-animal-type { 
    font-size: 13px; 
    color: var(--zoopet-text-light); 
}

.zoopet-animal-details {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.zoopet-detail-label { 
    display: block; 
    font-size: 12px; 
    color: var(--zoopet-text-light); 
}
.zoopet-detail-value { 
    font-weight: 500; 
    color: var(--zoopet-text);
}

.zoopet-animal-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--zoopet-border);
    display: flex;
    gap: 12px;
}

.zoopet-animal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.zoopet-animal-avatar img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.zoopet-animal-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zoopet-bg-light);
    font-size: 32px;
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

/* === FORM === */
.zoopet-back-link {
    color: var(--zoopet-text-light) !important;
    text-decoration: none !important;
    font-size: 14px;
    margin-bottom: 8px;
    display: inline-block;
}

.zoopet-form-section {
    background: var(--zoopet-bg);
    border: 1px solid var(--zoopet-border);
    border-radius: var(--zoopet-radius);
    padding: 24px;
    margin-bottom: 20px;
}
.zoopet-form-section h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--zoopet-border);
    color: var(--zoopet-text);
}

.zoopet-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.zoopet-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.zoopet-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--zoopet-text);
}
.zoopet-form-group input,
.zoopet-form-group select,
.zoopet-form-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--zoopet-border);
    border-radius: var(--zoopet-radius-sm);
    font-size: 14px;
    transition: var(--zoopet-transition);
    background: var(--zoopet-bg);
    color: var(--zoopet-text);
}
.zoopet-form-group input:focus,
.zoopet-form-group select:focus,
.zoopet-form-group textarea:focus {
    outline: none;
    border-color: var(--zoopet-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Checkbox groups */
.zoopet-checkbox-group {
    margin-bottom: 20px;
}
.zoopet-checkbox-group-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--zoopet-text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.zoopet-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.zoopet-checkbox-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--zoopet-bg-light);
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}
.zoopet-checkbox-item:hover {
    background: #e8e8ff;
}
.zoopet-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
/* Checked state - używamy :has() dla nowoczesnych przeglądarek */
.zoopet-checkbox-item:has(input:checked) {
    background: #e8e8ff;
    border-color: var(--zoopet-primary);
}
.zoopet-checkbox-item:has(input:checked) .zoopet-checkbox-icon,
.zoopet-checkbox-item:has(input:checked) .zoopet-checkbox-text {
    color: var(--zoopet-primary);
}
/* Fallback dla starszych przeglądarek - klasa dodawana przez JS */
.zoopet-checkbox-item.is-checked {
    background: #e8e8ff;
    border-color: var(--zoopet-primary);
}
.zoopet-checkbox-item.is-checked .zoopet-checkbox-icon,
.zoopet-checkbox-item.is-checked .zoopet-checkbox-text {
    color: var(--zoopet-primary);
}
.zoopet-checkbox-icon {
    font-size: 16px;
}
.zoopet-checkbox-text {
    white-space: nowrap;
}

.zoopet-photo-upload {
    display: flex;
    gap: 20px;
    align-items: center;
}
.zoopet-photo-preview {
    width: 100px;
    height: 100px;
    border-radius: var(--zoopet-radius);
    overflow: hidden;
    background: var(--zoopet-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.zoopet-photo-preview img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.zoopet-photo-placeholder { 
    font-size: 32px; 
    color: var(--zoopet-text-light); 
}
.zoopet-help-text { 
    font-size: 12px; 
    color: var(--zoopet-text-light); 
    margin-top: 4px; 
}

.zoopet-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* === POINTS PAGE === */
.zoopet-points-balance-card {
    background: linear-gradient(135deg, var(--zoopet-primary), #8b5cf6);
    color: var(--zpp-on-accent);
    padding: 30px;
    border-radius: var(--zoopet-radius);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}
.zoopet-balance-main { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
}
.zoopet-balance-icon { 
    font-size: 40px; 
}
.zoopet-balance-value { 
    font-size: 36px; 
    font-weight: 700; 
    display: block; 
    color: var(--zpp-on-accent);
}
.zoopet-balance-label { 
    opacity: 0.9; 
    color: var(--zpp-on-accent);
}
.zoopet-balance-warning { 
    background: rgba(255,255,255,0.2); 
    padding: 8px 16px; 
    border-radius: 50px;
    font-size: 13px;
    color: var(--zpp-on-accent);
}
.zoopet-points-balance-card .zoopet-btn { 
    background: var(--zpp-surface) !important; 
    color: var(--zoopet-primary) !important; 
}

/* === TIERS === */
.zoopet-tiers-section {
    background: var(--zoopet-bg);
    border: 1px solid var(--zoopet-border);
    border-radius: var(--zoopet-radius);
    padding: 24px;
    margin-bottom: 24px;
}
.zoopet-tiers-section h3 { 
    margin: 0 0 20px 0; 
    color: var(--zoopet-text);
}

.zoopet-tiers-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 16px;
}
.zoopet-tiers-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: var(--zoopet-border);
    z-index: 0;
}

.zoopet-tier-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}
.zoopet-tier-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zoopet-bg-light);
    border: 2px solid var(--zoopet-border);
    font-size: 18px;
}
.zoopet-tier-item.current .zoopet-tier-icon,
.zoopet-tier-item.achieved .zoopet-tier-icon {
    border-color: transparent;
    color: var(--zpp-on-accent);
}
.zoopet-tier-name { 
    font-weight: 600; 
    font-size: 13px; 
    color: var(--zoopet-text);
}
.zoopet-tier-req { 
    font-size: 11px; 
    color: var(--zoopet-text-light); 
}

.zoopet-progress-info {
    text-align: center;
    padding: 12px;
    background: var(--zoopet-bg-light);
    border-radius: var(--zoopet-radius-sm);
    color: var(--zoopet-text-light);
    font-size: 14px;
}

/* === HOW TO EARN === */
.zoopet-how-to-earn {
    background: var(--zoopet-bg);
    border: 1px solid var(--zoopet-border);
    border-radius: var(--zoopet-radius);
    padding: 24px;
    margin-bottom: 24px;
}
.zoopet-how-to-earn h3 { 
    margin: 0 0 16px 0; 
    color: var(--zoopet-text);
}

.zoopet-earn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.zoopet-earn-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--zoopet-bg-light);
    border-radius: var(--zoopet-radius-sm);
}
.zoopet-earn-icon { font-size: 24px; }
.zoopet-earn-info strong { 
    display: block; 
    color: var(--zoopet-text);
}
.zoopet-earn-info span { 
    font-size: 13px; 
    color: var(--zoopet-text-light); 
}

/* === HISTORY TABLE === */
.zoopet-points-history { margin-bottom: 24px; }
.zoopet-points-history h3 { 
    margin: 0 0 16px 0; 
    color: var(--zoopet-text);
}

.zoopet-history-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--zoopet-bg);
    border-radius: var(--zoopet-radius);
    overflow: hidden;
    border: 1px solid var(--zoopet-border);
}
.zoopet-history-table th,
.zoopet-history-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--zoopet-border);
    color: var(--zoopet-text);
}
.zoopet-history-table th {
    background: var(--zoopet-bg-light);
    font-weight: 600;
    font-size: 13px;
}
.zoopet-points-plus { 
    color: var(--zoopet-success) !important; 
    font-weight: 600; 
}
.zoopet-points-minus { 
    color: var(--zoopet-error) !important; 
    font-weight: 600; 
}

/* === REWARDS PAGE === */
.zoopet-rewards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.zoopet-balance-mini {
    background: var(--zoopet-bg);
    border: 1px solid var(--zoopet-border);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.zoopet-balance-mini strong { 
    color: var(--zoopet-primary); 
    font-size: 18px; 
}

.zoopet-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.zoopet-reward-card {
    background: var(--zoopet-bg);
    border: 1px solid var(--zoopet-border);
    border-radius: var(--zoopet-radius);
    overflow: hidden;
    transition: var(--zoopet-transition);
}
.zoopet-reward-card:hover { 
    box-shadow: var(--zoopet-shadow-lg); 
}
.zoopet-reward-locked { opacity: 0.7; }

.zoopet-reward-image {
    position: relative;
    background: var(--zoopet-bg-light);
}
.zoopet-reward-image img { 
    width: 100%; 
    height: 180px; 
    object-fit: contain; 
}
.zoopet-reward-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zpp-on-accent);
    font-size: 13px;
    padding: 20px;
    text-align: center;
}

.zoopet-reward-content { padding: 16px; }
.zoopet-reward-title { 
    margin: 0 0 12px 0; 
    font-size: 15px; 
    color: var(--zoopet-text);
}
.zoopet-reward-prices { margin-bottom: 16px; }
.zoopet-reward-points { 
    display: block; 
    font-size: 18px; 
    font-weight: 700; 
    color: var(--zoopet-primary); 
}
.zoopet-reward-value { 
    font-size: 13px; 
    color: var(--zoopet-text-light); 
}

/* === SUBSCRIPTIONS === */
.zoopet-subtitle { 
    color: var(--zoopet-text-light); 
    margin-top: -16px; 
    margin-bottom: 24px; 
}

.zoopet-subscriptions-list { margin-bottom: 40px; }

.zoopet-subscription-card {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 16px;
    align-items: center;
    background: var(--zoopet-bg);
    border: 1px solid var(--zoopet-border);
    border-radius: var(--zoopet-radius);
    padding: 20px;
    margin-bottom: 12px;
}

.zoopet-subscription-product {
    display: flex;
    gap: 16px;
    align-items: center;
}
.zoopet-subscription-product img { 
    width: 60px; 
    height: 60px; 
    object-fit: contain; 
    border-radius: 8px; 
}
.zoopet-subscription-product h4 { 
    margin: 0 0 4px 0; 
    color: var(--zoopet-text);
}
.zoopet-subscription-details { 
    font-size: 13px; 
    color: var(--zoopet-text-light); 
}
.zoopet-discount { 
    color: var(--zoopet-success) !important; 
    font-weight: 600; 
}

.zoopet-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}
.zoopet-badge-success { 
    background: #dcfce7; 
    color: #166534; 
}
.zoopet-badge-warning { 
    background: #fef3c7; 
    color: #92400e; 
}
.zoopet-badge-error { 
    background: #fee2e2; 
    color: #991b1b; 
}

.zoopet-subscription-delivery .zoopet-label { 
    display: block; 
    font-size: 12px; 
    color: var(--zoopet-text-light); 
}
.zoopet-subscription-actions { 
    display: flex; 
    gap: 8px; 
}

/* === BENEFITS === */
.zoopet-subscription-benefits {
    background: var(--zoopet-bg);
    border: 1px solid var(--zoopet-border);
    border-radius: var(--zoopet-radius);
    padding: 24px;
}
.zoopet-subscription-benefits h3 { 
    margin: 0 0 16px 0; 
    color: var(--zoopet-text);
}

.zoopet-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.zoopet-benefit {
    text-align: center;
    padding: 20px;
    background: var(--zoopet-bg-light);
    border-radius: var(--zoopet-radius-sm);
}
.zoopet-benefit-icon { 
    font-size: 32px; 
    display: block; 
    margin-bottom: 8px; 
}
.zoopet-benefit strong { 
    display: block; 
    margin-bottom: 4px; 
    color: var(--zoopet-text);
}
.zoopet-benefit span { 
    font-size: 13px; 
    color: var(--zoopet-text-light); 
}

/* === COUPONS === */
.zoopet-coupons-section { margin-bottom: 32px; }
.zoopet-coupons-section h3 { 
    margin: 0 0 16px 0; 
    color: var(--zoopet-text);
}

.zoopet-coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.zoopet-coupon-card {
    background: var(--zoopet-bg);
    border: 2px dashed var(--zoopet-border);
    border-radius: var(--zoopet-radius);
    padding: 20px;
    position: relative;
}
.zoopet-coupon-birthday { 
    border-color: var(--zoopet-accent); 
}

.zoopet-coupon-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--zoopet-accent);
    color: var(--zpp-on-accent);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.zoopet-coupon-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--zoopet-primary);
    margin-bottom: 12px;
}

.zoopet-coupon-code {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}
.zoopet-coupon-code code {
    flex: 1;
    padding: 10px;
    background: var(--zoopet-bg-light);
    border-radius: var(--zoopet-radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--zoopet-text);
    border: none;
}
.zoopet-copy-btn {
    padding: 10px;
    background: var(--zoopet-bg-light);
    border: none;
    border-radius: var(--zoopet-radius-sm);
    cursor: pointer;
}

.zoopet-coupon-desc { 
    margin: 0 0 8px 0; 
    font-size: 14px; 
    color: var(--zoopet-text);
}
.zoopet-coupon-expiry { 
    margin: 0; 
    font-size: 12px; 
    color: var(--zoopet-text-light); 
}

/* === CLUB PAGE === */
.zoopet-current-tier {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--zoopet-bg);
    border: 2px solid var(--zoopet-border);
    border-radius: var(--zoopet-radius);
    padding: 24px;
    margin-bottom: 32px;
}

.zoopet-tier-visual {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--zpp-on-accent);
    flex-shrink: 0;
}

.zoopet-tier-info .zoopet-tier-label {
    font-size: 12px;
    color: var(--zoopet-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.zoopet-tier-info h2 { 
    margin: 4px 0 16px 0; 
    color: var(--zoopet-text);
}
.zoopet-tier-benefits { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}
.zoopet-tier-benefits li { 
    padding: 4px 0; 
    color: var(--zoopet-success); 
}

.zoopet-all-tiers { margin-bottom: 32px; }
.zoopet-all-tiers h3 { 
    margin: 0 0 20px 0; 
    color: var(--zoopet-text);
}

.zoopet-tiers-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.zoopet-tier-compare-card {
    background: var(--zoopet-bg);
    border: 1px solid var(--zoopet-border);
    border-radius: var(--zoopet-radius);
    overflow: hidden;
    position: relative;
}
.zoopet-tier-compare-card.current { border-width: 2px; }

.zoopet-tier-current-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--zoopet-success);
    color: var(--zpp-on-accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.zoopet-tier-compare-card .zoopet-tier-header {
    padding: 20px;
    text-align: center;
    color: var(--zpp-on-accent);
}
.zoopet-tier-compare-card .zoopet-tier-icon { 
    font-size: 28px; 
    display: block; 
    margin-bottom: 8px; 
}
.zoopet-tier-compare-card h4 { 
    margin: 0; 
    color: var(--zpp-on-accent);
}

.zoopet-tier-body { padding: 20px; }
.zoopet-tier-body .zoopet-tier-req { 
    text-align: center; 
    margin-bottom: 16px; 
}
.zoopet-tier-body .zoopet-tier-req strong { 
    font-size: 24px; 
    display: block; 
    color: var(--zoopet-text);
}
.zoopet-tier-body .zoopet-tier-req span { 
    font-size: 13px; 
    color: var(--zoopet-text-light); 
}

.zoopet-tier-perks {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}
.zoopet-perk { text-align: center; }
.zoopet-perk-value { 
    display: block; 
    font-size: 20px; 
    font-weight: 700; 
    color: var(--zoopet-primary); 
}
.zoopet-perk-label { 
    font-size: 12px; 
    color: var(--zoopet-text-light); 
}

.zoopet-tier-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}
.zoopet-tier-benefits-list li { 
    padding: 6px 0; 
    border-bottom: 1px solid var(--zoopet-border); 
    color: var(--zoopet-text);
}
.zoopet-tier-benefits-list li:last-child { border: none; }

.zoopet-club-stats {
    background: var(--zoopet-bg);
    border: 1px solid var(--zoopet-border);
    border-radius: var(--zoopet-radius);
    padding: 24px;
}
.zoopet-club-stats h3 { 
    margin: 0 0 16px 0; 
    color: var(--zoopet-text);
}

.zoopet-stats-row {
    display: flex;
    gap: 40px;
}
.zoopet-stat { text-align: center; }
.zoopet-club-stats .zoopet-stat-value { 
    font-size: 32px; 
    font-weight: 700; 
    color: var(--zoopet-primary); 
    display: block; 
}
.zoopet-club-stats .zoopet-stat-label { 
    font-size: 13px; 
    color: var(--zoopet-text-light); 
}

/* === FOOTER TEXT === */
.zoopet-footer-text {
    text-align: center;
    padding: 20px;
    color: var(--zoopet-text-light);
    font-size: 14px;
}
.zoopet-footer-text p {
    margin: 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .zoopet-welcome-card { 
        flex-direction: column; 
        text-align: center; 
    }
    .zoopet-subscription-card { 
        grid-template-columns: 1fr; 
    }
    .zoopet-benefits-grid { 
        grid-template-columns: 1fr; 
    }
    .zoopet-tiers-progress { 
        flex-wrap: wrap; 
        gap: 16px; 
        justify-content: center; 
    }
    .zoopet-tiers-progress::before { 
        display: none; 
    }
    .zoopet-current-tier { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
    }
    .zoopet-stats-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* === DESKTOP IMPROVEMENTS === */
@media (min-width: 1024px) {
    .zoopet-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .zoopet-animals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .zoopet-coupons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .zoopet-rewards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .zoopet-tiers-comparison {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === EXTRA WIDE DESKTOP === */
@media (min-width: 1400px) {
    .zoopet-stats-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .zoopet-animals-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .zoopet-coupons-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === WORDPRESS WITHOUT THEME FIXES === */
body.woocommerce-account {
    background-color: #f5f7fa;
}

body.woocommerce-account .zoopet-section,
body.woocommerce-account .zoopet-welcome-card,
body.woocommerce-account .zoopet-stat-card,
body.woocommerce-account .zoopet-animal-card,
body.woocommerce-account .zoopet-coupon-card {
    background: var(--zoopet-bg);
}

/* ================================================================
   WOOCOMMERCE ACCOUNT PAGES - OVERRIDE STYLES
   Wysokie specyficzności żeby nadpisać style motywu
   ================================================================ */

/* === ZAMÓWIENIA - PUSTY STAN === */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message--info,
html body.woocommerce-account .woocommerce .woocommerce-info {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* === ADRESY - LAYOUT 2 KOLUMNY === */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
body.woocommerce-account .woocommerce-MyAccount-content .u-columns,
body.woocommerce-account .woocommerce-MyAccount-content .col2-set,
html body.woocommerce-account .woocommerce .woocommerce-Addresses,
html body.woocommerce-account .woocommerce .u-columns,
html body.woocommerce-account .woocommerce .col2-set {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses > div,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address,
body.woocommerce-account .woocommerce-MyAccount-content .u-columns > div,
body.woocommerce-account .woocommerce-MyAccount-content .u-columns .woocommerce-column,
body.woocommerce-account .woocommerce-MyAccount-content .u-columns .u-column1,
body.woocommerce-account .woocommerce-MyAccount-content .u-columns .u-column2,
body.woocommerce-account .woocommerce-MyAccount-content .col2-set > div,
body.woocommerce-account .woocommerce-MyAccount-content .col2-set .col-1,
body.woocommerce-account .woocommerce-MyAccount-content .col2-set .col-2,
html body.woocommerce-account .woocommerce .woocommerce-Addresses > div,
html body.woocommerce-account .woocommerce .u-columns > div,
html body.woocommerce-account .woocommerce .col2-set > div {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: none !important;
    padding: 24px !important;
    background: var(--zpp-surface) !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
    margin: 0 !important;
}

/* Nagłówek adresu */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-column__title,
html body.woocommerce-account .woocommerce .woocommerce-Address-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #f3f4f6 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h3,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-column__title,
html body.woocommerce-account .woocommerce .woocommerce-Address-title h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: var(--zpp-ink) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title a,
body.woocommerce-account .woocommerce-MyAccount-content .edit,
html body.woocommerce-account .woocommerce .woocommerce-Address-title a {
    color: var(--zoopet-primary, #6366f1) !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address,
html body.woocommerce-account .woocommerce .woocommerce-Address address {
    font-style: normal !important;
    line-height: 1.7 !important;
    color: var(--zpp-ink-2) !important;
}

/* === TABELA ZAMÓWIEŃ === */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table,
html body.woocommerce-account .woocommerce .woocommerce-orders-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: var(--zpp-surface) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table th,
html body.woocommerce-account .woocommerce .woocommerce-orders-table th {
    background: linear-gradient(135deg, var(--zpp-sunk) 0%, #f1f5f9 100%) !important;
    color: var(--zpp-ink-2) !important;
    padding: 18px 20px !important;
    font-weight: 600 !important;
    text-align: left !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border-bottom: 2px solid #e5e7eb !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td,
html body.woocommerce-account .woocommerce .woocommerce-orders-table td {
    padding: 20px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    vertical-align: middle !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table tr:last-child td,
html body.woocommerce-account .woocommerce .woocommerce-orders-table tr:last-child td {
    border-bottom: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
    body.woocommerce-account .woocommerce-MyAccount-content .u-columns,
    body.woocommerce-account .woocommerce-MyAccount-content .col2-set,
    html body.woocommerce-account .woocommerce .woocommerce-Addresses,
    html body.woocommerce-account .woocommerce .u-columns,
    html body.woocommerce-account .woocommerce .col2-set {
        grid-template-columns: 1fr !important;
    }
}
