/* =========================
   RESET & BASE
========================= */
.ahc-main * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ahc-main {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #0a0a0a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

.ahc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ahc-gradient {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================
   HERO
========================= */
.ahc-hero {
    padding: 40px 0 20px;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
}

.ahc-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ahc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.ahc-badge-dot {
    width: 8px;
    height: 8px;
    background: #a855f7;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ahc-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.ahc-hero-desc {
    font-size: 1.125rem;
    color: #525252;
    margin-bottom: 32px;
    line-height: 1.7;
}

.ahc-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ahc-btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.ahc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
}

.ahc-btn-secondary {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #0a0a0a;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.ahc-btn-secondary:hover {
    border-color: #a855f7;
    color: #a855f7;
}

/* Hero Visual */
.ahc-hero-visual {
    position: relative;
}

.ahc-hero-card {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.ahc-hero-image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.ahc-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ahc-hero-floating {
    position: absolute;
    bottom: -20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ahc-floating-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.ahc-floating-desc {
    font-size: 0.875rem;
    color: #525252;
}

/* =========================
   QUICK ANALYSIS
========================= */
.ahc-quick-analysis {
    padding: 40px 0;
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}

.ahc-analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.ahc-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ahc-section-desc {
    color: #525252;
    margin-bottom: 30px;
}

.ahc-section-title-center {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.ahc-section-desc-center {
    text-align: center;
    color: #525252;
    margin-bottom: 50px;
}

/* Upload */
.ahc-upload-wrapper {
    margin-bottom: 20px;
}

.ahc-upload-card {
    display: block;
    background: white;
    border: 2px dashed #d4d4d4;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ahc-upload-card:hover {
    border-color: #a855f7;
    background: #faf5ff;
}

.ahc-upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.ahc-upload-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.ahc-upload-sub {
    color: #525252;
    margin-bottom: 12px;
}

.ahc-upload-legal {
    font-size: 0.875rem;
    color: #a3a3a3;
}

/* Preview */
.ahc-preview {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ahc-preview canvas {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
}

.ahc-btn-reset {
    background: #f5f5f5;
    color: #525252;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ahc-btn-reset:hover {
    background: #e5e5e5;
}

/* Result */
.ahc-analysis-right {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    min-height: 400px;
}

.ahc-result-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.ahc-result-badge {
    display: inline-block;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ahc-result-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ahc-result-desc {
    color: #525252;
}

.ahc-result-content {
    min-height: 200px;
}

.ahc-result-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #a3a3a3;
}

.ahc-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Result Items */
.ahc-result-item {
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #a855f7;
}

.ahc-result-item-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #0a0a0a;
}

.ahc-result-item-desc {
    font-size: 0.9rem;
    color: #525252;
}

.ahc-result-cta {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    border-radius: 16px;
    text-align: center;
}

.ahc-result-cta h4 {
    margin-bottom: 8px;
}

.ahc-result-cta p {
    opacity: 0.9;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.ahc-result-cta a {
    display: inline-block;
    background: white;
    color: #a855f7;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ahc-result-cta a:hover {
    transform: translateY(-2px);
}

/* Manual Selection */
.ahc-manual-section {
    max-width: 1100px;
    margin: 0 auto;
    background: #faf8f5;
    border-radius: 24px;
    padding: 48px;
}

.ahc-hidden {
    display: none !important;
}

/* =========================
   HOW IT WORKS - KOYU TEMA
========================= */
.ahc-how {
    padding: 40px 0;
    background: #fafafa;
}

.ahc-how-card {
    background: #1a1a1a;
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.ahc-how-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.ahc-how-label {
    display: block;
    color: #a3a3a3;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.ahc-how-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.ahc-how-icon {
    color: #f97316;
    opacity: 0.8;
}

.ahc-how-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.ahc-how-step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    padding-bottom: 32px;
}

.ahc-how-step:last-child {
    padding-bottom: 0;
}

.ahc-how-step::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: #333;
}

.ahc-how-step:last-child::before {
    display: none;
}

.ahc-how-step-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ahc-how-step-marker.step-1 {
    background: #f97316;
}

.ahc-how-step-marker.step-2 {
    background: #14b8a6;
}

.ahc-how-step-marker.step-3 {
    background: white;
    color: #1a1a1a;
}

.ahc-how-step-content {
    flex: 1;
    padding-top: 8px;
}

.ahc-how-step-content h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.ahc-how-step-content p {
    color: #a3a3a3;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================
   GUIDE
========================= */
.ahc-guide {
    padding: 40px 0;
}

.ahc-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.ahc-guide-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.ahc-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #a855f7;
}

.ahc-guide-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #940935;
}

.ahc-guide-card p {
    color: #525252;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 968px) {
    .ahc-hero-grid,
    .ahc-analysis-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ahc-guide-grid {
        grid-template-columns: 1fr;
    }
    
}

@media (max-width: 640px) {
    .ahc-hero,
    .ahc-quick-analysis,
    .ahc-how,
    .ahc-guide {
        padding: 24px 0;
    }

    .ahc-hero-title {
        font-size: 1.75rem;
    }

    .ahc-hero-desc {
        font-size: 1rem;
    }

    .ahc-hero-visual {
        display: none;
    }

    .ahc-hero-grid {
        gap: 0;
    }

    .ahc-analysis-grid {
        gap: 24px;
    }

    .ahc-analysis-right {
        padding: 20px;
        min-height: auto;
    }

    .ahc-section-title {
        font-size: 1.5rem;
    }

    .ahc-how-card {
        padding: 28px 20px;
    }
    
    .ahc-how-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .ahc-how-icon {
        position: absolute;
        top: 0;
        right: 0;
    }

    .ahc-how-title {
        font-size: 1.5rem;
    }
    
    .ahc-how-step {
        gap: 12px;
        padding-bottom: 24px;
    }
    
    .ahc-how-step-marker {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .ahc-how-step::before {
        left: 16px;
        top: 40px;
    }
    
    .ahc-hero-actions {
        flex-direction: column;
    }
    
    .ahc-btn-primary,
    .ahc-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .ahc-form-title {
        font-size: 1.25rem;
    }

    .ahc-upload-card {
        padding: 30px 20px;
    }

    .ahc-upload-icon {
        font-size: 2.25rem;
    }

    .ahc-upload-title {
        font-size: 1.1rem;
    }

    .ahc-modal {
        max-width: 100%;
        border-radius: 16px;
    }

    .ahc-modal-body {
        padding: 20px;
    }

    .ahc-guide-grid {
        gap: 16px;
    }

    .ahc-guide-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .ahc-container {
        padding: 0 16px;
    }

    .ahc-hero-title {
        font-size: 1.5rem;
    }

    .ahc-hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .ahc-face-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .ahc-face-card-content {
        padding: 16px 12px;
    }

    .ahc-radio-grid.three-col {
        grid-template-columns: 1fr;
    }

    .ahc-radio-card-content {
        min-height: 56px;
        padding: 16px 12px;
    }

    .ahc-manual-section {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .ahc-form-row {
        gap: 24px;
        margin-bottom: 24px;
    }

    .ahc-result-badge {
        font-size: 0.7rem;
    }

    .ahc-result-header h3 {
        font-size: 1.15rem;
    }

    .ahc-modal-img-wrap {
        aspect-ratio: 4/3;
    }

    .ahc-modal-title {
        font-size: 1.1rem;
    }

    .ahc-result-cta a {
        width: 100%;
    }

    .ahc-result-item {
        padding: 14px;
    }

    .ahc-result-cta {
        padding: 20px 16px;
    }

    .ahc-result-cta h4 {
        font-size: 1rem;
    }
}

.ahc-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.ahc-form-label,
.ahc-form-label-text {
    display: block;
    color: #78716c;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.ahc-form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1c1917;
    margin: 0;
}

.ahc-form-badge {
    display: inline-block;
    background: #fee2e2;
    color: #dc2626;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Face Grid */
.ahc-face-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.ahc-face-card {
    position: relative;
    cursor: pointer;
}

.ahc-face-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ahc-face-card-content {
    background: white;
    border: 2px solid #e7e5e4;
    border-radius: 12px;
    padding: 24px 20px;
    transition: all 0.2s ease;
    text-align: center;
}

.ahc-face-card input[type="radio"]:checked + .ahc-face-card-content {
    background: #fef3c7;
    border-color: #f97316;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

.ahc-face-card:hover .ahc-face-card-content {
    border-color: #f97316;
    transform: translateY(-2px);
}

.ahc-face-name {
    font-weight: 700;
    color: #1c1917;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.ahc-face-desc {
    font-size: 0.875rem;
    color: #78716c;
}

/* Radio Grid - 3 Sütun */
.ahc-radio-grid.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Radio Kart */
.ahc-radio-card {
    position: relative;
    cursor: pointer;
}

.ahc-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ahc-radio-card-content {
    background: white;
    border: 2px solid #e7e5e4;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ahc-radio-card:hover .ahc-radio-card-content {
    border-color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.ahc-radio-card input[type="radio"]:checked + .ahc-radio-card-content {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #f97316;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.2);
}

.ahc-radio-title {
    font-weight: 600;
    color: #1c1917;
    font-size: 1rem;
}

.ahc-radio-card input[type="radio"]:checked + .ahc-radio-card-content .ahc-radio-title {
    color: #ea580c;
}

/* Form Row */
.ahc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

/* Ayırıcı Çizgi (only for two-item rows) */
.ahc-form-row > .ahc-form-group:nth-child(1):not(:only-child) {
    border-right: 2px solid #e7e5e4;
    padding-right: 48px;
}

.ahc-form-row > .ahc-form-group:last-child:nth-child(2) {
    padding-left: 48px;
}

/* Responsive */
@media (max-width: 768px) {
    .ahc-form-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .ahc-form-row > .ahc-form-group:nth-child(1):not(:only-child) {
        border-right: none;
        border-bottom: 2px solid #e7e5e4;
        padding-right: 0;
        padding-bottom: 32px;
    }
    
    .ahc-form-row > .ahc-form-group:last-child:nth-child(2) {
        padding-left: 0;
    }
    
    .ahc-radio-grid.three-col {
        grid-template-columns: repeat(3, 1fr);
    }
}
.ahc-select {
    width: 100%;
    padding: 14px 48px 14px 16px;
    border: 2px solid #e7e5e4;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1c1917;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-weight: 500;
}

.ahc-select:hover {
    border-color: #f97316;
    background: #fff7ed;
}

.ahc-select:focus {
    border-color: #f97316;
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    background: #fff7ed;
}

.ahc-select-wrapper::after {
    content: '';
    position: absolute;
    right: 17px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid #a855f7;
    border-bottom: 2.5px solid #a855f7;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
    transition: all 0.25s ease;
    border-radius: 1px;
}

.ahc-select-wrapper:hover::after {
    border-color: #7c3aed;
}

.ahc-select-wrapper:focus-within::after {
    border-color: #7c3aed;
    transform: translateY(-35%) rotate(-135deg);
}

/* Buttons */
.ahc-form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    width: 100%;
}

.ahc-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    font-family: inherit;
    justify-content:center;
}

.ahc-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

/* Responsive */
@media (max-width: 968px) {
    .ahc-face-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ahc-form-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .ahc-form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .ahc-manual-section {
        padding: 32px 24px;
    }
    
    .ahc-form-title {
        font-size: 1.5rem;
    }
    
    .ahc-face-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ahc-btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* =========================
   RECOMMENDATION IMAGE
========================= */
.ahc-result-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
    object-fit: cover;
    max-height: 240px;
    background: #f5f5f5;
}

/* =========================
   CANVAS LANDMARK OVERLAY
========================= */
.ahc-canvas-wrap {
    position: relative;
    display: inline-block;
}

.ahc-canvas-wrap canvas {
    display: block;
    max-width: 100%;
    border-radius: 12px;
}

/* =========================
   RESULT POPUP / MODAL
========================= */
.ahc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 24px;
    animation: ahcFadeIn 0.25s ease;
}

.ahc-modal-overlay.active {
    display: flex;
}

.ahc-modal {
    background: white;
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
    animation: ahcSlideUp 0.3s ease;
    position: relative;
}

.ahc-modal::-webkit-scrollbar {
    display: none;
}

.ahc-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ahc-modal-close:hover {
    background: rgba(0,0,0,0.7);
}

.ahc-modal-img-wrap {
    width: 100%;
    aspect-ratio: 5/4;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #f5f5f5;
}

.ahc-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ahc-modal-body {
    padding: 24px 28px 28px;
}

.ahc-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1c1917;
    margin: 0 0 8px;
}

.ahc-modal-desc {
    font-size: 0.9rem;
    color: #78716c;
    margin: 0 0 16px;
    line-height: 1.5;
}

.ahc-modal-rec {
    display: block;
    margin-bottom: 24px;
}

.ahc-modal-rec-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #444;
}

.ahc-modal-rec-item .rec-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fef3c7;
    color: #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}

.ahc-modal-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(249,115,22,0.3);
}

.ahc-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249,115,22,0.4);
}

