:root {
    /* Colors */
    --background-light: #ffffff;
    --nav-background: rgba(245, 245, 247, .8);
    --nav-color: rgba(0, 0, 0, .8);
    --nav-hover-color: #000000;
    --button-color: #0071e3;
    --button-hover-color: #0077ED;
    
    --linkt-color: #06c;
    --text-color: #06c;

    --feature-background-color: #0071e3;

    --text-secondary: #86868B;
    --border-color: rgba(0, 0, 0, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --button-shadow: rgba(0, 113, 227, 0.3);
    --card-background: #ffffff;
    --text-primary: #1d1d1f;
    --footer-background: #f5f5f7;
    --footer-textColor: #515154;
    --footer-textColor-hover: #1d1d1f;

    /* Font Sizes */
    --font-xs: 12px;
    --font-sm: 14px;
    --font-base: 16px;
    --font-lg: 20px;
    --font-xl: 22px;
    --font-2xl: 24px;

    /* Line Heights */
    --line-height-large: 170%;

    /* Andere */
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Font-Family Variablen */
    --font-family-heading: "SF Pro Display", -apple-system, BlinkMacSystemFont, 
        "Helvetica Neue";
    --font-family-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, 
        "Helvetica Neue";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
}

/* Dashboard Main Layout */
.dashboard-main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 160px);
}

.dashboard-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Dashboard Navigation */
.dashboard-nav {
    width: 280px;
    flex-shrink: 0;
}

.nav-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
    padding: 0;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #B8E6FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    text-align: left;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    font-family: var(--font-family-heading);
}

.profile-email {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: block;
    padding: 6px 8px 6px 0px;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font-family-body);
}

.nav-item:hover {
    color: var(--button-color);
}

.nav-item.active {
    color: var(--button-color);
    font-weight: 500;
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    min-width: 0;
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-family-heading);
    margin-bottom: 10px;
}

.dashboard-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

/* Dashboard Cards Grid */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(317px, 1fr));
    gap: 24px;
    max-width: 100%;
    justify-content: center;
    margin: 0 auto;
}

/* Remove any margin/padding that causes misalignment */
.subscription-section .dashboard-cards {
    margin: 0;
    padding: 0;
}

/* Special layout for subscription section */
.subscription-section .dashboard-cards {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 648px;
    width: 100%;
}

.subscription-section .inklory-subscription-card,
.subscription-section .upgrade-button-external,
.subscription-section .subscription-stats {
    margin-left: 0;
    margin-right: 0;
}

/* Dashboard Cards - Erweitert für Credit History */
.dashboard-card {
    background: linear-gradient(120deg, #fff 45%, #f5f5f5);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.dashboard-card:hover {
    /* Kein zusätzlicher Shadow-Effekt beim Hover */
}

.dashboard-card.clickable {
    cursor: pointer;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    order: 2;
}

.card-icon img {
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%) hue-rotate(202deg) brightness(97%) contrast(96%);
}

.card-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-family-heading);
    margin: 0;
    order: 1;
    flex: 1;
}

.card-content {
    flex: 1;
}

