/**
 * Candle'Bre Character Creator - Frontend Styles
 */

/* Main Wrapper */
.cbcc-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    background: #faf8f3;
    border: 3px solid #8b4513;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    font-family: 'Georgia', serif;
}

/* Header */
.cbcc-header {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
    position: relative;
}

.cbcc-header h1 {
    margin: 0 0 20px 0;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cbcc-btn-start-new {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #dc3545;
    color: white;
    border: 2px solid white;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.cbcc-btn-start-new:hover {
    background: #c82333;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Progress Bar */
.cbcc-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    position: relative;
}

.cbcc-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 10px;
}

.cbcc-progress-step .step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    font-weight: bold;
    margin-bottom: 5px;
}

.cbcc-progress-step.active .step-number {
    background: #ff6b35;
    color: #fff;
}

.cbcc-progress-step.completed .step-number {
    background: #4caf50;
    color: #fff;
}

.cbcc-progress-step .step-label {
    display: block;
    font-size: 12px;
}

/* Clickable progress steps */
.cbcc-progress-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    width: 100%;
    height: 100%;
    cursor: default;
}

/* Content Area */
.cbcc-content {
    padding: 40px;
}

.cbcc-step h2 {
    color: #8b4513;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.cbcc-intro {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Sections */
.cbcc-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border: 2px solid #d4af37;
    border-radius: 8px;
}

.cbcc-section h3 {
    color: #8b4513;
    font-size: 22px;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}

/* Ability Scores */
.cbcc-abilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.cbcc-ability-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    padding: 15px 10px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.cbcc-ability-item label {
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 8px;
    font-size: 14px;
    text-align: center;
}

.cbcc-ability-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cbcc-ability-input {
    width: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #8b4513;
    border-radius: 4px;
    padding: 5px;
}

.cbcc-ability-modifier {
    font-size: 16px;
    color: #666;
    font-weight: bold;
}

.cbcc-btn-minus {
    background: #dc3545; /* Red circle */
    color: white;
    border: 3px solid #dc3545;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    border-radius: 50%; /* Circle */
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbcc-btn-minus:hover:not(:disabled) {
    background: #c82333;
    border-color: #c82333;
}
}