@keyframes ahcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ahcSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ahcSlideDown {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================
   PREFERENCE POPUP
========================= */
.ahc-pref-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: ahcFadeIn 0.2s ease;
}

.ahc-pref-box {
    background: white;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: ahcSlideDown 0.25s ease;
    overflow: hidden;
}

.ahc-pref-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ahc-pref-close:hover {
    background: #e5e5e5;
    color: #333;
}

.ahc-pref-header {
    padding: 28px 28px 0;
    text-align: center;
}

.ahc-pref-badge {
    display: inline-block;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.ahc-pref-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1c1917;
    margin: 0 0 6px;
}

.ahc-pref-header p {
    font-size: 0.85rem;
    color: #78716c;
    margin: 0;
}

.ahc-pref-body {
    padding: 20px 28px;
}

.ahc-pref-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #78716c;
    margin-bottom: 8px;
    margin-top: 16px;
}

.ahc-pref-label:first-child {
    margin-top: 0;
}

.ahc-pref-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ahc-pref-opt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 2px solid #e7e5e4;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 80px;
    justify-content: center;
}

.ahc-pref-opt:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.ahc-pref-opt input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ahc-pref-opt--active {
    border-color: #a855f7;
    background: #f5f3ff;
    box-shadow: 0 0 0 1px #a855f7;
}

