/**
 * Polkadot Sensei - Core Styles
 * Basis-Styling für alle Modi (Standalone + Integration)
 */

:root {
    --primary-color: #E6007A;
    --vonFlandern-color: #2C2C2C;
    --vonFlandern-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --secondary-color: #000000;
    --accent-color: #552BBF;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #ffffff;
    --text-color: #1f2937;
    --border-color: #e5e7eb;

    /* === Account-Bereich Kategorie-Variablen === */
    /* Diese werden dynamisch von JavaScript gesetzt (IDEE 3) */
    /* Fallback-Werte = Sensai (aktuelle Farben, catId 8) */
    --account-header-color-left: #1a1a1a;
    --account-header-color-right: #1b1d1c;
    --account-header-border: #ff1212;
    --account-text-name: #999999;
    --account-text-wallet: #999999;
    --account-badge-background: #ffffff;
    --account-menu-hamburger: #ff1212;
    --account-body-background: #E3E3E3;
    --account-body-border: #ff1212;

    /* Buttons */
    --account-button-primary-bg: #E6007A;
    --account-button-primary-bg-hover: #c5006b;
    --account-button-primary-text: #ffffff;
    --account-button-primary-border: #E6007A;
    --account-button-secondary-bg: #E3E3E3;
    --account-button-secondary-bg-hover: #d4d4d4;
    --account-button-secondary-text: #1a1a1a;
    --account-button-secondary-border: #1a1a1a;

    /* Copy Buttons */
    --account-copy-button-bg: #4CAF50;
    --account-copy-button-bg-hover: #45a049;
    --account-copy-button-bg-klicked: #4CAF50;
    --account-copy-button-text: #ffffff;

    /* Tabs */
    --account-tab-active-bg: #1a1a1a;
    --account-tab-active-text: #ff1212;
    --account-tab-active-border: #ff1212;
    --account-tab-inactive-bg: #E3E3E3;
    --account-tab-inactive-text: #555555;
    --account-tab-inactive-border: #999999;

    /* Address Box (Your Addresses section) */
    --account-address-box-bg: #1a1a1a;
    --account-address-box-text: #E3E3E3;

    /* Theme Background Image */
    --account-theme-background: url('../img/categories/themes/theme1.png');

    /* Sections - Info Type (Account Information, Identity) */
    --account-section-info-bg: #ffffff;
    --account-section-info-border: #ff1212;
    --account-section-info-heading: #ff1212;
    --account-section-info-content: #4a5568;
    --account-section-info-label: #6b7280;
    --account-section-info-value: #111827;

    /* Sections - Data Type (Balances, Staking) */
    --account-section-data-bg: #ffffff;
    --account-section-data-border: #ff1212;
    --account-section-data-heading: #ff1212;
    --account-section-data-content: #4a5568;
    --account-section-data-label: #6b7280;
    --account-section-data-value: #111827;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.quiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0px;
    /* padding: 20px; */
}

/* Buttons */
button {
    font-family: inherit;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

button:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button.secondary {
    background-color: var(--secondary-color);
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Start Screen */
.start-screen {
    text-align: center;
    padding: 60px 20px;
}

.start-screen h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.start-screen p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* Wallet Connect */
.wallet-connect-screen {
    text-align: center;
    padding: 40px 20px;
}

#wallet-status {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    background-color: #f3f4f6;
}

.success {
    color: var(--success-color);
}

.error {
    color: var(--error-color);
}

#accounts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.account-btn {
    text-align: left;
    padding: 15px;
    background-color: #f9fafb;
    color: var(--text-color);
}

.account-btn.selected {
    background-color: var(--primary-color);
    color: white;
}

.account-btn.selected * {
    color: white !important;
}

#player-name-input {
    display: none;
    margin: 20px 0;
}

#player-name {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-top: 10px;
}

#continue-to-quiz-btn {
    display: none;
    margin-top: 20px;
}

/* Level Overview */
.level-overview-screen {
    padding: 0 20px 20px 20px;
}

#player-info {
    background-color: #f3f4f6;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

