html,
body {
    overflow-x: hidden;
}
body {
    font-family: 'MaruBuriBold';
    background-color: #ffffff;
    box-sizing: border-box;
    color: #35465d;
    overflow-x: hidden;
}


.iframebox {
    position: relative;
    width: 100%;
    padding: 0%;
    min-height: 0px;
    max-height: 200px;
}
.file-upload {
    padding: 1% 1%;
    margin: 0 auto;
    margin-bottom: 10px;
    border-radius: 10px;
    border: solid 1.5px #f6f7fa;
    background-color: #f6f7fa;
}
.file-upload-btn {
    width: 100%;
    margin: 0;
    color: #fff;
    background: #1fb264;
    border: none;
    padding: 10px;
    border-radius: 4px;
    border-bottom: 4px solid #15824b;
    transition: all 0.2s ease;
    outline: none;
    text-transform: uppercase;
    font-weight: 700;
}
.result-section {
    max-width: 1100px;
}

.file-upload-btn:hover {
    background: #1aa059;
    color: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-upload-btn:active {
    border: 0;
    transition: all 0.2s ease;
}

.file-upload-content {
    display: none;
    text-align: center;
    align-items: center;
}
#loading {
    display: none;
}

.progress-bar {
    background-color: #09B864;
    border-radius: 4px;
    box-shadow: inset 0 0.5em 0.5em rgba(0,0,0,0.05);
    height: 5px;
    margin: 2rem 0 2rem 0;
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
    width: 100%;
}

.progress-bar__bar {
    background-color: #ececec;
    box-shadow: inset 0 0.5em 0.5em rgba(94, 49, 49, 0.05);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.progress-bar__bar.active {
    transition: all 5000ms ease-out;
    transform: translateX(100%);
    -webkit-transform: translateX(100%)
}

.file-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0 0;
    padding: 0;
    outline: none;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.image-upload-wrap {
    width: 80%;
    margin: 0 0;
    display: flex;
    align-items: center;
    position: relative;
    object-fit: contain;
    border-radius: 10px;
    border: dashed 1.5px #35465d;
    background-color: #ffffff;
}

.image-dropping,
.image-upload-wrap:hover {
    background-color: #35465d82;
    border: 1.5px dashed #ffffff;
}

.image-title-wrap {
    padding: 0 15px 15px 15px;
    color: #222;
}

.drag-text {
    text-align: center;
	display: inline-block;
	width: 100%;
}

.drag-text h2 h3 {
    font-weight: 500;
    text-transform: uppercase;
}

#modalMessage {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
}

.result-title{
    line-height: 1.6;
    /* padding: 5px; */
    text-align: center;
    color: #ffffff;
}

.celeb-explain {
    font-size: 1.5rem;
}
.text-center {
    font-size: 1.5rem;
}
.file-upload-image {
    /* max-height: 10%; */
    position: absolute;
    /* max-height: 180px; */
    top: 0;
    left: 0;
    transform: translate(50, 50);
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: auto;
    padding: 10px;
    /* max-height: 100%;
		max-width: 100%;
		-ms-interpolation-mode: bicubic; */
}
.wrapper {
    /* display: block; 
		overflow: hidden;  */
    height: 260px;
    width: 260px;
    position: relative;
    margin: auto;
}
.try-again-btn {
    border-radius: 40px;
    border: 0px;
	margin-top: 2%;
    padding: 4px 16px;
    background-color: #fd8114;
}

div.gsc-result-info {
    font-size: 0;
    padding: 0;
}
div.gsc-above-wrapper-area {
    padding: 0;
}
.my-share-btn {
    border-radius: 40px;
    border: 1px;
	margin-top: 2%;
    padding: 4px 16px;
    background-color: #fd8114;
}

.search-btn {
    border-radius: 20px;
    border: solid 1.5px #35465d;
	margin: 5px;
    margin-top: 20px;
    background-color: #35465d;
    
}

.donation-btn {
    border-radius: 40px;
    border: solid 1.5px #f6cd4c;
    background-color: #f6cd4c;
}

