/* ============================================
   EpicStamp - Main Stylesheet
   Blue theme matching epicstamp.com
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #0073e6;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    color: #1a1a2e;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.5;
}

.btn-primary {
    background-color: #1a1a2e;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0d0d1a;
    color: #ffffff;
    opacity: 1;
}

.btn-blue {
    background-color: #0073e6;
    color: #ffffff;
}

.btn-blue:hover {
    background-color: #005bb5;
    color: #ffffff;
    opacity: 1;
}

.btn-green {
    background-color: #39b54a;
    color: #ffffff;
}

.btn-green:hover {
    background-color: #2e9a3d;
    color: #ffffff;
    opacity: 1;
}

.btn-white {
    background-color: #ffffff;
    color: #1a1a2e;
}

.btn-white:hover {
    background-color: #f0f0f0;
    color: #1a1a2e;
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 2px solid #1a1a2e;
    color: #1a1a2e;
}

.btn-outline:hover {
    background: #1a1a2e;
    color: #ffffff;
}

.btn-pill {
    border-radius: 9999px;
}

.btn-lg {
    font-size: 1.05em;
    padding: calc(0.85em + 2px) calc(1.8em + 2px);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #0073e6;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.nav-menu > ul {
    display: flex;
    list-style: none;
    gap: 2em;
    align-items: center;
}

.nav-menu > ul li a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s;
}

.nav-menu > ul li a:hover {
    color: rgba(255,255,255,0.75);
    opacity: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2em;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-current {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-weight: 500;
}

.lang-current:hover {
    background: rgba(255,255,255,0.25);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 160px;
    margin-top: 8px;
    list-style: none;
    overflow: hidden;
    z-index: 100;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-dropdown li a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 14px;
    transition: background 0.2s;
}

.lang-dropdown li a:hover {
    background: #f0f7ff;
    color: #0073e6;
    opacity: 1;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: #0073e6;
    color: #ffffff;
    padding: 0;
    overflow: hidden;
    position: relative;
    min-height: 600px;
}

.hero-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.hero-content {
    flex: 1;
    padding: 70px 0 70px 0;
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 46px;
    margin-bottom: 20px;
    line-height: 1.15;
    font-weight: 800;
}

.hero-content h1 span {
    color: #7ed957;
}

.hero-content > p {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Green ring decoration */
.hero-image::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border: 3px solid rgba(126, 217, 87, 0.4);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

