/* 移除舊的CSS圖形樣式，因為現在使用SVG實現 */
.sphere-container {
    /* border: 1px solid green; */

    width: 100%;
    /* height: 600px; */
    /* padding: 0 0 0 0; */
    min-height: 1200px;
    position: relative;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    padding: 100px 0 100px 0;
    /* border: 1px solid purple; */

    overflow-x: hidden;
}

/* 禁止捲動的類別 */
.no-scroll {
    overflow: hidden;
}

.sphere_text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* padding: 0 0 100px 0; */
    /* border: 1px solid purple; */
}

    .sphere_text p {
        margin: 0;
    }

.sphere_text_title {
    font-size: 26px;
    font-weight: bold;
    color: #000000;
    max-width: 80%;
}

.sphere_text_subtitle {
    font-size: 26px;
    /* font-weight: bold; */
    color: #000000;
    font-style: italic;
}

.sphere_text_description {
    font-size: 14px;
    color: #000000;
    font-weight: 700;
    font-style: italic;
}

@media (min-width: 577px) and (max-width: 991px) {
    .sphere-container {
        min-height: 1000px;
    }
}

@media (max-width: 576px) {
    .sphere-container {
        min-height: 900px;
        /* height: auto; */
    }
}

/* 容器設置 */
.ellipse-container {
    position: relative;
    /* width: 80vw; */
    width: 100%;
    max-width: 1300px; /* 設置最大寬度 */
    height: 60vh; /* 使用視窗高度的百分比 */
    margin: 50px auto;
}

/* 垂直橢圓樣式 */
.ellipse {
    width: 100%;
    height: 100%;
    border: 1px solid black;
    border-radius: 50%;
    position: absolute;
    opacity: 0.3;
}