#levels-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Aktive Level */
.level-btn {
    text-align: left;
    padding: 20px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.level-btn:hover {
    border-color: #2563eb;
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.level-btn h3 {
    margin-bottom: 10px;
    color: #E6097A;
}

/* Gesperrte Level */
.level-btn-locked {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f3f4f6;
    border-color: var(--border-color);
}

.level-btn-locked:hover {
    border-color: var(--border-color);
    background-color: #f3f4f6;
    transform: none;
    box-shadow: none;
}

.level-btn-locked h3 {
    color: #9ca3af;
}

/* Abgeschlossene Level */
.level-btn-completed {
    background: #f0fdf4;
    border-color: var(--success-color);
}

.level-btn-completed:hover {
    border-color: var(--success-color);
    background: #dcfce7;
    transform: none;
    box-shadow: none;
}

.level-btn-completed h3 {
    color: #E6097A;
}

/* Level Button Background Emoji (aktive Level) */
.level-btn::before {
    content: '🎮';
    position: absolute;
    font-size: 60px;
    opacity: 1.0;
    right: 10px;
    bottom: -10px;
}

/* Locked Level Background Emoji (reduzierte Opacity) */
.level-btn-locked::before {
    opacity: 0.1;
}

/* Completed Level Background Emoji (reduzierte Opacity) */
.level-btn-completed::before {
    opacity: 0.1;
}

/* OCR Card Styles (aktive, nicht erfüllte OCR) */
.ocr-card {
    background: linear-gradient(135deg, #fce7f3 0%, #f9a8d4 100%);
    border: 2px solid #E6097A;
}

.ocr-card:hover {
    border-color: #be185d;
    background: linear-gradient(135deg, #f9a8d4 0%, #f472b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(230, 9, 122, 0.3);
}

.ocr-card h3 {
    color: #E6097A;
}

/* OCR Card Background Emoji (überschreibt Level-Button Emoji, aktive OCR) */
.ocr-card::before {
    content: '🔒';
    position: absolute;
    font-size: 60px;
    opacity: 1.0;
    right: 10px;
    bottom: -10px;
}

/* Completed OCR Background Emoji (reduzierte Opacity) */
.ocr-card.level-btn-completed::before {
    opacity: 0.1;
}

/* Completed OCR Card (überschreibt pink mit grün) */
.ocr-card.level-btn-completed {
    background: #f0fdf4;
    border-color: var(--success-color);
}

.ocr-card.level-btn-completed:hover {
    background: #dcfce7;
    transform: none;
    box-shadow: none;
}

.ocr-card.level-btn-completed h3 {
    color: #E6097A;
}

/* CEA Card (Community Engagement Action) */
.cea-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    position: relative;
    overflow: hidden;
}

.cea-card::before {
    content: '🎉';
    position: absolute;
    font-size: 60px;
    opacity: 1.0;
    right: 10px;
    bottom: -10px;
}

.cea-card:hover {
    border-color: #d97706;
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245, 158, 11, 0.3);
}

.cea-card h3 {
    color: #92400e;
}

/* CEA Participation Card (nicht klickbar, historisches Log) #41CB6D*/
.cea-participation-card {
    background: linear-gradient(135deg, #fef9e7 0%, #f5f3e8 100%);
    border: 2px solid #d4af37;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.cea-participation-card {
    background: #f0fdf4;
    border: 2px solid #41CB6D;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: default;
}

/* Kein Hover-Effekt für Participation-Card */
.cea-participation-card:hover {
    border-color: #41CB6D;
    background: #dcfce7;
    transform: none;
    box-shadow: none;
}

.cea-participation-card h3 {
    color: #E91D86;
}

/* CEA Participation Card Background Emoji */
.cea-participation-card::before {
    content: '🎉';
    position: absolute;
    font-size: 60px;
    opacity: 0.1;
    right: 10px;
    bottom: -10px;
}

/* Lesson Card (NEW) */
.lesson-card {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
    position: relative;
    overflow: hidden;
}

.lesson-card::before {
    content: '📚';
    position: absolute;
    font-size: 60px;
    opacity: 1.0;
    right: 10px;
    bottom: -10px;
}

.lesson-card:hover {
    border-color: #2563eb;
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.lesson-card h3 {
    color: #E6097A;
}

/* Lesson Completed (downloaded) */
.lesson-completed {
    background: #f0fdf4;
    border-color: var(--success-color);
}

.lesson-completed::before {
    content: '📚';
    position: absolute;
    font-size: 60px;
    opacity: 0.1;
    right: 10px;
    bottom: -10px;
}

.lesson-completed:hover {
    border-color: var(--success-color);
    background: #dcfce7;
    transform: none;
    box-shadow: none;
}

/* Lesson PDF Block */
.lesson-pdf-block {
    text-align: center;
}

.lesson-pdf-block button {
    transition: all 0.2s;
}

.lesson-pdf-block button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Level Intro */
.level-intro-screen {
    padding: 40px 20px;
    text-align: center;
}

.level-intro-screen h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.level-intro-screen p {
    margin: 15px 0;
    font-size: 1.1em;
}

/* Countdown */
.countdown-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 60px 20px;
}

#countdown-number {
    font-size: 120px;
    font-weight: 900;
    color: var(--primary-color);
    text-align: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Question Screen */
.question-screen {
    padding: 20px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f3f4f6;
    border-radius: 8px;
}

#timer-display {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}

#timer-display.warning {
    color: var(--error-color);
    animation: blink 0.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.question-content {
    margin: 30px 0;
}

#question-text {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 30px;
}

#answers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-btn {
    text-align: left;
    padding: 20px;
    background-color: #f9fafb;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    font-size: 1.1em;
}

.answer-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    transform: none;
}

