/* Usage Badges Styling - COMPACT VERSION */
.usage-badges-container {
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.plan-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f3f4f6;
}

.plan-icon {
    font-size: 12px;
}

.plan-name {
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.anonymous-badge {
    background: #e0e7ff;
    color: #3730a3;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
}

.usage-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.usage-badge {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.usage-badge.near-limit {
    border-color: #f59e0b;
    background: #fffbeb;
}

.usage-badge.at-limit {
    border-color: #ef4444;
    background: #fef2f2;
}

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

.badge-icon {
    font-size: 11px;
}

.badge-label {
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
}

.usage-text {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.usage-progress {
    width: 100%;
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
}

.usage-badge.near-limit .progress-bar {
    background: #f59e0b;
}

.usage-badge.at-limit .progress-bar {
    background: #ef4444;
}

.limit-warning {
    font-size: 10px;
    color: #ef4444;
    margin-top: 2px;
    font-weight: 500;
}

.usage-refresh {
    margin-top: 8px;
    text-align: center;
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    color: #6b7280;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.refresh-icon {
    font-size: 10px;
}

.usage-badges-error {
    padding: 12px;
    text-align: center;
}

.error-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ef4444;
    font-size: 11px;
}

.plan-indicator.compact .plan-name {
    font-size: 10px; /* slightly smaller */
    padding: 1px 6px; /* less vertical padding */
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: none; /* Remove extra focus */
    display: inline-block;
    margin: 0; /* Remove default margin */
}

.error-retry {
    padding: 3px 6px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
}

/* ✅ KOMPAKTE PLAN INDICATOR VARIANTE */
.plan-indicator.compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 6px;
    padding-bottom: 4px;

    background-color: transparent !important;
    border: none !important;
}

/* ✅ Access Denied Animation */
.access-denied-animation {
    animation: accessDeniedShake 0.6s ease-in-out;
    border: 2px solid #ef4444 !important;
}

@keyframes accessDeniedShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* ✅ Feature locked styling enhancement */
.feature-locked {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed !important;
    filter: grayscale(50%);
}

.feature-locked:hover {
    opacity: 0.8;
    filter: grayscale(30%);
}

.plan-indicator.compact .plan-name {
    font-size: 11px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.plan-indicator.compact .plan-name.free {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.plan-indicator.compact .plan-name.plus {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.plan-indicator.compact .plan-name.pro {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

/* Feature Lock Styling */
.feature-locked {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed !important;
}

.lock-overlay {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 1px 3px;
    border-radius: 3px;
    font-size: 8px;
}

/* Upgrade Modal - auch kompakter */
.upgrade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upgrade-modal-overlay.show {
    opacity: 1;
}

.upgrade-modal {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-icon {
    font-size: 20px;
}

.modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #374151;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
}

.modal-content {
    padding: 16px;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 6px;
    margin-bottom: 12px;
}

.feature-icon {
    font-size: 20px;
}

.feature-info h4 {
    margin: 0 0 3px 0;
    color: #374151;
    font-size: 14px;
}

.feature-info p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
}

.upgrade-message {
    margin-bottom: 12px;
    font-size: 14px;
}

.current-plan {
    color: #6b7280;
    font-size: 12px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 12px 0;
}

.benefits-list li {
    padding: 2px 0;
    color: #374151;
    font-size: 12px;
}

.pricing-info {
    text-align: center;
    margin: 12px 0;
}

.price-display {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
}

.cancel-anytime {
    font-size: 10px;
    color: #6b7280;
    margin-top: 3px;
}

.modal-actions {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #e5e7eb;
}

.btn-secondary, .btn-primary {
    flex: 1;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.btn-secondary {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-primary {
    background: #059669;
    border: 1px solid #059669;
    color: white;
}

.btn-primary:hover {
    background: #047857;
}