.card-item {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.card-item:last-child {
    margin-bottom: 0;
}



/* JSON Viewer */
.json-viewer {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 12px;
    color: #495057;
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 200px;
    overflow-y: auto;
}

/* Error State */
.error-message {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    padding: 16px;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 14px;
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top-color: var(--button-color);
    animation: spin 1s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-main {
        padding: 20px 16px;
        min-height: calc(100vh - 120px);
    }
    
    .dashboard-container {
        flex-direction: column;
        gap: 24px;
        max-width: 100%;
    }
    
    .dashboard-nav {
        width: 100%;
        order: 2;
    }
    
    .nav-profile {
        margin-bottom: 24px;
        padding: 0;
    }
    
    .profile-avatar {
        width: 50px;
        height: 50px;
    }
    
    .avatar-image {
        width: 32px;
        height: 32px;
    }
    
    .profile-name {
        font-size: 16px;
    }
    
    .profile-email {
        font-size: 13px;
    }
    
    .nav-menu {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 4px;
    }
    
    .nav-item {
        padding: 6px 8px 6px 0px;
        font-size: 15px;
        text-align: left;
    }
    
    .dashboard-content {
        order: 1;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }
    
    .dashboard-card {
        width: 100%;
        min-width: 280px;
    }
    
    .dashboard-card:nth-child(3) {
        grid-column: 1;
        justify-self: stretch;
    }
    
    .dashboard-title {
        font-size: 24px;
    }
    
    .dashboard-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 16px 12px;
    }
    
    .dashboard-card {
        padding: 16px;
        height: auto;
        min-height: 110px;
    }
    
    .card-title {
        font-size: 17px;
    }
    
    .card-item {
        font-size: 13px;
    }
}

/* Loading States */
.dashboard-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.dashboard-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    border-top-color: var(--button-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Inklory+ Subscription Card Styles */
.inklory-subscription-card {
    width: 648px;
    height: 270px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    padding: 40px;
    color: white;
    margin-bottom: 32px;
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.2),
        0 8px 16px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.subscription-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.subscription-header {
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 2;
    position: relative;
}

.subscription-title {
    font-size: 52px;
    font-weight: 800;
    font-family: var(--font-family-heading);
    margin: 0 0 auto 0;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subscription-plan-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 81px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.subscription-features {
    z-index: 2;
    position: relative;
}

.subscription-features h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.95;
}

.subscription-features h3 svg {
    opacity: 0.8;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    all: unset;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.1px;
    transition: color 0.2s ease;
}

.feature-item:hover {
    color: rgba(255, 255, 255, 1);
}

.feature-item span {
    flex: 1;
    font-family: var(--font-family-body);
}

.feature-item img {
    opacity: 0.7;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: opacity 0.2s ease;
}

.feature-item:hover img {
    opacity: 1;
}

.upgrade-button-external {
    margin: 24px 0;
    padding: 8px 12px;
    background: rgba(0, 113, 227, 0.08);
    border: none;
    border-radius: 8px;
    color: var(--button-color);
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-family-body);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    width: fit-content;
    min-width: auto;
}

.upgrade-button-external:hover {
    background: rgba(0, 113, 227, 0.15);
    transform: none;
    box-shadow: none;
}

.upgrade-button-external svg {
    opacity: 0.6;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Statistics Section */
.subscription-stats {
    margin-top: 24px;
    width: 100%;
    max-width: 648px;
}

.stats-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 16px;
    margin-left: 0;
}

.stats-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-family-heading);
    margin: 0;
}

.usage-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 648px;
    margin: 0;
    padding: 0;
}

.stat-item {
    background: linear-gradient(120deg, #fff 45%, #f5f5f5);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.stat-item:hover {
    /* Kein zusätzlicher Shadow-Effekt beim Hover */
}

.stat-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
    align-self: flex-start;
}