.powerups {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.powerups button {
    flex: 1;
}

#hint-box {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: #fef3c7;
    border-left: 4px solid var(--warning-color);
    border-radius: 4px;
}

/* Feedback Screen */
.feedback-screen {
    padding: 40px 20px;
    text-align: center;
}

.feedback-message {
    font-size: 2em;
    margin-bottom: 20px;
}

.feedback-message.correct {
    color: var(--success-color);
}

.feedback-message.incorrect {
    color: var(--error-color);
}

.feedback-message.timeout {
    color: var(--warning-color);
}

#feedback-points {
    font-size: 1.5em;
    font-weight: bold;
    margin: 10px 0;
}

#feedback-time {
    color: #6b7280;
    margin-bottom: 30px;
}

#feedback-explanation {
    text-align: left;
    background-color: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

#feedback-explanation p {
    margin: 10px 0;
}

/* Level Complete */
.level-complete-screen {
    padding: 40px 20px;
    text-align: center;
}

.level-complete-screen h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.result-stats {
    background-color: #f3f4f6;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.result-stats p {
    font-size: 1.2em;
    margin: 15px 0;
}

.result-status {
    font-size: 1.5em;
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
}

.result-status.passed {
    background-color: #d1fae5;
    color: var(--success-color);
}

.result-status.failed {
    background-color: #fee2e2;
    color: var(--error-color);
}

@media (max-width: 768px) {
    .quiz-container {
        padding: 10px;
    }

    .start-screen h1 {
        font-size: 2em;
    }

    #question-text {
        font-size: 1.2em;
    }

    .powerups {
        flex-direction: column;
    }
}

.anleitung-screen {
    padding: 40px 20px;
    text-align: center;
}

.anleitung-screen h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.anleitung-screen h3 {
    color: var(--text-color);
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
}

.anleitung-screen h4 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
}

.anleitung-screen p {
    text-align: left;
    margin: 10px 0;
    line-height: 1.6;
}

.anleitung-screen ul {
    text-align: left;
    margin: 10px 0 20px 20px;
    line-height: 1.8;
}

.anleitung-screen li {
    margin: 8px 0;
}

.anleitung-screen strong {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .anleitung-screen {
        padding: 20px 10px;
    }

    .anleitung-screen h2 {
        font-size: 1.5em;
    }

    .anleitung-screen h3 {
        font-size: 1.2em;
    }

    .anleitung-screen h4 {
        font-size: 1.1em;
    }
}

/* ========================================
   CATEGORY SYSTEM STYLES
   ======================================== */