.try-again-text {
    display: block;
    font-size: 1.5rem;
    text-align: center;
    color: #ffffff;
    /* padding: 4px 15px; */
}

.search-text {
    display: block;
    font-size: 1.3rem;
    text-align: center;
    color: #ffffff;
    /* padding: 4px 15px; */
}

.donation-text {
    display: block;
    font-size: 1.4rem;
    text-align: center;
    color: #ffffff;
    padding: 4px 15px;
}

.remove-image:hover {
    background: #c13b2a;
    color: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.remove-image:active {
    border: 0;
    transition: all 0.2s ease;
}

.navbar-light .navbar-brand {
    line-height: 1.68;
    text-align: left;
    color: #35465d;
}

.navbar-light .navbar-toggler {
    border-color: #ffffff;
}

.section {
    margin-top: 50px;
}

.title {
    line-height: 1.67;
    font-size: 2.0rem;
    text-align: center;
    color: #35465d;
}

.subtitle {
    line-height: 1.53;
    text-align: center;
    color: #35465d;
}

.normaltext {
    line-height: 1.53;
    font-size: 1.3rem;
    text-align: center;
    color: #35465d;
}
.language {
    font-size: 1.8rem;
    padding: 0 20px;
}

.custom-select{
    font-size: 1.5rem;
    max-width: 50vw;
}

/* On screens that are 600px or less, set the background color to olive */
@media screen and (max-width: 600px) {
    html {
        font-size: 10px;
    }
    .navbar-brand {
        font-size: 2rem;
    }
    .navbar-nav {
        font-size: 1.5rem;
    }
}

.youtube-link {
    font-size: 1.5rem;
    line-height: 1.71;
    text-align: center;
    color: #573737;
    text-decoration: underline;
}

.youtube-link:hover {
    font-size: 1.5rem;
    line-height: 1.71;
    text-align: center;
    color: #573737;
    text-decoration: underline;
}


.youtube-icon {
    width: 30px;
    height: 27.262px;
}

.upload {
    width: 80%;
    max-width: 30vw;
	max-height: 30vw;
	align-items: center;
    justify-content: center;
    object-fit: contain;
    overflow: hidden; 
    margin-top: 1rem !important;
    /* filter: invert(48%) sepia(0%) saturate(2841%) hue-rotate(251deg) brightness(67%) contrast(80%); */
}

.upload-text {
    width: 80%;
    /* font-size: 1.2rem; */
	font-size: 1.8rem;
    line-height: 1.53;
    text-align: center;
    color: #35465d;
    margin: 3% auto;
}

.upload-text-bottom {
    font-size: 1.3rem;
    margin-bottom: 3%;
    line-height: 1.35;
}

.footer {
    background-color: initial;
    color: initial;
}

.bar-container {
    height: 2.7rem;
}

.percent-text {
    font-size: 1rem;
    color: #ffffff;
}
.celeb-label {
    width: 20%;
    text-align: left;
    height: 2rem;
}
#label-container {
    width: 80%;
    margin: 0 auto;
}
.result-message {
    font-size: 1.8rem;
}
.loading-message {
    font-size: 1.4rem;
}
.loading-sub {
    font-size: 1.3rem;
    padding-top: 3%;
}

label {
    cursor: pointer;
    display: inline-block;
    width: 90px;
    height: 41px;
    box-shadow: 0 0 0 8px #e5e9ea inset;
    border-radius: 30px;
    position: relative;
}

.knob {
    position: absolute;
    width: 41px;
    top: 0;
    left: 0;
    height: 41px;
    border-radius: 50%;
    box-shadow: 0 0 0 8px #f470a7 inset;
    background-color: #fbd4e6;
    transition: 0.3s;
}

.knob > i {
    position: absolute;
    width: 4px;
    height: 18px;
    top: 100%;
    background-color: #f470a7;
    left: calc(50% - 2px);
}

