/* Realm of Choices - Public Styles */

:root {
    --roc-primary: #8b5cf6;
    --roc-secondary: #10b981;
    --roc-danger: #ef4444;
    --roc-dark: #1f2937;
    --roc-light: #f3f4f6;
    --roc-border: #e5e7eb;
    --roc-shadow: rgba(0, 0, 0, 0.1);
    --roc-warning: #f59e0b;
}

/* Guest User Notices */
.roc-guest-notice {
    background: #fef3c7;
    border-left: 4px solid var(--roc-warning);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.roc-guest-notice p {
    margin: 0;
    color: #92400e;
}

.roc-guest-notice a {
    color: #92400e;
    font-weight: 600;
    text-decoration: underline;
}

.roc-guest-banner {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px var(--roc-shadow);
}

.roc-guest-banner p {
    margin: 0;
    font-weight: 500;
}

.roc-guest-banner a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
}

.roc-guest-banner a:hover {
    text-decoration: none;
}

.roc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Character Creation */
.roc-character-creation {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--roc-shadow);
}

.roc-character-creation h2 {
    font-size: 2em;
    color: var(--roc-dark);
    margin-bottom: 10px;
}

.roc-form-group {
    margin-bottom: 30px;
}

.roc-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--roc-dark);
}

.roc-form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--roc-border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.roc-form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--roc-primary);
}

.roc-class-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.roc-class-option input[type="radio"] {
    display: none;
}

.roc-class-card {
    background: var(--roc-light);
    padding: 20px;
    border-radius: 12px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
    text-align: center;
}

.roc-class-option input[type="radio"]:checked + label .roc-class-card {
    border-color: var(--roc-primary);
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

.roc-specialty-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 10px;
}

.roc-class-card h3 {
    color: var(--roc-primary);
    margin: 0 0 10px 0;
}

.roc-class-stat {
    font-weight: 600;
    color: var(--roc-secondary);
    margin: 10px 0;
    font-size: 0.9em;
}

.roc-class-card p {
    font-size: 0.9em;
    color: #6b7280;
    line-height: 1.5;
}

.roc-class-abilities {
    margin-top: 15px;
    font-size: 14px;
    text-align: left;
    background: white;
    padding: 12px;
    border-radius: 8px;
}

.roc-class-abilities strong {
    color: var(--roc-primary);
}

.roc-class-abilities ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.roc-class-abilities li {
    padding: 3px 0;
}

/* Game Layout */
.roc-game-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 968px) {
    .roc-game-layout {
        grid-template-columns: 1fr;
    }
    
    .roc-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    /* Enhanced mobile sidebar header */
    .roc-sidebar-header {
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 15px !important;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
        border-radius: 12px !important;
    }
    
    /* Perfect circle icon on mobile */
    .roc-sidebar-icon {
        font-size: 2.5em !important;
        background: linear-gradient(135deg, var(--roc-primary), #6366f1) !important;
        width: 70px !important;
        height: 70px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
    }
    
    .roc-sidebar-header h3 {
        font-size: 1.4em !important;
        margin: 0 !important;
        color: var(--roc-dark) !important;
    }
    
    .roc-class {
        font-size: 0.9em !important;
        margin: 0 !important;
    }
    
    /* Mobile game container */
    .roc-container {
        padding: 10px !important;
    }
    
    /* Mobile main content area */
    .roc-main-content {
        background: white !important;
        padding: 20px 15px !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    /* Mobile scene display */
    .roc-scene {
        animation: fadeIn 0.5s ease !important;
    }
    
    .roc-scene-title {
        font-size: 1.5em !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
        color: #1a1a1a !important;
    }
    
    .roc-scene-chapter-label {
        display: inline-block !important;
        font-size: 0.75em !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        color: #6b7280 !important;
        background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
        padding: 6px 16px !important;
        border-radius: 20px !important;
        margin-bottom: 15px !important;
        border: 1px solid #d1d5db !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    }
    
    .roc-scene-chapter {
        font-size: 0.9em !important;
        margin-bottom: 15px !important;
    }
    
    .roc-scene-description {
        font-size: 1em !important;
        padding: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 25px !important;
    }
    
    /* Mobile choice buttons */
    .roc-choice-btn {
        padding: 15px 18px !important;
        font-size: 15px !important;
        margin-bottom: 12px !important;
    }
    
    .roc-choice-btn:hover {
        transform: translateX(5px) !important;
    }
    
    /* Mobile stat bars */
    .roc-stat-bar {
        margin-bottom: 12px !important;
    }
    
    .roc-stat-bar label {
        font-size: 0.85em !important;
    }
    
    /* Mobile progress text */
    .roc-progress-text {
        font-size: 0.75em !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .roc-container {
        padding: 5px !important;
    }
    
    .roc-sidebar {
        padding: 15px !important;
        margin-bottom: 15px !important;
        border-radius: 10px !important;
    }
    
    .roc-sidebar-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 2em !important;
    }
    
    .roc-sidebar-header {
        padding: 12px !important;
    }
    
    .roc-sidebar-header h3 {
        font-size: 1.2em !important;
    }
    
    .roc-main-content {
        padding: 15px 12px !important;
        border-radius: 10px !important;
    }
    
    .roc-scene-title {
        font-size: 1.3em !important;
        margin-bottom: 8px !important;
    }
    
    .roc-scene-chapter {
        font-size: 0.85em !important;
        margin-bottom: 12px !important;
    }
    
    .roc-scene-description {
        font-size: 0.95em !important;
        padding: 12px !important;
        margin-bottom: 20px !important;
    }
    
    .roc-choice-btn {
        padding: 12px 15px !important;
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    .roc-choices h3 {
        font-size: 1.1em !important;
        margin-bottom: 15px !important;
    }
    
    /* Mobile stat bars */
    .roc-stat-bar {
        margin-bottom: 10px !important;
    }
    
    .roc-stat-bar label {
        font-size: 0.8em !important;
    }
    
    .roc-progress-bar {
        height: 8px !important;
    }
}


/* Sidebar */
.roc-sidebar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--roc-shadow);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.roc-character-stats h3 {
    margin: 0 0 5px 0;
    color: var(--roc-dark);
    font-size: 1.5em;
}

.roc-class {
    color: var(--roc-primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.roc-stat-bar {
    margin-bottom: 15px;
}

.roc-stat-bar label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--roc-dark);
}

.roc-progress-bar {
    height: 20px;
    background: var(--roc-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.roc-progress-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.roc-health-bar {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.roc-exp-bar {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.roc-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: var(--roc-light);
    border-radius: 8px;
}

.roc-stat {
    text-align: center;
}

.roc-stat strong {
    display: block;
    color: var(--roc-primary);
    font-size: 12px;
}

.roc-stat span {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--roc-dark);
}

.roc-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin: 15px 0;
}

.roc-reputation {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--roc-border);
}

.roc-reputation h4 {
    margin: 0 0 10px 0;
    color: var(--roc-dark);
}

.roc-rep-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--roc-light);
}

.roc-inventory {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--roc-border);
}