/* Category Container */
.category-container {
    /*border: 1px solid var(--border-color);*/
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Category Header */
.category-header {
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* border-bottom: 1px solid var(--border-color);*/
    transition: all 0.2s;
    user-select: none;
}

.category-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.category-icon {
    width: 32px;
    height: auto;
    object-fit: contain;
}

.category-level-count,
.category-ocr-count,
.category-cea-count {
    font-size: 0.9em;
    color: #6b7280;
    font-weight: normal;
}

/* Info-Container spezielles Styling */
.info-container {
    margin-bottom: 30px !important;
}

.info-container .category-header {
    background: linear-gradient(90deg, #E6007A60 0%, #E6007A30 100%) !important;
}

.info-container .category-content {
    display: block !important;
}

.info-container h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.05em;
}

.info-container p {
    color: #6b7280;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

/* Beta Notice Container - REMOVE FOR v1.0.0 */
.beta-notice-container {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid #F59E0B;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.1);
}

.beta-notice-header {
    font-size: 1.15em;
    color: #92400E;
    margin-bottom: 15px;
    text-align: center;
}

.beta-notice-intro {
    color: #78350F;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.beta-notice-section {
    margin-bottom: 20px;
}

.beta-notice-section h4 {
    color: #92400E;
    font-size: 1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.beta-notice-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.beta-notice-section ul li {
    color: #78350F;
    font-size: 0.92em;
    line-height: 1.7;
    margin-bottom: 6px;
    padding-left: 0;
}

.beta-notice-footer {
    color: #92400E;
    font-size: 0.95em;
    text-align: center;
    margin: 15px 0 0 0;
}

.beta-notice-footer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.beta-notice-footer a:hover {
    color: #C41E5C;
    text-decoration: none;
}
/* End Beta Notice - REMOVE FOR v1.0.0 */

.category-toggle-icon {
    font-size: 1.2em;
    color: var(--primary-color);
    transition: transform 0.3s;
}

/* Category Content (Level-Liste) */
.category-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.category-container.collapsed .category-content {
    max-height: 0;
    padding: 0 15px;
}

/* Level-Buttons innerhalb Categories */
.category-content .level-btn {
    margin-bottom: 0;
}

/* Player Badge */
.category-badge {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

/* Leaderboard Badge */
.leaderboard-badge {
    width: auto;
    height: 120%;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .category-header {
        padding: 12px 15px;
    }

    .category-icon {
        width: 48px;
        height: 48px;
    }

    .category-badge {
        width: 48px;
        height: 48px;
    }

    .category-level-count {
        font-size: 0.8em;
    }
}

/* ========================================
   AVATAR BADGE & ACCOUNT INFO STYLES
   ======================================== */

/* ========================================
   VONFLANDERN ACCOUNT DISPLAY
   ======================================== */

/* vonFlandern Account Container */
.vonflandern-account {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 20px 5px 20px;
    position: relative;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 15px;
    border-radius: 0;
    overflow: hidden;
    min-height: 400px;
    max-height: 400px;
}

/* Hintergrundbild als Pseudo-Element (gespiegelt) */
.vonflandern-account::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--account-theme-background);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Milchglas-Container (rechte 2/3) */
.milchglas-container {
    flex: 1;
    max-width: 330px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 15px 10px 15px 20px;
    border-radius: 8px;
    margin-left: auto;
    margin-right: 3px;
    box-shadow: #00000033 0px 4px 16px 0px;
}

/* Inhalt über Hintergrund positionieren */
.vonflandern-account > * {
    position: relative;
    z-index: 1;
}

/* Badge-Kreis mit Schatten */
/* .account-badge-circle {
    margin-top: 20px;
    width: auto;
    height: 380px;
    border-radius: 0%;
    background: var(--account-badge-background);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.account-badge-circle .category-avatar-badge {
    width: auto;
    height: 380px;
    margin-top: 0px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
} */

/* Account-Info rechts - innerhalb Milchglas-Container */
.account-info-right {
    flex: 4;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.player-name-display {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--account-text-name);
}

.player-wallet-display {
    font-size: 1em;
    color: var(--account-text-wallet);
}

/* Header Rank Display (neue Platzierung im Header) */
.header-rank-display {
    margin-top: 15px;
    padding-left: 0px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

/* Points Display */
.header-points-display {
    font-size: 1.5em;
    font-weight: bold;
    color: #E6007A;
    margin-bottom: 5px;
}

/* Rank Line Container */
.header-rank-line {
    display: flex;
    align-items: center;
    gap: 10px;
    
}

/* Rank Text */
.header-rank-text {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--account-text-name);
}

/* Rank Link */
.header-rank-link {
    font-size: 0.85em;
    color: var(--account-text-wallet);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.header-rank-link:hover {
    opacity: 0.7;
}

.header-rank-display a {
    transition: opacity 0.2s;
}

.header-rank-display a:hover {
    opacity: 0.7;
}

/* Menü-Link (Hamburger-Icon) */
.account-menu {
    position: relative;
}

.account-menu a#account-menu-trigger,
.account-menu a#account-menu-trigger-overview {
    color: var(--account-menu-hamburger);
    text-decoration: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    display: block;
    line-height: 1;
}

.account-menu a#account-menu-trigger:hover,
.account-menu a#account-menu-trigger-overview:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown-Menü */
.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
}

.menu-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.menu-dropdown a:last-child {
    border-bottom: none;
}

.menu-dropdown a:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Rank Info Container - NICHT MEHR VERWENDET (jetzt im Header) */
#player-rank-info {
    display: none; /* Versteckt, da Rank-Info jetzt im Header ist */
}

/* Responsive - vonFlandern Account */
@media (max-width: 768px) {
    .vonflandern-account {
        padding: 10px 15px;
        gap: 10px;
    }

    .account-badge-circle {
        width: 60px;
        height: 60px;
    }

    .account-badge-circle .category-avatar-badge {
        width: 50px;
        height: 50px;
    }

    .player-name-display {
        font-size: 1em;
    }

    .player-wallet-display {
        font-size: 0.75em;
    }

    /* Header Rank Display - responsiv */
    .header-rank-display {
        margin-top: 15px;
        padding-left: 0px;
        padding-top: 8px;
    }

    .header-points-display {
        font-size: 1.1em;
        margin-bottom: 3px;
    }

    .header-rank-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .header-rank-text {
        font-size: 0.95em;
    }

    .header-rank-link {
        font-size: 0.75em;
    }
}

/* ========================================
   LEVEL VISUALIZATION (Fighter Progress)
   ======================================== */

/* Überschrift Level Progress */
#level-progress-heading {
    margin-bottom: 20px;
}