.knob > i:before,
.knob > i:after {
    width: 6px;
    position: absolute;
    top: 42%;
    content: '';
    height: 4px;
    background-color: #f470a7;
}

.knob > i:before {
    left: 4px;
}
.knob > i:after {
    left: -6px;
}

input:checked + label > .knob {
    box-shadow: 0 0 0 8px #a1c6dd inset;
    background-color: #e2ecf4;
    transform: translateX(49px) rotate(-140deg);
}

input:checked + label > .knob > i {
    background-color: #a1c6dd;
}

input:checked + label > .knob > i:after,
input:checked + label > .knob > i:before {
    background-color: #a1c6dd;
}

input:checked + label > .knob > i:after {
    top: 14.5px;
    width: 12px;
    left: -7px;
    transform: rotate(45deg);
}
input:checked + label > .knob > i:before {
    top: 13px;
    width: 12px;
    left: 0px;
    transform: rotate(134deg);
}

.ad-banner {
    max-width: 320px;
}

.face-box {
    border: 1px solid #ff0000;
    position: absolute;
}


.my-button {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    /* margin-top: 20px; */
    margin: 20px;
    font-size: 1em;
    margin-bottom: 0;
}


/* toggle button */
/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 34px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hotpink;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(45px);
    -ms-transform: translateX(45px);
    transform: translateX(45px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

.app-download-icon {
    width: 200px
}

.text-app-center {
    font-size: 1.4rem;
    text-align: center; /* !important; */
}

/* 이미지 나란히 배치용 CSS */
.grid-image {
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    margin:30px 0;
}
.grid-image img {
    width:calc(33.333% - 10px);
    margin:0 15px 15px 0;
}
.grid-image img:nth-of-type(3n),
.grid-image img:last-child {
    margin-right:0;
}
@media screen and (max-width:640px){
  .grid-image img {
    width:calc(30% - 15px);
  }
}
@media screen and (max-width:480px){
  .grid-image img:nth-of-type(2n) {
    margin-right:0;
  }
  .grid-image img:nth-of-type(3n) {
    margin-right:15px;
  }
}

.json-container {
    border: 1px solid #e0e4ea;
    border-radius: 16px;
    padding: 20px;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    background: #f8f9fb;
    background-color: #f9f9f9;
    margin: 20px;
    font-size: 1.3rem;
  }
.json-key {
    color: #007bff;
}
.json-string {
    color: #28a745;
}
.celeb-badge {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #d0d7e2;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 1.3rem;
    color: #35465d;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(53,70,93,0.07);
    transition: background 0.15s, color 0.15s;
}
.celeb-badge:hover {
    background: #35465d;
    color: #fff;
    border-color: #35465d;
}
.celeb-badge.selected {
    background: #35885d;
    color: #fff;
    border-color: #35885d;
    font-weight: 700;
}
#celeb-cse-result {
    border-top: 1.5px solid #e0e4ea;
    padding-top: 16px;
    margin-top: 16px;
}

div#disqus_thread iframe[sandbox] {
max-height: 0px !important;
}

@keyframes borderAnimation {
    0% {
        border-color: #4a90e2;
    }
    50% {
        border-color: #f06;
    }
    100% {
        border-color: #4a90e2;
    }
}

.styled-canvas {
    border: 5px solid #4a90e2;
    border-radius: 10px;
    animation: borderAnimation 2s infinite;
    margin: 10px;
}

.gs-image {
  object-fit: cover;
  width: 100%;
}

.giffont {
    font-size: 1.8em;
}

.gifloading {
    width: 5rem;
    height: 5rem;
    margin: 50px;
}

.file-upload-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2px;
    margin-top: 20px;
    flex-wrap: nowrap; 
    width: 100%;
}

