/* ========================================
   Tools Pages - Shared Styles
   ======================================== */

.tool-page {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb i { font-size: 0.7rem; color: var(--dark-3); }
.breadcrumb span { color: var(--primary-light); }

/* Page Header */
.tool-page-header {
    text-align: center;
    margin-bottom: 48px;
}

.tool-page-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto 20px;
}

.nps-gradient { background: linear-gradient(135deg, #6366f1, #06b6d4); }
.roi-gradient { background: linear-gradient(135deg, #10b981, #06b6d4); }
.maturity-gradient { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.cert-gradient { background: linear-gradient(135deg, #8b5cf6, #6366f1); }

.tool-page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.tool-page-header p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.tool-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    font-size: 0.85rem;
}

/* Info Box */
.info-box {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 40px;
}

.info-box h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.info-box h3 i { color: var(--primary-light); margin-left: 8px; }

.info-box p {
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.info-box blockquote {
    background: rgba(99, 102, 241, 0.08);
    border-right: 3px solid var(--primary);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    color: var(--primary-light);
    font-style: italic;
    margin: 16px 0;
    font-size: 1.05rem;
}

/* NPS Categories */
.nps-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.nps-cat {
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
}

.nps-cat.promoters { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); }
.nps-cat.passives { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); }
.nps-cat.detractors { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); }

.cat-score {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.promoters .cat-score { color: var(--success); }
.passives .cat-score { color: var(--accent); }
.detractors .cat-score { color: var(--danger); }

.cat-name {
    display: block;
    font-weight: 700;
    color: var(--white);
    margin: 4px 0;
}

.cat-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
}

/* Calculator Section */
.calculator-section {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 40px;
}

.calculator-section h2 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.calculator-section h2 i { color: var(--primary-light); margin-left: 8px; }

/* Input Method Toggle */
.input-method-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-md);
    padding: 4px;
    width: fit-content;
}

.method-btn {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--gray);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Input Panels */
.input-panel {
    margin-bottom: 24px;
}

.input-instruction {
    color: var(--gray);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* Score Grid - Individual */
.score-input-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-left: 8px;
    margin-bottom: 16px;
}

.score-input-grid::-webkit-scrollbar { width: 4px; }
.score-input-grid::-webkit-scrollbar-track { background: var(--dark-3); border-radius: 4px; }
.score-input-grid::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.score-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.response-num {
    min-width: 70px;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
}

.score-buttons {
    display: flex;
    gap: 4px;
    flex: 1;
    flex-wrap: wrap;
}

.score-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--gray);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.score-btn:hover {
    transform: scale(1.1);
}

.score-btn.detractor-btn:hover, .score-btn.detractor-btn.selected {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: #fca5a5;
}

.score-btn.passive-btn:hover, .score-btn.passive-btn.selected {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--accent);
    color: #fcd34d;
}

.score-btn.promoter-btn:hover, .score-btn.promoter-btn.selected {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: #6ee7b7;
}

.remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

