/* 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: #0a0a0a;
    min-height: 100vh;
    padding: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.57;
    display: flex;
}

/* Desktop Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 120px;
    bottom: 0;
    width: 72px;
    background: transparent;
    backdrop-filter: none;
    border-right: none;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar:hover {
    width: 200px;
}

.sidebar-header {
    display: none;
}


.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 4px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    white-space: nowrap;
    position: relative;
}

.sidebar-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
}

.sidebar-tab.active {
    background: rgba(138, 101, 240, 0.12);
    color: #8A65F0;
}

.sidebar-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-text {
    flex: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar:hover .sidebar-text {
    opacity: 1;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 72px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px 0 24px;
    gap: 12px;
    z-index: 90;
}

.top-bar-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    height: 40px;
    background: transparent;
    border-radius: 10px;
    flex-shrink: 0;
    overflow: visible;
}

.top-bar-logo a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: opacity 0.2s ease;
    height: 100%;
}

.top-bar-logo a:hover {
    opacity: 0.8;
}

.top-bar-logo img {
    height: 100%;
    width: auto;
    max-height: 40px;
    object-fit: contain;
}

.top-bar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-header {
    padding: 100px 40px 40px;
    text-align: center;
    background: transparent;
    position: relative;
}

.gradient-title {
    font-size: 3.5rem;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #D1B1FF 0%, #8A65F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}

.header-controls {
    display: none;
}

.desktop-only {
    display: block;
}

/* Profile Button */
.profile-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #D1B1FF 0%, #8A65F0 100%);
    color: #000000;
    font-weight: 600;
    font-size: 0.7125rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.profile-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(138, 101, 240, 0.4);
}

/* Language Selector */
.language-selector-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-selector {
    appearance: none;
    height: 30px;
    padding: 0 24px 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(30, 30, 30, 0.6);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.65625rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' 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 7px center;
    background-size: 9px;
}

.language-selector:hover {
    background-color: rgba(40, 40, 40, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.language-selector:focus {
    outline: none;
    border-color: #8A65F0;
}

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

/* Top bar icon buttons */
.top-bar-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 30, 30, 0.6);
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-bar-icon-btn:hover {
    background: rgba(40, 40, 40, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.top-bar-icon-btn svg {
    width: 20px;
    height: 20px;
}

.profile-button:focus-visible {
    outline: 2px solid #8A65F0;
    outline-offset: 2px;
}

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

.profile-menu {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    min-width: 260px;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    padding: 12px;
    text-align: left;
    z-index: 200;
    backdrop-filter: blur(30px);
}

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

.profile-menu-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    margin-bottom: 12px;
}

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

.profile-menu-item {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(30, 30, 30, 0.8);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
    background: rgba(40, 40, 40, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.subtitle {
    margin-top: 8px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Tab Navigation */
.tabs-container {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    padding: 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    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: 1px;
    width: 60px;
    background: linear-gradient(to left, rgba(10, 10, 10, 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: 6px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0;
}

.tab:hover {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.05);
}

.tab:focus-visible {
    outline: 2px solid #8A65F0;
    outline-offset: -2px;
}

.tab.active {
    color: #8A65F0;
    border-bottom-color: #8A65F0;
    font-weight: 500;
}

.tab-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

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

.tab-text {
    transition: color 0.2s 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);
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    padding: 0 8px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 4px;
    border-radius: 8px;
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.mobile-nav-item.active {
    color: #8A65F0;
}

.mobile-nav-item:active {
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu Modal */
.mobile-menu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 85;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    position: relative;
    width: calc(100% - 32px);
    max-width: 500px;
    max-height: calc(100vh - 100px);
    background: #1a1a1a;
    backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 0;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-modal.active .mobile-menu-content {
    transform: scale(1);
    opacity: 1;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.mobile-menu-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-list-item:last-child {
    border-bottom: none;
}

.mobile-menu-list-item:active {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.65);
}

.mobile-menu-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.88);
}

.mobile-menu-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.35);
}

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

.placeholder-content svg {
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 32px;
}

.placeholder-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.placeholder-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

.placeholder-note {
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.45) !important;
    font-style: italic;
    margin-top: 24px !important;
}

/* Container for access page */
.access-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 40px 20px;
}

.access-container header {
    margin-bottom: 20px;
}

/* Section */
.section {
    padding: 60px 40px;
}

.access-container .section {
    padding: 0;
}

.auth-card {
    max-width: 500px;
    width: 500px;
    margin: 0 auto;
    padding: 40px 48px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    box-sizing: border-box;
}

.section-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.2px;
    color: #ffffff;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    width: 100%;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    padding: 18px 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(30, 30, 30, 0.6);
    width: 100%;
    max-width: 100%;
    color: #ffffff;
    transition: border-color 0.2s ease, background 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: #8A65F0;
    background: rgba(30, 30, 30, 0.8);
}