/* Überschriften unter vonflandern Header */
.section-heading {
    padding-left: 20px;
}

/* Container - eigenständig (nicht mehr am Header angedockt) */
#level-visualization-container {
    margin: 5px 20px 20px 20px;  /* Abstand zum Header */
    padding: 5px 0px 0px 0px;
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 8px;
}

/* 8-Positionen Layout */
.level-visualization {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0px;
    width: 100%;
}

/* Wrapper für Position + Belt-Badge */
.fighter-position-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    min-width: 0;
}

/* Einzelne Fighter-Position */
.fighter-position {
    width: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Für absolute Positionierung der Bilder */
    aspect-ratio: 1 / 1.2; /* Feste Proportion verhindert Flackern */
}

/* Belt-Badge unter Fighter */
.belt-badge {
    padding-left: 20px;
    padding-top: 8px;
    padding-bottom: 0px;
    width: 60px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.fighter-position img {
    position: absolute; /* Übereinanderlegen für sanften Übergang */
    bottom: 3px; /* Abstand vom unteren Rand (Border) */
    /* left: -100px;
    right: 100px; */
    width: 140%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3)); /* Gleicher Schatten wie Badge-Bilder */
    transition: opacity 300ms ease-in-out; /* Synchronisiert mit JavaScript (850ms Timeout) */
    opacity: 1;
}

/* Fade-Effekt beim Bildwechsel */
.fighter-position img.fade-out {
    opacity: 0;
}

/* Mobile: Visualisierung ausblenden */
@media (max-width: 768px) {
    #level-visualization-container {
        display: none !important;
    }
}

/* ========================================
   ACCOUNT BODY-BEREICHE (IDEE 3)
   ======================================== */

/* Account Body-Bereiche (Welcome + Rank Info) */
.account-body-section {
    margin: 0 20px 20px 20px;
    padding: 20px;
    background: var(--account-body-background);
    border: 2px solid var(--account-body-border);
    border-top: none;  /* Kein Top-Border - nahtloser Übergang zum Header */
    border-radius: 8px;
    border-top-left-radius: 0px;   /* Verbindet visuell mit Header */
    border-top-right-radius: 0px;
}

/* Text-Styling innerhalb der Body-Sections */
.account-body-section h3,
.account-body-section strong {
    color: var(--text-color);  /* Bleibt lesbar in allen Kategorien */
}

/* ========================================
   WELCOME SECTION
   ======================================== */

/* Welcome Section Container (jetzt innerhalb von account-body-section) */
#welcome-section {
    margin: 0;
}

/* Welcome Name Input */
#welcome-name-input {
    font-family: inherit;
}

#welcome-name-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 0, 122, 0.1);
}

/* ========================================
   ACCOUNT OVERVIEW SCREEN
   ======================================== */

/* =====================================================
   CEA SCREEN (Community Engagement Action)
   ===================================================== */
.cea-screen {
    padding: 0 20px 20px 20px;
}

.cea-header {
    text-align: center;
    margin-bottom: 20px;
}

.cea-header h2 {
    margin: 10px 0;
    color: var(--text-color);
}

.cea-header p {
    color: #6b7280;
    font-size: 16px;
    font-weight: 600;
}

.cea-body {
    max-width: 700px;
    margin: 0 auto;
    border-top: 2px solid #D5D5D5;
    border-radius: 12px;
}

.cea-info-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.cea-info-box h3 {
    margin: 0 0 10px 0;
    color: #92400e;
}

.cea-info-box p {
    margin: 0 0 15px 0;
    color: #78350f;
}

.cea-points-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    font-weight: 600;
}

.points-label {
    color: #6b7280;
}

.points-value {
    color: #16a34a;
    font-size: 20px;
}

.points-status {
    color: #6b7280;
    font-size: 14px;
}

.cea-instructions {
    margin-bottom: 25px;
}

.cea-instructions h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.cea-instructions ol {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.cea-instructions li {
    margin-bottom: 8px;
    color: #374151;
}

.cea-platforms {
    margin-bottom: 25px;
}

.cea-platforms h4 {
    margin-bottom: 12px;
    color: var(--text-color);
}

.platform-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.platform-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
}

.platform-btn.selected {
    border-color: #e6007a;
    background: #fdf2f8;
}

.platform-btn .platform-icon {
    font-size: 32px;
}

.platform-btn .platform-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.platform-btn.submitted .platform-icon-img {
    filter: grayscale(100%) opacity(0.5);
}

.platform-btn .platform-name {
    font-weight: 600;
    color: var(--text-color);
}