.cbcc-btn-plus {
    background: #28a745; /* Green circle */
    color: white;
    border: 3px solid #28a745;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    border-radius: 50%; /* Circle */
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbcc-btn-plus:hover:not(:disabled) {
    background: #218838;
    border-color: #218838;
}

.cbcc-btn-plus:disabled {
    background: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.cbcc-ability-controls-info {
    background: #f8f9fa;
    border: 2px solid #8b4513;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.cbcc-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cbcc-transfer-info {
    flex: 1;
    font-size: 16px;
}

.cbcc-transfer-info .cbcc-highlight {
    color: #28a745;
    font-size: 20px;
    font-weight: bold;
    padding: 0 5px;
}

.cbcc-transfer-info .cbcc-help-text {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.cbcc-btn-reset-stats {
    white-space: nowrap;
    margin-left: 15px;
}

.cbcc-ap-spending-control {
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.cbcc-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
}

.cbcc-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cbcc-ap-spent-display {
    margin-left: 10px;
    color: #666;
    font-weight: normal;
}

.cbcc-ability-item {
    text-align: center;
    padding: 15px;
    background: #f5ebe0;
    border: 2px solid #8b4513;
    border-radius: 8px;
}

.cbcc-ability-item label {
    display: block;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 10px;
}

.cbcc-ability-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.cbcc-btn-plus,
.cbcc-btn-minus {
    width: 35px;
    height: 35px;
    border: 2px solid #8b4513;
    background: #fff;
    color: #8b4513;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.cbcc-btn-plus:hover,
.cbcc-btn-minus:hover {
    background: #8b4513;
    color: #fff;
    transform: scale(1.1);
}

.cbcc-ability-input {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #8b4513;
    border-radius: 4px;
}

.cbcc-ability-modifier {
    display: block;
    font-size: 18px;
    color: #666;
    margin-top: 5px;
}

.cbcc-trades-remaining {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #8b4513;
    margin-top: 20px;
}

#cbcc-trades-count {
    color: #ff6b35;
    font-size: 24px;
}

/* Race Cards */
.cbcc-race-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.cbcc-race-card {
    border: 3px solid #d4af37;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.cbcc-race-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cbcc-race-card.selected {
    border-color: #ff6b35;
    background: #fff5f0;
}

.cbcc-race-card input[type="radio"] {
    display: none;
}

.cbcc-race-card h4 {
    color: #8b4513;
    font-size: 20px;
    margin: 0 0 10px 0;
}

.cbcc-race-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.cbcc-race-bonuses {
    background: #f5ebe0;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.cbcc-race-features {
    margin-top: 15px;
}

.cbcc-feature-item {
    padding: 8px;
    border-bottom: 1px dotted #ccc;
    font-size: 14px;
}

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

/* Flaws */
.cbcc-flaws-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cbcc-flaws-column h4 {
    color: #8b4513;
    font-size: 18px;
    margin-bottom: 15px;
}

.cbcc-flaw-item {
    padding: 10px;
    margin-bottom: 10px;
    background: #f5ebe0;
    border-radius: 4px;
}

.cbcc-flaw-item input[type="checkbox"] {
    margin-right: 10px;
}

.cbcc-flaw-effect {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.cbcc-ap-bonus {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #8b4513;
    margin-top: 20px;
}

/* Class Cards */
.cbcc-class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.cbcc-class-card {
    border: 3px solid #d4af37;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.cbcc-class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cbcc-class-card.selected {
    border-color: #ff6b35;
    background: #fff5f0;
}

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

.cbcc-class-card h3 {
    color: #8b4513;
    font-size: 22px;
    margin: 0 0 10px 0;
}

.cbcc-class-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.cbcc-class-stats {
    background: #f5ebe0;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.cbcc-stat-row {
    padding: 5px 0;
    border-bottom: 1px dotted #ccc;
    font-size: 14px;
}

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

.cbcc-class-features ul {
    margin: 10px 0 0 20px;
    font-size: 14px;
}

/* Skills */
.cbcc-ap-tracker {
    text-align: center;
    padding: 20px;
    background: #f5ebe0;
    border: 2px solid #8b4513;
    border-radius: 8px;
    margin-bottom: 30px;
}

.cbcc-ap-tracker h4 {
    margin: 0;
    color: #8b4513;
    font-size: 24px;
}

#cbcc-ap-remaining {
    color: #ff6b35;
}

.cbcc-ap-info {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #666;
}

.cbcc-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.cbcc-skill-item {
    padding: 10px;
    background: #f5ebe0;
    border-radius: 4px;
}

.cbcc-skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cbcc-skill-header label {
    font-weight: bold;
    color: #8b4513;
}

.cbcc-mechanics {
    font-size: 12px;
    color: #666;
}


/* Standardized skill selector (radio style) */
.cbcc-skill-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
}

.cbcc-skill-level {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    text-align: left;
    cursor: pointer;
}

.cbcc-skill-level input[type="radio"] {
    display: inline-block;
    margin: 0;
}

.cbcc-skill-level span {
    display: inline;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    transition: none;
}

.cbcc-skill-level input[type="radio"]:checked + span {
    background: transparent;
    color: inherit;
    border-color: transparent;
}

.cbcc-skill-level:hover span {
    transform: none;
}
.cbcc-combat-skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cbcc-combat-category h4 {
    color: #8b4513;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Feats */
.cbcc-feats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cbcc-feat-card {
    border: 2px solid #d4af37;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.cbcc-feat-card:has(input:checked) {
    border-color: #ff6b35;
    background: #fff5f0;
}

.cbcc-feat-card input {
    display: none;
}

.cbcc-feat-card label {
    display: block;
}

.cbcc-feat-card h4 {
    color: #8b4513;
    font-size: 18px;
    margin: 0 0 10px 0;
}

.cbcc-feat-cost {
    color: #ff6b35;
    font-size: 14px;
    font-weight: normal;
}

.cbcc-feat-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.cbcc-feat-prereq {
    font-size: 13px;
    color: #999;
    font-style: italic;
}

.cbcc-feat-benefits ul {
    margin: 10px 0 0 20px;
    font-size: 13px;
}

/* Equipment */
.cbcc-equipment-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cbcc-equipment-choice-group {
    margin: 12px 0;
    padding: 10px;
    border: 1px solid #d4af37;
    border-radius: 6px;
    background: #fffaf0;
}

.cbcc-equipment-choice-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.cbcc-pack-details {
    margin-left: 12px;
    display: inline-block;
}

.cbcc-pack-details summary {
    cursor: pointer;
    font-size: 12px;
}

.cbcc-equipment-fixed-block {
    margin-top: 16px;
    padding: 10px;
    border: 1px dashed #d4af37;
    border-radius: 6px;
    background: #fff;
}

.cbcc-shop-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.cbcc-shop-table th,
.cbcc-shop-table td {
    border: 1px solid #e6e6e6;
    padding: 6px 8px;
    font-size: 14px;
}

.cbcc-shop-summary {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.cbcc-negative {
    color: #b30000;
    font-weight: 700;
}

.cbcc-choice-option {
    border: 3px solid #d4af37;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.cbcc-choice-option > input.cbcc-method-radio[type="radio"] {
    display: none;
}

.cbcc-choice-option:has(> input.cbcc-method-radio:checked) {
    border-color: #ff6b35;
    background: #fff5f0;
}

.cbcc-equipment-list {
    margin-top: 15px;
}

.cbcc-equipment-item {
    padding: 8px;
    margin-bottom: 8px;
}

.cbcc-btn-roll-gold {
    margin: 15px 0;
    padding: 10px 20px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.cbcc-btn-roll-gold:hover {
    background: #e55a2a;
}

.cbcc-gold-result {
    font-size: 18px;
    font-weight: bold;
    color: #8b4513;
}

.cbcc-custom-equipment {
    width: 100%;
    padding: 10px;
    border: 2px solid #d4af37;
    border-radius: 4px;
    font-family: inherit;
}

/* Character Details */
.cbcc-form-group {
    margin-bottom: 20px;
}

.cbcc-form-group label {
    display: block;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 8px;
}

.cbcc-form-group input[type="text"],
.cbcc-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #d4af37;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.cbcc-help-text {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.cbcc-image-generator {
    margin-top: 20px;
}

.cbcc-btn-generate-image {
    padding: 15px 30px;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.cbcc-btn-generate-image:hover {
    background: #45a049;
}

.cbcc-image-preview {
    margin-top: 20px;
    text-align: center;
}

.cbcc-generated-image {
    max-width: 400px;
    border: 3px solid #8b4513;
    border-radius: 8px;
    margin: 15px 0;
}

.cbcc-image-loading {
    text-align: center;
    padding: 40px;
}

.cbcc-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Review Page */
.cbcc-character-summary {
    background: #fff;
    border: 3px solid #8b4513;
    border-radius: 8px;
    padding: 30px;
}

.cbcc-summary-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #d4af37;
}

.cbcc-summary-portrait {
    width: 150px;
    height: 150px;
    border: 3px solid #8b4513;
    border-radius: 50%;
    object-fit: cover;
}

.cbcc-summary-basic h3 {
    color: #8b4513;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.cbcc-summary-details {
    font-size: 18px;
    color: #666;
}

.cbcc-summary-stats {
    margin-bottom: 20px;
}

.cbcc-summary-abilities {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.cbcc-ability-summary {
    text-align: center;
    padding: 15px;
    background: #f5ebe0;
    border: 2px solid #8b4513;
    border-radius: 4px;
}

.cbcc-ability-summary strong {
    display: block;
    color: #8b4513;
    margin-bottom: 5px;
}

.ability-score {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.ability-mod {
    display: block;
    font-size: 14px;
    color: #666;
}

.cbcc-summary-section {
    margin-bottom: 25px;
}

.cbcc-summary-section h4 {
    color: #8b4513;
    font-size: 20px;
    margin: 0 0 10px 0;
    border-bottom: 1px solid #d4af37;
    padding-bottom: 5px;
}

.cbcc-summary-section ul {
    margin: 0 0 0 20px;
}

.cbcc-export-options {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #d4af37;
}

.cbcc-export-options h3 {
    color: #8b4513;
    margin-bottom: 20px;
}

/* Buttons */
.cbcc-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.cbcc-btn-primary {
    background: #ff6b35;
    color: #fff;
}

.cbcc-btn-primary:hover {
    background: #e55a2a;
}

.cbcc-btn-secondary {
    background: #8b4513;
    color: #fff;
}

.cbcc-btn-secondary:hover {
    background: #6d3710;
}

.cbcc-btn-success {
    background: #4caf50;
    color: #fff;
}

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

/* Navigation */
.cbcc-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #d4af37;
}

.cbcc-btn-next,
.cbcc-btn-prev {
    padding: 15px 40px;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .cbcc-abilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .cbcc-controls-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cbcc-btn-reset-stats {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .cbcc-ability-item {
        padding: 10px 5px;
    }
    
    .cbcc-ability-item label {
        font-size: 12px;
    }
    
    .cbcc-btn-minus,
    .cbcc-btn-plus {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .cbcc-ability-input {
        width: 45px;
        font-size: 16px;
    }
    .cbcc-abilities-grid,
    .cbcc-race-grid,
    .cbcc-class-grid,
    .cbcc-combat-skills-container,
    .cbcc-flaws-container,
    .cbcc-equipment-choice {
        grid-template-columns: 1fr;
    }
    
    .cbcc-progress-bar {
        flex-wrap: wrap;
    }
    
    .cbcc-content {
        padding: 20px;
    }
    
    .cbcc-summary-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Aspirant Group Modal Styles */
.cbcc-aspirant-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    background: white;
    border: 3px solid #8B4513;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.cbcc-aspirant-modal.show {
    display: block;
}

.cbcc-aspirant-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.cbcc-aspirant-modal-overlay.show {
    display: block;
}

.cbcc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8B4513;
    cursor: move;
    user-select: none;
}

.cbcc-modal-header:hover {
    background: #f8f9fa;
}

.cbcc-modal-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #8B4513;
    margin: 0;
}

.cbcc-modal-close {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cbcc-modal-close:hover {
    background: #c82333;
}

.cbcc-modal-subtitle {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
}

/* Deity Selection */
.cbcc-deity-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.cbcc-deity-card {
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.cbcc-deity-card:hover {
    border-color: #8B4513;
    background: #f8f9fa;
}

.cbcc-deity-card.selected {
    border-color: #28a745;
    background: #d4edda;
}

.cbcc-deity-name {
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 5px;
}

.cbcc-deity-description {
    font-size: 0.9em;
    color: #666;
}

/* Ability Selection */
.cbcc-ability-grid {
    display: grid;
    gap: 15px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 5px;
}

.cbcc-ability-card {
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.cbcc-ability-card:hover {
    border-color: #8B4513;
    background: #f8f9fa;
}

.cbcc-ability-card.selected {
    border-color: #28a745;
    background: #d4edda;
}

.cbcc-ability-name {
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.cbcc-ability-description {
    font-size: 0.9em;
    color: #333;
    line-height: 1.5;
}

.cbcc-modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.cbcc-btn-confirm {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.cbcc-btn-confirm:hover {
    background: #218838;
}

.cbcc-btn-confirm:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cbcc-btn-back {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.cbcc-btn-back:hover {
    background: #5a6268;
}


/* Skill restrictions (class-granted points) */
.cbcc-skill-item.cbcc-skill-restricted {
    border-left: 4px solid #8B4513;
    background: rgba(139, 69, 19, 0.06);
}
.cbcc-skill-note {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 10px;
    background: rgba(0,0,0,0.08);
    color: #333;
}


/* Match tools/languages option rows to the same standardized look */
.cbcc-skill-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 6px;
}

.cbcc-skill-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
