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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 0;
    color: #37352f;
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

/* Header */
header {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    color: #37352f;
    padding: 100px 40px 80px;
    text-align: center;
    border-bottom: 1px solid rgba(233, 233, 231, 0.5);
}

header h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #000000;
}

/* Profile Button (Left) */
.profile-button {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(227, 226, 224, 0.7);
    background: rgba(247, 246, 243, 0.9);
    color: #37352f;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: rgba(15, 15, 15, 0.12) 0px 6px 18px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
}

/* Language Selector (Right) */
.language-selector-container {
    position: absolute;
    top: 40px;
    right: 40px;
    height: 44px;
    display: flex;
    align-items: center;
    z-index: 20;
}

.language-selector {
    appearance: none;
    height: 44px;
    padding: 0 36px 0 14px;
    border: 1px solid rgba(227, 226, 224, 0.7);
    border-radius: 999px;
    background: rgba(247, 246, 243, 0.9);
    color: #37352f;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-shadow: rgba(15, 15, 15, 0.12) 0px 6px 18px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2337352f' 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 12px center;
    background-size: 16px;
    vertical-align: middle;
}

.language-selector:hover,
.language-selector:focus {
    background-color: rgba(236, 235, 232, 0.95);
    box-shadow: rgba(15, 15, 15, 0.2) 0px 10px 24px;
    outline: none;
}

.language-selector option {
    background: #ffffff;
    color: #37352f;
    padding: 8px;
}

.profile-button:hover,
.profile-button:focus-visible {
    background: rgba(236, 235, 232, 0.95);
    box-shadow: rgba(15, 15, 15, 0.2) 0px 10px 24px;
    transform: translateY(-2px);
    outline: none;
}

.profile-initial {
    text-transform: uppercase;
}

.profile-menu {
    display: none;
    position: absolute;
    top: 94px;
    left: 40px;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e3e2e0;
    border-radius: 12px;
    box-shadow: rgba(15, 15, 15, 0.12) 0px 12px 24px;
    padding: 20px;
    text-align: left;
    z-index: 10;
}

.profile-menu.open {
    display: block;
}

.profile-menu-label {
    display: block;
    font-size: 1rem;
    color: #37352f;
    font-weight: 600;
}

.profile-menu form {
    margin: 16px 0 0 0;
}

.profile-menu-item {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e3e2e0;
    border-radius: 8px;
    background: #f7f6f3;
    color: #37352f;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
    background: #ecebe8;
    border-color: #d7d6d3;
    outline: none;
}

.subtitle {
    margin-top: 12px;
    font-size: 1.2rem;
    color: #787774;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Tab Navigation */
.tabs-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding: 0 40px;
    border-bottom: 2px solid rgba(233, 233, 231, 0.5);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    position: relative;
}

.tabs-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* Gradient hint for hidden tabs on the right */
.tabs-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 2px;
    width: 60px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tabs-container.has-scroll::after {
    opacity: 1;
}

.tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #9b9a97;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.tab:hover {
    color: #37352f;
    background: rgba(247, 246, 243, 0.5);
}

.tab:focus-visible {
    outline: 2px solid #37352f;
    outline-offset: -2px;
}

.tab.active {
    color: #37352f;
    border-bottom-color: #37352f;
    font-weight: 600;
}