.cea-platform-info {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.platform-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.platform-info-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.platform-handle {
    background: #e6007a;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.share-link-section,
.post-url-section {
    margin-bottom: 20px;
}

.share-link-section label,
.post-url-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.input-with-button {
    display: flex;
    gap: 10px;
}

.input-with-button input {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: white;
}

.input-with-button input:focus {
    outline: none;
    border-color: #3b82f6;
}

.input-with-button button {
    padding: 10px 20px;
    font-weight: 600;
    white-space: nowrap;
}

.share-link-section small,
.post-url-section small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
}

.cea-warning {
    background: #fef3f2;
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.cea-warning p {
    margin: 0 0 10px 0;
    color: #991b1b;
    font-weight: 600;
}

.cea-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.cea-actions button {
    padding: 12px 30px;
}

/* =====================================================
   SETTINGS SCREEN
   ===================================================== */
.settings-screen {
    padding: 0 20px 20px 20px;
}

.settings-header {
    text-align: center;
    margin-bottom: 20px;
}

.settings-header h2 {
    margin: 10px 0;
    color: var(--text-color);
}

.settings-header p {
    color: #6b7280;
    font-size: 14px;
}

.settings-body {
    max-width: 600px;
    margin: 0 auto;
    border-top: 2px solid #D5D5D5;
    border-radius: 12px;
}

.settings-section h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.settings-info {
    margin-bottom: 20px;
    padding: 12px;
    background: #f3f4f6;
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
    font-size: 14px;
    color: #374151;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-color);
}

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

.form-group input {
    padding: 10px 12px;
    font-size: 14px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: var(--text-color);
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-group small {
    color: #6b7280;
    font-size: 12px;
}

.settings-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.settings-actions button {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #e6007a 0%, #c4005f 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c4005f 0%, #a3004d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 0, 122, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

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

/* =====================================================
   ACCOUNT OVERVIEW SCREEN
   ===================================================== */
.account-overview-screen {
    padding: 0 20px 20px 20px;
}

/* Network Selector Container */
.network-selector-container {
    margin: 20px 0;
    padding: 15px;
    background: var(--account-body-background);
    border: 2px solid var(--account-body-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.network-selector-container label {
    font-weight: 600;
    color: var(--text-color);
}

#network-selector {
    padding: 8px 12px;
    font-size: 14px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: var(--text-color);
    flex: 1;
    max-width: 300px;
}

#network-selector:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* === POLKADOT LOGO LOADING SPINNER === */
.polkadot-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.polkadot-spinner-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.polkadot-spinner-icon {
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
}

.spinner-text {
    display: none; /* Kein Text, nur Logo */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive für Mobile */
@media (max-width: 768px) {
    .polkadot-spinner-icon {
        width: 60px;
        height: 60px;
    }
    
    .spinner-text {
        font-size: 16px;
    }
}

/* On-Chain Data Body */
#onchain-data-body {
    position: relative;
    margin: 0 20px 20px 20px;
    padding: 20px;
    background: var(--account-body-background);
    border: 2px solid var(--account-body-border);
    border-radius: 8px;
}

/* Warning Banner */
.onchain-warning {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #92400e;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* On-Chain Sections - Info Type (Account Information, Identity) */
.onchain-section.section-info {
    margin-bottom: 30px;
    background: var(--account-section-info-bg);
    border: 2px solid var(--account-section-info-border);
    border-radius: 8px;
    padding: 16px;
}

.onchain-section.section-info:last-child {
    margin-bottom: 0;
}

.onchain-section.section-info h3 {
    margin: 0 0 15px 0;
    color: var(--account-section-info-heading);
    font-size: 18px;
    border-bottom: 2px solid var(--account-section-info-border);
    padding-bottom: 8px;
}

.onchain-section.section-info .data-label {
    font-weight: 600;
    color: var(--account-section-info-label);
    flex: 0 0 40%;
}

.onchain-section.section-info .data-value {
    text-align: right;
    color: var(--account-section-info-value);
    flex: 1;
    word-break: break-all;
}

/* On-Chain Sections - Data Type (Balances, Staking) */
.onchain-section.section-data {
    margin-bottom: 30px;
    background: var(--account-section-data-bg);
    border: 2px solid var(--account-section-data-border);
    border-radius: 8px;
    padding: 16px;
}

.onchain-section.section-data:last-child {
    margin-bottom: 0;
}

.onchain-section.section-data h3 {
    margin: 0 0 15px 0;
    color: var(--account-section-data-heading);
    font-size: 18px;
    border-bottom: 2px solid var(--account-section-data-border);
    padding-bottom: 8px;
}

.onchain-section.section-data .data-label {
    font-weight: 600;
    color: var(--account-section-data-label);
    flex: 0 0 40%;
}

.onchain-section.section-data .data-value {
    text-align: right;
    color: var(--account-section-data-value);
    flex: 1;
    word-break: break-all;
}

/* Data Rows (shared by both section types) */
.data-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.data-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.data-value a:hover {
    text-decoration: underline;
}

/* Footer with Refresh Button */
.onchain-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--account-body-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

#refresh-onchain-btn {
    padding: 10px 20px;
    background: var(--account-button-primary-bg);
    color: var(--account-button-primary-text);
    border: 1px solid var(--account-button-primary-border);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#refresh-onchain-btn:hover {
    background: var(--account-button-primary-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#onchain-last-update {
    color: #6b7280;
    font-size: 14px;
}

/* ========== Validator Section ========== */
.validator-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.validator-badge.active {
    background: #28a745;
    color: white;
}

.validator-badge.inactive {
    background: #6c757d;
    color: white;
}

/* ========== Vote History Section ========== */
.section-subtitle {
    font-size: 0.9em;
    color: #888;
    font-style: italic;
    margin: -8px 0 12px 0;
}

.vote-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    overflow-x: auto;
    display: block;
}

.vote-table thead {
    background: var(--account-section-data-bg);
    position: sticky;
    top: 0;
}

.vote-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--account-body-border);
    color: var(--account-text-primary);
}

.vote-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--account-body-border);
}

.vote-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.vote-direction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.vote-direction-aye {
    color: #28a745;
}

.vote-direction-nay {
    color: #dc3545;
}

.vote-direction-abstain {
    color: #6c757d;
}

.vote-direction-split {
    color: #ff9800;
}

.subscan-warning {
    background: #ff9800;
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

/* Responsive Design für Account Overview */
@media (max-width: 768px) {
    .network-selector-container {
        flex-direction: column;
        align-items: flex-start;
    }

    #network-selector {
        max-width: 100%;
    }

    .data-row {
        flex-direction: column;
        gap: 5px;
    }

    .data-label {
        flex: auto;
    }

    .data-value {
        text-align: left;
    }

    .onchain-footer {
        flex-direction: column;
        align-items: stretch;
    }

    #refresh-onchain-btn {
        width: 100%;
    }

    .address-display-section {
        margin-top: 10px;
    }

    .address-row {
        flex-direction: column;
        gap: 8px;
    }

    .generic-addr, .network-addr {
        font-size: 11px;
        word-break: break-all;
    }
}