/* Override browser autofill styles */
.form-group input[type="text"]:-webkit-autofill,
.form-group input[type="password"]:-webkit-autofill,
.form-group input[type="email"]:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(30, 30, 30, 0.6) inset;
    -webkit-text-fill-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 5000s ease-in-out 0s;
}

.form-group input[type="text"]:-webkit-autofill:focus,
.form-group input[type="password"]:-webkit-autofill:focus,
.form-group input[type="email"]:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(30, 30, 30, 0.8) inset;
    -webkit-text-fill-color: #ffffff;
    border-color: #8A65F0;
}

.feedback-message {
    min-height: 24px;
    margin-top: 12px;
    font-size: 0.875rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.feedback-message.success {
    color: #52c41a;
}

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

/* Gallery Empty State */
.gallery-empty-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.gallery-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    gap: 24px;
}

.gallery-empty-state svg {
    color: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.gallery-empty-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    margin: 0;
    letter-spacing: -0.2px;
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.2s ease-out;
}

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

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.gallery-modal-content {
    position: relative;
    width: 90%;
    height: 85vh;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin-top: 40px;
    box-sizing: border-box;
    z-index: 10001;
    animation: modalContentZoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalContentZoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.gallery-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.gallery-modal-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.gallery-modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-modal-nav:disabled:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}

.gallery-modal-prev {
    left: 15px;
}

.gallery-modal-next {
    right: 15px;
}

.gallery-modal-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0 90px;
    position: relative;
}

.gallery-modal-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.gallery-modal-info {
    flex-shrink: 0;
    margin: 12px 0;
}

.gallery-modal-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    font-weight: 500;
}

.gallery-modal-actions {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
}

.gallery-modal-download {
    min-width: 140px;
}

/* 갤러리 프롬프트 오버레이 - 항상 표시 */
.gallery-prompt-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    padding: 16px 20px;
    z-index: 10;
    border-radius: 0 0 8px 8px;
}

.gallery-prompt-content {
    width: 100%;
}

.gallery-prompt-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9375rem;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
    margin: 0;
    text-align: center;
}

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

.auth-links a {
    color: #1677ff;
    text-decoration: none;
}

.auth-links a:hover {
    color: #69b1ff;
    text-decoration: underline;
}

.form-hint {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    letter-spacing: 0;
}

.form-hint strong {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
}

.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: 40px;
    gap: 12px;
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    transition: all 0.2s ease;
}

.step.active {
    background: #8A65F0;
    color: #000000;
    border-color: #8A65F0;
    box-shadow: 0 2px 12px rgba(138, 101, 240, 0.4);
}

.step-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.2px;
}

/* Upload Area - Universal file upload container */
.upload-area {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    max-width: 700px;
    margin: 0 auto;
}

.upload-area:hover {
    background: rgba(30, 30, 30, 0.5);
    border-color: #8A65F0;
}

.upload-area.drag-over {
    background: rgba(138, 101, 240, 0.1);
    border-color: #8A65F0;
    border-style: solid;
    box-shadow: 0 0 0 4px rgba(138, 101, 240, 0.1);
}

.upload-text {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0;
}

.upload-hint {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    margin-bottom: 6px;
    letter-spacing: 0;
}

/* 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: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.img-preview img:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
    opacity: 0.9;
}

.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: 11px 24px;
    font-size: 0.875rem;
    font-weight: 400;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 6px;
    letter-spacing: 0;
    white-space: nowrap;
}

.btn-primary {
    background: #8A65F0;
    color: #000000;
    box-shadow: 0 2px 8px rgba(138, 101, 240, 0.3);
}

.btn-primary:hover {
    background: #7450D8;
    box-shadow: 0 4px 12px rgba(138, 101, 240, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(40, 40, 40, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* Loading */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 40px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #8A65F0;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin: 0 auto;
}

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

.loading-text {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0;
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    letter-spacing: 0;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
}

.final-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Gallery Grid - Different layout */
#gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.image-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 3 / 4;
}

.image-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

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

.image-card.selected {
    box-shadow: 0 0 0 2px #8A65F0, 0 4px 16px rgba(138, 101, 240, 0.4);
}

.image-card .select-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(138, 101, 240, 0.95);
    backdrop-filter: blur(10px);
    color: #000000;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

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