/* Hero badge section */
.hero-badges {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-badge-img {
    width: 120px;
    height: auto;
    flex-shrink: 0;
}

.hero-checklist {
    list-style: none;
}

.hero-checklist li {
    padding: 4px 0;
    font-size: 15px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.hero-checklist li svg {
    flex-shrink: 0;
    color: #7ed957;
}

/* ============================================
   SCAN FORM
   ============================================ */
.scan-form {
    margin-top: 30px;
}

.scan-form-fields {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.scan-form-fields input {
    flex: 1;
    padding: 15px 22px;
    border: none;
    border-radius: 9999px;
    font-size: 15px;
    background: #ffffff;
    color: #333;
    font-family: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.scan-form-fields input::placeholder {
    color: #999;
}

.scan-form-fields input:focus {
    outline: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.scan-form .btn {
    width: 100%;
}

/* Hero form variant */
.hero .scan-form .btn-primary {
    background: #ffffff;
    color: #1a1a2e;
    font-weight: 700;
}

.hero .scan-form .btn-primary:hover {
    background: #f0f0f0;
}

/* White background variant (final CTA) */
.scan-form-white .scan-form-fields input {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    color: #333;
    box-shadow: none;
}

.scan-form-white .scan-form-fields input::placeholder {
    color: #999;
}

.scan-form-white .scan-form-fields input:focus {
    border-color: #0073e6;
}

.scan-form-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.scan-form-message.success {
    background: rgba(57, 181, 74, 0.1);
    color: #2e9a3d;
    border: 1px solid rgba(57, 181, 74, 0.3);
}

.scan-form-message.error {
    background: rgba(207, 46, 46, 0.1);
    color: #cf2e2e;
    border: 1px solid rgba(207, 46, 46, 0.3);
}

/* ============================================
   PROBLEMS / CARDS SECTION
   ============================================ */
.section {
    padding: 80px 0;
}

.section-dark {
    background: #f8f9fb;
}

.section-blue {
    background: #0073e6;
    color: #ffffff;
}

.section-blue h2,
.section-blue h3 {
    color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    font-size: 17px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 115, 230, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #0073e6;
}

.card-icon svg {
    width: 30px;
    height: 30px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.card p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #0073e6 0%, #005bb5 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 40px;
}

.cta-section p {
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-section .scan-form {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section .scan-form-fields input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    box-shadow: none;
}

.cta-section .scan-form-fields input::placeholder {
    color: rgba(255,255,255,0.6);
}

.cta-section .btn-primary {
    background: #ffffff;
    color: #0073e6;
    font-weight: 700;
}

.cta-section .btn-primary:hover {
    background: #f0f0f0;
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s;
    border: 1px solid #f0f0f0;
}

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

.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e3f0ff 0%, #d0e4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0073e6;
    font-size: 40px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.blog-card-content h3 a {
    color: #1a1a2e;
}

.blog-card-content h3 a:hover {
    color: #0073e6;
}

.blog-card-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.view-more {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    background: #f8f9fb;
    padding: 80px 0;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0073e6, #005bb5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-quote {
    font-size: 18px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-quote::before {
    content: '\201C';
    font-size: 40px;
    color: #0073e6;
    line-height: 0;
    vertical-align: -12px;
    margin-right: 4px;
}

.testimonial-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.testimonial-role {
    font-size: 14px;
    color: #666;
}

.testimonial-stars {
    color: #fcb900;
    font-size: 18px;
    margin-bottom: 15px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #666;
}

.carousel-btn:hover {
    border-color: #0073e6;
    color: #0073e6;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: #0073e6;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    padding: 80px 0;
    text-align: center;
    background: #f8f9fb;
}

.final-cta h2 {
    margin-bottom: 30px;
}

.final-cta .scan-form {
    max-width: 600px;
    margin: 0 auto;
}

.final-cta .scan-form .btn-primary {
    background: #0073e6;
    color: #fff;
}

.final-cta .scan-form .btn-primary:hover {
    background: #005bb5;
}

.final-cta .scan-form-fields input {
    border: 2px solid #e0e0e0;
    box-shadow: none;
}

/* ============================================
   INNER PAGES
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #0073e6 0%, #005bb5 100%);
    color: #ffffff;
    padding: 70px 0;
    text-align: center;
}

.page-hero h1 {
    color: #ffffff;
    margin-bottom: 15px;
}

.page-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 60px 0;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Steps (How it works) */
.steps {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.step-number {
    flex: 0 0 70px;
    height: 70px;
    background: #0073e6;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.step-content h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.step-content p {
    color: #666;
    font-size: 16px;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    transition: transform 0.3s;
    border: 1px solid #f0f0f0;
}

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

.pricing-card.featured {
    border: 3px solid #0073e6;
}

.pricing-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #0073e6;
    color: #ffffff;
    padding: 4px 20px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
}

.pricing-plan-name {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.pricing-price span {
    font-size: 18px;
    color: #666;
    font-weight: 400;
}

.pricing-period {
    color: #666;
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: rgba(0, 115, 230, 0.08);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230073e6' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Star rating badges */
.star-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.star-badge {
    text-align: center;
}

.star-badge-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 28px;
}

.star-badge-3 .star-badge-icon { background: linear-gradient(135deg, #39b54a, #2e9a3d); color: #fff; }
.star-badge-2 .star-badge-icon { background: linear-gradient(135deg, #69727d, #555); color: #fff; }
.star-badge-1 .star-badge-icon { background: linear-gradient(135deg, #cd7f32, #a0652a); color: #fff; }

.star-badge-label {
    font-size: 14px;
    color: #666;
}

/* Results page */
.results-container {
    max-width: 800px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    padding: 40px 0;
}

.results-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.results-score.score-high { background: linear-gradient(135deg, #39b54a, #2e9a3d); }
.results-score.score-medium { background: linear-gradient(135deg, #fcb900, #e0a800); }
.results-score.score-low { background: linear-gradient(135deg, #cf2e2e, #a82424); }

.results-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.results-stat {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.results-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.results-stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.factors-list {
    margin-top: 40px;
}

.factor-item {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 15px;
}

.factor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.factor-name {
    font-weight: 600;
    font-size: 16px;
}

.factor-score {
    font-weight: 700;
    font-size: 16px;
}

.factor-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

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

.factor-bar-fill.good, .factor-bar-fill.ps-good { background: #0cce6b; }
.factor-bar-fill.average, .factor-bar-fill.ps-average { background: #ffa400; }
.factor-bar-fill.poor, .factor-bar-fill.ps-poor { background: #ff4e42; }

.factor-details {
    margin-top: 8px;
    font-size: 13px;
    color: #69727d;
}

.factor-details span {
    margin-right: 15px;
}

/* ============================================
   PAGESPEED SCORE GAUGE
   ============================================ */
.score-gauge {
    position: relative;
    display: inline-block;
}

.score-gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 42px;
    font-weight: 700;
}

.ps-good-text { color: #0cce6b; }
.ps-average-text { color: #ffa400; }
.ps-poor-text { color: #ff4e42; }

/* Results v2 header */
.results-header-v2 {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
}

.results-gauge-wrap {
    text-align: center;
    flex-shrink: 0;
}

.results-gauge-label {
    font-size: 20px;
    font-weight: 700;
    margin-top: 15px;
    color: #1a1a2e;
}

.results-date {
    color: #69727d;
    font-size: 14px;
    margin-top: 5px;
}

.results-key-metrics {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Results card */
.results-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.results-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

/* ============================================
   VISITOR BREAKDOWN
   ============================================ */
.visitor-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.visitor-breakdown-item {
    text-align: center;
    padding: 20px 10px;
    background: #f8f9fb;
    border-radius: 10px;
}

.visitor-count {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.visitor-label {
    font-size: 11px;
    color: #69727d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visitor-co2 {
    font-size: 18px;
    font-weight: 700;
    color: #0073e6;
    margin-top: 8px;
}

.visitor-sublabel {
    font-size: 11px;
    color: #69727d;
}

/* Analogy highlight */
.analogy-highlight {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #f0f7ff;
    border-radius: 10px;
    border-left: 4px solid #0073e6;
}

.analogy-icon {
    color: #0073e6;
    flex-shrink: 0;
}

.analogy-text {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.analogy-note {
    font-size: 13px;
    color: #69727d;
}

/* ============================================
   RECOMMENDATIONS
   ============================================ */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.rec-critical {
    background: #fff5f5;
    border-left: 4px solid #ff4e42;
    color: #333;
}

.rec-critical .rec-icon { color: #ff4e42; }

.rec-warning {
    background: #fffbf0;
    border-left: 4px solid #ffa400;
    color: #333;
}

.rec-warning .rec-icon { color: #ffa400; }

.rec-info {
    background: #f0f7ff;
    border-left: 4px solid #0073e6;
    color: #333;
}

.rec-info .rec-icon { color: #0073e6; }

.rec-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.rec-text {
    flex: 1;
}

.rec-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.rec-critical .rec-badge { background: #ff4e42; color: #fff; }
.rec-warning .rec-badge { background: #ffa400; color: #fff; }
.rec-info .rec-badge { background: #0073e6; color: #fff; }

.rec-partner-links {
    margin-top: 8px;
    padding-left: 28px;
}

/* Results CTAs */
.results-cta {
    text-align: center;
    margin-top: 30px;
    padding: 30px;
    border-radius: 12px;
}

.results-cta h3 { margin-bottom: 15px; }
.results-cta p { color: #69727d; margin-bottom: 20px; }

.results-cta.certified { background: #e8f5e9; }
.results-cta.certified h3 { color: #0cce6b; }
.results-cta.qualify { background: #f8f9fb; }
.results-cta.improve { background: #fff3e0; }

.embed-code {
    width: 100%;
    max-width: 500px;
    height: 60px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    resize: none;
}

/* ============================================
   DASHBOARD SITE CARDS
   ============================================ */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.site-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.3s;
}

.site-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.site-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.site-card-gauge .score-gauge-value {
    font-size: 18px;
}

.site-card-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
    word-break: break-all;
}

.site-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #69727d;
}

.site-card-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.site-stat-label {
    display: block;
    font-size: 11px;
    color: #69727d;
    text-transform: uppercase;
}

.site-stat-value {
    font-size: 15px;
    font-weight: 700;
}

.site-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Small button variant */
.btn-sm {
    font-size: 13px;
    padding: 6px 16px;
}

/* Table responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0073e6, #005bb5);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 40px;
    font-weight: 700;
    overflow: hidden;
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.team-role {
    font-size: 14px;
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: #0073e6;
}

.stat-label {
    font-size: 15px;
    color: #666;
    margin-top: 5px;
}

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-single-content {
    max-width: 750px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.9;
}

/* ============================================
   CHECKOUT
   ============================================ */
.checkout-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 40px 0;
}

.checkout-summary {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

/* Plan Selection Cards */
.plan-option {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    display: block;
}
.plan-option:hover {
    border-color: #0073e6;
}
.plan-option.selected {
    border-color: #0073e6;
    box-shadow: 0 0 0 1px #0073e6;
}
.plan-option input[type="radio"] {
    margin-right: 8px;
}
.plan-price {
    font-size: 22px;
    font-weight: 700;
    margin-top: 10px;
    color: #1a1a2e;
}
.plan-price span {
    font-size: 13px;
    color: #69727d;
    font-weight: 400;
}

/* Duration Options */
.duration-options {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}
.duration-option {
    flex: 1;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    display: block;
}
.duration-option:hover {
    border-color: #0073e6;
}
.duration-option.selected {
    border-color: #0073e6;
    box-shadow: 0 0 0 1px #0073e6;
}
.duration-option input[type="radio"] {
    display: block;
    margin: 0 auto 8px;
}
.discount-badge {
    display: inline-block;
    font-size: 12px;
    color: #fff;
    background: #39b54a;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
    font-weight: 600;
}

/* Checkout Add-ons */
.checkout-addons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}
.addon-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: border-color 0.3s;
}
.addon-option:hover {
    border-color: #0073e6;
}
.addon-option input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}
.addon-info {
    flex: 1;
}
.addon-info strong {
    display: block;
    margin-bottom: 4px;
}
.addon-info p {
    font-size: 13px;
    color: #69727d;
    margin: 0;
}
.addon-recurring {
    display: inline-block;
    font-size: 11px;
    color: #0073e6;
    background: rgba(0,115,230,0.08);
    padding: 2px 8px;
    border-radius: 8px;
    margin-top: 4px;
}
.addon-price {
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    color: #1a1a2e;
}

/* Billing Section */
.billing-section {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}
.checkout-form-group {
    margin-bottom: 15px;
}
.checkout-form-group:last-child {
    margin-bottom: 0;
}
.checkout-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}
.checkout-form-group select,
.checkout-form-group input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}
.checkout-form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

/* Price Breakdown */
.price-breakdown {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 20px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
}
.price-row.total {
    border-top: 2px solid #ddd;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

/* Currency Switcher in Header */
.currency-switcher {
    position: relative;
    margin-left: 10px;
}
.currency-current {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.currency-current:hover {
    border-color: rgba(255,255,255,0.6);
}
.currency-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    list-style: none;
    padding: 4px 0;
    margin-top: 4px;
    min-width: 100px;
    z-index: 1000;
}
.currency-switcher.open .currency-dropdown {
    display: block;
}
.currency-dropdown li a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}
.currency-dropdown li a:hover {
    background: #f0f5ff;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-logo {
    height: 40px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: rgba(255,255,255,0.6);
    transition: color 0.3s;
}

.social-links a:hover {
    color: #0073e6;
    opacity: 1;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #0073e6;
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    font-size: 14px;
}

/* ============================================
   AUTH FORMS
   ============================================ */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #0073e6;
}

/* ============================================
   LOADING / SPINNER
   ============================================ */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-image { position: relative; width: 100%; height: 350px; }
    .hero-content h1 { font-size: 36px; }
    .hero-badges { justify-content: center; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #0073e6;
        padding: 20px;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu > ul li a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    h1 { font-size: 32px; }
    h2 { font-size: 28px; }

    .hero { min-height: auto; }
    .hero-content { padding: 50px 0; }
    .hero-content h1 { font-size: 32px; }
    .hero-image { display: none; }

    .scan-form-fields {
        flex-direction: column;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .cards-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .results-summary {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Results v2 responsive */
    .results-header-v2 {
        flex-direction: column;
        text-align: center;
    }

    .visitor-breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sites-grid {
        grid-template-columns: 1fr;
    }

    .recommendation-item {
        flex-wrap: wrap;
    }

    .analogy-highlight {
        flex-direction: column;
        text-align: center;
    }

    /* Checkout responsive */
    .duration-options {
        flex-direction: column;
    }

    .currency-switcher {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ============================================
   How it Works - Methodology Page
   ============================================ */
.section-light {
    background: #f7f9fc;
}

.methodology-content {
    line-height: 1.8;
    color: #333;
}

.method-block {
    margin-bottom: 50px;
}

.method-block h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073e6;
    display: inline-block;
}

.method-block p {
    margin-bottom: 15px;
    font-size: 15px;
    color: #444;
}

.segments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.segment-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.segment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.segment-icon {
    margin-bottom: 15px;
}

.segment-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.segment-value {
    font-size: 18px;
    font-weight: 800;
    color: #0073e6;
    margin-bottom: 12px;
}

.segment-card p {
    font-size: 13px;
    color: #69727d;
    line-height: 1.5;
    margin: 0;
}

.formula-box {
    background: #1a1a2e;
    color: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 25px 0;
}

.formula-box h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

.formula-box code {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #7ed957;
    margin-bottom: 12px;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.formula-box p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.carbon-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.carbon-example {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
}

.carbon-example .country-flag {
    margin-right: 8px;
}

.carbon-example small {
    display: block;
    color: #69727d;
    margin-top: 3px;
}

.psi-metrics {
    margin: 25px 0;
}

.psi-metric {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 12px;
}

.psi-score {
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
}

.psi-good { background: #0cce6b; }
.psi-average { background: #ffa400; }
.psi-poor { background: #ff4e42; }

.psi-metric strong {
    display: block;
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.psi-metric p {
    font-size: 13px;
    color: #69727d;
    margin: 0;
    line-height: 1.5;
}

.score-weights {
    margin: 25px 0;
}

.weight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.weight-pct {
    min-width: 60px;
    font-size: 22px;
    font-weight: 800;
    color: #0073e6;
}

.weight-label {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a2e;
}

.weight-item small {
    display: block;
    color: #69727d;
    font-size: 13px;
    margin-top: 2px;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.impact-card {
    text-align: center;
    padding: 30px 20px;
    background: #f7f9fc;
    border-radius: 12px;
}

.impact-value {
    font-size: 36px;
    font-weight: 800;
    color: #0073e6;
    margin-bottom: 8px;
}

.impact-label {
    font-size: 14px;
    color: #69727d;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.reference-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 25px;
}

.reference-card h4 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.reference-card p {
    font-size: 14px;
    color: #69727d;
    margin-bottom: 10px;
    line-height: 1.5;
}

.reference-card a {
    color: #0073e6;
    font-size: 13px;
    text-decoration: none;
}

.reference-card a:hover {
    text-decoration: underline;
}

.star-badge-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    line-height: 1.5;
}

/* ============================================
   Blog Author Box (single post page)
   ============================================ */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-top: 10px;
}

.blog-meta-sep {
    margin: 0 3px;
}

.blog-author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #f7f9fc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
}

.blog-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #0073e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-author-avatar span {
    color: #fff;
    font-weight: 700;
    font-size: 24px;
}

.blog-author-info strong {
    font-size: 16px;
    color: #1a1a2e;
}

.blog-author-role {
    font-size: 13px;
    color: #0073e6;
    margin-bottom: 8px;
}

.blog-author-info p {
    font-size: 14px;
    color: #69727d;
    line-height: 1.6;
    margin: 0;
}

.blog-card-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    font-size: 13px;
    color: #69727d;
}

.blog-card-author {
    font-weight: 600;
    color: #0073e6;
}

.blog-card-date::before {
    content: "\00b7";
    margin-right: 10px;
}

/* ============================================
   Responsive: Methodology
   ============================================ */
@media (max-width: 767px) {
    .segments-grid {
        grid-template-columns: 1fr 1fr;
    }

    .carbon-examples {
        grid-template-columns: 1fr;
    }

    .psi-metric {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .impact-stats {
        grid-template-columns: 1fr;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }

    .weight-item {
        flex-wrap: wrap;
    }

    .blog-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- Referral Dashboard --- */
.referral-link-box {
    background: linear-gradient(135deg, #0073e6 0%, #0059b3 100%);
    color: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
}

.referral-link-box h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.referral-link-copy {
    display: flex;
    gap: 10px;
    align-items: center;
}

.referral-link-copy input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 14px;
    font-family: monospace;
}

.referral-link-copy .btn {
    white-space: nowrap;
    background: #fff;
    color: #0073e6;
    border-color: #fff;
    font-weight: 600;
}

.referral-code-note {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.8;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.referral-stat {
    background: #f7f9fc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.referral-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #0073e6;
    line-height: 1.2;
}

.referral-stat-label {
    font-size: 13px;
    color: #69727d;
    margin-top: 5px;
}

.referral-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
}

.referral-card h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.referral-how {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 30px;
}

.referral-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.referral-step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.referral-step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #0073e6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.referral-step strong {
    display: block;
    margin-bottom: 4px;
}

.referral-step p {
    font-size: 14px;
    color: #69727d;
    margin: 0;
}

@media (max-width: 768px) {
    .referral-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .referral-link-copy {
        flex-direction: column;
    }

    .referral-link-copy input {
        width: 100%;
    }
}

/* --- How to Fix Modal --- */
.btn-how-to-fix {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border: 1px solid #0073e6;
    border-radius: 20px;
    background: transparent;
    color: #0073e6;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 8px;
    vertical-align: middle;
}

.btn-how-to-fix:hover {
    background: #0073e6;
    color: #fff;
}

.btn-how-to-fix svg {
    flex-shrink: 0;
}

.fix-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.fix-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 550px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
}

.fix-modal-content h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #1a1a2e;
}

.fix-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #69727d;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.fix-modal-close:hover {
    color: #1a1a2e;
}

#fixModalBody {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

/* --- Public Certificate Page --- */
.cert-public-hero {
    background: linear-gradient(135deg, #0073e6 0%, #0059b3 100%);
    color: #fff;
    padding: 50px 20px 40px;
    text-align: center;
}

.cert-public-hero h1 {
    color: #fff;
    font-size: 28px;
    margin: 15px 0 8px;
}

.cert-public-hero p {
    font-size: 16px;
    margin: 0;
}

.cert-badge-large {
    background: #fff;
    border: 3px solid #ccc;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    margin: -30px auto 30px;
    max-width: 420px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.cert-badge-stars {
    font-size: 42px;
    letter-spacing: 6px;
    margin-bottom: 10px;
}

.cert-badge-label {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.cert-badge-code {
    font-family: monospace;
    font-size: 13px;
    color: #69727d;
    background: #f5f5f5;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.cert-badge-validity {
    font-size: 14px;
    color: #69727d;
}

.cert-badge-validity .badge-status {
    margin-right: 8px;
}

.cert-site-link {
    text-align: center;
    margin-bottom: 30px;
}

.cert-site-link a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0073e6;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
}

.cert-site-link a:hover {
    background: #f0f7ff;
    border-color: #0073e6;
}

.cert-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.cert-metric {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.cert-metric-gauge {
    margin-bottom: 8px;
}

.cert-metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.cert-metric-label {
    font-size: 13px;
    color: #69727d;
    margin-top: 5px;
}

.cert-improvement {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 15px;
}

.cert-improvement-arrow {
    font-size: 18px;
    margin-right: 6px;
}

.cert-chart-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.cert-chart-card h3 {
    margin: 0 0 15px;
    font-size: 17px;
    color: #1a1a2e;
}

.cert-public-footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 10px;
}

.cert-public-footer p {
    margin: 0;
    font-size: 16px;
    color: #69727d;
}

.cert-public-footer a {
    color: #0073e6;
    text-decoration: none;
}

.cert-not-found {
    text-align: center;
    padding: 60px 20px;
}

.cert-not-found h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.cert-not-found p {
    color: #69727d;
    font-size: 16px;
}

@media (max-width: 768px) {
    .cert-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-badge-large {
        margin-top: -20px;
        padding: 25px;
    }

    .cert-badge-stars {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .cert-metrics {
        grid-template-columns: 1fr;
    }
}
