/* ============================================
   HTGS v2.2 - Hair Transplant Grade Selector
   ============================================ */

#htgs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px 50px;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a2e;
}

.htgs-header { text-align: center; margin-bottom: 35px; }
.htgs-main-title {
    font-size: 32px; font-weight: 800; color: #2c3e50;
    margin-bottom: 8px; letter-spacing: -0.5px;
}
.htgs-subtitle {
    font-size: 16px; color: #555;
    max-width: 620px; margin: 0 auto; line-height: 1.5;
}

.htgs-section-title {
    text-align: center; font-size: 22px; font-weight: 700;
    color: #1a1a2e; margin-bottom: 20px; position: relative;
}
.htgs-section-title::after {
    content: ''; display: block; width: 60px; height: 3px;
    background: #c0392b; margin: 10px auto 0; border-radius: 2px;
}
#htgs-selected-grade-text { color: #c0392b; font-weight: 800; }

/* GRADES */
#htgs-grade-selector { margin-bottom: 30px; }
.htgs-grades-row {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
    -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 12px; padding: 10px 0;
}
.htgs-grade-item {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-orient: vertical; -webkit-box-direction: normal;
    -ms-flex-direction: column; flex-direction: column;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    cursor: pointer; padding: 10px 8px; border-radius: 14px;
    border: 2px solid transparent; background: #f8f9fa;
    -webkit-transition: all 0.3s ease; transition: all 0.3s ease; width: 110px;
    color: inherit; text-decoration: none;
}
.htgs-grade-item:focus-visible {
    outline: 3px solid #b8860b; outline-offset: 3px; border-color: #b8860b;
}
.htgs-grade-action {
    margin-top: 4px; font-size: 10px; line-height: 1.25; font-weight: 700;
    color: #8b1a1a; text-transform: none; letter-spacing: 0;
}
.htgs-grade-item:hover {
    -webkit-transform: translateY(-5px); transform: translateY(-5px);
    -webkit-box-shadow: 0 8px 25px rgba(0,0,0,0.12); box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #3498db; background: #fff;
}
.htgs-grade-item.active {
    border-color: #c0392b; background: #fff5f5;
    -webkit-box-shadow: 0 8px 30px rgba(192,57,43,0.2); box-shadow: 0 8px 30px rgba(192,57,43,0.2);
    -webkit-transform: translateY(-5px) scale(1.05); transform: translateY(-5px) scale(1.05);
}
.htgs-grade-item img {
    width: 70px; height: 70px;
    -o-object-fit: contain; object-fit: contain;
    margin-bottom: 6px;
    -webkit-transition: -webkit-transform 0.3s; transition: transform 0.3s;
}
.htgs-grade-item.active img { -webkit-transform: scale(1.1); transform: scale(1.1); }
.htgs-grade-label {
    font-size: 12px; font-weight: 700; color: #333;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.htgs-grade-item.active .htgs-grade-label { color: #c0392b; }

/* OFFER BANNER */
#htgs-offer-banner { margin: 25px 0; }
.htgs-offer-inner {
    background: #e74c3c; color: #fff; text-align: center;
    padding: 16px 24px; border-radius: 12px; font-size: 16px; font-weight: 600;
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    gap: 12px; -ms-flex-wrap: wrap; flex-wrap: wrap;
    -webkit-box-shadow: 0 4px 20px rgba(231,76,60,0.3); box-shadow: 0 4px 20px rgba(231,76,60,0.3);
}
.htgs-offer-icon { font-size: 24px; }
.htgs-offer-timer {
    background: rgba(255,255,255,0.25);
    padding: 4px 14px; border-radius: 20px; font-size: 13px;
}

.htgs-cards-subtitle { text-align: center; font-size: 16px; color: #555; margin-bottom: 25px; }
.htgs-cards-subtitle strong { color: #c0392b; font-size: 20px; }

/* TECHNIQUES ROW */
.htgs-techniques-row {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
    -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 24px; margin-bottom: 20px;
    -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start;
}

/* CARD */
.htgs-technique-card {
    background: #fff; border-radius: 18px; overflow: hidden;
    border: 1px solid #e8e8e8;
    -webkit-box-shadow: 0 4px 15px rgba(0,0,0,0.06); box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    -webkit-transition: all 0.4s ease; transition: all 0.4s ease;
    position: relative; -ms-flex: 1 1 300px; flex: 1 1 300px; max-width: 370px;
}
.htgs-technique-card:hover {
    -webkit-transform: translateY(-8px); transform: translateY(-8px);
    -webkit-box-shadow: 0 16px 40px rgba(0,0,0,0.12); box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.htgs-card-recommended {
    border: 2px solid #27ae60;
    -webkit-box-shadow: 0 4px 20px rgba(39,174,96,0.15); box-shadow: 0 4px 20px rgba(39,174,96,0.15);
}
.htgs-card-popular { border: 2px solid #2980b9; }

/* RIBBON */
.htgs-card-ribbon {
    position: absolute; top: 14px; right: 0;
    color: #fff; padding: 4px 12px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: 4px 0 0 4px; z-index: 2; background: #95a5a6;
}
.htgs-ribbon-legacy   { background: #7f8c8d; }
.htgs-ribbon-popular  { background: #2980b9; }
.htgs-ribbon-recommended { background: #27ae60; font-size: 11px; }

/* CARD HEADER */
.htgs-card-header { padding: 22px 20px 16px; text-align: center; }
.htgs-header-neoonefue  { background: #7f8c8d; }
.htgs-header-neoplatinum { background: #2c3e50; }
.htgs-header-neodht { background: #1a472a; }
.htgs-card-header h4 {
    font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 4px;
}
.htgs-card-tagline { font-size: 13px; color: rgba(255,255,255,0.85); margin: 0; font-weight: 500; }

.htgs-era-badge {
    display: inline-block; background: rgba(255,255,255,0.18); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px;
    margin-bottom: 8px; letter-spacing: 0.3px; border: 1px solid rgba(255,255,255,0.3);
}

/* CARD BODY */
.htgs-card-body { padding: 22px 20px 20px; }

/* BARS */
.htgs-chart-group { margin-bottom: 18px; }
.htgs-chart-item  { margin-bottom: 12px; }
.htgs-chart-label {
    display: block; font-size: 11px; font-weight: 700; color: #555;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.htgs-bar-track {
    background: #f0f0f0; border-radius: 10px; height: 26px; overflow: hidden;
}
.htgs-bar {
    height: 100%; border-radius: 10px;
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end;
    padding-right: 10px;
    -webkit-transition: width 1.2s ease; transition: width 1.2s ease;
    min-width: 0;
}
.htgs-bar span { font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; }
.htgs-bar-survival { background: #27ae60; }
.htgs-bar-pain     { background: #e74c3c; }
.htgs-bar-swelling { background: #f39c12; }
.htgs-bar-comfort  { background: #8e44ad; }

/* TECH DETAILS */
.htgs-tech-details {
    background: #f8f9fa; border-radius: 12px;
    padding: 14px 16px; margin-bottom: 18px; border: 1px solid #eee;
}
.htgs-tech-details-premium {
    background: #f0fff4; border: 1px solid #a9dfbf;
}
.htgs-tech-title {
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; color: #555; margin-bottom: 10px;
    padding-bottom: 8px; border-bottom: 1px solid #e0e0e0;
}
.htgs-tech-details-premium .htgs-tech-title { color: #1e8449; border-bottom-color: #a9dfbf; }

.htgs-tech-list { list-style: none; margin: 0; padding: 0; }
.htgs-tech-list li {
    font-size: 12px; color: #444; padding: 7px 0;
    border-bottom: 1px dashed #e8e8e8;
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: flex-start; -ms-flex-align: flex-start; align-items: flex-start;
    gap: 8px; line-height: 1.5;
}
.htgs-tech-list li:last-child { border-bottom: none; padding-bottom: 0; }
.htgs-tech-list li div { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }
.htgs-tech-list li strong { display: block; color: #222; font-size: 11px; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 1px; }
.htgs-tech-details-premium .htgs-tech-list li { color: #1a5c34; }
.htgs-tech-details-premium .htgs-tech-list li strong { color: #145a32; }

.htgs-tech-icon { font-size: 14px; min-width: 20px; text-align: center; margin-top: 1px; }
.htgs-icon-gold  { color: #d4ac0d; }
.htgs-icon-red   { color: #c0392b; }
.htgs-icon-amber { color: #d35400; }

/* PRICE */
.htgs-price-section {
    text-align: center; padding: 16px 0;
    margin: 0 -20px; background: #f8f9fa;
    border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
.htgs-price-label {
    display: block; font-size: 11px; text-transform: uppercase;
    letter-spacing: 1px; color: #888; font-weight: 600; margin-bottom: 4px;
}
.htgs-price-value { display: block; font-size: 28px; font-weight: 800; color: #c0392b; }
.htgs-price-per   { display: block; font-size: 12px; color: #999; margin-top: 2px; }

/* CTA */
.htgs-cta-btn {
    display: block; text-align: center; padding: 13px 20px;
    margin-top: 18px; border-radius: 10px; font-size: 14px; font-weight: 700;
    text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px;
    -webkit-transition: all 0.3s ease; transition: all 0.3s ease;
}
.htgs-cta-neoonefue  { background: #636e72; color: #fff; }
.htgs-cta-neoonefue:hover  { background: #4a5459; color: #fff; -webkit-transform: translateY(-2px); transform: translateY(-2px); -webkit-box-shadow: 0 6px 20px rgba(99,110,114,0.35); box-shadow: 0 6px 20px rgba(99,110,114,0.35); }
.htgs-cta-neoplatinum { background: #2980b9; color: #fff; }
.htgs-cta-neoplatinum:hover { background: #1f6fa0; color: #fff; -webkit-transform: translateY(-2px); transform: translateY(-2px); -webkit-box-shadow: 0 6px 20px rgba(52,152,219,0.35); box-shadow: 0 6px 20px rgba(52,152,219,0.35); }
.htgs-cta-neodht { background: #27ae60; color: #fff; }
.htgs-cta-neodht:hover { background: #1e8449; color: #fff; -webkit-transform: translateY(-2px); transform: translateY(-2px); -webkit-box-shadow: 0 6px 20px rgba(39,174,96,0.35); box-shadow: 0 6px 20px rgba(39,174,96,0.35); }

.htgs-disclaimer { text-align: center; font-size: 12px; color: #aaa; margin-top: 15px; font-style: italic; }

/* ANIMATIONS */
@-webkit-keyframes htgs-cardIn {
    from { opacity: 0; -webkit-transform: translateY(30px); transform: translateY(30px); }
    to   { opacity: 1; -webkit-transform: translateY(0);    transform: translateY(0); }
}
@keyframes htgs-cardIn {
    from { opacity: 0; -webkit-transform: translateY(30px); transform: translateY(30px); }
    to   { opacity: 1; -webkit-transform: translateY(0);    transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .htgs-techniques-row {
        -webkit-box-orient: vertical; -webkit-box-direction: normal;
        -ms-flex-direction: column; flex-direction: column;
        -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    }
    .htgs-technique-card { max-width: 460px; width: 100%; }
    .htgs-main-title { font-size: 24px; }
    .htgs-grade-item { width: 80px; padding: 8px 4px; }
    .htgs-grade-item img { width: 50px; height: 50px; }
}
@media (max-width: 600px) {
    #htgs-wrapper { padding: 20px 10px 30px; }
    .htgs-main-title { font-size: 20px; }
    .htgs-grade-item { width: 65px; padding: 6px 3px; }
    .htgs-grade-item img { width: 42px; height: 42px; }
    .htgs-grade-label { font-size: 10px; }
    .htgs-card-header h4 { font-size: 18px; }
    .htgs-price-value { font-size: 22px; }
    .htgs-tech-list li { font-size: 11px; }
}

/* =============================================
   TECHNIQUE EVOLUTION TIMELINE
   ============================================= */

#htgs-wrapper .htgs-timeline-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #111827 100%) !important;
    border: 1px solid #1e3a5f !important;
    border-radius: 16px !important;
    padding: 40px 36px !important;
    margin: 32px 0 36px 0 !important;
}

#htgs-wrapper .htgs-timeline-heading {
    text-align: center !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: -0.5px !important;
}

#htgs-wrapper .htgs-timeline-subheading {
    text-align: center !important;
    font-size: 14px !important;
    color: #94a3b8 !important;
    margin: 0 0 36px 0 !important;
}

#htgs-wrapper .htgs-timeline {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    position: relative !important;
}

#htgs-wrapper .htgs-timeline::before {
    content: '' !important;
    position: absolute !important;
    left: 27px !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 2px !important;
    background: linear-gradient(to bottom, #374151, #1d4ed8, #7c3aed, #d97706) !important;
}

#htgs-wrapper .htgs-timeline-item {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
    padding: 0 0 28px 0 !important;
    position: relative !important;
    margin: 0 !important;
}

#htgs-wrapper .htgs-timeline-item:last-child {
    padding-bottom: 0 !important;
}

#htgs-wrapper .htgs-tl-badge {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-align: center !important;
    line-height: 1.2 !important;
    position: relative !important;
    z-index: 2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    list-style: none !important;
}

#htgs-wrapper .htgs-tl-fut .htgs-tl-badge {
    background: #374151 !important;
    color: #9ca3af !important;
    border: 2px solid #4b5563 !important;
}

#htgs-wrapper .htgs-tl-neoonefue .htgs-tl-badge {
    background: #1e3a5f !important;
    color: #60a5fa !important;
    border: 2px solid #1d4ed8 !important;
}

#htgs-wrapper .htgs-tl-neoplatinum .htgs-tl-badge {
    background: #2d1b69 !important;
    color: #a78bfa !important;
    border: 2px solid #7c3aed !important;
}

#htgs-wrapper .htgs-tl-neodht .htgs-tl-badge {
    background: linear-gradient(135deg, #78350f, #d97706) !important;
    color: #fef3c7 !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 0 16px rgba(217,119,6,0.4) !important;
}

#htgs-wrapper .htgs-tl-content {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 12px !important;
    padding: 18px 22px !important;
    flex: 1 !important;
}

#htgs-wrapper .htgs-tl-fut .htgs-tl-content { border-left: 3px solid #4b5563 !important; }
#htgs-wrapper .htgs-tl-neoonefue .htgs-tl-content { border-left: 3px solid #1d4ed8 !important; }
#htgs-wrapper .htgs-tl-neoplatinum .htgs-tl-content { border-left: 3px solid #7c3aed !important; }
#htgs-wrapper .htgs-tl-neodht .htgs-tl-content {
    border-left: 3px solid #d97706 !important;
    background: rgba(217,119,6,0.06) !important;
}

#htgs-wrapper .htgs-tl-era {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 4px !important;
    display: block !important;
}

#htgs-wrapper .htgs-tl-fut .htgs-tl-era { color: #6b7280 !important; }
#htgs-wrapper .htgs-tl-neoonefue .htgs-tl-era { color: #3b82f6 !important; }
#htgs-wrapper .htgs-tl-neoplatinum .htgs-tl-era { color: #8b5cf6 !important; }
#htgs-wrapper .htgs-tl-neodht .htgs-tl-era { color: #f59e0b !important; }

#htgs-wrapper .htgs-tl-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

#htgs-wrapper .htgs-tl-desc {
    font-size: 13px !important;
    color: #94a3b8 !important;
    line-height: 1.6 !important;
    margin: 0 0 12px 0 !important;
    text-align: left !important;
}

#htgs-wrapper .htgs-tl-points {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

#htgs-wrapper .htgs-tl-points li {
    font-size: 12.5px !important;
    color: #cbd5e1 !important;
    padding-left: 16px !important;
    position: relative !important;
    line-height: 1.5 !important;
    text-align: left !important;
    list-style: none !important;
}

#htgs-wrapper .htgs-tl-points li::before {
    content: '\2192' !important;
    position: absolute !important;
    left: 0 !important;
    color: #64748b !important;
}

#htgs-wrapper .htgs-tl-neodht .htgs-tl-points li::before { color: #d97706 !important; }

#htgs-wrapper .htgs-tl-badge-best {
    display: inline-block !important;
    margin-top: 12px !important;
    background: linear-gradient(135deg, #92400e, #d97706) !important;
    color: #fef3c7 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    letter-spacing: 0.5px !important;
}

@media (max-width: 600px) {
    #htgs-wrapper .htgs-timeline-section { padding: 24px 16px !important; }
    #htgs-wrapper .htgs-timeline::before { left: 18px !important; }
    #htgs-wrapper .htgs-tl-badge { width: 38px !important; height: 38px !important; min-width: 38px !important; font-size: 8px !important; }
    #htgs-wrapper .htgs-tl-title { font-size: 14px !important; }
    #htgs-wrapper .htgs-tl-desc { font-size: 12px !important; }
    #htgs-wrapper .htgs-tl-points li { font-size: 11px !important; }
    #htgs-wrapper .htgs-timeline-heading { font-size: 20px !important; }
}
