/* ==================== */
/* CSS Variables */
/* ==================== */
:root {
    /* Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #f9fafb;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    
    /* Score Colors */
    --score-excellent: #10b981;
    --score-good: #84cc16;
    --score-fair: #f59e0b;
    --score-poor: #ef4444;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ==================== */
/* Reset & Base */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== */
/* Container */
/* ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ==================== */
/* Header - Hero Section */
/* ==================== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-problem {
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.hero-value {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    opacity: 0.95;
}

.hero-highlight {
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.hero-sub {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.85;
}

/* ==================== */
/* Main Content */
/* ==================== */
.main-content {
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 200px);
}

/* ==================== */
/* Card */
/* ==================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-primary);
}

.card h2 i {
    color: var(--primary-color);
}

/* ==================== */
/* Badge Styles */
/* ==================== */
.badge-group {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge i {
    font-size: 0.8rem;
}

.badge-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

/* ==================== */
/* Input Section */
/* ==================== */
.input-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

.seo-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

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

.form-group label i {
    color: var(--primary-color);
}

.required {
    color: var(--danger-color);
    font-weight: 700;
}

.optional {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

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

/* ==================== */
/* Buttons */
/* ==================== */
.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* ==================== */
/* Loading Indicator */
/* ==================== */
.loading-indicator {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

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

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

.loading-indicator p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ==================== */
/* Overall Score */
/* ==================== */
.overall-score {
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 8px solid var(--border-color);
    transition: all 0.5s ease;
}

.score-circle.excellent {
    border-color: var(--score-excellent);
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.score-circle.good {
    border-color: var(--score-good);
    background: linear-gradient(135deg, #f7fee7 0%, #ecfccb 100%);
}

.score-circle.fair {
    border-color: var(--score-fair);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.score-circle.poor {
    border-color: var(--score-poor);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.score-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.score-max {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.score-info {
    text-align: left;
}

.score-label {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.score-url {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    word-break: break-all;
}

.score-keyword {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ==================== */
/* Category Grid */
/* ==================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.category-card {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
}

.category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.category-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-score {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.category-bar {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.category-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1s ease, background-color 0.3s ease;
}

.category-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==================== */
/* Chart Section */
/* ==================== */
.chart-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

/* ==================== */
/* Issues & Actions */
/* ==================== */
.issues-list,
.actions-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.issue-item,
.action-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    border-left: 4px solid;
}

.issue-item.critical,
.action-item.high {
    border-left-color: var(--danger-color);
}

.issue-item.warning,
.action-item.medium {
    border-left-color: var(--warning-color);
}

.issue-item.info,
.action-item.low {
    border-left-color: var(--primary-color);
}

.issue-icon,
.action-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.issue-item.critical .issue-icon {
    color: var(--danger-color);
}

.issue-item.warning .issue-icon {
    color: var(--warning-color);
}

.issue-item.info .issue-icon {
    color: var(--primary-color);
}

.action-item.high .action-icon {
    color: var(--danger-color);
}

.action-item.medium .action-icon {
    color: var(--warning-color);
}

.action-item.low .action-icon {
    color: var(--success-color);
}

.issue-content,
.action-content {
    flex: 1;
}

.issue-title,
.action-title {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.issue-description,
.action-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.action-impact {
    display: inline-block;
    margin-top: var(--spacing-xs);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--success-color);
    color: white;
}

/* ==================== */
/* History Section */
/* ==================== */
.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.history-item {
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.history-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.history-item-score {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
}

.history-item-url {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
    word-break: break-all;
}

.history-item-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ==================== */
/* Modal */
/* ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--spacing-md);
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: var(--spacing-lg);
}

/* ==================== */
/* Footer */
/* ==================== */
.footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.footer p {
    opacity: 0.8;
}

/* ==================== */
/* Summary Card (New Report Style) */
/* ==================== */
.summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.summary-score-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    justify-content: center;
}

.summary-score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: var(--shadow-xl);
    border: 6px solid var(--border-color);
    transition: all 0.5s ease;
}

.summary-score-circle.excellent {
    border-color: var(--score-excellent);
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.summary-score-circle.good {
    border-color: var(--score-good);
    background: linear-gradient(135deg, #f7fee7 0%, #ecfccb 100%);
}

.summary-score-circle.fair {
    border-color: var(--score-fair);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.summary-score-circle.poor {
    border-color: var(--score-poor);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.summary-score-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.summary-score-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.summary-info {
    flex: 1;
    min-width: 250px;
}

.summary-verdict {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.summary-url {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xs);
    word-break: break-all;
}

.summary-keyword {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.summary-insight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.summary-insight i {
    color: #d97706;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.summary-insight p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #92400e;
    font-weight: 500;
}

/* ==================== */
/* Priority Sections */
/* ==================== */
.priority-section {
    position: relative;
}

.priority-high {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e6 100%);
    border-left: 5px solid var(--danger-color);
}

.priority-medium {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 5px solid var(--warning-color);
}

.priority-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.action-items-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.action-detail-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.action-detail-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.action-detail-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.action-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.action-detail-icon.critical {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--danger-color);
}

.action-detail-icon.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: var(--warning-color);
}

.action-detail-icon.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--primary-color);
}

.action-detail-content {
    flex: 1;
}

.action-detail-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.action-detail-impact {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.action-detail-impact.high {
    background: #fee2e2;
    color: #991b1b;
}

.action-detail-impact.medium {
    background: #fef3c7;
    color: #92400e;
}

.action-detail-impact.low {
    background: #dbeafe;
    color: #1e40af;
}

.action-detail-why {
    background: var(--bg-primary);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.action-detail-why-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.action-detail-why-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.action-detail-how {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.action-detail-how strong {
    color: var(--primary-color);
}

/* ==================== */
/* Category Mini Cards */
/* ==================== */
.category-scores-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.category-mini-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
}

.category-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-mini-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.category-mini-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.category-mini-score {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* ==================== */
/* Next Actions Section */
/* ==================== */
.next-actions-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
}

.next-actions-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-weight: 500;
}

.next-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.next-action-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.next-action-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.next-action-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
}

.next-action-icon i {
    font-size: 2rem;
    color: white;
}

.next-action-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.next-action-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.next-action-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.next-action-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.next-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.next-action-btn:active {
    transform: translateY(0);
}

/* ==================== */
/* Toast Message */
/* ==================== */
.toast-message {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 10000;
    transition: bottom 0.3s ease;
    min-width: 300px;
    max-width: 90%;
}

.toast-message.success {
    border-left: 4px solid var(--success-color);
}

.toast-message.success i {
    color: var(--success-color);
    font-size: 1.5rem;
}

.toast-message span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.toast-message.show {
    bottom: 2rem;
}

/* ==================== */
/* Floating Top Button */
/* ==================== */
.floating-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    z-index: 9999;
    opacity: 0;
    transform: scale(0.8);
}

.floating-top-btn.show {
    opacity: 1;
    transform: scale(1);
}

.floating-top-btn:hover {
    transform: translateY(-4px) scale(1);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.4);
}

.floating-top-btn:active {
    transform: translateY(-2px) scale(0.95);
}

/* ==================== */
/* Responsive */
/* ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-value {
        font-size: 1.05rem;
    }
    
    .hero-sub {
        font-size: 0.9rem;
    }
    
    .summary-score-wrapper {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .summary-score-circle {
        width: 120px;
        height: 120px;
    }
    
    .summary-score-number {
        font-size: 2.5rem;
    }
    
    .summary-info {
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
    
    .category-scores-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .next-actions-grid {
        grid-template-columns: 1fr;
    }
}