.tab-icon {
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab.active .tab-icon {
    transform: scale(1.1);
}

.tab-text {
    transition: color 0.3s ease;
}

/* Tab Panels */
.tab-panels {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Placeholder Content for Coming Soon Features */
.placeholder-content {
    text-align: center;
    padding: 120px 40px;
    max-width: 600px;
    margin: 0 auto;
}

.placeholder-content svg {
    color: #e3e2e0;
    margin-bottom: 32px;
}

.placeholder-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #37352f;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.placeholder-content p {
    font-size: 1.1rem;
    color: #9b9a97;
    margin-bottom: 12px;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

.placeholder-note {
    font-size: 0.95rem !important;
    color: #c9c8c5 !important;
    font-style: italic;
    margin-top: 24px !important;
}

/* Section */
.section {
    padding: 80px 40px;
    border-bottom: 1px solid rgba(233, 233, 231, 0.5);
}

.section:last-child {
    border-bottom: none;
}

.auth-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 48px;
    background: rgba(250, 250, 250, 0.85);
    border: 1px solid rgba(233, 233, 231, 0.5);
    border-radius: 16px;
    box-shadow: rgba(15, 15, 15, 0.08) 0px 12px 32px;
    backdrop-filter: blur(8px);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: -0.3px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #37352f;
    letter-spacing: 0.1px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    padding: 14px 16px;
    border: 1px solid rgba(227, 226, 224, 0.9);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: #37352f;
    box-shadow: rgba(55, 53, 47, 0.14) 0px 8px 20px, rgba(55, 53, 47, 0.1) 0px 0px 0px 3px;
}

.feedback-message {
    min-height: 24px;
    margin-top: 12px;
    font-size: 0.95rem;
    text-align: center;
}

.feedback-message.success {
    color: #2f7a2d;
}

.feedback-message.error {
    color: #c2463d;
}

.auth-links {
    margin-top: 16px;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.auth-links a {
    color: #0b73f0;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.form-hint {
    font-size: 0.95rem;
    color: #4a4a48;
    text-align: center;
    letter-spacing: 0.2px;
}

.form-hint strong {
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 56px;
    gap: 16px;
}

.step {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f7f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: #9b9a97;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step.active {
    background: linear-gradient(135deg, #37352f 0%, #2e2c28 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(55, 53, 47, 0.2);
    transform: scale(1.05);
}

.step-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #37352f;
    letter-spacing: -0.3px;
}

/* Upload Area - Universal file upload container */
.upload-area {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 2px dashed #e3e2e0;
    border-radius: 16px;
    padding: 100px 50px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.upload-area:hover {
    background: rgba(247, 246, 243, 0.9);
    border-color: #37352f;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.upload-area.drag-over {
    background: rgba(241, 240, 238, 0.95);
    border-color: #37352f;
    border-style: solid;
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(55, 53, 47, 0.12);
}

.upload-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #37352f;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.upload-hint {
    color: #9b9a97;
    font-size: 0.95rem;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

/* Image Preview - Universal image display container */
.img-preview {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.img-preview img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(15, 15, 15, 0.08), 0 2px 8px rgba(15, 15, 15, 0.04);
    margin-bottom: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.img-preview img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(15, 15, 15, 0.12), 0 4px 12px rgba(15, 15, 15, 0.06);
    opacity: 0.95;
}

.preview-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin: 0 auto;
}

.preview-actions .btn {
    width: auto;
}

/* Preview Retry Actions */
.preview-retry-actions {
    text-align: center;
    margin-top: 24px;
}

.preview-retry-actions .btn {
    max-width: 200px;
    width: 100%;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 8px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #37352f 0%, #2e2c28 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(55, 53, 47, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2e2c28 0%, #1f1e1b 100%);
    box-shadow: 0 6px 24px rgba(55, 53, 47, 0.3);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(55, 53, 47, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #37352f;
    box-shadow: 0 2px 8px rgba(15, 15, 15, 0.06), inset 0 0 0 1px rgba(15, 15, 15, 0.1);
}

.btn-secondary:hover {
    background: #f7f6f3;
    box-shadow: 0 4px 12px rgba(15, 15, 15, 0.08), inset 0 0 0 1px rgba(15, 15, 15, 0.15);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15, 15, 15, 0.06), inset 0 0 0 1px rgba(15, 15, 15, 0.1);
}

/* Loading */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 50px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(233, 233, 231, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(233, 233, 231, 0.3);
    border-top: 4px solid #37352f;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin: 0 auto 28px;
}

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

.loading-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: #37352f;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.loading-subtext {
    color: #9b9a97;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 0;
}

.final-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.image-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 15, 15, 0.06), 0 2px 8px rgba(15, 15, 15, 0.04);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.image-card:hover {
    box-shadow: 0 12px 40px rgba(15, 15, 15, 0.12), 0 4px 16px rgba(15, 15, 15, 0.08);
    transform: translateY(-4px);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-card.selected {
    box-shadow: 0 0 0 3px rgba(35, 131, 226, 0.4), 0 8px 32px rgba(35, 131, 226, 0.2);
    transform: translateY(-2px);
}

.image-card .select-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(55, 53, 47, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(15, 15, 15, 0.3);
    letter-spacing: 0.3px;
}

/* Button Container for Download and Regenerate */
.image-card .button-container {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card:hover .button-container {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.image-card .download-btn,
.image-card .regenerate-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #37352f;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(15, 15, 15, 0.15);
    letter-spacing: 0.3px;
    white-space: nowrap;
    min-width: fit-content;
}

.image-card .download-btn:hover,
.image-card .regenerate-btn:hover {
    background: linear-gradient(135deg, #37352f 0%, #2e2c28 100%);
    color: white;
    box-shadow: 0 6px 24px rgba(55, 53, 47, 0.3);
    transform: translateY(-2px);
}

.image-card .regenerate-btn:disabled {
    background: rgba(200, 200, 200, 0.95);
    color: #999;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(15, 15, 15, 0.1);
}

.image-card .regenerate-btn:disabled:hover {
    background: rgba(200, 200, 200, 0.95);
    color: #999;
    transform: none;
    box-shadow: 0 2px 8px rgba(15, 15, 15, 0.1);
}

/* Regenerating Overlay */
.regenerating-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: fadeInSimple 0.3s ease;
}

@keyframes fadeInSimple {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.regenerating-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(233, 233, 231, 0.3);
    border-top: 3px solid #37352f;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin-bottom: 12px;
}

.regenerating-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #37352f;
    letter-spacing: 0.3px;
}

/* Action Buttons */
.action-buttons {
    text-align: center;
    padding: 32px 0;
    margin: 32px auto 0;
    max-width: 600px;
}

/* ==================== Option Card Component ==================== */
/* Reusable card component for background/pose/mode selection */

/* Grid Layouts */
.option-grid {
    display: grid;
    gap: 16px;
    margin: 0 auto 32px;
}

.option-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 1000px;
}