/* 水平橢圓樣式 */
.horizontal-ellipse {
    width: 80vw; /* 使用視窗寬度的百分比 */
    max-width: 1300px;
    height: 30vh; /* 使用視窗高度的百分比 */
    border: 1px solid black;
    border-radius: 50%;
    position: absolute;
    opacity: 0.3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 扁平水平橢圓樣式 */
.flat-horizontal-ellipse {
    width: 80vw; /* 使用視窗寬度的百分比 */
    max-width: 1300px;
    height: 10vh; /* 使用視窗高度的百分比 */
    border: 1px solid #000000;
    border-radius: 50%;
    position: absolute;
    opacity: 0.3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 大型水平橢圓樣式 */
.large-horizontal-ellipse {
    width: 95vw; /* 使用較大的視窗寬度百分比 */
    max-width: 2000px;
    height: 80vh; /* 使用視窗高度的百分比 */
    border: 1px solid #000000;
    border-radius: 50%;
    position: absolute;
    opacity: 0.2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 圓形樣式 */
.circle {
    position: absolute;
    /* width: 50vh;  */
    /* height: 50vh;  */
    /* max-width: 500px; */
    /* max-height: 500px; */
    border: 1px solid #000000;
    border-radius: 50%;
    opacity: 0.3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 移動點樣式 */
.dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 0; /* 移除圓角，變成正方形 */
    transform: translate(-50%, -50%) rotate(45deg); /* 添加45度旋轉使正方形角對準軌道 */
    box-shadow: 0 0 10px #000000;
    cursor: pointer; /* 添加指針游標 */
}

/* 標籤樣式 */
.sphere_label {
    position: absolute;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* 資訊彈出框樣式 */
.info-popup {
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: 20px;
    width: 1200px;
    max-width: 90vw;
    z-index: 100;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 40px;
}

/* Close button for info-popup */
.info-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    transition: all 0.3s ease;
}

    .info-popup-close:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

    .info-popup-close::before,
    .info-popup-close::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background-color: #000;
        transition: all 0.3s ease;
    }

    .info-popup-close::before {
        transform: rotate(45deg);
    }

    .info-popup-close::after {
        transform: rotate(-45deg);
    }

    .info-popup-close:hover::before,
    .info-popup-close:hover::after {
        background-color: #000;
        width: 22px;
    }

.info-popup-mobile {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: 20px;
    width: 1200px;
    max-width: 90vw;
    z-index: 100;
    opacity: 0;
    flex-direction: column;
    display: flex;
    text-align: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 40px;
    background-color: #fff;
    min-height: 200px;
    max-height: min(600px, calc(100vh - 200px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.info-popup h2 {
    font-size: 100px;
    font-weight: normal;
    color: #000;
    line-height: 1;
    font-family: "GrotleyRegular";
}

.info-popup-mobile p,
.info-popup p {
    font-family: "HelveticaNeue";
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    max-width: 60%;
}

.info-popup-mobile .use-now-button,
.info-popup .use-now-button {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    margin-top: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .info-popup-mobile .use-now-button:hover,
    .info-popup .use-now-button:hover {
        background: #000;
        color: #fff;
    }

    .info-popup .use-now-button::after {
        content: "↗";
        margin-left: 8px;
    }

.info-popup.visible {
    opacity: 1;
}

.info-popup-mobile.visible {
    opacity: 1;
    z-index: 1000;
}

@media (min-width: 1200px) {
    .info-popup-mobile {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .info-popup-mobile {
        display: none !important;
    }

    .info-popup h2 {
        font-size: 80px;
    }

    .info-popup p {
        font-size: 14px;
    }

    .info-popup .use-now-button {
        margin-top: 10px;
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    .info-popup-mobile {
        display: none !important;
    }

    .info-popup h2 {
        font-size: 50px;
    }

    .info-popup p {
        font-size: 12px;
    }

    .info-popup .use-now-button {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .info-popup {
        /* border: 1px solid red; */
        /* height: 400px; */
        /*        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: calc(100vh - 180px);  
        max-height: 600px;
        overflow-y: auto;*/
        display: none;
    }

    .info-popup-mobile {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        /*        height: calc(100vh - 400px);
        height: calc(var(--vh, 1vh) * 100 - 400px);*/
        height: auto;
        min-height: 200px;
        max-height: min(600px, calc(100vh - 200px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .upload-popup {
        position: fixed;
        top: 90px;
        left: 50%;
        transform: translate(-50%, 0);
        width: 100%;
        height: calc(100vh - 180px);
        height: calc(var(--vh, 1vh) * 100 - 180px);
        max-height: -webkit-fill-available;
        border-radius: 20px;
        padding: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .info-popup-mobile p {
        font-size: 14px;
    }

    .info-popup h2 {
        font-size: 38px;
        /* margin-bottom: 110px; */
    }

    .info-popup p {
        font-size: 10px;
        display: none;
    }

    .info-popup .use-now-button {
        margin-top: 10px;
        display: none;
    }
}

/* Add Safari-specific support */
@supports (-webkit-touch-callout: none) {
    .info-popup-mobile {
        min-height: 200px;
        height: auto;
        max-height: min(600px, calc(100vh - 200px));
        /* Fallback for older Safari versions */
        max-height: -webkit-fill-available;
    }
    /* Additional Safari viewport height fix */
    @media (max-width: 576px) {
        .info-popup-mobile {
            min-height: 200px;
            height: auto;
            max-height: min(600px, calc(var(--vh, 1vh) * 100 - 200px));
        }
    }
}

/* 圓形軌道上的點樣式 */
.circle-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    /* background: #0000ff; */
    background: #000000;
    border-radius: 50%; /* 保持為圓形 */
    transform: translate(-50%, -50%);
    /* box-shadow: 0 0 10px #0000ff; */
    box-shadow: 0 0 10px #000000;
    cursor: pointer; /* 添加指針游標 */
}

/* 水平橢圓上的點樣式 */
.horizontal-dot {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid #000000;
    background: transparent;
    transform: translate(-50%, -50%);
    box-shadow: none; /* 移除四邊形的box-shadow */
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5)); /* 添加僅針對三角形的陰影 */
    cursor: pointer; /* 添加指針游標 */
}

/* 移動設備按鈕容器 */
.mobile-buttons {
    display: none; /* 預設隱藏 */
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    min-width: 130px;
    width: 30%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 200; /* Add higher z-index to ensure buttons are above popups */
}

    /* 添加一個新的類別來控制顯示/隱藏 */
    .mobile-buttons.force-hide {
        display: none !important;
    }

.mobile-btn {
    background-color: transparent;
    padding: 12px 30px;
    color: #000;
    border: 1px solid #000;
    border-radius: 30px;
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

    .mobile-btn:hover {
        background: #000;
        color: #fff;
    }

/* 在移動設備上顯示按鈕 */
@media (max-width: 991px) {
    .mobile-buttons:not(.force-hide) {
        display: flex;
    }
}

/* 上傳文件 popup 樣式 */
.upload-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 20px;
    padding: 40px;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

    .upload-popup.visible {
        opacity: 1;
    }

.upload-popup-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 20px;
}

.upload-header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* margin-bottom: 40px;*/
}

    .upload-header h2 {
        font-family: "GrotleyRegular";
        font-size: 40px;
        line-height: 1;
        margin: 0;
    }

.close-button {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    transition: all 0.3s ease;
}

    .close-button:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

    .close-button::before,
    .close-button::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background-color: #000;
        transition: all 0.3s ease;
    }

    .close-button::before {
        transform: rotate(45deg);
    }

    .close-button::after {
        transform: rotate(-45deg);
    }

    .close-button:hover::before,
    .close-button:hover::after {
        background-color: #000;
        width: 22px;
    }

.upload-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.auto-check,
.target-language {
    display: flex;
    align-items: center;
    /* gap: 10px; */
    /* padding: 8px 20px; */
    /* border: 1px solid rgba(0, 0, 0, 0.2); */
    /* border: 1px solid red; */
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    color: rgba(0, 0, 0, 1);
}

    .auto-check .language-select,
    .target-language .language-select {
        margin-right: 5px;
    }

@media (max-width: 576px) {
    .upload-popup {
        position: fixed;
        top: 90px;
        left: 50%;
        transform: translate(-50%, 0);
        width: 100%;
        /* height: calc(100% - 90px);*/
        max-height: none;
        border-radius: 20px;
        padding: 20px;
    }

    .upload-popup-content {
        padding-bottom: 20px;
    }

    .upload-options {
        margin-bottom: 10px;
    }
    /*    .language-select {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        overflow-x: auto;
    }

    .language-select {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background-color: #f9f9f9;
    }

        .language-select:hover {
            background-color: #f0f0f0;
        }*/
    .auto-check {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 20px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .language-select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background: transparent;
        border: none;
        font-size: 14px;
        width: 100%;
        cursor: pointer;
        outline: none;
        color: #000;
        padding: 5px 10px;
    }





    .target-language {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 20px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
}

/* Add smooth scrollbar styling */
.upload-popup::-webkit-scrollbar {
    width: 8px;
}

.upload-popup::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.upload-popup::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    .upload-popup::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

.language-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    outline: none;
    color: #000;
}

    .language-select option {
        background: #fff;
        color: #000;
        padding: 10px;
    }

.target-language .arrow,
.auto-check .arrow {
    /* position: absolute; */
    /* right: 20px; */
    /* pointer-events: none; */
    width: 20px;
    height: 20px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .target-language .arrow img,
    .auto-check .arrow img {
        filter: brightness(2) contrast(1.2); /* 使SVG圖標顏色更深 */
        transform: scale(1.1); /* 稍微放大圖標使其看起來更粗 */
        opacity: 1; /* 增加不透明度使顏色更飽和 */
    }

.switch-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 1px solid rgba(0, 0, 0, 0.2); */
    border-radius: 50%;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .switch-icon:hover {
        background: #000;
        color: #fff;
    }

.arrow {
    font-size: 10px;
    opacity: 0.6;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* gap: 20px; */
    margin-bottom: 40px;
    width: 100%;
    border: 1px dashed #000;
    border-radius: 20px;
    padding: 40px;
    position: relative;
}

.upload-area-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /* border: 1px solid blue; */
}

.drop-zone {
    /* width: 300px;*/
    height: auto;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    /* flex: 1; */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 1px solid red; */
}

    .drop-zone.drag-over {
        background-color: rgba(0, 0, 0, 0.05);
    }

.drop-text {
    flex: 1;
}

.drag-text {
    color: #000;
    font-weight: bold;
}

.file-list {
    margin-top: 10px;
    font-size: 14px;
    height: 100%;
    width: 100%;
}

.file-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

    .file-list-item .remove-file {
        cursor: pointer;
        color: #ff0000;
        font-weight: bold;
    }

.folder-icon {
    width: 200px;
    margin-bottom: 0;
}

.or-text {
    height: 100%;
    width: 10%;
    margin: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .or-text img {
        width: 50px;
    }

.upload-button {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid #000;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: auto;
}

    .upload-button:hover {
        background: #000;
        color: #fff;
    }

.upload-button-mobile {
    padding: 12px 30px;
    background: transparent;
    /* border: 1px solid #000; */
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: auto;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vw;
    width: 80vw;
}

    .upload-button-mobile:hover,
    .upload-button-mobile:active {
        border: none;
        outline: none;
        /* background: #ccc; */
        opacity: 0.5;
    }

    .upload-button-mobile img {
        width: 160px;
        height: 160px;
        object-fit: contain;
        margin-bottom: 20px;
    }

    .upload-button-mobile p {
        margin: 0;
        padding: 0;
    }

.translate-button {
    width: 30%;
    min-width: 220px;
    padding: 15px;
    background: #ccc;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: not-allowed;
}





@media (max-width: 768px) {
    .folder-icon {
        display: none;
    }

    .or-text {
        display: none;
    }

    .upload-popup {
        /*padding: 40px 20px;*/
    }

    .upload-header h2 {
        font-size: 28px;
    }

    .upload-options {
        /* flex-direction: column; */
        gap: 10px;
    }

    .drop-zone {
        height: 150px;
    }

    .upload-button {
        display: none;
    }

    .upload-button-mobile {
        display: flex;
    }
}

/* 翻譯進度樣式 */
.translation-progress {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0;
}

.translation-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.progress-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    margin: 0 auto;
}

.file-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

    .file-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.file-name {
    font-size: 16px;
    color: #000;
    /* margin-bottom: 30px; */
    text-align: center;
}

.progress-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 88%;
    height: 100%;
    background: linear-gradient(90deg, #000000 0%, #666666 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-percentage {
    font-size: 14px;
    color: #000;
    min-width: 45px;
}

/* 翻譯中顯示進度區域而隱藏上傳區域和按鈕 */
.translating .upload-area,
.translating .translate-button {
    display: none !important;
}

.translating .translation-progress {
    display: flex !important;
}

.translate-complete-button {
    margin-top: 40px;
    padding: 15px 40px;
    background: #ccc;
    color: #000;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

    .translate-complete-button:not([disabled]) {
        background: #333;
        color: #fff;
        cursor: pointer;
    }

        .translate-complete-button:not([disabled]):hover {
            background: #000;
        }

/* 翻譯完成狀態樣式 */
.translation-complete {
    width: 100%;
    padding: 60px 20px;
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

@media (max-width: 768px) {
    .translation-complete {
        height: 50vh;
    }
}

/* 中間頁面樣式 */
.translation-intermediate {
    width: 100%;
    padding: 60px 40px;
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

.intermediate-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.status-message {
    /* margin: 20px 0; */
}

    .status-message p {
        margin: 0;
        font-size: 18px;
        /* font-weight: bold; */
        line-height: 1.4;
    }

.whatsapp-section {
    margin-top: 20px;
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.phone-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    max-width: 400px;
}

.country-code-dropdown {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 100px;
    background: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

    .country-code-dropdown:focus {
        outline: none;
        border-color: #999;
    }

    .country-code-dropdown::-ms-expand {
        display: none;
    }

.form-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.download-whatsapp-button {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    transition: all 0.3s ease;
    max-width: 300px;
    width: 100%;
}

    .download-whatsapp-button:hover {
        background: #333;
    }

.download-arrow {
    font-size: 20px;
}

.whatsapp-error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 576px) {
    .phone-input {
        flex-direction: column;
        gap: 15px;
    }

    .country-code-dropdown,
    .form-input {
        width: 100%;
    }

    .download-whatsapp-button {
        width: 100%;
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* 股票AI彈出框樣式 */
.stocks-ai-content,
.customer-service-content {
    width: 100%;
    padding: 30px;
}

.stocks-ai-body,
.customer-service-body {
    margin-top: 30px;
    padding: 0;
    width: 100%;
}

.stocks-ai-description h3,
.customer-service-description h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
}

.stocks-ai-description p,
.customer-service-description p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #333;
}

.stocks-ai-cta,
.customer-service-cta {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.stocks-ai-button,
.customer-service-button {
    padding: 12px 30px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .stocks-ai-button:hover,
    .customer-service-button:hover {
        background: #333;
    }

    .stocks-ai-button.secondary,
    .customer-service-button.secondary {
        background: transparent;
        color: #000;
    }

        .stocks-ai-button.secondary:hover,
        .customer-service-button.secondary:hover {
            background: #f5f5f5;
        }

@media (max-width: 768px) {
    .stocks-ai-content,
    .customer-service-content {
        padding: 20px 15px;
    }

    .stocks-ai-body,
    .customer-service-body {
        margin-top: 20px;
        padding: 0;
        width: 100%;
    }

    .stocks-ai-description h3,
    .customer-service-description h3 {
        font-size: 18px;
    }

    .stocks-ai-description p,
    .customer-service-description p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .stocks-ai-cta,
    .customer-service-cta {
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
        align-items: center;
    }

    .stocks-ai-button,
    .customer-service-button {
        width: 100%;
        max-width: 250px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

    .modal-header h2 {
        margin: 0;
        font-size: 24px;
        font-weight: normal;
    }

.form-section {
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
    }

.start-button {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .start-button:hover {
        background: #333;
    }

    .start-button:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

/* Mobile responsiveness */
@media (max-width: 480px) {
    .form-section {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .form-input,
    .form-select,
    .start-button {
        font-size: 14px;
        padding: 8px;
    }
}

/* Loading View Styles */
.loading-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    color: #666;
}

/* Chat Interface Styles */
.chat-interface {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.chat-title {
    text-align: center;
    padding: 15px;
    margin: 0;
    font-size: 24px;
    border-bottom: 1px solid #eee;
}

.chat-container {
    display: flex;
    height: 400px;
}

.chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #eee;
    min-height: 400px;
    position: relative;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    height: calc(100% - 120px);
}

@media (max-width: 768px) {
    .chat-container {
        flex-direction: column;
        height: calc(100vh - 90px);
        min-height: 500px;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .chat-section {
        flex: 1;
        min-height: 400px;
        height: auto;
        border-left: none;
        border-top: 1px solid #eee;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        position: relative;
        -webkit-transform: translate3d(0,0,0);
    }

    .chat-messages {
        flex: 1;
        height: calc(100% - 120px);
        min-height: 175px;
        padding: 15px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .message-input {
        padding: 8px 12px;
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
    }
}

/* Specific Safari fixes */
@supports (-webkit-touch-callout: none) {
    .chat-section {
        height: -webkit-fill-available;
        padding-bottom: 60px;
    }

    .chat-messages {
        height: calc(100% - 120px);
        -webkit-overflow-scrolling: touch;
    }

    .chat-actions,
    .chat-input-area {
        position: fixed;
        bottom: 0;
        -webkit-transform: translate3d(0,0,0);
    }
}

/* Left Section */
.video-section {
    width: 500px;
    flex: none;
    border-right: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.video-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

    .video-container video {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        -webkit-playsinline: playsinline;
        playsinline: playsinline;
        -webkit-tap-highlight-color: transparent;
    }

.avatar-section {
    flex: 1;
    /*background: #f5f5f5;*/
    display: flex;
    /* align-items: center;*/
    justify-content: center;
    overflow: hidden;
    padding-top: 20px;
}

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

.message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
}

.message-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /*    background: #000;*/
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .message-logo img {
        width: 20px;
        height: 20px;
    }

.message-content {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #000;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
}

.message.sent {
    flex-direction: row-reverse;
}

    .message.sent .message-content {
        background: #f0f0f0;
    }

    .message.sent .message-logo {
        display: none;
    }

.message-time {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .message-content {
        font-size: 13px;
        padding: 12px;
    }

    .message-logo {
        width: 28px;
        height: 28px;
    }

        .message-logo img {
            width: 16px;
            height: 16px;
        }
}

.chat-input-area {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
    gap: 10px;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: 60px;
}

.message-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    -webkit-text-size-adjust: 100%;
    font-size: 16px !important;
}

    .message-input:focus {
        border-color: #999;
    }

.mic-button,
.send-button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

    .mic-button:hover,
    .send-button:hover {
        background: #e0e0e0;
    }

    .mic-button svg,
    .send-button svg {
        width: 20px;
        height: 20px;
        fill: #666;
    }




.message-time {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.chat-input {
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0f0f0;
}

.chat-input-field {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    background: white;
}

.chat-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: 60px;
}

    .chat-actions.hidden {
        display: none;
    }

.action-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: background-color 0.2s;
}

    .action-button:hover {
        background: #e0e0e0;
    }

    .action-button svg {
        width: 24px;
        height: 24px;
    }

.voice-recording {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #fff;
    border-radius: 24px;
    color: #f00;
    width: 100%;
}

    .voice-recording.active {
        display: flex;
    }

.recording-dot {
    color: #f00;
    animation: blink 1s infinite;
}



.recording-time {
    font-size: 14px;
    color: #666;
    flex: 1;
}

.recording-actions {
    display: flex;
    gap: 8px;
}

.cancel-button {
    color: #666;
    border: none;
    background: none;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 16px;
    transition: background-color 0.2s;
}

    .cancel-button:hover {
        background: #e0e0e0;
    }



/* Loading Popup */
.loading-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    display: none;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

    .loading-popup.visible {
        display: block;
    }

    .loading-popup .spinner {
        width: 20px;
        height: 20px;
        border: 2px solid #ffffff;
        border-top: 2px solid transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 10px;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}






/* Mobile Responsiveness */
@media (max-width: 768px) {
    .chat-container {
        flex-direction: column;
        height: auto;
    }

    .avatar-section {
        height: 200px;
    }

    .chat-section {
        padding-top: 5px;
        height: 400px;
        border-left: none;
        border-top: 1px solid #eee;
    }

    .chat-title {
        font-size: 20px;
        padding: 12px;
    }

    .chat-messages {
        padding: 15px;
        padding-top: 10px;
        overflow-y: scroll;
        max-height: 175px;
        /*        overflow-y: auto;
        max-height: 250px;*/
    }

    .message.ai {
        padding: 10px 14px;
    }

    .chat-input-area {
        padding: 10px;
    }

    .message-input {
        padding: 8px 12px;
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
    }

    .mic-button,
    .send-button {
        width: 32px;
        height: 32px;
    }

    .chat-actions {
        padding: 8px;
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 100;
        -webkit-transform: translate3d(0,0,0);
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .avatar-section {
        height: 150px;
    }

    .chat-section {
        height: 350px;
    }

    .chat-title {
        font-size: 18px;
        padding: 10px;
    }
}

.skin-analysis-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}




.skin-whatsapp-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

    .skin-whatsapp-input:focus {
        border-color: #000;
        outline: none;
    }

.skin-analyze-btn {
    background: #000;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    width: 200px;
}

    .skin-analyze-btn:hover {
        background: #333;
    }

    .skin-analyze-btn:disabled {
        background: #666;
        cursor: not-allowed;
    }

.skin-spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

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

/* Update the right column styles for the new content */
.skin-right-column h2 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .phone-input {
        max-width: 100%;
    }

    .skin-right-column h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .skin-analyze-btn {
        width: 180px;
        padding: 10px 30px;
        font-size: 14px;
    }
}

/* Add these styles while keeping all existing popup styles */
.skin-analysis-container {
    display: flex;
    height: 500px;
    width: 100%;
}

.skin-camera-section {
    flex: 1;
    background: #f5f5f5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-circle {
    width: 60px;
    height: 60px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .camera-circle svg {
        width: 30px;
        height: 30px;
        fill: #999;
    }

#cameraFeed,
#photoCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skin-content-section {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .skin-content-section h3 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 20px;
        font-weight: normal;
    }

.skin-instructions {
    margin: 20px 0;
}

    .skin-instructions p {
        font-size: 16px;
        line-height: 1.5;
        color: #666;
        margin-bottom: 15px;
    }

.skin-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 200px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .skin-analysis-container {
        flex-direction: column;
        height: auto;
    }

    .skin-camera-section {
        height: 300px;
    }

    .skin-content-section {
        padding: 20px;
    }

        .skin-content-section h3 {
            font-size: 24px;
        }

    .skin-instructions p {
        font-size: 14px;
    }
}

.skin-analysis-layout {
    display: flex;
    width: 100%;
}

.skin-camera-area {
    width: 30%;
    background: #f5f5f5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-circle {
    width: 12px;
    height: 12px;
    background: #999;
    border-radius: 50%;
    position: relative;
}

    .camera-circle::after {
        content: '';
        position: absolute;
        width: 2px;
        height: 2px;
        background: #fff;
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

#cameraFeed,
#photoCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skin-content-area {
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skin-content-wrapper {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
}

.skin-content-area h3 {
    width: 200px;
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 20px;
    font-weight: normal;
}

.skin-instructions {
    width: 180px;
    margin: 15px 0 25px;
}

    .skin-instructions p {
        font-size: 14px;
        line-height: 1.4;
        color: #666;
        margin-bottom: 15px;
        width: 100%;
    }

.skin-action-buttons {
    width: 110px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.take-photo-button,
.skin_upload-button {
    width: 100%;
    padding: 8px 0;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.take-photo-button {
    background: #000;
    color: #fff;
    border: none;
}

.skin_upload-button {
    background: white;
    color: black;
    border: 1px solid black;
    padding: 12px 40px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

    .skin_upload-button:hover {
        background: black;
        color: white;
    }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .skin-analysis-layout {
        flex-direction: column;
    }

    .skin-camera-area,
    .skin-content-area {
        width: 100%;
    }

    .skin-camera-area {
        height: 200px;
    }

    .skin-content-area h3 {
        font-size: 20px;
    }

    .skin-instructions p {
        font-size: 13px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .skin-left-column {
        height: 180px;
    }

    .skin-right-column {
        padding: 10px;
    }

        .skin-right-column h3 {
            font-size: 18px;
        }

    .skin-buttons {
        max-width: 100px;
    }

    .take-photo-button,
    .skin_upload-button {
        padding: 6px 0;
        font-size: 13px;
    }
}

/* Just add these new styles - don't modify any existing popup styles */
.skin-two-columns {
    display: flex;
    width: 100%;
    gap: 40px;
    align-items: center;
}

.skin-left-column {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skin-right-column {
    flex: 0.8;
    padding-right: 20px;
    text-align: center;
}



.skin-circular-container {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .skin-circular-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.face-guide-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='400' viewBox='0 0 300 400' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M150 50 C 80 50, 50 110, 50 180 C 50 270, 80 350, 150 350 C 220 350, 250 270, 250 180 C 250 110, 220 50, 150 50' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.6;
    pointer-events: none;
    z-index: 3;
}

#skin_webcam, #skin_preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.skin-logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: block;
}

.skin-camera-icon {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    background: white;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    .skin-camera-icon svg {
        width: 24px;
        height: 24px;
        stroke: #000;
    }

.skin-right-column h2 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 40px;
    font-weight: 400;
    color: #000;
}

.skin-right-column p {
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 20px;
}

.skin_upload-button {
    background: white;
    color: black;
    border: 1px solid black;
    padding: 4px 40px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    max-width: 150px;
    text-align: center;
}

    .skin_upload-button:hover {
        background: black;
        color: white;
    }

@media (max-width: 1024px) {
    .skin-two-columns {
        gap: 30px;
    }

    .skin-circular-container {
        width: 500px;
        height: 500px;
    }

    .skin-right-column h2 {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .skin-circular-container {
        width: 400px;
        height: 400px;
    }

    .skin-two-columns {
        flex-direction: column;
        gap: 20px;
    }

    .skin-left-column,
    .skin-right-column {
        width: 100%;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .skin-circular-container {
        width: 300px;
        height: 300px;
    }

    .skin-right-column h2 {
        font-size: 28px;
    }

    .skin-right-column p {
        font-size: 16px;
    }
}

.skin-camera-controls {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

    .skin-camera-controls button {
        padding: 8px 16px;
        border-radius: 20px;
        border: none;
        background: #000;
        color: white;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .skin-camera-controls button:hover {
            background: #333;
            transform: scale(1.05);
        }

.skin-button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.skin-reset-btn {
    background: white;
    color: black;
    border: 1px solid black;
    padding: 12px 40px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 200px;
}

    .skin-reset-btn:hover {
        background: #f5f5f5;
    }

@media (max-width: 768px) {
    .skin-reset-btn {
        width: 180px;
        padding: 10px 30px;
        font-size: 14px;
    }
}

.skin-right-column svg {
    stroke: #000;
}

.skin-right-column.success-state {
    text-align: center;
}

    .skin-right-column.success-state h2 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .skin-right-column.success-state p {
        font-size: 16px;
        line-height: 1.5;
        color: #000;
        margin-bottom: 30px;
    }

    .skin-right-column.success-state .skin-analyze-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: #000;
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 4px;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        margin-top: 0;
    }

        .skin-right-column.success-state .skin-analyze-btn:hover {
            background: #333;
        }

@media (max-width: 768px) {
    .skin-right-column.success-state h2 {
        font-size: 24px;
    }

    .skin-right-column.success-state p {
        font-size: 14px;
    }

    .skin-right-column.success-state .skin-analyze-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Prevent zoom on iOS Safari */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input {
        font-size: 16px !important;
    }
}
