/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Original Color Variables */
:root {
    --primary: #667eea;        /* Original Purple */
    --secondary: #764ba2;      /* Original Purple Secondary */
    --accent: #667eea;         /* Purple Accent */
    --light: #f8f9fa;          /* Light Gray */
    --gray: #6B6B6B;           /* Neutral Gray */
    --dark: #2c3e50;           /* Dark Blue */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary);
}

.nav-subtitle {
    font-size: 0.875rem;
    color: #666;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    white-space: nowrap;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description a {
    color: #ffffff !important;
    text-decoration: none;
}

.hero-description a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hero Visual */
.convenience-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.diagram-item {
    text-align: center;
    position: relative;
}

.diagram-item i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.diagram-item span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price-tag {
    background: #ff6b6b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.875rem;
}

.diagram-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.diagram-arrow i {
    font-size: 2rem;
    opacity: 0.7;
}

.diagram-arrow span {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Overview Section */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.concept-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.concept-card:hover {
    transform: translateY(-5px);
}

.concept-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

/* Theorem Section */
.theorem-section {
    background: #f8f9fa;
}

.theorem-statement {
    margin-bottom: 3rem;
}

.statement-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.theorem-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #2c3e50;
    margin: 0;
}

.formula-section {
    margin-bottom: 3rem;
}

.formula-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.formula {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}

.formula-text {
    font-size: 1.25rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #2c3e50;
}

.formula-explanation {
    margin-top: 1rem;
}