.file-upload-area {
    width: 45%;
    
    /* max-width: 300px; */
    /* min-width: 200px; */
    align-items: center;
    /* flex: 1; */
}
/* @media (max-width: 300px) {
    .file-upload-container {
        align-items: center;
    }

    .file-upload-area {
        width: 100%;
        max-width: 30vw;
        max-height: 30vw;
    }
} */
.preview-image {
    display: none;
    max-width: 100%;
    max-height: 100%;  /* 이미지 최대 높이 설정 */
    object-fit: contain;
    
    position: absolute;  /* 추가 */
    top: 0;  /* 추가 */
    left: 0;  /* 추가 */
    width: 100%;  /* 추가 */
    height: 100%;  /* 추가 */
}

.couple-image-upload-wrap {
    border: 2px dashed #1FB264;
    position: relative;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    object-fit: contain;
    /* margin: 20px; */
    overflow: hidden; 
    /* width: 40vw;  /* 추가 */
    height: 40vw;  /* 높이 설정, 필요에 따라 조정 가능 */
    aspect-ratio: 1;
    max-width: 400px;
    max-height: 400px;
}
.couple-image-upload-wrap:hover {
    background-color: #a8a8a8;
}

.preview-image {
    display: none;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    position: absolute;
    padding: 0;
    margin: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.start-button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 4px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1.6rem;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 40px;
}

.start-button:hover {
    background-color: #45a049;
}

.result-text {
    font-size: 1.4rem;
}

.image-comparison {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.image-comparison img {
    width: 80%;
    max-width: 300px;
    height: 80%;
    max-height: 300px;
}

/* Personal Color Container */
.personal-color-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Color Grid Container */
.color-grid-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    border-radius: 5%;
    padding: 20px;
    
}

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

/* .cropped-face-container {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    width: 100px;
    height: 100px;
    margin: 0 auto;
} */



.cropped-face-spring::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: conic-gradient(
        #FF6B6B 0% 20% /* 코랄핑크 */,
        #FFCBA4 20% 40% /* 피치 */,
        #FF6347 40% 60% /* 오렌지레드 */,
        #DAA520 60% 80% /* 골드브라운 */,
        #B87333 80% 100% /* 코퍼 */
      );
    padding: 10px;
    animation: spin 5s linear infinite;
    border-radius: 50%;
    z-index: -1;
}


.cropped-face-summer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: conic-gradient(
        #FFC0CB 0deg 72deg,     /* 로즈핑크 */
        #E6E6FA 72deg 144deg,   /* 라벤더 */
        #FFB6C1 144deg 216deg,  /* 베리핑크 */
        #C0C0C0 216deg 288deg,  /* 실버 */
        #B76E79 288deg 360deg   /* 로즈골드 */
    );
    padding: 10px;
    animation: spin 5s linear infinite;
    border-radius: 50%;
    z-index: -1;
}

.cropped-face-autumn::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: conic-gradient(
        #DC143C 0deg 72deg,     /* 브릭레드 */
        #800020 72deg 144deg,   /* 버건디 */
        #8B4513 144deg 216deg,  /* 브라운 */
        #FFD700 216deg 288deg,  /* 골드 */
        #CD7F32 288deg 360deg   /* 브론즈 */
      );
    padding: 10px;
    animation: spin 5s linear infinite;
    border-radius: 50%;
    z-index: -1;
}

.cropped-face-winter::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: conic-gradient(
        #FF0000 0deg 60deg,     /* 레드 */
        #8B008B 60deg 120deg,   /* 베리 */
        #DDA0DD 120deg 180deg,  /* 플럼 */
        #C0C0C0 180deg 240deg,  /* 실버 */
        #000000 240deg 300deg,  /* 블랙 */
        #000080 300deg 360deg   /* 네이비 */
    );
    padding: 10px;
    animation: spin 5s linear infinite;
    border-radius: 50%;
    z-index: -1;
}

.cropped-face-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
    overflow: hidden;
    padding: 20px;
}


