/* =============================================
   NARCIS AI - Design System
   Migrated from Vue 3 Frontend
   ============================================= */

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Saira', sans-serif;
    background: #fff;
    color: #000;
    min-height: 100vh;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; outline: none; }
ul, ol { list-style: none; }

/* ── Typography ── */
.saira-1 { font-family: 'Saira', sans-serif; font-weight: 700; }
.saira-2 { font-family: 'Saira', sans-serif; font-weight: 300; }

.text-gradient {
    background: linear-gradient(90deg, #637AF8, #AB77E1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Header ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f0f0f0;
}

.header-inner {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 15px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img { height: 30px; }

.desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #6E6E6E;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: #000;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #637AF8, #AB77E1);
    border-radius: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-checkin {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.icon-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

.head-mypoint {
    height: 36px;
    line-height: 36px;
    padding: 0 15px;
    border-radius: 30px;
    background: linear-gradient(90deg, #637AF8, #AB77E1);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.icon-user {
    display: flex;
    align-items: center;
}

.icon-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #d9d9d9;
    object-fit: cover;
}

.nav-link-btn {
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.nav-link-btn:hover { opacity: 1; }

.btn-login {
    padding: 8px 20px;
    border-radius: 30px;
    background: #000;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #000;
    transition: all 0.3s;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 10px 15px;
}

.mobile-nav.open { display: flex; }

.mobile-nav-link {
    padding: 12px 0;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}

/* Check-in Modal */
.checkin-modal {
    position: fixed;
    top: 70px;
    right: 15px;
    z-index: 999;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 320px;
}

.checkin-modal-content {}

.checkin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.checkin-header h3 { font-size: 16px; font-weight: 700; }
.checkin-close { font-size: 24px; color: #8C8C8C; }

/* ── Messages ── */
.messages-container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 15px;
}

.message {
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.message-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.message-info { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.message-warning { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.message-close { font-size: 18px; color: inherit; opacity: 0.6; }

/* ── Container ── */
.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-sm { max-width: 900px; margin: 0 auto; padding: 0 15px; }
.container-md { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ── Grid System ── */
.row { display: flex; flex-wrap: wrap; margin: 0 -7.5px; }
.col { padding: 0 7.5px; }
.col-2 { width: 8.333%; }
.col-3 { width: 12.5%; }
.col-4 { width: 16.666%; }
.col-6 { width: 25%; }
.col-8 { width: 33.333%; }
.col-9 { width: 37.5%; }
.col-12 { width: 50%; }
.col-16 { width: 66.666%; }
.col-18 { width: 75%; }
.col-24 { width: 100%; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

.btn-black {
    background: #000;
    color: #fff;
}

.btn-black:hover { opacity: 0.85; }

.btn-gradient {
    background: linear-gradient(90deg, #637AF8, #AB77E1);
    color: #fff;
    border: none;
}

.btn-gradient:hover { opacity: 0.9; }

.btn-outline {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

.btn-outline:hover { background: #f5f5f5; }

.btn-outline-gray {
    background: #fff;
    color: #000;
    border: 1px solid #d9d9d9;
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 20px 40px; font-size: 16px; }
.btn-full { width: 100%; }

.btn-danger { background: #ef4444; color: #fff; }

/* ── Cards ── */
.card {
    border: 1px solid #d9d9d9;
    border-radius: 30px;
    padding: 30px;
    background: #fff;
    transition: all 0.3s;
}

.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.card-flat {
    background: #F5F5F5;
    border-radius: 30px;
    padding: 30px;
}

/* ── Forms ── */
.form-group { margin-bottom: 15px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #535353;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #d9d9d9;
    border-radius: 30px;
    font-size: 14px;
    color: #535353;
    background: #fff;
    transition: border-color 0.2s;
}

.form-control:focus { border-color: #637AF8; }

textarea.form-control {
    min-height: 150px;
    border-radius: 20px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* ── Upload Area ── */
.upload-area {
    position: relative;
    background: #F7F7F7;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover { background: #f0f0f0; }

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 40px;
    color: #8F8F8F;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 13px;
    color: #8F8F8F;
    font-weight: 300;
}

.upload-title {
    height: 45px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 30px;
    text-align: center;
    line-height: 45px;
    font-weight: 700;
    position: absolute;
    top: 0;
    z-index: 9;
    width: 100%;
}

.upload-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 30px;
}

/* ── Tabs ── */
.tabs {
    display: flex;
    gap: 10px;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}

.tab-item {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #d9d9d9;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s;
    color: #000;
    background: #fff;
}

.tab-item:hover { border-color: #000; }

.tab-item.active {
    background: #000;
    color: #fff;
    border-color: #000;
    font-weight: 700;
}

.tab-item.active-gradient {
    background: linear-gradient(90deg, #637AF8, #AB77E1);
    color: #fff;
    border-color: transparent;
}

/* ── Tables ── */
.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

th {
    color: #8C8C8C;
    font-weight: 600;
    font-size: 13px;
    background: #fafafa;
}

tr:hover td { background: #fafafa; }

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-outline {
    border: 1px solid #000;
    background: #fff;
    opacity: 0.7;
}

.badge-black {
    background: #000;
    color: #fff;
    opacity: 0.7;
}

.badge-tryon { background: #E8F5E9; color: #2E7D32; }
.badge-style { background: #E3F2FD; color: #1565C0; }
.badge-video { background: #FFF3E0; color: #E65100; }
.badge-active { background: #E8F5E9; color: #16a34a; }
.badge-inactive { background: #fef2f2; color: #dc2626; }

/* ── Stat Cards ── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat-card {
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-label {
    color: #8C8C8C;
    font-size: 12px;
    margin-top: 4px;
}

/* ── Waterfall Gallery ── */
.waterfall-container { width: 100%; }

.waterfall-wrapper {
    display: flex;
    gap: 15px;
    cursor: pointer;
}

.waterfall-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.waterfall-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background: #f8f8f8;
    position: relative;
    break-inside: avoid;
}

.waterfall-item img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.waterfall-item video {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Gallery CSS Columns (simpler approach) */
.gallery-grid {
    column-count: 5;
    column-gap: 15px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background: #f8f8f8;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    display: block;
}

.gallery-item .img-category {
    position: absolute;
    right: 10px;
    top: 10px;
    border-radius: 20px;
    font-size: 11px;
    border: 1px solid #000;
    text-align: center;
    background: #fff;
    padding: 5px 10px;
    opacity: 0.7;
    font-weight: 500;
}

.gallery-item .img-key {
    position: absolute;
    left: 10px;
    top: 10px;
    border-radius: 20px;
    font-size: 11px;
    text-align: center;
    background: #000;
    padding: 5px;
    width: 30px;
    height: 30px;
    opacity: 0.7;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.gallery-item .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
}

.gallery-item:hover .img-overlay {
    background: rgba(0,0,0,0.5);
}

.gallery-item .overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    padding: 15px;
    font-size: 12px;
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.3s;
    overflow: hidden;
}

.gallery-item:hover .overlay-text { opacity: 1; }

.gallery-item .img-tryon-combi {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
}

.try-img-mini {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.try-img-mini:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.gallery-item .img-zoom-btn {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 5;
}
.gallery-item:hover .img-zoom-btn {
    opacity: 1;
}

.try-img-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.try-img-plus {
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    padding: 0 8px;
}

/* Skeleton Loading */
.image-skeleton {
    width: 100%;
    padding-top: 66%;
    background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeleton 1.2s infinite linear;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Hero Section ── */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-logo {
    position: absolute;
    text-align: center;
    color: aliceblue;
    bottom: 10px;
    font-size: clamp(2rem, 7vw, 9rem);
    z-index: 9;
    width: 100%;
    opacity: 0.2;
}

.hero-logo img { width: 30%; margin: 0 auto; opacity: 0.2; }

/* ── Section Titles ── */
.section-title {
    width: 100%;
    text-align: center;
    margin: 100px 0 50px;
    font-size: clamp(1.5rem, 3vw, 4rem);
    font-weight: 700;
}

.sub-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 700;
    width: max-content;
    padding-left: 100px;
    background-size: 75px 75px;
    background-repeat: no-repeat;
    background-position: left center;
}

/* ── Service Pages (Try-On, Style, Video) ── */
.service-page { padding: 100px 15px 0; }

.service-edit-box {
    border: 1px solid #d9d9d9;
    padding: 30px;
    border-radius: 30px;
    margin-top: 20px;
}

.service-upload-box {
    position: relative;
    height: 280px;
}

.service-result {
    width: 100%;
    height: 753px;
    background: #F7F7F7;
    border-radius: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.service-result img, .service-result video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-generate-btn {
    background: #000;
    border-radius: 30px;
    height: 60px;
    line-height: 60px;
    color: #fff;
    cursor: pointer;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    width: 100%;
    border: none;
    font-size: 15px;
}

.service-generate-btn:hover { opacity: 0.85; }

.service-download-btn {
    border: 1px solid #000;
    height: 50px;
    line-height: 48px;
    background: #fff;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    display: block;
    width: 100%;
    font-size: 14px;
}

/* Style Format Buttons */
.btn-style {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #d9d9d9;
    border-radius: 30px;
    padding: 15px 30px;
    margin: 10px 0;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    background: #fff;
    font-size: 14px;
}

.btn-style.active, .btn-style:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Video Style Selector */
.video-style-select {
    border: 1px solid #d9d9d9;
    padding: 30px;
    border-radius: 30px;
}

.video-style-big {
    width: 100%;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
}

.video-style-big img, .video-style-big video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-style-thumbs {
    display: flex;
    justify-content: start;
    gap: 5px;
    margin-top: 15px;
}

.video-style-thumb {
    flex: 1;
    height: 50px;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.video-style-thumb.active {
    opacity: 1;
    border: 1px solid #000;
}

.video-style-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Controls (hover) */
.video-container { position: relative; }

.video-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.video-container:hover .video-controls {
    opacity: 1;
    visibility: visible;
}

.video-control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
}

/* ── Content Detail ── */
.content-detail {
    max-width: 550px;
    margin: 100px auto 0;
    padding: 0 15px;
}

.content-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.contents-icon { display: flex; gap: 15px; align-items: center; }
.contents-share { display: flex; gap: 10px; }

.content-media {
    position: relative;
    margin-top: 20px;
    min-height: 300px;
    border-radius: 20px;
    overflow: hidden;
}

.content-media img, .content-media video {
    width: 100%;
    display: block;
    border-radius: 20px;
}

.src-category {
    position: absolute;
    right: 20px;
    top: 20px;
    background: #fff;
    opacity: 0.7;
    padding: 3px 10px;
    border: 1px solid #000;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.src-download {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: #fff;
    padding: 5px 15px;
    border: 1px solid #000;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}

/* Try-On Combination */
.view-item-combi {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.combi-img {
    width: 110px;
    height: 110px;
    border: 1px solid #d9d9d9;
    border-radius: 30px;
    text-align: center;
    overflow: hidden;
}

.combi-img img { width: 100%; height: 100%; object-fit: cover; }
.combi-plus { margin: 0 30px; font-size: 20px; font-weight: 700; }

/* Title & Content */
.mod-title { font-size: 18px; margin: 10px 0; font-weight: 700; }
.mod-cont { font-size: 14px; font-weight: 300; color: #8C8C8C; word-break: break-all; }

.mod-tags {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-item {
    padding: 5px 12px;
    border-radius: 20px;
    background: #f5f5f5;
    font-size: 12px;
}

/* Comments */
.comment-container { margin-top: 20px; }
.comment-header { margin-bottom: 20px; font-weight: 700; }

.comment-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.comment-nickname { font-weight: 700; margin-right: 10px; font-size: 14px; }
.comment-date { font-size: 12px; color: #999; }
.comment-text { margin: 0; word-break: break-all; font-weight: 300; font-size: 13px; }

.comment-delete {
    font-size: 12px;
    color: #999;
    cursor: pointer;
}

.comment-input-section {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.comment-input {
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    width: 100%;
    padding: 10px 15px;
    font-size: 13px;
}

.comment-submit {
    padding: 10px 20px;
    background: linear-gradient(90deg, #637AF8, #AB77E1);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
}

/* Like Button */
.like-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #d9d9d9;
    background: #fff;
    font-size: 13px;
    transition: all 0.2s;
}

.like-btn.liked {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

/* ── Lookbook ── */
.lookbook-box { padding-top: 90px; max-width: 1920px; margin: 0 auto; }

.lk-top-img {
    overflow: hidden;
    width: 100%;
    max-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    position: relative;
}

.lk-top-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cent-user-box {
    width: 300px;
    height: 210px;
    background: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -29%);
    border-radius: 30px;
    opacity: 0.8;
}

.cent-user-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.cent-user-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.cent-user-img img { width: 100%; height: 100%; object-fit: cover; }

.cent-user-sns {
    position: absolute;
    right: 30px;
    top: 30px;
}

.sns-btn {
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    background: #000;
    opacity: 0.7;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sns-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
    margin-top: 5px;
}

.sns-icon img { width: 20px; height: 20px; }

/* ── MyHome Layout ── */
.myhome-container {
    padding-top: 90px;
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    min-height: calc(100vh - 70px);
}

.myhome-sidebar {
    width: 250px;
    border-right: 1px solid #f0f0f0;
    padding: 20px 15px;
    flex-shrink: 0;
}

.myhome-content {
    flex: 1;
    padding: 20px 30px;
    min-width: 0;
}

/* Top Info Panel */
.top-info-panel {
    background: #F5F5F5;
    border-radius: 30px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.top-info-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #d9d9d9;
    overflow: hidden;
    flex-shrink: 0;
}

.top-info-avatar img { width: 100%; height: 100%; object-fit: cover; }

.top-info-details { flex: 1; }
.top-info-name { font-size: 18px; font-weight: 700; }
.top-info-email { font-size: 13px; color: #8C8C8C; }

.top-info-stats {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.top-info-stat {
    font-size: 12px;
    color: #6E6E6E;
}

.top-info-stat strong {
    color: #000;
    font-weight: 700;
}

/* Sidebar Menu */
.sidebar-menu { margin-top: 10px; }

.sidebar-menu-group { margin-bottom: 20px; }

.sidebar-menu-title {
    font-size: 12px;
    font-weight: 700;
    color: #8C8C8C;
    padding: 8px 15px;
    text-transform: uppercase;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 12px;
    color: #535353;
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-menu-item:hover { background: #f5f5f5; color: #000; }
.sidebar-menu-item.active { background: #f0f0f0; color: #000; font-weight: 700; }
.sidebar-menu-item img { width: 20px; height: 20px; opacity: 0.6; }

/* ── Settings Content ── */
.setting-content {
    margin-top: 30px;
    max-width: 900px;
    border-radius: 30px;
    background: #F5F5F5;
    padding: 30px;
}

.setting-title { font-size: 16px; font-weight: 700; margin-bottom: 15px; }

/* PIN Input */
.pin-input-group {
    display: flex;
    margin-top: 20px;
    gap: 10px;
}

.pin-input {
    background: #fff;
    border: 1px solid #000;
    border-radius: 30px;
    width: 100%;
    flex: 1;
    padding: 20px 15px;
    text-align: center;
    font-size: 18px;
}

/* Info Setting */
.user-info-setting {
    margin-top: 15px;
    border-radius: 30px;
    background: #F5F5F5;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.user-info-input { margin: 15px 0; }

.user-info-input input,
.user-info-input textarea {
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 30px;
    padding: 15px 20px;
    color: #535353;
    font-family: inherit;
}

.user-info-input textarea {
    min-height: 150px;
    border-radius: 20px;
}

/* SNS Input with icon */
.sns-input {
    padding-left: 50px !important;
    background-size: 20px;
    background-position: 20px center;
    background-repeat: no-repeat;
}

/* History List */
.history-list {
    margin-top: 20px;
    border: 1px solid #d9d9d9;
    padding: 20px;
    border-radius: 30px;
    max-width: 900px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.history-item:last-child { border-bottom: none; }

.history-info { flex: 1; }
.history-name { font-size: 14px; font-weight: 500; }
.history-date { font-size: 12px; color: #8C8C8C; }
.history-point { font-size: 14px; font-weight: 700; }
.history-point.plus { color: #16a34a; }
.history-point.minus { color: #dc2626; }

/* ── Loading ── */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    border-radius: 30px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotating-icon { animation: rotate 3s linear infinite; }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* HTMX Loading */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }
.htmx-request.htmx-indicator { display: inline-block; }

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid #d9d9d9;
    transition: all 0.2s;
}

.pagination a:hover { background: #f5f5f5; }
.pagination .active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* ── Footer ── */
.m-footer {
    padding: 50px 15px 0;
    margin-top: 70px;
    border-top: 1px solid #f0f0f0;
}

.footer-inner {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col { flex: 1; min-width: 200px; }
.footer-center { text-align: center; }
.footer-right-col { display: flex; gap: 40px; justify-content: flex-end; }
.footer-tagline { font-size: 14px; color: #6E6E6E; margin-bottom: 15px; }

.foot-icons { display: flex; gap: 10px; }

.foot-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.foot-icon:hover { background: #f5f5f5; }

.footer-links-group h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.footer-links li { margin-bottom: 6px; }
.footer-links a { font-size: 13px; color: #6E6E6E; }
.footer-links a:hover { color: #000; }

.footer-copy {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
    font-size: 12px;
    color: #8C8C8C;
}

/* ── Admin Layout ── */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: #1a1a2e;
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
}

.admin-sidebar-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.admin-sidebar-logo img { height: 25px; filter: brightness(10); }

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all 0.2s;
}

.admin-menu-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-menu-item.active { background: rgba(99,122,248,0.3); color: #fff; }

.admin-content {
    flex: 1;
    padding: 30px;
    background: #f5f5f5;
    min-width: 0;
}

.admin-page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* ── Utility Classes ── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #8C8C8C; }
.text-sm { font-size: 12px; }
.text-lg { font-size: 18px; }
.font-light { font-weight: 300; }
.font-bold { font-weight: 700; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.p-15 { padding: 15px; }
.p-30 { padding: 30px; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.rounded-full { border-radius: 50%; }
.rounded-30 { border-radius: 30px; }

/* ── Responsive ── */
@media (max-width: 1200px) {
    .gallery-grid { column-count: 4; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .gallery-grid { column-count: 3; }
    .col-md-24 { width: 100%; }
    .col-md-12 { width: 50%; }
    .myhome-sidebar { display: none; }
    .myhome-content { padding: 20px 15px; }
}

@media (max-width: 768px) {
    .gallery-grid { column-count: 2; }
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: flex; }

    .header-inner { height: 60px; }

    .service-result { height: 500px; }

    .row { flex-direction: column; }
    .col-12, .col-8, .col-16, .col-6, .col-9, .col-18 { width: 100%; }

    .footer-inner { flex-direction: column; }
    .footer-center { order: -1; }
    .footer-right-col { justify-content: flex-start; }

    .top-info-panel { flex-direction: column; text-align: center; }
    .top-info-stats { justify-content: center; }

    .stat-grid { grid-template-columns: repeat(2, 1fr); }

    .checkin-modal { right: 5px; left: 5px; min-width: unset; }

    .view-item-combi { gap: 10px; }
    .combi-img { width: 80px; height: 80px; }
    .combi-plus { margin: 0 15px; }

    .lk-top-img { max-height: 250px; border-radius: 20px; }
    .cent-user-box { width: 200px; height: 150px; }
    .cent-user-img { width: 100px; height: 100px; }

    .admin-sidebar { display: none; }
    .admin-content { padding: 15px; }
}

@media (max-width: 480px) {
    .gallery-grid { column-count: 2; }
    .stat-grid { grid-template-columns: 1fr; }
    .service-edit-box { padding: 15px; }
}

/* ── Slide Animation ── */
.slide-down-enter { opacity: 0; transform: translateY(-10px); }
.slide-down-enter-active { transition: all 0.3s ease; }
.slide-down-leave-active { transition: all 0.3s ease; }
.slide-down-leave-to { opacity: 0; transform: translateY(-10px); }

/* ── Print ── */
@media print {
    .header, .m-footer, .mobile-menu-toggle { display: none; }
    body { background: #fff; }
}