.option-grid-2 {
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
}

/* Card Base */
.option-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: #ffffff;
    border: 2px solid #e3e2e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    min-width: 0; /* Prevent overflow */
}

.option-card:hover {
    border-color: #b8b7b4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.option-card.active {
    border-color: #37352f;
    background: linear-gradient(135deg, rgba(55, 53, 47, 0.03) 0%, rgba(55, 53, 47, 0.01) 100%);
    box-shadow: 0 4px 20px rgba(55, 53, 47, 0.15);
}

/* Card Icon */
.option-card .option-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7f6f3 0%, #ecebe8 100%);
    border-radius: 12px;
    color: #37352f;
    transition: all 0.3s ease;
}

.option-card.active .option-icon {
    background: linear-gradient(135deg, #37352f 0%, #2e2c28 100%);
    color: #ffffff;
}

/* Card Content */
.option-card .option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-card .option-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #37352f;
    margin: 0;
    letter-spacing: -0.2px;
}

.option-card .option-description {
    font-size: 0.9rem;
    color: #787774;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0.1px;
}

/* Card Check Indicator */
.option-card .option-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #e3e2e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.3s ease;
}

.option-card.active .option-check {
    background: #37352f;
    border-color: #37352f;
    color: #ffffff;
}

.option-card:hover .option-check {
    border-color: #b8b7b4;
}

.option-card.active:hover .option-check {
    border-color: #37352f;
}

/* Footer */
footer {
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(10px);
    color: #9b9a97;
    text-align: center;
    padding: 50px 20px;
    margin-top: 100px;
    border-top: 1px solid rgba(233, 233, 231, 0.5);
}