@keyframes rotateColors {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Color Grid */
.color-grid {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 5%;
    background: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    overflow: hidden;
}

/* Color Quadrants */
.color-quadrant {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.color-quadrant:hover {
    transform: scale(1.05);
    z-index: 10;
}

#spring-quadrant {
    background: linear-gradient(135deg, #FFE4E1, #FFB6C1);
}

#summer-quadrant {
    background: linear-gradient(135deg, #E6F3FF, #B8E6B8);
}

#autumn-quadrant {
    background: linear-gradient(135deg, #DEB887, #CD853F);
}

#winter-quadrant {
    background: linear-gradient(135deg, #F0F8FF, #E6E6FA);
}

/* Season Labels */
.season-label {
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Face Display */
.face-display {
    width: 3rem;
    height: 3rem;
    border-radius: 5%;
    /* overflow: hidden; */
    /* border: 3px solid rgba(255, 255, 255, 0.8); */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.face-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: white;
}

/* Best Badge */
.best-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.7); }
    50% { transform: scale(1.0); }
    100% { transform: scale(0.7); }
}

/* Style Cards Container */
.style-cards-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Style Cards */
.style-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

.style-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4);
}

.fashion-card::before {
    background: linear-gradient(90deg, #FF6B6B, #FF8E8E, #FFA8A8);
}

.beauty-card::before {
    background: linear-gradient(90deg, #E91E63, #F06292, #F8BBD9);
}

/* Card Icon */
.card-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Card Header */
.style-card .card-header {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.style-card .card-header h3 {
    color: #333;
    /* font-size: 1.5rem; */
    font-weight: 600;
    text-align: center;
    margin: 0;
}

/* Card Content */
.card-content {
    text-align: left;
    font-size: 1.4rem;
}

.card-content h4 {
    color: #555;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content h4::before {
    content: '✨';
    font-size: 1rem;
}

/* Style Badges */
.style-card .badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.4rem;
    margin: 0.2rem;
    display: inline-block;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.style-card .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.fashion-card .badge {
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
}

.beauty-card .badge {
    background: linear-gradient(45deg, #E91E63, #F06292);
}

/* Lists */
.style-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.style-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 1.5rem;
}

.style-card li::before {
    content: '•';
    color: #667eea;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.fashion-card li::before {
    color: #FF6B6B;
}

.beauty-card li::before {
    color: #E91E63;
}

.style-card li:last-child {
    border-bottom: none;
}

/* Color Display */
.color-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media screen {
    .color-grid-container {
        width: 100%;
        height: 100%;
    }
    
    .face-display {
        width: 110px;
        height: 110px;
    }
    
    .season-label {
        font-size: 1.6rem;
    }
    
    .style-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
}

/* ======= SEO & Modern Sections ======= */

/* Hero badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 16px auto 24px;
    padding: 0 16px;
}

.hero-badge {
    background: linear-gradient(135deg, #35465d, #4a6080);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(53,70,93,0.2);
}

/* Section shared */
.section-heading {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    color: #35465d;
    margin-bottom: 8px;
    margin-top: 0;
    line-height: 1.4;
}

.section-subheading {
    font-size: 1.4rem;
    text-align: center;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* How-to guide */
.how-to-section {
    padding: 48px 24px;
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
    border-radius: 24px;
    margin: 48px auto;
    max-width: 1100px;
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    min-width: 200px;
    max-width: 270px;
    background: white;
    border-radius: 20px;
    padding: 36px 20px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-top: 20px;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

.step-icon {
    font-size: 3rem;
    margin: 8px 0 12px;
}

.step-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #35465d;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.6;
}

.step-arrow {
    display: flex;
    align-items: center;
    font-size: 2.4rem;
    color: #c5ccd8;
    padding: 0 4px;
    margin-top: 36px;
}

@media (max-width: 640px) {
    .step-arrow {
        display: none;
    }
    .step-card {
        min-width: 85%;
        max-width: 100%;
    }
}

/* Features grid */
.features-section {
    padding: 48px 24px;
    margin: 0 auto 20px;
    max-width: 1100px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.feature-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f6f7fa;
    border-radius: 12px;
    margin-bottom: 20px;
    display: block;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 0 0 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    border: 1px solid #f0f2f5;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    z-index: 1;
}

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

.feature-card > .feature-icon,
.feature-card > .feature-title,
.feature-card > .feature-desc {
    padding-left: 24px;
    padding-right: 24px;
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
}

.feature-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #35465d;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.65;
    margin: 0;
}

/* Related services */
.related-section {
    padding: 48px 24px;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    border-radius: 24px;
    margin: 20px auto;
    max-width: 1100px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.related-card {
    background: white;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    text-decoration: none !important;
    color: #35465d;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: block;
}

.related-card:hover {
    border-color: #35465d;
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    text-decoration: none !important;
    color: #35465d;
}

.related-icon {
    font-size: 3.2rem;
    margin-bottom: 12px;
    display: block;
}

.related-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #35465d;
}

.related-card p {
    font-size: 1.3rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* FAQ section */
.faq-section {
    padding: 48px 24px;
    margin: 20px auto 40px;
    max-width: 1100px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 24px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #35465d;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: 'MaruBuriBold', sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-question:hover {
    background-color: #f5f7fa;
}

.faq-question.active {
    background-color: #35465d;
    color: white;
}

.faq-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.faq-question.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 16px 24px 20px;
    font-size: 1.4rem;
    color: #555;
    line-height: 1.75;
    border-top: 1px solid #f0f2f5;
    background: #fafbfc;
}

.faq-answer.open {
    display: block;
}

/* ======= Upload Zone 개선 ======= */
.image-upload-wrap {
    border: 2px dashed #667eea !important;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    animation: upload-pulse 2.5s ease-in-out infinite;
}
.image-upload-wrap:hover,
.image-dropping {
    border-color: #764ba2 !important;
    background: rgba(102,126,234,0.05) !important;
    box-shadow: 0 0 0 6px rgba(102,126,234,0.1);
    animation: none;
}
@keyframes upload-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102,126,234,0); }
    50%       { box-shadow: 0 0 0 8px rgba(102,126,234,0.12); }
}