.add-response-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Bulk Input */
.bulk-grid {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bulk-row {
    display: grid;
    grid-template-columns: 60px 1fr 80px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.bulk-row.header {
    background: rgba(99, 102, 241, 0.1);
    font-weight: 700;
    color: var(--gray-light);
    font-size: 0.85rem;
}

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

.detractor-row { background: rgba(239, 68, 68, 0.03); }
.passive-row { background: rgba(245, 158, 11, 0.03); }
.promoter-row { background: rgba(16, 185, 129, 0.03); }

.bulk-score {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--white);
}

.bulk-input {
    width: 100%;
    max-width: 120px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
}

.bulk-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.bulk-type { font-size: 0.8rem; font-weight: 600; text-align: center; }
.detractor-label { color: #fca5a5; }
.passive-label { color: #fcd34d; }
.promoter-label { color: #6ee7b7; }

.btn-calculate {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 16px;
}

/* Results Section */
.results-section {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
}

.results-section h2 {
    color: var(--white);
    margin-bottom: 32px;
    text-align: center;
    font-size: 1.5rem;
}

.results-section h2 i { color: var(--primary-light); margin-left: 8px; }

/* NPS Gauge */
.nps-score-display {
    text-align: center;
    margin-bottom: 40px;
}

.nps-gauge {
    position: relative;
    width: 240px;
    margin: 0 auto 16px;
}

.nps-gauge svg { width: 100%; }

.nps-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-top: -30px;
}

.nps-label {
    color: var(--gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nps-interpretation {
    margin-top: 16px;
}

.interp-excellent { color: #6ee7b7; font-size: 1.1rem; font-weight: 600; }
.interp-good { color: #67e8f9; font-size: 1.1rem; font-weight: 600; }
.interp-warning { color: #fcd34d; font-size: 1.1rem; font-weight: 600; }
.interp-danger { color: #fca5a5; font-size: 1.1rem; font-weight: 600; }

/* Breakdown Grid */
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.breakdown-card {
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
}

.promoter-card { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2); }
.passive-card { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.2); }
.detractor-card { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); }

.breakdown-icon { font-size: 2rem; margin-bottom: 12px; }
.promoter-card .breakdown-icon { color: var(--success); }
.passive-card .breakdown-icon { color: var(--accent); }
.detractor-card .breakdown-icon { color: var(--danger); }

.breakdown-info {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.breakdown-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
}

.breakdown-pct {
    font-size: 1rem;
    color: var(--gray);
}

.breakdown-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.breakdown-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    width: 0%;
    transition: width 1s ease;
}

.promoter-fill { background: var(--success); }
.passive-fill { background: var(--accent); }
.detractor-fill { background: var(--danger); }

/* Distribution Chart */
.distribution-chart {
    margin-bottom: 40px;
    padding: 24px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: var(--radius-md);
}

.distribution-chart h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: center;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 120px;
}

.dist-bar {
    flex: 1;
    max-width: 50px;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.8s ease;
    min-height: 4px;
}

.det-bar { background: rgba(239, 68, 68, 0.6); }
.pas-bar { background: rgba(245, 158, 11, 0.6); }
.pro-bar { background: rgba(16, 185, 129, 0.6); }

.dist-count {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 700;
}

.chart-labels {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.chart-labels span {
    flex: 1;
    max-width: 50px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 600;
}

/* Recommendations */
.recommendations {
    margin-bottom: 40px;
}

.recommendations h3 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.recommendations h3 i { color: var(--accent); margin-left: 8px; }

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

.rec-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.7;
}

.rec-item i {
    margin-top: 4px;
    font-size: 1rem;
    flex-shrink: 0;
}

.rec-item.urgent {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.rec-item.urgent i { color: var(--danger); }

.rec-item.warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.rec-item.warning i { color: var(--accent); }

.rec-item.success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.rec-item.success i { color: var(--success); }

.rec-item.info {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--gray-light);
}

.rec-item.info i { color: var(--primary-light); }

/* NPS Scale Reference */
.nps-scale-ref {
    margin-bottom: 20px;
    position: relative;
}

.nps-scale-ref h3 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1rem;
    text-align: center;
}

.scale-bar {
    display: flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 48px;
}

.scale-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
}

.scale-segment span { font-size: 0.75rem; font-weight: 700; color: var(--white); }
.scale-segment small { font-size: 0.65rem; color: rgba(255,255,255,0.7); }

.scale-segment.danger { background: rgba(239, 68, 68, 0.4); }
.scale-segment.warning { background: rgba(245, 158, 11, 0.4); }
.scale-segment.good { background: rgba(6, 182, 212, 0.4); }
.scale-segment.excellent { background: rgba(16, 185, 129, 0.4); }

.scale-marker {
    position: absolute;
    bottom: -28px;
    display: none;
    transform: translateX(50%);
}

.marker-label {
    background: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Context Box */
.context-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 40px;
}

.context-box h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.context-box h3 i { color: var(--secondary); margin-left: 8px; }

.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.context-item {
    padding: 20px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.context-item h4 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.context-item p {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* ========================================
   ROI Calculator Specific
   ======================================== */
.roi-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

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

.roi-input-group label {
    font-size: 0.9rem;
    color: var(--gray-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.roi-input-group label i { color: var(--primary-light); }

.roi-input-group .helper-text {
    font-size: 0.75rem;
    color: var(--dark-3);
}

.roi-input {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.roi-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.roi-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.roi-result-card {
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.roi-result-card .result-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    display: block;
    margin-bottom: 4px;
}

.roi-result-card .result-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.roi-result-card.highlight {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.roi-result-card.highlight .result-value { color: var(--success); }

/* ========================================
   Maturity Assessment Specific
   ======================================== */
.assessment-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dimension-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}

.dimension-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.dimension-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dimension-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
}

.dimension-header h4 {
    color: var(--white);
    font-size: 1rem;
    flex: 1;
}

.dimension-header .dim-num {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 600;
}

.rating-scale {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rating-option {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--gray-light);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.rating-option:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.rating-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
}

.rating-option .rating-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
}

/* Maturity Results */
.maturity-radar {
    text-align: center;
    margin-bottom: 32px;
}

.maturity-radar canvas {
    max-width: 400px;
    margin: 0 auto;
}

.maturity-level-display {
    text-align: center;
    padding: 32px;
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.maturity-level-display .level-badge {
    font-size: 3rem;
    margin-bottom: 12px;
}

.maturity-level-display h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 8px;
}

.maturity-level-display .level-score {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.maturity-level-display .level-desc {
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.dimension-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.dim-result-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: var(--radius-sm);
}

.dim-result-row .dim-name {
    min-width: 180px;
    font-weight: 600;
    color: var(--gray-light);
    font-size: 0.9rem;
}

.dim-result-row .dim-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.dim-result-row .dim-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
    background: var(--gradient-1);
}

.dim-result-row .dim-score {
    min-width: 50px;
    text-align: center;
    font-weight: 800;
    color: var(--white);
    font-size: 1.1rem;
}

/* ========================================
   Certificate Page
   ======================================== */
.certificate-preview {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 60px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.certificate-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

.certificate-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

.cert-ornament {
    position: absolute;
    font-size: 8rem;
    opacity: 0.03;
    color: var(--primary);
}

.cert-ornament.top-right { top: -20px; left: -20px; }
.cert-ornament.bottom-left { bottom: -20px; right: -20px; }

.cert-logo {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cert-title {
    font-size: 1rem;
    color: var(--gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cert-main-title {
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 24px;
}

.cert-recipient-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.cert-recipient-name {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    padding: 8px 0;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.cert-description {
    color: var(--gray-light);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.8;
}

.cert-details-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cert-detail {
    text-align: center;
}

.cert-detail .detail-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.cert-detail .detail-value {
    font-size: 1rem;
    color: var(--white);
    font-weight: 700;
    display: block;
}

.cert-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

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

.cert-form-group label {
    font-size: 0.85rem;
    color: var(--gray-light);
    font-weight: 600;
}

.cert-form-group input,
.cert-form-group select {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
}

.cert-form-group input:focus,
.cert-form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.cert-form-group select option {
    background: var(--dark-2);
}

/* ========================================
   Theme Toggle
   ======================================== */
.theme-toggle {
    position: fixed;
    bottom: 90px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.3);
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

/* Light Theme */
body.light-theme {
    --dark: #f8fafc;
    --dark-2: #f1f5f9;
    --dark-3: #cbd5e1;
    --white: #0f172a;
    --light: #1e293b;
    --light-2: #334155;
    --gray: #64748b;
    --gray-light: #475569;
    background: #f8fafc;
    color: #1e293b;
}

body.light-theme .main-nav {
    background: rgba(248, 250, 252, 0.9);
    border-bottom-color: rgba(99, 102, 241, 0.15);
}

body.light-theme .hero-section {
    background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(6,182,212,0.06) 0%, transparent 50%),
                #f8fafc;
}

body.light-theme .philosophy-card,
body.light-theme .audience-card,
body.light-theme .unit-card,
body.light-theme .cert-card,
body.light-theme .tool-card,
body.light-theme .calculator-section,
body.light-theme .results-section,
body.light-theme .info-box,
body.light-theme .context-box,
body.light-theme .quiz-container,
body.light-theme .assessment-methods {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(99, 102, 241, 0.12);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light-theme .gradient-text {
    -webkit-text-fill-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-page { padding-top: 80px; }
    .tool-page-header h1 { font-size: 1.6rem; }
    .score-buttons { gap: 3px; }
    .score-btn { width: 28px; height: 28px; font-size: 0.7rem; }
    .rating-scale { flex-direction: column; }
    .cert-preview { padding: 32px 20px; }
    .cert-main-title { font-size: 1.3rem; }
    .cert-recipient-name { font-size: 1.5rem; }
}

/* ========================================
   Progress Dashboard
   ======================================== */
.progress-dash-header {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.progress-circle-large {
    position: relative;
    width: 140px;
    height: 140px;
}

.progress-circle-large svg {
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
}

.progress-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.prog-pct {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prog-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.prog-stat {
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.prog-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 4px;
}

.prog-stat-label {
    font-size: 0.75rem;
    color: var(--gray);
}

/* Progress Action Buttons */
.prog-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-light, #818cf8);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prog-action-btn:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.prog-action-import {
    cursor: pointer;
}

.prog-action-reset {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.06);
    color: #f87171;
}

.prog-action-reset:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

body.light-theme .prog-stat {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(99, 102, 241, 0.08);
}

body.light-theme .prog-action-btn {
    background: rgba(99, 102, 241, 0.06);
    color: #6366f1;
}