.stat-icon svg {
    opacity: 0.7;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-value {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: var(--font-family-heading);
    line-height: 1.2;
}

.stat-description {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 400;
}

.progress-container {
    position: relative;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--button-color);
    border-radius: 3px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Design für Inklory+ Card */
@media (max-width: 768px) {
    .inklory-subscription-card {
        width: 100%;
        max-width: 648px;
        height: auto;
        min-height: 260px;
        padding: 32px 24px 80px 24px;
    }
    
    .subscription-title {
        font-size: 40px;
    }
    
    .subscription-features h3 {
        font-size: 20px;
    }
    
    .feature-item {
        font-size: 15px;
        padding: 12px 16px;
        border-radius: 10px;
    }
    
    .subscription-plan-badge {
        bottom: 20px;
        right: 20px;
    }
    
    .usage-stats {
        gap: 16px;
    }
    
    .stat-item {
        padding: 20px;
        gap: 12px;
    }
    
    .stat-icon {
        width: 28px;
        height: 28px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .inklory-subscription-card {
        padding: 28px 20px 70px 20px;
        height: auto;
        min-height: 240px;
    }
    
    .subscription-title {
        font-size: 32px;
    }
    
    .subscription-plan-badge {
        width: 70px;
        height: 38px;
        font-size: 11px;
        bottom: 16px;
        right: 16px;
    }
    
    .subscription-features h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .feature-item {
        font-size: 14px;
        padding: 10px 14px;
        border-radius: 8px;
        gap: 10px;
    }
    
    .feature-item img {
        width: 14px;
        height: 14px;
    }
    
    .upgrade-button-external {
        margin: 20px 0;
        padding: 6px 10px;
        font-size: 16px;
    }
    
    .upgrade-button-external svg {
        width: 14px;
        height: 14px;
    }
    
    .stats-title {
        font-size: 20px;
    }
    
    .stat-item {
        padding: 16px;
        gap: 12px;
    }
    
    .stat-icon {
        width: 24px;
        height: 24px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stat-description {
        font-size: 12px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.abo-modal {
    width: 600px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.modal-overlay.show .abo-modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 32px 32px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    background: #ffffff;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.modal-close:hover img {
    opacity: 1;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%) hue-rotate(202deg) brightness(97%) contrast(96%);
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    letter-spacing: -0.2px;
    font-family: var(--font-family-heading);
}

.modal-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.modal-content {
    flex: 1;
    padding: 24px 32px;
    overflow-y: auto;
    min-height: 0;
}

.abo-features h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px;
    letter-spacing: -0.1px;
    font-family: var(--font-family-heading);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.feature-card:hover {
    background: #f1f3f4;
    border-color: #e9ecef;
}

.feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.feature-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%) hue-rotate(202deg) brightness(97%) contrast(96%);
}

.feature-text {
    flex: 1;
}

.feature-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.3;
    font-family: var(--font-family-heading);
}

.feature-text p {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    background: #ffffff;
}

.modal-upgrade-btn {
    width: 100%;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family-body);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-upgrade-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.modal-upgrade-btn:hover {
    background: #0077ed;
    box-shadow: 0 8px 16px rgba(0, 113, 227, 0.25);
}

.modal-upgrade-btn:active {
    background: #0066cc;
}

/* Responsive Anpassungen für das Modal */
@media (max-width: 768px) {
    .abo-modal {
        width: 95%;
        max-width: 500px;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 24px 20px 20px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 20px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .modal-subtitle {
        font-size: 15px;
    }
    
    .abo-features h3 {
        font-size: 17px;
    }
    
    .feature-card {
        padding: 14px;
    }
}

/* Diese Definition wird jetzt oben übernommen */

/* Credit History Styles */
.credit-summary {
    background: linear-gradient(120deg, #fff 45%, #f5f5f5);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 14px;
    color: #6b7280;
}

.summary-value {
    font-weight: 600;
    color: #1f2937;
}

.summary-value.balance {
    color: #10b981;
    font-size: 16px;
}

.history-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.history-item:hover {
    background-color: #f9fafb;
}

.history-item:last-child {
    border-bottom: none;
}

.history-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.history-info {
    flex: 1;
    min-width: 0;
}

.history-description {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.transaction-bonus {
    font-size: 12px;
    color: #10b981;
    background: #ecfdf5;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px;
}

.history-date {
    font-size: 13px;
    color: #6b7280;
}

.history-amount {
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    margin-left: 12px;
}

.loading-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.loading-placeholder p {
    margin: 0 0 8px 0;
}

/* Credit Modal erweiterte Styles */
.credit-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Responsive Credit History */
@media (max-width: 768px) {
    .history-item {
        padding: 12px;
    }
    
    .history-icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    
    .history-amount {
        font-size: 14px;
        margin-left: 8px;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .summary-value {
        margin-top: 4px;
    }
}