/* ======= 분석 단계 표시기 ======= */
.analysis-steps-bar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0 auto 16px;
    max-width: 520px;
    padding: 0 8px;
}
.astep {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.3;
    transition: opacity 0.4s ease;
    min-width: 52px;
}
.astep.active { opacity: 1; }
.astep.done   { opacity: 0.65; }

.astep-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.astep.active .astep-dot {
    background: #35465d;
    animation: astep-pulse 1.4s ease-in-out infinite;
}
.astep.done .astep-dot {
    background: #35885d;
}
@keyframes astep-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(53,70,93,0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(53,70,93,0.1); }
}
.astep-label {
    font-size: 1.05rem;
    color: #35465d;
    white-space: nowrap;
    font-weight: 600;
}
.astep-line {
    flex: 1;
    height: 2px;
    background: #e0e4ea;
    min-width: 16px;
    margin-bottom: 26px;
    transition: background 0.4s ease;
    align-self: center;
}
.astep-line.done { background: #35885d; }

/* ======= 링 스피너 ======= */
.analysis-ring-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #f0f2f5;
    border-top-color: #667eea;
    border-radius: 50%;
    margin: 8px auto 4px;
    animation: ring-spin 0.8s linear infinite;
}
@keyframes ring-spin {
    to { transform: rotate(360deg); }
}

/* ======= 결과 페이드인 ======= */
@keyframes resultFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.result-fade-in {
    animation: resultFadeUp 0.55s ease both;
}

/* ======= 결과 섹션 헤더 ======= */
.result-section-header {
    padding: 20px 16px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 16px;
}
.result-section-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 6px;
}
.result-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #35465d;
    margin: 0 0 4px;
}
.result-section-sub {
    font-size: 1.3rem;
    color: #888;
    margin: 0;
}

@media screen and (max-width: 480px) {
    .analysis-steps-bar { gap: 0; }
    .astep-dot { width: 34px; height: 34px; font-size: 1.3rem; }
    .astep-label { font-size: 0.9rem; }
    .astep-line { min-width: 8px; }
    .astep { min-width: 40px; }
}