/* ========== Address Display Section ========== */
.address-display-section {
    /* Eigenständiger Container (nicht mehr am Header angedockt) */
    margin-top: 25px;
    border: 2px solid var(--account-body-border) !important;  /* Vollständiger Rahmen */
    border-radius: 8px !important;
    background: var(--account-address-box-bg) !important;
}

.address-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.address-toggle-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--account-address-box-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-network-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.address-toggle-btn {
    background: var(--account-button-primary-bg);
    color: var(--account-button-primary-text);
    border: 1px solid var(--account-button-primary-border);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.address-toggle-btn:hover {
    background: var(--account-button-primary-bg-hover);
}

.address-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
}

.addr-label {
    font-weight: bold;
    min-width: 100px;
    color: var(--account-address-box-text);
}

.generic-addr, .network-addr {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: #f5f5f5;
    padding: 10px 14px;
    border-radius: 6px;
    color: #333;
    letter-spacing: 0.5px;
}

.address-group {
    white-space: nowrap;
}

.copy-btn {
    background: var(--account-copy-button-bg);
    color: var(--account-copy-button-text);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    min-width: 40px;
}

.copy-btn:hover {
    background: var(--account-copy-button-bg-hover);
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Show More Networks Button */
#show-more-networks-btn {
    margin-left: 10px;
    padding: 6px 12px;
    background: #e6007a;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

#show-more-networks-btn:hover {
    background: #c5006b;
}