.ahc-pref-logo {
    width: 100%;
    padding: 28px 28px 0;
    text-align: center;
}

.ahc-pref-logo img {
    max-width: 100px;
    height: auto;
    opacity: 0.7;
}

.ahc-pref-submit {
    width: calc(100% - 56px);
    justify-content: center;
    display: inline-flex;
}

.ahc-pref-opt:has(input:checked) {
    border-color: #a855f7;
    background: #f5f3ff;
    box-shadow: 0 0 0 1px #a855f7;
}

.ahc-pref-opt span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1c1917;
    white-space: nowrap;
}

.ahc-pref-box .ahc-btn-primary {
    margin: 0 28px 28px;
    width: calc(100% - 56px);
    justify-content: center;
    display: inline-flex;
}

@media (max-width: 480px) {
    .ahc-pref-box {
        max-width: 100%;
        border-radius: 16px;
    }
    .ahc-pref-header {
        padding: 24px 20px 0;
    }
    .ahc-pref-body {
        padding: 16px 20px;
    }
    .ahc-pref-box .ahc-btn-primary {
        margin: 0 20px 24px;
        width: calc(100% - 40px);
    }
    .ahc-pref-opt {
        padding: 8px 12px;
        min-width: 60px;
    }
}

/* =========================
   RECOMMENDATION CARDS
========================= */
.ahc-rec-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 16px 0;
}