footer p {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 70px 24px 50px;
    }

    header h1 {
        font-size: 2.2rem;
        letter-spacing: -0.7px;
    }

    .subtitle {
        font-size: 1.05rem;
    }

    .profile-button {
        top: 20px;
        left: 20px;
    }

    .profile-menu {
        left: 20px;
        right: 20px;
        top: 90px;
        min-width: unset;
    }

    .language-selector-container {
        top: 20px;
        right: 20px;
    }

    /* Mobile Tab Navigation */
    .tabs-container {
        justify-content: flex-start;
        padding: 0 20px;
        margin-top: 32px;
        gap: 4px;
    }

    .tabs-container::after {
        width: 40px;
    }

    .tab {
        padding: 14px 16px;
        font-size: 0.9rem;
        gap: 6px;
        min-width: auto;
    }

    .tab-icon {
        width: 18px;
        height: 18px;
    }

    .tab-text {
        font-size: 0.85rem;
    }

    .placeholder-content {
        padding: 80px 24px;
    }

    .placeholder-content svg {
        width: 48px;
        height: 48px;
        margin-bottom: 24px;
    }

    .placeholder-content h2 {
        font-size: 1.5rem;
    }

    .placeholder-content p {
        font-size: 1rem;
    }

    .section {
        padding: 50px 24px;
    }

    .upload-area {
        padding: 70px 35px;
        border-radius: 12px;
    }

    .upload-text {
        font-size: 1.1rem;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }

    .final-grid {
        gap: 20px;
    }

    .step-text {
        font-size: 1.3rem;
    }

    .step {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .loading-container {
        padding: 70px 35px;
        border-radius: 16px;
    }

    .spinner {
        width: 44px;
        height: 44px;
    }

    .image-card {
        border-radius: 12px;
    }

    .img-preview img {
        border-radius: 12px;
    }

    /* Option Cards - Mobile */
    .option-grid-3,
    .option-grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .option-card {
        padding: 20px 24px;
        gap: 14px;
    }

    .option-card .option-icon {
        width: 48px;
        height: 48px;
    }

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

    .option-card .option-title {
        font-size: 1rem;
    }

    .option-card .option-description {
        font-size: 0.85rem;
    }

    .option-card .option-check {
        width: 24px;
        height: 24px;
    }

    .option-card .option-check svg {
        width: 16px;
        height: 16px;
    }

}

/* Small screens - Keep text visible with reduced spacing */
@media (max-width: 480px) {
    .tab {
        padding: 10px 12px;
        gap: 6px;
        font-size: 0.8rem;
    }

    .tab-text {
        font-size: 0.75rem;
    }

    .tab-icon {
        width: 18px;
        height: 18px;
    }
}

/* Preset Pose Options */
.preset-pose-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(247, 246, 243, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(227, 226, 224, 0.5);
}

.preset-pose-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #37352f;
    cursor: pointer;
}

.preset-pose-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #000000;
}

.preset-pose-checkbox-label span {
    user-select: none;
}

/* Custom Pose Options (for consistency) */
.custom-pose-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(247, 246, 243, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(227, 226, 224, 0.5);
}

.custom-pose-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #37352f;
    cursor: pointer;
}

.custom-pose-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #000000;
}

.custom-pose-checkbox-label span {
    user-select: none;
}

.option-hint {
    font-size: 0.85rem;
    color: #787774;
    line-height: 1.5;
    margin-top: 2px;
}

/* Usage Guide Styles */
.usage-guide {
    max-width: 700px;
    margin: 0 auto 40px auto;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(55, 53, 47, 0.02) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 1px solid #e3e2e0;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(55, 53, 47, 0.04);
}

.usage-guide h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #37352f;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.usage-guide ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.usage-guide li {
    color: #6b6b6b;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.usage-guide li:last-child {
    margin-bottom: 0;
}

.usage-guide li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #37352f;
    font-weight: bold;
    font-size: 1.1rem;
}