.factor {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.factor:last-child {
    border-bottom: none;
}

.time-value-steps {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.step {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.step:last-child {
    border-bottom: none;
}

.step-options {
    margin-top: 0.75rem;
    margin-left: 1rem;
}

.option {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-choice {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.time-value-explanation {
    background: #e7f3ff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-top: 1rem;
}

.time-value-explanation p {
    margin: 0;
    color: #2c3e50;
    font-size: 0.95rem;
}

.rationale, .step-rationale, .option-rationale, .context-rationale {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 0.25rem;
    padding-left: 1rem;
}

.percentage-context {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.context-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.mathematical-note {
    background: #e7f3ff;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.framework-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.formula-summary {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.main-formula {
    text-align: center;
    margin-bottom: 2rem;
}

.key-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.component {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.deep-dive-toggle {
    text-align: center;
    margin: 2rem 0;
}

.deep-dive-content {
    border-top: 2px solid #e9ecef;
    padding-top: 2rem;
    margin-top: 2rem;
}

.magnification-explanation ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.magnification-examples {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.mag-example {
    padding: 0.25rem 0;
    font-family: monospace;
    color: var(--primary);
    font-weight: 500;
}

.economic-principles {
    display: grid;
    gap: 1rem;
}

.principle {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.pcr-interpretation {
    margin-top: 1rem;
}

.interpretation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.interpretation-item.good {
    background: #d4edda;
    color: #155724;
}

.interpretation-item.fair {
    background: #fff3cd;
    color: #856404;
}

.interpretation-item.poor {
    background: #f8d7da;
    color: #721c24;
}

.range {
    font-weight: bold;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.application-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.application-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Calculator Section */
.calculator-container {
    display: block;
    margin-top: 3rem;
}

.calculator-wizard {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 3rem;
}

.wizard-step {
    display: none;
    padding: 2rem;
}

.wizard-step.active {
    display: block;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.convenience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.wizard-next {
    margin-left: auto;
}

.wizard-progress {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e9ecef;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 25%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-step {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.progress-step.active {
    color: var(--primary);
    font-weight: 600;
}

.progress-step.completed {
    color: #28a745;
}

.industry-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

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

.suggestion-name {
    font-weight: 500;
    color: #333;
}

.suggestion-price {
    font-size: 0.875rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.selected-industry {
    background: #e7f3ff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-top: 1rem;
}

.industry-info h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.source {
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
}

.industry-error {
    background: #f8d7da;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin-top: 1rem;
}

.error-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.error-message i {
    color: #dc3545;
    margin-top: 0.125rem;
}

.error-message p {
    margin: 0;
    color: #721c24;
}

.input-group {
    position: relative;
}

.btn:disabled,
.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.results-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.summary-label {
    font-weight: 500;
    color: #333;
}

.summary-value {
    color: var(--primary);
    font-weight: 600;
    margin-right: 0.5rem;
}

.edit-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: #e9ecef;
    color: var(--primary);
}

/* LinkedIn Profile Links */
.developer-card h3 a {
    color: var(--primary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-content a,
.footer-content a[href*="linkedin"] {
    color: white !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer-card h3 a:hover {
    color: var(--accent) !important;
    text-decoration: underline;
}

.hero-content a:hover,
.footer-content a[href*="linkedin"]:hover {
    color: white !important;
    opacity: 0.8;
    text-decoration: underline;
}

.calculator-inputs {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.input-section {
    margin-bottom: 2rem;
}

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

.input-section h3 {
    color: var(--primary);
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.input-group small {
    display: block;
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.radio-option input[type="radio"] {
    width: auto;
    margin: 0;
    margin-top: 0.1rem;
}

.radio-option label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.4;
}

/* Brand Preference Section */
.brand-preference-section {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    margin-top: 2rem;
}

.brand-preference-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-preference-display {
    margin-top: 1rem;
}

.preference-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.prefer-alt {
    color: #dc3545;
    font-weight: 500;
}

.neutral {
    color: #6c757d;
    font-weight: 500;
}

.prefer-conv {
    color: #28a745;
    font-weight: 500;
}

.preference-value {
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#brandPreferenceValue {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

#brandPreferenceDescription {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #dc3545 0%, #6c757d 50%, #28a745 100%);
    outline: none;
    -webkit-appearance: none;
    margin: 1rem 0;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.calculator-results {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.price-comparison-result {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.convenience-premium {
    background: #e7f3ff;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.percentage-display {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9em;
    margin-left: 0.5rem;
}

.magnification-display {
    background: #fff3cd;
    padding: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid #f0ad4e;
}

.convenience-breakdown {
    margin-bottom: 2rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 2px solid var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.pcr-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.pcr-result {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.pcr-result.actual {
    border-left: 4px solid var(--primary);
}

.pcr-result.optimal {
    border-left: 4px solid #28a745;
    background: linear-gradient(145deg, #f8fff9 0%, #ffffff 100%);
}

.pcr-display {
    margin-bottom: 1rem;
}

.pcr-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.pcr-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.pcr-interpretation {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.optimal-pcr-header {
    text-align: center;
    margin-bottom: 1rem;
}

.optimal-pcr-header h4 {
    color: #28a745;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.industry-name {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.optimal-pcr-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.optimal-pcr-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.optimal-pcr-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.optimal-pcr-target {
    display: block;
    font-size: 0.9rem;
    color: #495057;
}

.optimal-pricing {
    background: #e8f5e8;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.optimal-pricing h5 {
    color: #28a745;
    margin-bottom: 0.75rem;
    text-align: center;
}

.pricing-recommendation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recommended-price,
.recommended-premium {
    font-weight: 500;
}

.recommended-price span,
.recommended-premium span {
    color: #28a745;
    font-weight: bold;
}

.market-factors {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.market-factors h6 {
    color: #495057;
    margin-bottom: 0.75rem;
    text-align: center;
}

.factors-grid {
    display: grid;
    gap: 0.5rem;
}

.factor-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.factor-label {
    color: #666;
}

.factor-value {
    color: #333;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.status-badge.optimal {
    background: #d4edda;
    color: #155724;
}

.status-badge.underpriced {
    background: #fff3cd;
    color: #856404;
}

.status-badge.overpriced {
    background: #f8d7da;
    color: #721c24;
}

.optimal-pcr-explanation {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.optimal-pcr-explanation h5 {
    color: #495057;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.calculation-formula {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.formula-simple {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.formula-simple .formula-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #495057;
    font-size: 0.9rem;
}

.formula-breakdown {
    display: grid;
    gap: 0.5rem;
}

.breakdown-step {
    display: grid;
    grid-template-columns: 1fr auto 2fr;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.breakdown-result {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    border-top: 2px solid var(--primary);
    font-weight: bold;
}

.step-label,
.result-label {
    color: #495057;
    font-weight: 500;
}

.step-value,
.result-value {
    color: var(--primary);
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-align: right;
}

.result-value {
    color: #28a745;
    font-size: 1rem;
}

.step-desc {
    color: #6c757d;
    font-size: 0.8rem;
    font-style: italic;
}

.data-sources {
    background: #e7f3ff;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary);
}

.source-note {
    margin: 0;
    font-size: 0.875rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calculation-explanation {
    margin: 1rem 0;
}

.calculation-explanation h6 {
    color: #495057;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.factor-explanations {
    display: grid;
    gap: 0.5rem;
}

.factor-exp {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary);
    font-size: 0.875rem;
}

.factor-exp strong {
    color: var(--primary);
}

/* New Results Layout Styles */

/* Header Section */
.results-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.results-title h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.results-subtitle {
    color: #666;
    margin: 0;
    font-size: 1.1rem;
}

/* Summary Cards */
.results-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
}

.summary-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.summary-content {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* Main Results Grid */
.main-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.results-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.result-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.section-header h3 {
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
}

.section-header p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* Price Analysis */
.price-comparison-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1.5rem;
    gap: 1rem;
}

.price-item {
    text-align: center;
    flex: 1;
}

.price-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.price-amount {
    display: block;
    font-size: 1.75rem;
    font-weight: bold;
    color: #333;
}

.price-item.convenient .price-amount {
    color: #ff6b6b;
}

.price-item.alternative .price-amount {
    color: #28a745;
}

.vs-divider {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.875rem;
}

.premium-result {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.premium-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.premium-label {
    font-weight: 500;
    color: #333;
}

.premium-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-value span:first-child {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
}

.premium-percentage {
    font-size: 0.9rem;
    color: #666;
}

/* Convenience Analysis */
.convenience-breakdown-visual {
    padding: 1.5rem;
}

.convenience-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
    gap: 1rem;
}

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

.convenience-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.convenience-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.convenience-label {
    font-weight: 500;
    color: #333;
}

.convenience-value {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

.convenience-totals {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.final-total {
    border-top: 2px solid var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.magnification-value {
    background: #fff3cd;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    color: #856404;
    font-weight: bold;
}

.percentage-context {
    font-size: 0.85rem;
    color: #666;
    margin-left: 0.5rem;
}

/* PCR Analysis */
.pcr-display-main {
    padding: 2rem 1.5rem;
    text-align: center;
}

.pcr-value-display {
    margin-bottom: 1.5rem;
}

.pcr-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
}

.pcr-formula {
    display: block;
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

.pcr-status {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

/* Industry Comparison */
.benchmark-display {
    padding: 1.5rem;
}

.benchmark-range,
.benchmark-target {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.benchmark-target {
    border-bottom: none;
    font-weight: bold;
}

.benchmark-label,
.target-label {
    color: #666;
}

.benchmark-value,
.target-value {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
}

.market-factors-display {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.market-factors-display h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.market-factor {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    gap: 1rem;
}

.factor-icon {
    width: 30px;
    text-align: center;
    color: var(--primary);
}

.factor-name {
    flex: 1;
    color: #333;
}

.factor-value {
    font-weight: bold;
    color: var(--primary);
}

/* Pricing Recommendations */
.recommendation-content {
    padding: 1.5rem;
}

.recommended-pricing {
    display: grid;
    gap: 1rem;
}

.recommended-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #e8f5e8;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.recommendation-label {
    font-weight: 500;
    color: #333;
}

.recommendation-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #28a745;
}

/* Calculation Methodology */
.methodology-content {
    padding: 1.5rem;
}

.formula-display {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.formula-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #495057;
    font-size: 0.95rem;
}

.calculation-steps {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.calc-step {
    display: grid;
    grid-template-columns: 1fr auto 1.5fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.calc-result {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    border-top: 2px solid var(--primary);
    font-weight: bold;
}

.step-component,
.result-component {
    color: #495057;
    font-weight: 500;
}

.step-value {
    color: var(--primary);
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-align: right;
}

.result-value {
    color: #28a745;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.step-note {
    color: #6c757d;
    font-size: 0.8rem;
    font-style: italic;
}

.data-source {
    background: #e7f3ff;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary);
}

.data-source p {
    margin: 0;
    font-size: 0.875rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Price Sensitivity Explanation */
.price-sensitivity-explanation {
    margin: 1.5rem 0;
    background: #fff8dc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #f0ad4e;
}

.price-sensitivity-explanation h4 {
    color: #856404;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-sensitivity-explanation p {
    color: #6c5700;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.sensitivity-examples {
    display: grid;
    gap: 0.75rem;
}

.sensitivity-example {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border-left: 3px solid #f0ad4e;
}

.example-price {
    font-weight: bold;
    color: #856404;
}

.example-factor {
    color: #6c5700;
    font-size: 0.9rem;
}

.formula-note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
}

.price-sensitivity-step {
    background: #fff8dc;
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #f0ad4e;
}

.adjustment-note {
    margin-top: 1rem;
    padding: 1rem;
    background: #ffeaa7;
    border-radius: 6px;
    border-left: 4px solid #e17055;
}

.adjustment-note p {
    margin: 0;
    color: #d63031;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Pricing Psychology Note */
.pricing-psychology-note {
    margin-top: 1rem;
    background: #e8f4fd;
    border: 1px solid #74b9ff;
    border-radius: 8px;
    padding: 1rem;
}

.psychology-explanation {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.psychology-explanation i {
    color: #0984e3;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.psychology-text {
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0.5rem;
    display: block;
}

.psychology-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #636e72;
}

.psychology-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0.5rem;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #74b9ff;
}

.psychology-detail span:last-child {
    font-weight: 600;
    color: #2d3436;
}

/* Psychological Pricing Explanation */
.psychological-pricing-explanation {
    margin: 1.5rem 0;
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #6c5ce7;
}

.psychological-pricing-explanation h4 {
    color: #6c5ce7;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.psychological-pricing-explanation p {
    color: #2d3436;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.psychology-rules {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.psychology-rule {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border-left: 3px solid #6c5ce7;
}

.rule-range {
    font-weight: bold;
    color: #6c5ce7;
}

.rule-limit {
    font-weight: 600;
    color: #e17055;
}

.rule-reason {
    color: #636e72;
    font-size: 0.875rem;
    font-style: italic;
}

.psychology-note {
    background: #ddd6fe;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #6c5ce7;
}

.psychology-note p {
    margin: 0;
    color: #4c1d95;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.psychology-note i {
    color: #6c5ce7;
    margin-top: 0.1rem;
}

@media (max-width: 768px) {
    .psychology-rule {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        text-align: left;
    }
}

/* Action Buttons */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0;
}

.results-actions .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Status Badge Styles */
.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.status-badge.optimal {
    background: #d4edda;
    color: #155724;
}

.status-badge.underpriced {
    background: #fff3cd;
    color: #856404;
}

.status-badge.overpriced {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive Design for New Layout */
@media (max-width: 768px) {
    .results-header-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .main-results-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .price-comparison-visual {
        flex-direction: column;
        gap: 1rem;
    }
    
    .vs-divider {
        order: 2;
    }
    
    .calc-step {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        text-align: left;
    }
    
    .calc-result {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .results-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

.share-results {
    text-align: center;
}

/* Examples Section */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.example-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.example-card:hover {
    transform: translateY(-5px);
}

.example-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.5rem;
}

.example-header h3 {
    color: white;
    margin: 0;
}

.example-content {
    padding: 1.5rem;
}

.price-comparison {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.convenience-premium-display {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    flex: 1;
    text-align: center;
    min-width: 140px;
}

.price-item {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.price-item.airport,
.price-item.highway,
.price-item.office {
    background: #fff3cd;
    color: #856404;
}

.price-item.outside,
.price-item.town,
.price-item.street {
    background: #d4edda;
    color: #155724;
}

.example-calculation ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.example-calculation li {
    margin-bottom: 0.5rem;
}

.pcr-result-example {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

.result-interpretation {
    display: block;
    margin-top: 0.5rem;
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 4px;
}

.result-interpretation.good {
    background: #d4edda;
    color: #155724;
}

.result-interpretation.fair {
    background: #fff3cd;
    color: #856404;
}

.result-interpretation.poor {
    background: #f8d7da;
    color: #721c24;
}

/* About Section */
.about-section {
    background: #f8f9fa;
}

.developers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.developer-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.developer-photo {
    flex-shrink: 0;
}

.profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.developer-info {
    flex: 1;
}

.developer-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.developer-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.theory-background {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.citations {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.citations ul {
    padding-left: 1.5rem;
}

.citations li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.contact-share {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.share-btn, .copy-link-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e9ecef;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.share-btn:hover, .copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.share-btn[data-platform="twitter"]:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-btn[data-platform="linkedin"]:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.share-btn[data-platform="facebook"]:hover {
    background: #4267b2;
    color: white;
    border-color: #4267b2;
}

.copy-link-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Footer */
.footer {
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)), url('../images/holy-cross-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.footer-section a {
    display: block;
    color: white !important;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.footer-section a:hover {
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 0.8;
}

.footer-section p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    color: white !important;
}

/* Comprehensive footer text override */
.footer * {
    color: white !important;
}

.footer a {
    color: white !important;
}

.footer a:hover {
    color: white !important;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(52, 73, 94, 0.8);
    padding-top: 2rem;
    text-align: center;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 960px) {
    .nav-menu {
        gap: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        display: flex !important;
    }
    
    .nav-menu .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
        color: #333 !important;
    }
    
    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        white-space: normal;
    }
    
    .convenience-diagram {
        flex-direction: column;
        gap: 1rem;
    }
    
    .diagram-arrow {
        transform: rotate(90deg);
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pcr-results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pricing-recommendation {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .breakdown-step {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        text-align: left;
    }
    
    .breakdown-result {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .step-value,
    .result-value {
        text-align: left;
    }
    
    .concepts-grid,
    .examples-grid,
    .developers-grid {
        grid-template-columns: 1fr;
    }
    
    .developer-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-photo {
        width: 60px;
        height: 60px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
        white-space: normal;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .calculator-inputs,
    .calculator-results {
        padding: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Brand Preference Mobile Styles */
@media (max-width: 768px) {
    .brand-preference-section {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .preference-labels {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .preference-value {
        padding: 0.75rem;
    }
    
    #brandPreferenceValue {
        font-size: 1.25rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(103, 126, 234, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.scroll-to-top:hover {
    background: var(--secondary);
    transform: translateY(-20px) scale(1.1);
    box-shadow: 0 6px 25px rgba(103, 126, 234, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
}

/* Clean Results Layout Styles */
.input-overview-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.overview-title h2 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.input-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.input-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.input-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.clean-results-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.primary-results-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.secondary-results-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.result-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

.result-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* PCR Display */
.pcr-main-display {
    text-align: center;
}

.pcr-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pcr-status {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: white;
}

.pcr-status.optimal {
    background: #27ae60;
}

.pcr-status.underpriced {
    background: #e67e22;
}

.pcr-status.overpriced {
    background: #e74c3c;
}

/* Benchmark Display */
.benchmark-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.target-pcr, .target-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.target-label, .range-label {
    font-weight: 500;
    color: #666;
}

.target-value, .range-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Pricing Status */
.pricing-status-display {
    text-align: center;
}

.status-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Pricing Recommendations */
.pricing-recommendations-display {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

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

.rec-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Psychology Notice */
.psychology-notice {
    border-left: 4px solid #e67e22;
}

.psychology-notice-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.psychology-explanation {
    margin: 0;
    color: #666;
    font-style: italic;
}

.psychology-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.psych-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #fff8f0;
    border-radius: 4px;
}

.psych-label {
    color: #666;
}

.psych-value {
    font-weight: 600;
    color: #e67e22;
}

/* Reasoning Card */
.reasoning-content p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Math Toggle Button */
.detailed-math-section {
    margin: 2rem 0;
}

.math-toggle-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.math-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(103, 126, 234, 0.3);
}

.math-toggle-btn.expanded .fa-chevron-down {
    transform: rotate(180deg);
}

.math-details {
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.math-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.math-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.math-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.convenience-breakdown, .industry-factors {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.convenience-item, .factor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
}

.conv-label, .factor-label {
    font-weight: 500;
    color: #666;
}

.conv-value, .factor-value {
    font-weight: 600;
    color: var(--primary);
}

.factor-desc {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

.convenience-totals, .industry-factors {
    margin-top: 1rem;
}

.total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 4px;
}

.total-item.final {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.psychology-rules-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.psychology-rule {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: white;
    border-radius: 4px;
    text-align: center;
}

.rule-range {
    font-weight: 600;
    color: var(--primary);
}

.rule-limit {
    font-size: 0.9rem;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .input-summary {
        grid-template-columns: 1fr;
    }
    
    .primary-results-section,
    .secondary-results-section {
        grid-template-columns: 1fr;
    }
    
    .math-grid {
        grid-template-columns: 1fr;
    }
    
    .psychology-rules-detailed {
        grid-template-columns: 1fr;
    }
    
    .recommendation-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Share Image Modal Styles */
.share-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.share-modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 90%;
    max-height: 90%;
    width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.share-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.share-modal-body {
    padding: 30px;
    text-align: center;
}

.share-preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.share-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.download-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.copy-btn {
    background: #6c757d;
    color: white;
}

.copy-btn:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.twitter-btn {
    background: #1da1f2;
    color: white;
}

.twitter-btn:hover {
    background: #0d8bd9;
    transform: translateY(-2px);
}

.linkedin-btn {
    background: #0077b5;
    color: white;
}

.linkedin-btn:hover {
    background: #005582;
    transform: translateY(-2px);
}

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

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .share-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .share-modal-body {
        padding: 20px;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .share-preview-image {
        max-height: 300px;
    }
}

/* Footer Mobile Styles */
@media (max-width: 768px) {
    .footer {
        background-attachment: scroll; /* Fixed backgrounds don't work well on mobile */
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 16px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }
}

/* New Clean Results Layout */
.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.results-header h2 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.results-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Key Metrics Row */
.key-metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.metric-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
}

.metric-status.optimal {
    background: #d4edda;
    color: #155724;
}

.metric-status.underpriced {
    background: #fff3cd;
    color: #856404;
}

.metric-status.overpriced {
    background: #f8d7da;
    color: #721c24;
}

.metric-range,
.metric-change {
    font-size: 0.85rem;
    color: #666;
}

/* Status Card */
.status-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.status-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.status-main {
    flex: 1;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.status-badge.optimal {
    background: #27ae60;
    color: white;
}

.status-badge.underpriced {
    background: #f39c12;
    color: white;
}

.status-badge.overpriced {
    background: #e74c3c;
    color: white;
}

.status-text {
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0;
}

.status-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Psychology Card */
.psychology-card {
    background: linear-gradient(135deg, #fff8f0, white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #f39c12;
    margin-bottom: 2rem;
}

.psychology-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #f39c12;
    font-size: 1.2rem;
    font-weight: 600;
}

.psychology-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.psychology-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.comparison-item {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comparison-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f39c12;
}

.comparison-arrow {
    font-size: 1.5rem;
    color: #f39c12;
    font-weight: bold;
}

/* Analysis Summary */
.analysis-summary {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.analysis-summary h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.analysis-summary p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Math Section Container */
.math-section-container {
    margin: 2rem 0;
}

.math-toggle-section {
    margin-bottom: 1rem;
}

.math-toggle-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(103, 126, 234, 0.2);
}

.math-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(103, 126, 234, 0.3);
}

.toggle-arrow {
    transition: transform 0.3s ease;
}

.math-toggle-btn.expanded .toggle-arrow {
    transform: rotate(180deg);
}

/* Math Details Container */
.math-details-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideDown 0.4s ease;
}

.math-breakdown-section {
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.math-breakdown-section:last-child {
    border-bottom: none;
}

.math-breakdown-section h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
}

/* Calculation Grid */
.calculation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calc-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.calc-item:hover {
    background: #e9ecef;
}

.calc-label {
    font-weight: 500;
    color: #495057;
}

.calc-value {
    font-weight: 700;
    color: var(--primary);
}

/* Calculation Totals */
.calculation-totals {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.total-row.final {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 0.5rem;
}

.total-label {
    font-weight: 500;
}

.total-value {
    font-weight: 700;
    color: var(--primary);
}

.total-row.final .total-value {
    color: white;
}

/* Industry Analysis Grid */
.industry-analysis-grid {
    display: grid;
    gap: 1rem;
}

.analysis-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr auto 2fr;
    gap: 1rem;
    align-items: center;
}

.analysis-item.target {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-left: 4px solid #28a745;
}

.analysis-label {
    font-weight: 500;
    color: #495057;
}

.analysis-value {
    font-weight: 700;
    color: var(--primary);
    text-align: center;
}

.analysis-desc {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

/* Psychology Rules Grid */
.psychology-intro {
    color: #495057;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.psychology-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.psych-rule {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #6c5ce7;
    transition: transform 0.3s ease;
}

.psych-rule:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rule-range {
    font-weight: 700;
    color: #6c5ce7;
    margin-bottom: 0.5rem;
    display: block;
}

.rule-limit {
    font-weight: 600;
    color: #e17055;
    font-size: 0.9rem;
}

.psychology-note {
    background: #f8f9ff;
    border: 1px solid #6c5ce7;
    border-radius: 8px;
    padding: 1rem;
}

.psychology-note p {
    margin: 0;
    color: #4a4a4a;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Mobile Responsive for New Layout */
@media (max-width: 768px) {
    .results-container {
        padding: 1rem;
    }
    
    .key-metrics-row {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        padding: 1.5rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .status-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .psychology-comparison {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
    }
    
    .calculation-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .psychology-rules-grid {
        grid-template-columns: 1fr;
    }
    
    .math-breakdown-section {
        padding: 1.5rem;
    }
}

/* Results Actions */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
    margin-top: 2rem;
}

.results-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 180px;
}

@media (max-width: 768px) {
    .results-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .results-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}