.ahc-rec-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ahc-rec-card:hover {
    border-color: #a855f7;
    box-shadow: 0 4px 16px rgba(168,85,247,0.12);
    transform: translateY(-2px);
}

.ahc-rec-card-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.ahc-rec-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ahc-rec-card:hover .ahc-rec-card-img {
    transform: scale(1.05);
}

.ahc-rec-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ahc-rec-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1c1917;
    margin-bottom: 4px;
    line-height: 1.3;
}

.ahc-rec-card-desc {
    font-size: 0.82rem;
    color: #78716c;
    line-height: 1.5;
    margin: 0;
}

.ahc-rec-card-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 100px;
    background: #fef3c7;
    color: #d97706;
    margin-bottom: 8px;
    align-self: flex-start;
}

/* Celebrity card variant */
.ahc-rec-card--celeb {
    background: linear-gradient(135deg, #faf5ff 0%, #fff 100%);
    border-color: #e9d5ff;
}

.ahc-rec-card--celeb .ahc-rec-card-img-wrap {
    aspect-ratio: 4 / 3;
}

.ahc-rec-card--celeb .ahc-rec-card-img {
    object-fit: contain;
    background: #faf5ff;
}

.ahc-rec-card--celeb .ahc-rec-card-title {
    color: #a855f7;
}

.ahc-rec-card--celeb .ahc-rec-card-badge {
    background: #ede9fe;
    color: #7c3aed;
}

/* Last card centered when odd number of cards */
.ahc-rec-card:last-child:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
}

/* Responsive: single column on mobile */
@media (max-width: 600px) {
    .ahc-rec-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ahc-rec-card:last-child:nth-child(3) {
        max-width: 100%;
    }
}

/* =========================
   PREFERENCE POPUP IMPROVED
========================= */
.ahc-pref-gender-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ahc-pref-gender-opt {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    border-radius: 14px;
    border: 2px solid #e7e5e4;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    text-align: center;
}

.ahc-pref-gender-opt:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
    transform: translateY(-2px);
}

.ahc-pref-gender-opt input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ahc-pref-gender-opt:has(input:checked) {
    border-color: #a855f7;
    background: #f5f3ff;
    box-shadow: 0 0 0 2px #a855f7;
}

.ahc-pref-gender-icon {
    font-size: 2rem;
    line-height: 1;
}

.ahc-pref-gender-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1c1917;
}