.image-card:hover .button-container {
    opacity: 1;
}

.image-card .download-btn,
.image-card .regenerate-btn {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    min-width: fit-content;
}

.image-card .download-btn:hover,
.image-card .regenerate-btn:hover {
    background: #8A65F0;
    color: #000000;
    border-color: #8A65F0;
    box-shadow: 0 4px 12px rgba(138, 101, 240, 0.4);
}

.image-card .regenerate-btn:disabled {
    background: rgba(60, 60, 60, 0.8);
    color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
}

.image-card .regenerate-btn:disabled:hover {
    background: rgba(60, 60, 60, 0.8);
    color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Regenerating Overlay */
.regenerating-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 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: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #8A65F0;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin-bottom: 12px;
}

.regenerating-text {
    font-size: 0.875rem;
    font-weight: 400;
    color: #ffffff;
}

/* 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: 12px;
    margin: 0 auto 24px;
}

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

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

/* Card Base */
.option-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0; /* Prevent overflow */
}

.option-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 30, 30, 0.7);
}

.option-card.active {
    border-color: #8A65F0;
    background: rgba(138, 101, 240, 0.08);
    box-shadow: 0 0 0 1px rgba(138, 101, 240, 0.2);
}

/* Card Icon */
.option-card .option-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.option-card.active .option-icon {
    background: #8A65F0;
    color: #000000;
    border-color: #8A65F0;
}

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

.option-card .option-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0;
}

.option-card .option-description {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0;
}

/* Card Check Indicator */
.option-card .option-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
}

.option-card.active .option-check {
    background: #8A65F0;
    border-color: #8A65F0;
    color: #000000;
}

.option-card:hover .option-check {
    border-color: rgba(255, 255, 255, 0.3);
}

.option-card.active:hover .option-check {
    border-color: #8A65F0;
}


/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 60px 20px 40px;
    }

    header h1 {
        font-size: 2rem;
        letter-spacing: -0.4px;
    }

    .subtitle {
        font-size: 0.9375rem;
    }


    /* Mobile Tab Navigation */
    .tabs-container {
        justify-content: flex-start;
        padding: 0 16px;
        margin-top: 24px;
        gap: 2px;
    }

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

    .tab {
        padding: 12px 14px;
        font-size: 0.8125rem;
        gap: 5px;
        min-width: auto;
    }

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

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

    .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: 40px 20px;
    }

    .upload-area {
        padding: 60px 28px;
        border-radius: 10px;
    }

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

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

    .final-grid {
        gap: 16px;
    }

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

    .step {
        width: 32px;
        height: 32px;
        font-size: 0.8125rem;
        border-radius: 7px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8125rem;
        border-radius: 7px;
    }

    .loading-container {
        padding: 60px 28px;
        border-radius: 10px;
    }

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

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

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

    /* 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: 14px;
    background: rgba(20, 20, 20, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.preset-pose-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
}

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

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

/* Custom Pose Options (for consistency) */
.custom-pose-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: rgba(20, 20, 20, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-pose-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
}

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

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

.option-hint {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    margin-top: 2px;
}