.error-content {
    text-align: center;
    max-width: 500px;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.error-content h3 {
    color: #d32f2f;
    margin-bottom: 10px;
}

.error-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.error-details {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ffcdd2;
    margin: 20px 0;
    text-align: left;
    font-size: 13px;
}

.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.btn-primary {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-secondary {
    background: #757575;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

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

/* ========== Toast Animationen ========== */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ========== Balance Tabs ========== */
.balance-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 15px;
}

.balance-tab {
    padding: 10px 20px;
    border: none;
    background: var(--account-tab-inactive-bg);
    cursor: pointer;
    color: var(--account-tab-inactive-text);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid var(--account-tab-inactive-border);
    transition: all 0.2s;
}

.balance-tab:hover {
    opacity: 0.8;
}

.balance-tab.active {
    background: var(--account-tab-active-bg);
    color: var(--account-tab-active-text);
    border-bottom-color: var(--account-tab-active-border);
    font-weight: 600;
}

.balance-tab-content {
    display: none;
}

.balance-tab-content.active {
    display: block;
}

/* ========== Loading Spinner ========== */
.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #667eea;
}

.spinner-icon {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== Error Display ========== */
.data-value.error {
    color: #999;
    font-style: italic;
    font-size: 0.9em;
}

/* ========== Unlocking Details (Expandable) ========== */
.data-row.has-expand {
    position: relative;
}

.expand-arrow {
    cursor: pointer;
    margin-left: 8px;
    font-size: 1.2em;
    color: var(--primary-color);
    user-select: none;
}

.unlocking-details {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
}

.track-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.track-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.track-header strong {
    font-size: 16px;
    color: #333;
}

.track-locked {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.track-votes {
    margin-top: 10px;
}

.votes-count {
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    font-size: 14px;
}

.vote-detail {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.vote-ref {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 15px;
}

.vote-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}

.vote-label {
    color: #666;
    font-weight: 500;
}

.vote-value {
    color: #333;
    font-weight: 600;
}

/* ========== Vote List ========== */
.vote-list-wrapper {
    margin-top: 15px;
}

.secondary-btn {
    background: #f5f5f5;
    color: #667eea;
    border: 1px solid #667eea;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: #667eea;
    color: white;
}

#vote-list {
    margin-top: 15px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.vote-item {
    background: #f9f9f9;
    border-left: 4px solid #667eea;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.vote-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.vote-track {
    font-weight: 600;
    color: #333;
}

.vote-ref {
    color: #666;
    font-size: 0.85em;
}

.vote-details {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.vote-direction {
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85em;
}

.vote-direction.aye {
    background: #d4edda;
    color: #155724;
}

.vote-direction.nay {
    background: #f8d7da;
    color: #721c24;
}

.vote-amount {
    font-weight: 600;
    color: #667eea;
}

.vote-conviction {
    color: #666;
    font-size: 0.9em;
}

.vote-more {
    text-align: center;
    color: #999;
    font-style: italic;
    margin-top: 10px;
    padding: 10px;
}

/* Vote Type Badge */
.vote-type-badge {
    font-size: 0.75em;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Split Vote Container */
.split-vote-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.split-vote-part {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 4px 0;
    border-left: 3px solid #e0e0e0;
    padding-left: 10px;
}

/* Abstain-Stil */
.vote-direction.abstain {
    background: #f5f5f5;
    color: #666;
}

/* Delegation-Styles */
.delegation-icon {
    font-size: 1.2em;
}

.delegation-target {
    font-family: monospace;
    font-size: 0.85em;
    color: #667eea;
    cursor: help;
}

/* Type-spezifische Rahmen */
.vote-item-split {
    border-left-color: #ffc107;
}

.vote-item-splitAbstain {
    border-left-color: #9c27b0;
}

.vote-item-delegating {
    border-left-color: #00bcd4;
}

/* === Identity Verification Badges === */
.identity-verified {
    display: inline-block;
    background-color: #4caf50;
    color: white;
    font-size: 0.75em;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

.identity-judgements {
    font-size: 0.85em;
    color: #666;
}

.identity-judgements .data-label {
    color: #888;
    font-style: italic;
}

.identity-parent-info {
    background-color: #f5f5f5;
    padding: 4px 0;
    margin: 2px 0;
    border-radius: 4px;
}

.identity-parent-info .data-value {
    font-size: 0.9em;
}

.address-short {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #666;
}

/* ========== Responsive ========== */
@media (max-width: 600px) {
    .balance-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .balance-tab {
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
    }
    
    .balance-tab.active {
        border-bottom-color: #e0e0e0;
        border-left-color: #667eea;
    }
    
    .vote-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ========================================
   SUCCESS OVERLAY (Category Completion)
   ======================================== */

/* Overlay Container - Fullscreen über gesamten Viewport */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    display: none;
    opacity: 0;
    /* transition: opacity 0.5s ease-in-out; */
    overflow-y: auto;
}

.success-overlay.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

/* Fade-Out Animation */
.success-overlay.fade-out {
    opacity: 0;
}

/* Overlay Background (successBackgroundColor) */
.success-overlay-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Content Container (zentriert vertikal) */
.success-overlay-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

/* 16:9 Szenen-Container */
.success-scene-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

/* Hintergrund (Bild oder Video) */
.success-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Charakter (zentriert über Hintergrund) */
.success-character {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

/* Text-Container (unter Szene) */
.success-text-container {
    text-align: center;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.success-title {
    font-size: 3em;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.success-description {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Enter Dojo Button */
.success-dojo-button {
    margin: 30px auto 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.2s;
}

.success-dojo-button.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .success-overlay-content {
        padding: 10px;
    }

    .success-scene-container {
        margin-bottom: 20px;
    }

    .success-character {
        max-width: 70%;
        max-height: 70%;
    }

    .success-title {
        font-size: 2em;
    }

    .success-description {
        font-size: 1em;
    }
}