.ahc-pref-gender-opt:has(input:checked) .ahc-pref-gender-label {
    color: #a855f7;
}

.ahc-pref-style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ahc-pref-style-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 12px;
    border: 2px solid #e7e5e4;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    text-align: center;
}

.ahc-pref-style-opt:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.ahc-pref-style-opt input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ahc-pref-style-opt:has(input:checked) {
    border-color: #a855f7;
    background: #f5f3ff;
    box-shadow: 0 0 0 2px #a855f7;
}

.ahc-pref-style-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.ahc-pref-style-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #57534e;
}

/* =========================
   RESPONSIVE CARDS
========================= */
@media (max-width: 640px) {
    .ahc-rec-card-title {
        font-size: 0.9rem;
    }
    .ahc-rec-card-desc {
        font-size: 0.8rem;
    }
}

.ahc-form-row--centered {
    justify-content: center;
}

.ahc-form-group--narrow {
    max-width: 320px;
    width: 100%;
}

.ahc-select--styled {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    padding: 14px 48px 14px 18px;
    border: 2px solid #e7e5e4;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #1c1917;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    letter-spacing: 0.01em;
}

.ahc-select--styled:hover {
    border-color: #a855f7;
    background-color: #faf5ff;
    box-shadow: 0 2px 8px rgba(168,85,247,0.08);
}

.ahc-select--styled:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168,85,247,0.18), 0 2px 12px rgba(168,85,247,0.1);
}

/* Gender + Hair length same row */
.ahc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ahc-form-row--centered {
    display: flex;
    justify-content: center;
    gap: 0;
}

@media (max-width: 600px) {
    .ahc-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Modal face shape label */
.ahc-modal-img-wrap {
    position: relative;
}

.ahc-modal-img-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
    letter-spacing: 0.02em;
}

/* Loading overlay */
.ahc-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    transition: opacity 0.25s ease;
}

.ahc-loading-overlay.ahc-hidden {
    display: none;
}

.ahc-loading-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px 48px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 90vw;
}

.ahc-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: ahc-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes ahc-spin {
    to { transform: rotate(360deg); }
}

.ahc-loading-text {
    font-size: 1rem;
    font-weight: 600;
    color: #1c1917;
}

@media (max-width: 640px) {
    .ahc-select--styled {
        font-size: 1.05rem;
        padding: 15px 48px 15px 16px;
    }

    .ahc-form-group--narrow {
        max-width: 100%;
    }

    .ahc-form-label-text {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .ahc-rec-card {
        padding: 0;
    }

    .ahc-rec-card-body {
        padding: 12px 14px 14px;
    }
}

@media (max-width: 480px) {
    .ahc-form-group--narrow {
        max-width: 100%;
    }
}

/* Guide accordion button */
.ahc-guide-btn {
    display: block;
    margin: 16px auto 0;
    padding: 10px 20px;
    border: 2px solid #e7e5e4;
    border-radius: 10px;
    background: #fff;
    color: #a855f7;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    text-align: center;
}

.ahc-guide-btn:hover {
    border-color: #a855f7;
    background: #faf5ff;
}

.ahc-guide-btn--active {
    background: #a855f7;
    color: #fff;
    border-color: #a855f7;
}

.ahc-guide-btn--active:hover {
    background: #7c3aed;
    border-color: #7c3aed;
}

/* Accordion container */
.ahc-guide-models {
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.ahc-guide-models--open {
    display: block;
    max-height: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #f0f0f0;
}

.ahc-guide-divider {
    height: 1px;
    background: #e7e5e4;
    margin: 16px 0;
}

.ahc-guide-gender-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #78716c;
    margin-bottom: 12px;
}

.ahc-guide-model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ahc-guide-model-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ahc-guide-model-item:hover {
    transform: scale(1.05);
}

.ahc-guide-model-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    background: #f5f5f5;
    display: block;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.ahc-guide-model-item:hover .ahc-guide-model-img {
    border-color: #a855f7;
}

.ahc-guide-model-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1c1917;
    margin-top: 6px;
    line-height: 1.2;
}

/* Lightbox */
.ahc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(6px);
    padding: 24px;
}

.ahc-lightbox--open {
    opacity: 1;
    pointer-events: auto;
}

.ahc-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 95%;
    max-height: 90vh;
}

.ahc-lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.ahc-lightbox-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #fff;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(168,85,247,0.3);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.ahc-lightbox-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168,85,247,0.4);
}

.ahc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}

.ahc-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 640px) {
    .ahc-guide-model-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ahc-guide-model-name {
        font-size: 0.7rem;
    }
    .ahc-lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .ahc-lightbox-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .ahc-guide-model-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