.roc-inventory h4 {
    margin: 0 0 15px 0;
    color: var(--roc-dark);
}

.roc-inventory-items {
    max-height: 300px;
    overflow-y: auto;
}

.roc-inventory-item {
    background: var(--roc-light);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.roc-quantity {
    color: var(--roc-primary);
    font-weight: 600;
}

.roc-use-item-btn {
    background: var(--roc-secondary);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.roc-use-item-btn:hover {
    background: #059669;
}

/* Main Content */
.roc-main-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--roc-shadow);
}

.roc-scene {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.roc-scene-title {
    font-size: 2em;
    color: var(--roc-dark);
    margin: 0 0 10px 0;
}

.roc-scene-chapter-label {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7280;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.roc-scene-chapter-label:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.roc-scene-chapter {
    color: var(--roc-primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.roc-scene-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--roc-light);
    border-radius: 8px;
    border-left: 4px solid var(--roc-primary);
}

.roc-choices {
    margin-top: 30px;
}

.roc-choices h3 {
    color: var(--roc-dark);
    margin-bottom: 20px;
}

.roc-choice-btn {
    display: block;
    width: 100%;
    background: white;
    border: 2px solid var(--roc-primary);
    color: var(--roc-primary);
    padding: 18px 24px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.roc-choice-btn:hover {
    background: var(--roc-primary);
    color: white;
    transform: translateX(10px);
}

.roc-choice-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results */
.roc-results {
    margin-bottom: 20px;
}

.roc-result-item {
    background: var(--roc-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--roc-secondary);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.roc-result-item.level-up {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

/* Buttons */
.roc-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

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

.roc-btn-primary:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Choice Results */
.roc-choice-results {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.roc-choice-results h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    text-align: center;
    color: white;
}

.roc-result-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 8px;
    font-size: 16px;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.roc-result-item.level-up {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-left-color: #fff;
    font-weight: bold;
    font-size: 18px;
}

/* Loading States */
.roc-loading {
    text-align: center;
    padding: 60px 20px;
}

.roc-spinner {
    border: 4px solid var(--roc-light);
    border-top: 4px solid var(--roc-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: roc-spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.roc-loading p {
    color: var(--roc-dark);
    font-size: 16px;
    margin: 0;
}

.roc-choice-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Messages */
.roc-message {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.roc-message.roc-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.roc-message.roc-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

/* Leaderboard */
.roc-leaderboard {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--roc-shadow);
}

.roc-leaderboard h2 {
    color: var(--roc-dark);
    margin-bottom: 20px;
}

.roc-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.roc-leaderboard-table thead {
    background: var(--roc-primary);
    color: white;
}

.roc-leaderboard-table th,
.roc-leaderboard-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--roc-border);
}

.roc-leaderboard-table tbody tr:hover {
    background: var(--roc-light);
}

.roc-leaderboard-table tbody tr:nth-child(1) td:first-child {
    color: #fbbf24;
    font-size: 1.2em;
    font-weight: 700;
}

.roc-leaderboard-table tbody tr:nth-child(2) td:first-child {
    color: #9ca3af;
    font-size: 1.1em;
    font-weight: 700;
}

.roc-leaderboard-table tbody tr:nth-child(3) td:first-child {
    color: #cd7f32;
    font-size: 1.1em;
    font-weight: 700;
}

/* Player name links */
.roc-player-link {
    color: var(--roc-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.roc-player-link:hover {
    color: var(--roc-accent);
    text-decoration: underline;
    transform: translateX(2px);
}

.roc-player-link::after {
    content: "→";
    opacity: 0;
    transition: opacity 0.2s ease;
}

.roc-player-link:hover::after {
    opacity: 1;
}

/* Loading */
.roc-loading {
    text-align: center;
    padding: 40px;
}

.roc-spinner {
    border: 4px solid var(--roc-light);
    border-top: 4px solid var(--roc-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Character Sheet */
/* ==========================================
   CHARACTER PROFILE PAGE - MODERN LIGHT THEME
   CLEAN, PROFESSIONAL, MOBILE-OPTIMIZED
   ========================================== */

body .roc-character-sheet,
.roc-character-sheet.roc-character-sheet {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    min-height: 100vh !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body .roc-sheet-header,
.roc-sheet-header.roc-sheet-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid #e2e8f0 !important;
    padding: 40px !important;
    border-radius: 24px !important;
    margin-bottom: 30px !important;
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
}

body .roc-sheet-header::before,
.roc-sheet-header.roc-sheet-header::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    right: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%) !important;
    animation: pulse 4s ease-in-out infinite !important;
    pointer-events: none !important;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

body .roc-sheet-icon,
.roc-sheet-icon.roc-sheet-icon {
    font-size: 4em !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    width: 120px !important;
    height: 120px !important;
    border-radius: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25) !important;
    position: relative !important;
    z-index: 1 !important;
    animation: iconFloat 3s ease-in-out infinite !important;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

body .roc-sheet-title,
.roc-sheet-title.roc-sheet-title {
    flex: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

body .roc-sheet-title h2,
.roc-sheet-title.roc-sheet-title h2 {
    margin: 0 0 10px 0 !important;
    color: #1e293b !important;
    font-size: 3em !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

body .roc-sheet-title h3,
.roc-sheet-title.roc-sheet-title h3 {
    margin: 0 !important;
    color: #6366f1 !important;
    font-weight: 600 !important;
    font-size: 1.3em !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
}

body .roc-sheet-section,
.roc-sheet-section.roc-sheet-section {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    padding: 30px !important;
    border-radius: 20px !important;
    margin-bottom: 24px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

body .roc-sheet-section:hover,
.roc-sheet-section.roc-sheet-section:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px) !important;
}

body .roc-sheet-section h4,
.roc-sheet-section.roc-sheet-section h4 {
    margin: 0 0 24px 0 !important;
    color: #1e293b !important;
    font-size: 1.4em !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

body .roc-stats-grid,
.roc-stats-grid.roc-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 16px !important;
}

body .roc-stat-item,
.roc-stat-item.roc-stat-item {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
    padding: 24px !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    border: 2px solid #e2e8f0 !important;
    border-left: 4px solid #6366f1 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

body .roc-stat-item::before,
.roc-stat-item.roc-stat-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

body .roc-stat-item:hover,
.roc-stat-item.roc-stat-item:hover {
    transform: translateY(-4px) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15) !important;
}

body .roc-stat-item:hover::before,
.roc-stat-item.roc-stat-item:hover::before {
    opacity: 1 !important;
}

body .roc-stat-item .roc-stat-icon,
.roc-stat-item.roc-stat-item .roc-stat-icon {
    font-size: 2.5em !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;
}

body .roc-stat-item .roc-stat-label,
.roc-stat-item.roc-stat-item .roc-stat-label {
    color: #64748b !important;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

body .roc-stat-item .roc-stat-value,
.roc-stat-item.roc-stat-item .roc-stat-value {
    font-weight: 800 !important;
    font-size: 2em !important;
    color: #1e293b !important;
}

body .roc-rep-item.roc-stat-item,
.roc-rep-item.roc-stat-item.roc-stat-item {
    border-left-color: #f59e0b !important;
}

body .roc-rep-item.roc-stat-item:hover,
.roc-rep-item.roc-stat-item.roc-stat-item:hover {
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.15) !important;
}

body .roc-sheet-section ul,
.roc-sheet-section.roc-sheet-section ul {
    list-style: none !important;
    padding: 0 !important;
}

body .roc-sheet-section li,
.roc-sheet-section.roc-sheet-section li {
    padding: 12px 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

body .roc-sheet-section p,
.roc-sheet-section.roc-sheet-section p {
    color: #475569 !important;
    line-height: 1.8 !important;
    font-size: 1.05em !important;
}

body .roc-sheet-section p strong,
.roc-sheet-section.roc-sheet-section p strong {
    color: #6366f1 !important;
    font-weight: 700 !important;
}

/* Sidebar Header */
.roc-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #fafafa 0%, #f8fafc 100%);
    border-radius: 12px;
}

.roc-sidebar-icon {
    font-size: 2em;
    background: linear-gradient(135deg, var(--roc-primary), #6366f1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

/* Danger Zone */
.roc-danger-zone {
    background: rgba(153, 27, 27, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.roc-danger-zone h4 {
    color: #fca5a5 !important;
}

.roc-danger-zone p {
    color: #fecaca !important;
}

/* Danger Button */
.roc-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.roc-btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.5);
}

.roc-btn-danger:disabled {
    background: #4b5563;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Secondary Button */
.roc-btn-secondary {
    background: rgba(71, 85, 105, 0.8);
    color: white;
    border: 1px solid rgba(100, 116, 139, 0.5);
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.roc-btn-secondary:hover {
    background: rgba(51, 65, 85, 1);
    border-color: rgba(100, 116, 139, 0.8);
    transform: translateY(-2px);
}

/* Modal */
.roc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roc-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 40px;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.roc-modal-content h3 {
    margin: 0 0 20px 0;
    color: #fca5a5;
    font-size: 1.8em;
    font-weight: 700;
}

.roc-modal-content p {
    margin: 0 0 12px 0;
    color: #cbd5e1;
    font-size: 1.05em;
    line-height: 1.6;
}

.roc-modal-content p strong {
    color: #818cf8;
}

.roc-modal-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
}

/* Character name hint */
.roc-hint {
    font-size: 0.85em;
    color: #6b7280;
    font-weight: normal;
}

/* Character Sheet Inventory */
.roc-sheet-inventory {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roc-sheet-inventory li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--roc-border);
}

.roc-sheet-inventory li:last-child {
    border-bottom: none;
}

.roc-item-name {
    font-weight: 500;
}

.roc-item-qty {
    color: #6b7280;
    font-size: 0.9em;
}

.roc-empty {
    color: #64748b;
    font-style: italic;
    text-align: center;
    padding: 30px;
    font-size: 1.05em;
}

/* ==========================================
   VENDOR STYLES - MODERN DESIGN
   ========================================== */

.roc-vendor-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Vendor Banner */
.roc-vendor-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    padding: 30px 40px;
    margin-bottom: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.roc-vendor-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.roc-vendor-character {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.roc-merchant-avatar {
    font-size: 4em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.roc-merchant-info h2 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 1.8em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.roc-merchant-quote {
    color: #a0aec0;
    font-style: italic;
    max-width: 500px;
    line-height: 1.6;
    margin: 0;
}

.roc-vendor-wallet {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(246, 211, 101, 0.4);
    position: relative;
    z-index: 1;
}

.roc-wallet-icon {
    font-size: 2.5em;
}

.roc-wallet-info {
    display: flex;
    flex-direction: column;
}

.roc-wallet-label {
    font-size: 0.8em;
    color: #78350f;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.roc-wallet-amount {
    font-size: 1.8em;
    font-weight: 800;
    color: #451a03;
    transition: transform 0.3s ease, color 0.3s ease;
}

.roc-wallet-amount.gold-updated {
    transform: scale(1.2);
    color: #166534;
}

/* Main Layout */
.roc-vendor-main {
    display: flex;
    gap: 25px;
    min-height: 600px;
}

/* Sidebar */
.roc-vendor-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.roc-sidebar-section {
    margin-bottom: 25px;
}

.roc-sidebar-section:last-child {
    margin-bottom: 0;
}

.roc-sidebar-section h4 {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.roc-category-nav,
.roc-rarity-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roc-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 5px;
}

.roc-nav-item:hover {
    background: #f3f4f6;
}

.roc-nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.roc-nav-icon {
    font-size: 1.2em;
}

.roc-nav-text {
    flex: 1;
    font-weight: 500;
}

.roc-nav-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
}

.roc-nav-item.active .roc-nav-count {
    background: rgba(255, 255, 255, 0.2);
}

.roc-rarity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 3px;
}

.roc-rarity-item:hover {
    background: #f3f4f6;
}

.roc-rarity-item.active {
    background: #f3f4f6;
    font-weight: 600;
}

.roc-rarity-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--rarity-color, #9ca3af);
}

/* Content Area */
.roc-vendor-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.roc-vendor-toolbar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.roc-search-box {
    flex: 1;
    min-width: 200px;
}

.roc-search-box input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.2s ease;
}

.roc-search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.roc-sort-box select {
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1em;
    background: white;
    cursor: pointer;
}

/* Scrollable Items Container */
.roc-items-scroll-container {
    background: #f9fafb;
    border-radius: 16px;
    padding: 20px;
    max-height: 700px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.roc-items-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.roc-items-scroll-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.roc-items-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.roc-items-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.roc-vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Shop Item Card */
.roc-shop-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roc-shop-item:hover {
    transform: translateY(-5px);
}

.roc-shop-item-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--glow-color, #9ca3af);
}

.roc-shop-item:hover .roc-shop-item-glow {
    box-shadow: 0 0 20px var(--glow-color);
}

.roc-shop-item-inner {
    background: white;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.roc-shop-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.roc-shop-item-icon {
    font-size: 1.5em;
}

.roc-shop-rarity-badge {
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roc-shop-item-name {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    font-weight: 700;
}

.roc-shop-item-type {
    color: #6b7280;
    font-size: 0.85em;
    margin: 0 0 10px 0;
}

.roc-shop-item-desc {
    color: #374151;
    font-size: 0.9em;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.roc-shop-item-lore {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}

.roc-lore-icon {
    font-size: 1.2em;
}

.roc-shop-item-lore p {
    margin: 0;
    font-size: 0.8em;
    color: #78350f;
    font-style: italic;
    line-height: 1.5;
}

.roc-shop-item-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.roc-mini-stat {
    background: #ecfdf5;
    color: #047857;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 600;
}

.roc-shop-collection-hint {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    font-size: 0.8em;
    color: #5b21b6;
}

.roc-shop-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.roc-shop-price {
    display: flex;
    align-items: center;
    gap: 6px;
}

.roc-gold-icon {
    font-size: 1.2em;
}

.roc-price-amount {
    font-size: 1.2em;
    font-weight: 800;
    color: #d97706;
}

.roc-purchase-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.roc-purchase-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.roc-purchase-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* No Results */
.roc-no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
}

.roc-no-results-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.roc-no-results p {
    color: #6b7280;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.roc-reset-filters-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* Toast Notification */
.roc-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.roc-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.roc-toast.success {
    border-left: 4px solid #10b981;
}

.roc-toast.error {
    border-left: 4px solid #ef4444;
}

.roc-toast-icon {
    font-size: 1.5em;
}

.roc-toast-message {
    font-weight: 500;
}

/* Click Hint */
.roc-click-hint {
    font-size: 0.75em;
    color: #9ca3af;
    text-align: center;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.roc-item-click-area {
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 8px;
    padding: 5px;
    margin: -5px;
}

.roc-item-click-area:hover {
    background: rgba(102, 126, 234, 0.05);
}

.roc-item-click-area:hover .roc-click-hint {
    opacity: 1;
}

/* Item Detail Modal */
.roc-item-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.roc-item-modal.show {
    opacity: 1;
    visibility: visible;
}

body.roc-modal-open {
    overflow: hidden;
}

.roc-item-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.roc-item-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
    border-top: 5px solid #667eea;
}

.roc-item-modal.show .roc-item-modal-content {
    transform: translateY(0) scale(1);
}

.roc-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2em;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.roc-modal-close:hover {
    color: #374151;
    transform: rotate(90deg);
}

.roc-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 24px 24px 0 0;
}

.roc-modal-icon-wrap {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.roc-modal-item-icon {
    font-size: 2.5em;
}

.roc-modal-title-wrap {
    flex: 1;
}

.roc-modal-item-name {
    margin: 0 0 8px 0;
    font-size: 1.6em;
    font-weight: 700;
}

.roc-modal-meta {
    display: flex;
    gap: 10px;
}

.roc-modal-type-badge {
    background: #e5e7eb;
    color: #4b5563;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.roc-modal-rarity-badge {
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.roc-modal-saying {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 30px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    margin: 0;
}

.roc-saying-icon {
    font-size: 1.5em;
}

.roc-saying-text {
    margin: 0;
    font-style: italic;
    color: #78350f;
    font-size: 1.05em;
    line-height: 1.6;
}

.roc-modal-body {
    padding: 25px 30px;
}

.roc-modal-section {
    margin-bottom: 25px;
}

.roc-modal-section:last-child {
    margin-bottom: 0;
}

.roc-modal-section h4 {
    margin: 0 0 12px 0;
    font-size: 0.95em;
    color: #374151;
    font-weight: 600;
}

.roc-modal-desc-text {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 1em;
}

.roc-modal-lore-box {
    background: linear-gradient(135deg, #fef9e7 0%, #fdf6e3 100%);
    border-left: 4px solid #f59e0b;
    padding: 15px 20px;
    border-radius: 0 12px 12px 0;
}

.roc-modal-lore-text {
    margin: 0;
    font-style: italic;
    color: #78350f;
    line-height: 1.7;
}

.roc-modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.roc-modal-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ecfdf5;
    padding: 10px 15px;
    border-radius: 10px;
}

.roc-stat-name {
    color: #047857;
    font-weight: 500;
}

.roc-stat-value {
    color: #047857;
    font-weight: 700;
    font-size: 1.1em;
}

.roc-modal-collection-box {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-left: 4px solid #8b5cf6;
    padding: 15px 20px;
    border-radius: 0 12px 12px 0;
}

.roc-modal-collection-text {
    margin: 0;
    color: #5b21b6;
    font-weight: 500;
}

.roc-rarity-info-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px 20px;
}

.roc-rarity-tier {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.roc-rarity-label {
    color: #6b7280;
    font-weight: 500;
}

.roc-rarity-value {
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
}

.roc-rarity-desc {
    color: #4b5563;
    font-size: 0.9em;
    line-height: 1.6;
}

.roc-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 24px 24px;
}

.roc-modal-prices {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.roc-modal-buy-price,
.roc-modal-sell-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.roc-price-label {
    color: #6b7280;
    font-size: 0.85em;
}

.roc-price-value {
    font-weight: 700;
    color: #d97706;
}

.roc-price-value.roc-sell {
    color: #6b7280;
    font-size: 0.9em;
}

.roc-modal-buy-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.roc-modal-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.roc-modal-buy-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Rarity-specific modal borders */
.roc-item-modal[data-rarity="basic"] .roc-item-modal-content {
    border-top-color: #9ca3af;
}

.roc-item-modal[data-rarity="rare"] .roc-item-modal-content {
    border-top-color: #3b82f6;
}

.roc-item-modal[data-rarity="legendary"] .roc-item-modal-content {
    border-top-color: #f59e0b;
    box-shadow: 0 25px 80px rgba(245, 158, 11, 0.3);
}

.roc-item-modal[data-rarity="mythic"] .roc-item-modal-content {
    border-top-color: #a855f7;
    box-shadow: 0 25px 80px rgba(168, 85, 247, 0.3);
}

.roc-item-modal[data-rarity="divine"] .roc-item-modal-content {
    border-top-color: #ec4899;
    box-shadow: 0 25px 80px rgba(236, 72, 153, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .roc-vendor-main {
        flex-direction: column;
    }
    
    .roc-vendor-sidebar {
        width: 100%;
        position: static;
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .roc-sidebar-section {
        flex: 1;
        min-width: 200px;
        margin-bottom: 0;
    }
    
    .roc-category-nav,
    .roc-rarity-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .roc-nav-item,
    .roc-rarity-item {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .roc-vendor-banner {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .roc-vendor-character {
        flex-direction: column;
        margin-bottom: 20px;
    }
    
    .roc-merchant-quote {
        max-width: 100%;
    }
    
    .roc-vendor-grid {
        grid-template-columns: 1fr;
    }
    
    .roc-items-scroll-container {
        max-height: 500px;
    }
}

/* Inventory lore display */
.roc-sheet-inventory .roc-item-lore-text {
    font-size: 0.8em;
    color: #6b7280;
    font-style: italic;
    margin-top: 3px;
}

.roc-sheet-inventory li {
    flex-direction: column;
    align-items: flex-start;
}

.roc-sheet-inventory .roc-item-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.roc-item-rarity {
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.roc-item-rarity.basic { background: #e5e7eb; color: #6b7280; }
.roc-item-rarity.rare { background: #dbeafe; color: #2563eb; }
.roc-item-rarity.legendary { background: #fef3c7; color: #d97706; }
.roc-item-rarity.mythic { background: #f3e8ff; color: #9333ea; }
.roc-item-rarity.divine { background: #fce7f3; color: #db2777; }

/* ==========================================
   ENHANCED INVENTORY ITEM CARDS - LIGHT THEME
   ========================================== */

.roc-sheet-section .roc-sheet-inventory {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.roc-sheet-section .roc-sheet-inventory li.roc-inventory-item-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-left: 4px solid #6366f1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    list-style: none !important;
    padding: 0 !important;
}

.roc-sheet-section .roc-inventory-item-card:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12) !important;
    transform: translateY(-2px) !important;
    border-color: #6366f1 !important;
}

.roc-sheet-section .roc-item-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 24px !important;
    cursor: pointer !important;
    background: #fafafa !important;
    transition: all 0.3s ease !important;
}

.roc-sheet-section .roc-item-header-row:hover {
    background: #f1f5f9 !important;
}

.roc-sheet-section .roc-item-name-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.roc-sheet-section .roc-item-name {
    font-weight: 700 !important;
    font-size: 1.1em !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #1e293b !important;
}

.roc-sheet-section .roc-item-type-badge {
    font-size: 0.7em !important;
    background: #ede9fe !important;
    color: #6366f1 !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
    border: 1px solid #c7d2fe !important;
}

.roc-sheet-section .roc-item-meta {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.roc-sheet-section .roc-item-qty {
    font-weight: 700 !important;
    color: #1e293b !important;
    background: #e2e8f0 !important;
    padding: 6px 14px !important;
    border-radius: 10px !important;
    font-size: 0.9em !important;
}

.roc-sheet-section .roc-item-expand-icon {
    font-size: 1.2em !important;
    opacity: 0.6 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    color: #64748b !important;
}

.roc-sheet-section .roc-item-header-row:hover .roc-item-expand-icon {
    opacity: 1 !important;
    transform: scale(1.15) !important;
    color: #6366f1 !important;
}

.roc-sheet-section .roc-item-details {
    padding: 24px !important;
    background: #fafafa !important;
    border-top: 1px solid #e2e8f0 !important;
}

.roc-sheet-section .roc-item-description {
    margin-bottom: 16px !important;
    padding: 16px 20px !important;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border-radius: 12px !important;
    color: #065f46 !important;
    font-size: 0.95em !important;
    border: 1px solid #a7f3d0 !important;
}

.roc-sheet-section .roc-item-description strong {
    color: #047857 !important;
}

.roc-sheet-section .roc-item-stats-detail {
    margin-bottom: 16px !important;
}

.roc-sheet-section .roc-item-stats-detail strong {
    display: block !important;
    margin-bottom: 10px !important;
    color: #1e293b !important;
}

.roc-sheet-section .roc-stat-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.roc-sheet-section .roc-stat-badge {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    color: #047857 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 0.85em !important;
    font-weight: 700 !important;
    border: 1px solid #a7f3d0 !important;
}

.roc-sheet-section .roc-item-rarity-info {
    margin-bottom: 16px !important;
    padding: 16px 20px !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    font-size: 0.95em !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.roc-sheet-section .roc-item-rarity-info strong {
    color: #1e293b !important;
}

.roc-sheet-section .roc-item-lore-box {
    margin-bottom: 16px !important;
    padding: 18px 22px !important;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border-radius: 12px !important;
    border-left: 4px solid #f59e0b !important;
}

.roc-sheet-section .roc-item-lore-box strong {
    color: #92400e !important;
    display: block !important;
    margin-bottom: 10px !important;
}

.roc-sheet-section .roc-item-lore-box p {
    margin: 0 !important;
    font-style: italic !important;
    color: #78350f !important;
    line-height: 1.7 !important;
}

.roc-sheet-section .roc-item-collection-info {
    padding: 18px 22px !important;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%) !important;
    border-radius: 12px !important;
    border-left: 4px solid #8b5cf6 !important;
}

.roc-sheet-section .roc-item-collection-info strong {
    color: #5b21b6 !important;
    display: block !important;
    margin-bottom: 10px !important;
}

.roc-sheet-section .roc-item-collection-info p {
    margin: 0 !important;
    color: #6d28d9 !important;
    font-weight: 500 !important;
}

/* Rarity colors for inventory - Light theme */
.roc-sheet-section .roc-item-rarity {
    font-size: 0.75em !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

.roc-sheet-section .roc-item-rarity.basic { 
    background: #f3f4f6 !important; 
    color: #6b7280 !important;
    border: 1px solid #d1d5db !important;
}
.roc-sheet-section .roc-item-rarity.rare { 
    background: #dbeafe !important; 
    color: #2563eb !important;
    border: 1px solid #93c5fd !important;
}
.roc-sheet-section .roc-item-rarity.legendary { 
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important; 
    color: #d97706 !important;
    border: 1px solid #fcd34d !important;
}
.roc-sheet-section .roc-item-rarity.mythic { 
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff) !important; 
    color: #9333ea !important;
    border: 1px solid #c4b5fd !important;
}
.roc-sheet-section .roc-item-rarity.divine { 
    background: linear-gradient(135deg, #fce7f3, #fbcfe8) !important; 
    color: #db2777 !important;
    border: 1px solid #f9a8d4 !important;
}

@media (max-width: 768px) {
    /* Vendor styles */
    .roc-vendor-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .roc-filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .roc-vendor-grid {
        grid-template-columns: 1fr;
    }
    
    /* CHARACTER SHEET MOBILE - MAXIMUM SPECIFICITY */
    body .roc-character-sheet,
    .roc-character-sheet.roc-character-sheet.roc-character-sheet {
        padding: 20px 15px !important;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
        min-height: 100vh !important;
        box-sizing: border-box !important;
    }
    
    body .roc-sheet-header,
    .roc-sheet-header.roc-sheet-header.roc-sheet-header {
        padding: 30px 20px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(99, 102, 241, 0.2) !important;
        border-radius: 24px !important;
    }
    
    body .roc-sheet-header::before,
    .roc-sheet-header.roc-sheet-header::before {
        display: block !important;
    }
    
    body .roc-sheet-icon,
    .roc-sheet-icon.roc-sheet-icon.roc-sheet-icon {
        width: 100px !important;
        height: 100px !important;
        font-size: 3em !important;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%) !important;
        border-radius: 30px !important;
        box-shadow: 0 10px 40px rgba(99, 102, 241, 0.5), 0 0 80px rgba(139, 92, 246, 0.3) !important;
        margin: 0 auto !important;
    }
    
    body .roc-sheet-title,
    .roc-sheet-title.roc-sheet-title.roc-sheet-title {
        width: 100% !important;
        text-align: center !important;
    }
    
    body .roc-sheet-title h2,
    .roc-sheet-title.roc-sheet-title h2 {
        font-size: 2em !important;
        color: #ffffff !important;
        background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        text-align: center !important;
    }
    
    body .roc-sheet-title h3,
    .roc-sheet-title.roc-sheet-title h3 {
        font-size: 1.1em !important;
        color: #818cf8 !important;
        text-align: center !important;
    }
    
    body .roc-sheet-section,
    .roc-sheet-section.roc-sheet-section.roc-sheet-section {
        padding: 20px !important;
        margin-bottom: 20px !important;
        background: rgba(30, 41, 59, 0.6) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(99, 102, 241, 0.15) !important;
        border-radius: 20px !important;
    }
    
    body .roc-sheet-section h4,
    .roc-sheet-section.roc-sheet-section h4 {
        font-size: 1.2em !important;
        color: #f1f5f9 !important;
        border-bottom: 2px solid rgba(99, 102, 241, 0.2) !important;
    }
    
    body .roc-stats-grid,
    .roc-stats-grid.roc-stats-grid.roc-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        display: grid !important;
    }
    
    body .roc-stat-item,
    .roc-stat-item.roc-stat-item.roc-stat-item {
        padding: 20px !important;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
        border: 1px solid rgba(99, 102, 241, 0.2) !important;
        border-left: 4px solid #6366f1 !important;
        flex-direction: column !important;
        gap: 12px !important;
        display: flex !important;
        border-radius: 16px !important;
    }
    
    body .roc-stat-item .roc-stat-icon,
    .roc-stat-item.roc-stat-item .roc-stat-icon {
        font-size: 2.5em !important;
    }
    
    body .roc-stat-item .roc-stat-label,
    .roc-stat-item.roc-stat-item .roc-stat-label {
        color: #94a3b8 !important;
        font-size: 0.9em !important;
    }
    
    body .roc-stat-item .roc-stat-value,
    .roc-stat-item.roc-stat-item .roc-stat-value {
        font-size: 1.8em !important;
        color: #ffffff !important;
        background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }
    
    /* Inventory mobile fixes */
    body .roc-sheet-section .roc-item-header-row,
    .roc-sheet-section.roc-sheet-section .roc-item-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 16px !important;
        background: rgba(30, 41, 59, 0.5) !important;
    }
    
    body .roc-sheet-section .roc-item-meta,
    .roc-sheet-section.roc-sheet-section .roc-item-meta {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    body .roc-sheet-section .roc-item-name-wrap,
    .roc-sheet-section.roc-sheet-section .roc-item-name-wrap {
        width: 100% !important;
    }
    
    body .roc-sheet-section .roc-item-name,
    .roc-sheet-section.roc-sheet-section .roc-item-name {
        color: #f1f5f9 !important;
    }
    
    body .roc-sheet-section .roc-sheet-inventory li.roc-inventory-item-card,
    .roc-sheet-section.roc-sheet-section .roc-sheet-inventory li.roc-inventory-item-card {
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%) !important;
        border: 1px solid rgba(99, 102, 241, 0.2) !important;
        border-left: 4px solid #6366f1 !important;
    }
}

@media (max-width: 480px) {
    body .roc-character-sheet,
    .roc-character-sheet.roc-character-sheet {
        padding: 15px 10px !important;
    }
    
    body .roc-sheet-header,
    .roc-sheet-header.roc-sheet-header {
        padding: 25px 15px !important;
    }
    
    body .roc-sheet-icon,
    .roc-sheet-icon.roc-sheet-icon {
        width: 80px !important;
        height: 80px !important;
        font-size: 2.5em !important;
    }
    
    body .roc-sheet-title h2,
    .roc-sheet-title.roc-sheet-title h2 {
        font-size: 1.6em !important;
    }
    
    body .roc-sheet-title h3,
    .roc-sheet-title.roc-sheet-title h3 {
        font-size: 1em !important;
    }
    
    body .roc-sheet-section,
    .roc-sheet-section.roc-sheet-section {
        padding: 16px !important;
    }
    
    body .roc-sheet-section h4,
    .roc-sheet-section.roc-sheet-section h4 {
        font-size: 1.1em !important;
    }
    
    body .roc-stat-item,
    .roc-stat-item.roc-stat-item {
        padding: 16px !important;
    }
    
    body .roc-stat-item .roc-stat-icon,
    .roc-stat-item.roc-stat-item .roc-stat-icon {
        font-size: 2em !important;
    }
    
    body .roc-stat-item .roc-stat-value,
    .roc-stat-item.roc-stat-item .roc-stat-value {
        font-size: 1.5em !important;
    }
    
    body .roc-sheet-section .roc-item-header-row,
    .roc-sheet-section.roc-sheet-section .roc-item-header-row {
        padding: 14px !important;
    }
    
    body .roc-sheet-section .roc-item-details,
    .roc-sheet-section.roc-sheet-section .roc-item-details {
        padding: 16px !important;
        background: rgba(15, 23, 42, 0.6) !important;
    }
}

/* Enhanced Inventory Styling */
.roc-inventory-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.roc-inventory-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

.roc-item-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.roc-item-name-small {
    flex: 1;
    font-weight: 500;
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roc-quantity {
    font-size: 0.75em;
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 10px;
    color: #64748b;
}

/* Character Sheet Inventory Cards */
.roc-inventory-item-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.roc-inventory-item-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.roc-item-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.roc-item-header-row:hover {
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
}

.roc-item-name-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.roc-item-name {
    font-weight: 600;
    font-size: 1em;
}

.roc-item-type-badge {
    font-size: 0.7em;
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roc-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.roc-item-rarity {
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roc-item-rarity.common { color: #9ca3af; }
.roc-item-rarity.uncommon { color: #22c55e; }
.roc-item-rarity.rare { color: #3b82f6; }
.roc-item-rarity.epic { color: #a855f7; }
.roc-item-rarity.legendary { color: #f59e0b; }

.roc-item-qty {
    font-size: 0.8em;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 8px;
    color: #475569;
    font-weight: 500;
}

.roc-item-expand-icon {
    font-size: 1em;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.roc-item-header-row.expanded .roc-item-expand-icon {
    transform: rotate(180deg);
}

/* Item Details Panel */
.roc-item-details {
    padding: 15px;
    background: #fafafa;
    border-top: 1px solid #e2e8f0;
}

.roc-item-description {
    margin-bottom: 12px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    font-size: 0.9em;
    color: #334155;
}

.roc-item-stats-detail {
    margin-bottom: 12px;
}

.roc-stat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.roc-stat-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.roc-item-rarity-info {
    margin-bottom: 12px;
    font-size: 0.85em;
    color: #64748b;
}

.roc-item-lore-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid #f59e0b;
}

.roc-item-lore-box strong {
    color: #92400e;
}

.roc-item-lore-box p {
    margin: 8px 0 0 0;
    font-style: italic;
    color: #78350f;
    font-size: 0.9em;
    line-height: 1.5;
}

.roc-item-collection-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.roc-item-collection-info strong {
    color: #1e40af;
}

.roc-item-collection-info p {
    margin: 8px 0 0 0;
    color: #1e3a8a;
    font-size: 0.85em;
}

/* Use Item Button */
.roc-use-item-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.roc-use-item-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Energy Depleted Notification */
.roc-energy-depleted-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
}

.roc-energy-depleted-box h3 {
    color: #92400e;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.roc-energy-depleted-box p {
    color: #78350f;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 10px;
}

.roc-energy-depleted-box strong {
    color: #92400e;
}

.roc-energy-depleted-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border: 2px solid #f59e0b !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin: 10px 0 !important;
    color: #92400e !important;
    font-weight: 600 !important;
}

/* Energy bar warning state */
.roc-energy-bar.low {
    background: linear-gradient(90deg, #ef4444 0%, #f97316 100%) !important;
}

.roc-energy-bar.critical {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%) !important;
    animation: pulse-warning 1s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Energy Warning Messages */
.roc-energy-warning {
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 6px;
    margin-top: 5px;
    text-align: center;
    font-weight: 600;
}

.roc-energy-warning:first-of-type {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.roc-stat-bar .roc-energy-warning {
    display: block;
    width: 100%;
}

/* Low energy bar colors */
.roc-progress-fill.roc-health-bar.low {
    background: linear-gradient(90deg, #f97316 0%, #fb923c 100%) !important;
}

.roc-progress-fill.roc-health-bar.critical {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%) !important;
    animation: pulse-critical 0.8s ease-in-out infinite;
}

@keyframes pulse-critical {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    }
    50% { 
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.8);
    }
}

/* Guest Banner Styling */
.roc-guest-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.roc-guest-banner p {
    margin: 0;
    color: #92400e;
    font-size: 0.9em;
}

.roc-guest-banner a {
    color: #d97706;
    font-weight: 600;
    text-decoration: underline;
}

.roc-guest-banner a:hover {
    color: #b45309;
}

/* Start Over Button */
.roc-start-over-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: white !important;
    border: none !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 0.85em !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap;
}

.roc-start-over-btn:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4) !important;
}

.roc-start-over-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Small button variant */
.roc-btn-small {
    padding: 5px 12px !important;
    font-size: 0.8em !important;
}

/* Mobile responsive guest banner */
@media (max-width: 600px) {
    .roc-guest-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .roc-guest-banner p {
        width: 100%;
    }
    
    .roc-start-over-btn {
        width: 100%;
        margin-top: 8px;
    }
}