/* Usage Guide Styles */
.usage-guide {
    max-width: 700px;
    margin: 0 auto 32px auto;
    padding: 20px 40px;
    background: rgba(20, 20, 20, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.usage-guide h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0;
}

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

.usage-guide li {
    color: #ffffff;
    font-size: 0.8125rem;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

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

.usage-guide li::before {
    content: "•";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-weight: normal;
    font-size: 1rem;
    line-height: 1;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    body {
        padding-bottom: 68px;
        padding-top: 64px;
    }

    /* Remove body padding for access page */
    body:has(.access-container) {
        padding-top: 0;
    }

    /* Access page mobile spacing */
    .access-container {
        padding: 16px 20px 20px;
    }

    .access-container header {
        margin-bottom: 12px;
        margin-top: 0;
    }

    .auth-card {
        width: 100%;
        max-width: 100%;
        padding: 32px 24px;
    }

    /* Hide sidebar on mobile */
    .sidebar {
        display: none;
    }

    /* Show mobile bottom nav */
    .mobile-bottom-nav {
        display: flex;
    }

    /* Top bar mobile */
    .top-bar {
        left: 0;
        padding: 0 16px;
        justify-content: space-between;
    }

    .top-bar-logo {
        display: flex;
    }

    .top-bar-controls {
        margin-left: auto;
    }

    /* Adjust main content for mobile */
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .main-header {
        padding: 24px 20px 30px;
    }

    .gradient-title {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .header-controls {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    /* Tab panels padding adjustment */
    .tab-panels {
        padding: 0 16px 20px;
    }

    .section {
        padding: 32px 16px;
    }

    /* Usage guide mobile */
    .usage-guide {
        padding: 16px 20px;
        margin-bottom: 24px;
    }

    .usage-guide h3 {
        font-size: 0.875rem;
    }

    .usage-guide li {
        font-size: 0.75rem;
    }

    /* Step indicators */
    .step-indicator {
        padding: 0 16px;
    }

    /* Button adjustments */
    .btn {
        font-size: 0.9375rem;
        padding: 13px 24px;
    }

    /* Upload area */
    .upload-area {
        padding: 32px 20px;
    }

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

    .upload-hint {
        font-size: 0.8125rem;
    }

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

    .option-card {
        padding: 18px;
    }

    .option-title {
        font-size: 0.9375rem;
    }

    .option-description {
        font-size: 0.8125rem;
    }

    /* Image grid adjustments */
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .final-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Gallery Grid - Mobile */
    #gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    /* Gallery Modal - Mobile */
    .gallery-modal-content {
        width: 100%;
        height: calc(100vh - 132px);
        padding: 10px 10px 0 10px;
        margin-top: 64px;
        justify-content: space-between;
        gap: 0;
    }

    .gallery-modal-close {
        top: 5px;
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .gallery-modal-nav {
        width: 44px;
        height: 44px;
    }

    .gallery-modal-prev {
        left: 5px;
    }

    .gallery-modal-next {
        right: 5px;
    }

    .gallery-modal-image-container {
        padding: 0 50px;
        flex: 1;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gallery-modal-info {
        margin: 0 0 8px 0;
        flex-shrink: 0;
    }

    .gallery-modal-counter {
        font-size: 0.875rem;
    }

    .gallery-modal-actions {
        margin-bottom: 100px;
        flex-shrink: 0;
    }

    /* 갤러리 프롬프트 오버레이 - Mobile */
    .gallery-prompt-overlay {
        padding: 12px 16px;
    }

    .gallery-prompt-text {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    /* Profile menu mobile positioning */
    .profile-menu {
        left: auto;
        right: 16px;
        top: 52px;
        min-width: 240px;
    }

    /* Action buttons mobile */
    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 64px;
    }

    .sidebar:hover {
        width: 200px;
    }

    .main-content {
        margin-left: 64px;
    }

    .top-bar {
        left: 0;
        padding: 0 16px 0 80px;
        justify-content: space-between;
    }

    .top-bar-logo {
        position: fixed;
        left: 16px;
    }

    .top-bar-controls {
        margin-left: auto;
    }

    .gradient-title {
        font-size: 2.8rem;
    }

    .sidebar-text {
        font-size: 0.875rem;
    }

    .sidebar-tab {
        padding: 10px 12px;
        gap: 10px;
    }

    .main-header {
        padding: 84px 32px 36px;
    }

    .section {
        padding: 40px 24px;
    }

    .upload-area {
        padding: 60px 40px;
    }

    .usage-guide {
        padding: 18px 40px;
    }

    /* Keep 3 columns for tablets */
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .final-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Gallery Grid - Tablet */
    #gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 14px;
    }
}

/* Large desktop */
@media (min-width: 1440px) {
    .gradient-title {
        font-size: 4rem;
    }
}


/* ==================== Gallery Infinite Scroll Styles ==================== */

/* 무한 스크롤 로딩 인디케이터 */
.gallery-loading-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 15px;
    margin-top: 20px;
}

/* Small spinner for infinite scroll */
.spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.gallery-loading-more p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Lazy loading placeholder animation */
img[loading="lazy"] {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Sentinel element (invisible scroll trigger) */
#gallery-scroll-sentinel {
    height: 1px;
    margin-top: 20px;
    pointer-events: none;
    opacity: 0;
}

/* Mobile optimization for infinite scroll */
@media (max-width: 768px) {
    .gallery-loading-more {
        padding: 30px 15px;
    }

    .spinner-small {
        width: 24px;
        height: 24px;
        border-width: 2.5px;
    }

    .gallery-loading-more p {
        font-size: 0.875rem;
    }
}

/* Footer Styles */
.main-footer {
    margin-top: 80px;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .main-footer {
        margin-top: 60px;
        padding: 30px 15px 90px 15px; /* Extra bottom padding for mobile nav */
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-separator {
        display: none;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    .footer-text {
        font-size: 0.8rem;
    }
}
