:root {
    --accent: #b56c5e;               /* สีชมพูน้ำตาลหลัก [cite: 1060] */
    --accent-light: #e29f8c;         /* สีชมพูอ่อน [cite: 1060] */
    --btn-glow-bg: linear-gradient(145deg, #ffefe8, #ffd8c9); /* พื้นหลังปุ่มชมพูพาสเทล [cite: 1060] */
    --btn-glow-text: #b26c5e;        /* ตัวอักษรสีชมพูเข้ม [cite: 1060] */
    --btn-glow-shadow: rgba(255, 216, 201, 0.8); /* เงาเรืองแสงสีชมพู [cite: 1060] */
    --text-dark: #8c5a5a;            /* ตัวอักษรโทนน้ำตาลชมพู [cite: 1061] */
    --text-muted: #b87a7a;           /* ตัวอักษรสีจางโทนชมพู [cite: 1061] */
    --bg-glass: rgba(255, 255, 255, 0.6);
    --modal-bg: #111111; 
    --modal-input-bg: #1a1a1a;
    --badge-green: #10b981;
    --dash-bg: #0f0f0f;
    --dash-gold: var(--accent);       /* ใช้สีชมพูหลักแทนสีทอง [cite: 1061] */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-image: url('marble-bg.png'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; background-color: #fdf5f5; font-family: 'Prompt', sans-serif; min-height: 100vh; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; background: rgba(255, 245, 240, 0.4); pointer-events: none; z-index: -1; }
body.modal-open { overflow: hidden; }

/* NAVBAR */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: var(--bg-glass); backdrop-filter: blur(15px); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); position: sticky; top: 0; z-index: 100; }
.logo-img { height: 50px; width: auto; object-fit: contain; filter: drop-shadow(2px 4px 6px rgba(181, 108, 94, 0.1)); cursor: pointer;}
.nav-center-group { display: flex; gap: 25px; align-items: center; } 
.nav-links { display: flex; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 500; cursor: pointer; transition:0.2s;}
.nav-links a:hover, .nav-links a.active { color: var(--accent); font-weight: 600;}
.nav-actions { display: flex; gap: 15px; align-items: center; }
.lang-switch { display: flex; background: rgba(255,255,255,0.5); border-radius: 50px; padding: 4px; border: 1px solid rgba(181, 108, 94, 0.2); }
.lang-btn { background: transparent; border: none; padding: 4px 10px; border-radius: 50px; font-family: 'Prompt'; font-size: 0.85rem; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; gap: 5px; transition: 0.2s;}
.lang-btn.active { background: white; color: var(--accent); box-shadow: 0 2px 5px rgba(0,0,0,0.05); font-weight: 600; }
.nav-user-chip { display: flex; align-items: center; gap: 10px; background: white; padding: 4px 15px 4px 4px; border-radius: 50px; border: 1px solid rgba(181, 108, 94, 0.2); cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(181, 108, 94, 0.05);}
.nav-user-chip:hover { border-color: var(--accent); transform: translateY(-2px);}
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--btn-glow-bg); color: var(--btn-glow-text); display: flex; justify-content: center; align-items: center; font-weight: bold; border: 1px solid rgba(255,255,255,0.8);}
.nav-user-info { display: flex; flex-direction: column; line-height: 1.1; text-align: left;}
.nav-user-name { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.nav-user-role { font-size: 0.7rem; color: var(--text-muted); }
.auth-buttons { display: flex; gap: 10px; align-items: center; }
.btn-outline { background: #ffffff; color: var(--accent); border: 1px solid var(--accent); padding: 8px 20px; border-radius: 50px; font-weight: 500; cursor: pointer; font-family: 'Prompt'; font-size: 1rem; display: block; transition: 0.2s;}
.btn-outline:hover { background: rgba(181, 108, 94, 0.05); }
.btn-logout { background: #ffffff; color: #ff4d4f; border: 1px solid #ff4d4f; padding: 8px 15px; border-radius: 50px; cursor: pointer; font-family: 'Prompt'; font-weight: 500; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; transition: 0.2s;}
.btn-logout:hover { background: #fff1f0; }
.btn-glow { background: var(--btn-glow-bg) !important; color: var(--btn-glow-text) !important; border: none !important; box-shadow: 0 0 15px 4px var(--btn-glow-shadow) !important; transition: all 0.2s ease !important; font-family: 'Prompt', sans-serif; font-weight: 600 !important; cursor: pointer; }
.btn-glow:hover { transform: translateY(-2px) !important; box-shadow: 0 0 25px 6px rgba(255, 200, 180, 0.9) !important; filter: brightness(1.05) !important; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 2rem; color: var(--text-dark); cursor: pointer; }

@media (max-width: 850px) { .nav-center-group, .nav-actions { display: none !important; } .mobile-menu-btn { display: block !important; } }

/* MOBILE MENU */
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(3px); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mobile-bottom-sheet { position: fixed; bottom: -100%; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border-radius: 30px 30px 0 0; padding: 20px 25px 30px 25px; z-index: 1000; box-shadow: 0 -5px 25px rgba(0,0,0,0.1); transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; gap: 20px; }
.mobile-bottom-sheet.active { bottom: 0; }
.sheet-handle { width: 50px; height: 5px; background: rgba(181, 108, 94, 0.3); border-radius: 10px; margin: 0 auto 10px auto; }
.sheet-links { display: flex; flex-direction: column; gap: 10px; }
.sheet-links a { display: flex; align-items: center; gap: 15px; text-decoration: none; color: var(--text-dark); font-size: 1.1rem; font-weight: 500; padding: 12px 0; border-bottom: 1px solid rgba(181, 108, 94, 0.1); }
.sheet-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(181, 108, 94, 0.1); }

/* VIEW SWITCHER */
.view-section { display: none; animation: fadeIn 0.3s ease; }
.view-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* SEARCH & FILTER */
.search-filter-container { max-width: 1400px; margin: 20px auto 0 auto; padding: 0 5%; display: flex; flex-direction: column; gap: 15px; }
.search-box { position: relative; width: 100%; max-width: 500px; margin: 0 auto; }
.search-input { width: 100%; padding: 12px 20px 12px 45px; border-radius: 50px; border: 1px solid rgba(181, 108, 94, 0.3); background: rgba(255,255,255,0.8); backdrop-filter: blur(5px); font-family: 'Prompt'; font-size: 1rem; color: var(--text-dark); outline: none; transition: 0.2s; box-shadow: 0 4px 15px rgba(0,0,0,0.05);}
.search-input:focus { border-color: var(--accent); box-shadow: 0 4px 20px rgba(181, 108, 94, 0.15); background: #fff;}
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.2rem; }
.filter-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip { padding: 6px 15px; border-radius: 50px; background: rgba(255,255,255,0.6); border: 1px solid rgba(181, 108, 94, 0.2); color: var(--text-dark); font-size: 0.85rem; cursor: pointer; transition: 0.2s; font-family: 'Prompt';}
.chip:hover { background: rgba(255,255,255,0.9); border-color: var(--accent); }
.chip.active { background: var(--btn-glow-bg); color: var(--btn-glow-text); border-color: transparent; font-weight: 600; box-shadow: 0 0 10px var(--btn-glow-shadow);}

/* GRIDS & CARDS */
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; padding: 10px 5% 50px 5%; max-width: 1400px; margin: 0 auto; align-items: stretch; margin-top: 10px;}
.card { background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); border-radius: 20px; padding: 15px; border: 1px solid rgba(255,255,255,0.6); box-shadow: 8px 8px 20px rgba(0,0,0,0.05); cursor: pointer; transition: transform 0.2s; display: flex; flex-direction: column; height: 100%;}
.card:hover { transform: translateY(-5px); box-shadow: 8px 15px 25px rgba(181, 108, 94, 0.15);}
.card-image-box { position: relative; width: 100%; height: 380px; border-radius: 12px; overflow: hidden; margin-bottom: 15px; flex-shrink: 0; background:#000;}
.card-image-box img { width: 100%; height: 100%; object-fit: cover; }
.card-info { text-align: left; flex: 1; display: flex; flex-direction: column;}
.name-group { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.card-name { font-size: 1.2rem; font-weight: 600; color: var(--text-dark); }
.verified-badge-small { font-size: 1.1rem; color: var(--badge-green); }
.card-location { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed rgba(181, 108, 94, 0.3); padding-top: 12px; flex-shrink: 0;}
.price { font-size: 1.25rem; font-weight: bold; color: var(--accent); }
.engagement { font-size: 0.9rem; display: flex; align-items: center; gap: 12px; color: var(--text-dark); }
.badge-image { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; color: var(--btn-glow-text); background: var(--btn-glow-bg); z-index: 10;}
.badge-hot { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; color: white; background: linear-gradient(45deg, #ef4444, #f97316); z-index: 10; animation: pulseHot 2s infinite;}
@keyframes pulseHot { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.heart-btn-card { position: absolute; bottom: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.3); display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 10; transition: 0.2s;}
.no-results { grid-column: 1 / -1; text-align: center; padding: 50px; color: var(--text-muted); font-size: 1.1rem; background: rgba(255,255,255,0.5); border-radius: 20px;}

/* AGENCY PUBLIC CARD & LEADERBOARD */
.agency-public-card { background: rgba(255,255,255,0.8); border: 1px solid rgba(181, 108, 94, 0.2); border-radius: 20px; padding: 30px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: 0.3s;}
.agency-public-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 25px rgba(181, 108, 94, 0.15);}
.ag-public-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--btn-glow-bg); color: var(--btn-glow-text); display: flex; justify-content: center; align-items: center; font-size: 2rem; font-weight: bold; margin: 0 auto 15px auto;}
.rank-badge { position: absolute; top: -15px; left: -15px; width: 45px; height: 45px; border-radius: 50%; background: linear-gradient(135deg, #FFD700, #FDB931); color: #fff; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; font-weight: bold; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 20;}
.rank-2 { background: linear-gradient(135deg, #E0E0E0, #9E9E9E); }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #8D5A24); }

/* AUTH MODALS */
.auth-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; padding: 20px; }
.auth-overlay.active { opacity: 1; visibility: visible; }
.auth-modal { background: var(--modal-bg); width: 100%; max-width: 480px; border-radius: 20px; border: 1px solid rgba(181, 108, 94, 0.3); padding: 35px 30px; position: relative; transform: scale(0.9); transition: transform 0.3s; max-height: 90vh; overflow-y: auto; scrollbar-width: none; color: #fff;}
.auth-modal::-webkit-scrollbar { display: none; }
.auth-overlay.active .auth-modal { transform: scale(1); }
.close-modal { position: absolute; top: 15px; right: 15px; background: none; border: none; color: #888; font-size: 1.5rem; cursor: pointer; }
.auth-header { text-align: center; margin-bottom: 25px; }
.auth-form { display: none; flex-direction: column; gap: 18px; }
.auth-form.active { display: flex; }
.input-group { display: flex; flex-direction: column; gap: 6px; text-align: left;}
.input-group label { color: #ddd; font-size: 0.9rem; }
.auth-input { background: var(--modal-input-bg); border: 1px solid rgba(181, 108, 94, 0.2); border-radius: 8px; padding: 12px 15px; color: #fff; font-family: 'Prompt'; font-size: 1rem; width: 100%; outline: none;}
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 5px; }
.role-card { background: var(--modal-input-bg); border: 1px solid rgba(181, 108, 94, 0.2); border-radius: 12px; padding: 15px; text-align: center; cursor: pointer; transition: all 0.2s; }
.role-card:hover { border-color: #777; }
.role-radio { display: none; }
.role-radio:checked + .role-card { border-color: var(--dash-gold); background: rgba(181, 108, 94, 0.1); color: var(--dash-gold);}
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; color: #888; }
.auth-link { color: var(--dash-gold); text-decoration: none; font-weight: 500; cursor: pointer; margin-left: 5px;}

/* PROFILE DETAIL OVERLAY */
.profile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #0f0f0f; z-index: 4000; overflow-y: auto; opacity: 0; visibility: hidden; transition: all 0.3s ease; font-family: 'Prompt', sans-serif; display: flex; flex-direction: column; }
.profile-overlay.active { opacity: 1; visibility: visible; transform: translateY(0); }
.btn-back-profile { position: absolute; top: 20px; left: 20px; width: 45px; height: 45px; border-radius: 50%; background: rgba(0,0,0,0.5); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); color: white; font-size: 1.5rem; display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 4010; transition: 0.2s; }
.profile-hero { width: 100%; height: 55vh; position: relative; flex-shrink: 0; background: #000;}
.profile-hero img, .profile-hero video { width: 100%; height: 100%; object-fit: cover; object-position: center;}
.hero-gradient { position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(0deg, #0f0f0f 0%, transparent 100%); pointer-events: none;}
.pro-thumb-container { display: flex; gap: 10px; padding: 15px 5%; overflow-x: auto; scrollbar-width: none; background: #0f0f0f; margin-top: -20px; position: relative; z-index: 4005;}
.pro-thumb-item { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: 0.5; transition: 0.2s; flex-shrink: 0; background: #000;}
.pro-thumb-item.active { border-color: var(--dash-gold); opacity: 1; }
.pro-thumb-item img, .pro-thumb-item video { width: 100%; height: 100%; object-fit: cover; }
.profile-content { max-width: 600px; width: 100%; margin: 10px auto 0 auto; padding: 0 5%; position: relative; z-index: 4005; color: white; flex: 1 0 auto; padding-bottom: 30px;}
.pro-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px;}
.pro-name { font-size: 2.2rem; font-weight: 600; color: #fff; line-height: 1; margin-bottom: 5px;}
.pro-slogan { font-size: 1rem; color: var(--dash-gold); margin-bottom: 5px; font-style: italic;}
.pro-location { color: #888; font-size: 0.9rem; display: flex; align-items: center; gap: 4px; }
.pro-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 25px; }
.pro-stat-item { background: #161616; border: 1px solid #2a2a2a; border-radius: 12px; padding: 12px 5px; text-align: center; }
.pro-stat-val { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 2px;}
.pro-stat-label { font-size: 0.75rem; color: #888;}
.pro-socials { display: flex; gap: 10px; margin-bottom: 25px;}
.btn-social { background: #161616; border: 1px solid #2a2a2a; color: #fff; padding: 8px 20px; border-radius: 50px; display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 0.9rem;}
.pro-section { margin-bottom: 25px;}
.pro-sec-title { font-size: 1.1rem; color: #fff; margin-bottom: 12px; font-weight: 500; display: flex; align-items: center; gap: 8px;}
.pro-desc-box { background: #161616; border: 1px solid #2a2a2a; border-radius: 16px; padding: 20px; border-left: 4px solid var(--dash-gold); line-height: 1.6; color: #ccc; white-space: pre-wrap; font-size: 0.95rem;}
.sticky-booking-bar { position: sticky; bottom: 0; left: 0; width: 100%; background: rgba(22,22,22,0.95); backdrop-filter: blur(10px); border-top: 1px solid #2a2a2a; padding: 15px 5%; display: flex; justify-content: center; z-index: 4020; margin-top: auto; }
.sticky-booking-container { max-width: 600px; width: 100%; display: flex; justify-content: space-between; align-items: center; }
.book-price { font-size: 1.5rem; font-weight: bold; color: var(--dash-gold); }
.review-card { background: #161616; border: 1px solid #2a2a2a; border-radius: 12px; padding: 15px; margin-top: 15px;}
.review-header { display: flex; justify-content: space-between; margin-bottom: 5px;}
.review-user { font-weight: 500; font-size: 0.95rem; color: #fff;}
.review-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 8px;}
.review-text { color: #aaa; font-size: 0.9rem;}
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 5px; font-size: 1.8rem; cursor: pointer; }
.star-rating .iconify { color: #444; }
.star-rating .iconify:hover, .star-rating .iconify:hover ~ .iconify, .star-rating .iconify.selected { color: #fbbf24; }

/* DASHBOARDS */
.dashboard-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #0f0f0f; z-index: 5000; display: flex; opacity: 0; visibility: hidden; transition: all 0.3s ease; font-family: 'Prompt', sans-serif; color: #fff; }
.dashboard-overlay.active { opacity: 1; visibility: visible; }
.dash-sidebar { width: 250px; background: #141414; border-right: 1px solid #222; padding: 20px 0; display: flex; flex-direction: column; }
.dash-logo { padding: 0 20px 30px 20px; font-size: 1.2rem; font-weight: 600; color: var(--dash-gold); display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #222; margin-bottom: 20px;}
.dash-nav { display: flex; flex-direction: column; gap: 5px; padding: 0 10px; }
.dash-nav-item { padding: 12px 20px; color: #888; text-decoration: none; border-radius: 8px; display: flex; align-items: center; gap: 12px; transition: 0.2s; cursor: pointer; font-size: 0.95rem;}
.dash-nav-item:hover, .dash-nav-item.active { background: rgba(181, 108, 94, 0.1); color: var(--dash-gold); border-left: 3px solid var(--dash-gold); }
.dash-main { flex: 1; overflow-y: auto; background: #0f0f0f; position: relative; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; background: rgba(15,15,15,0.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5010; border-bottom: 1px solid #222;}
.ag-content-pad { padding: 40px; }
.ag-view { display: none; animation: fadeIn 0.3s ease; }
.ag-view.active { display: block; }
.dash-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.dash-page-title { font-size: 1.5rem; font-weight: 600; color: #fff;}
.ag-stats-card-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.ag-stat-box { background: #161616; border: 1px solid #2a2a2a; border-radius: 12px; padding: 20px; position: relative; transition: 0.2s;}
.ag-stat-icon { width: 35px; height: 35px; border-radius: 8px; background: rgba(181, 108, 94, 0.1); color: var(--dash-gold); display: flex; justify-content: center; align-items: center; font-size: 1.2rem; margin-bottom: 15px; }
.ag-stat-val { font-size: 1.8rem; font-weight: 600; color: #fff; margin-bottom: 5px;}
.ag-stat-label { font-size: 0.85rem; color: #888;}
.ag-stat-badge { position: absolute; top: 20px; right: 20px; background: rgba(16, 185, 129, 0.1); color: #10b981; font-size: 0.75rem; padding: 4px 8px; border-radius: 50px; font-weight: 600;}
.ag-section-box { background: #161616; border: 1px solid #2a2a2a; border-radius: 12px; padding: 25px; margin-bottom: 20px; }
.ag-contact-row { display: flex; align-items: center; margin-bottom: 15px; gap: 15px;}
.ag-progress-bar-bg { flex: 1; height: 6px; background: #222; border-radius: 50px; overflow: hidden;}
.ag-progress-fill { height: 100%; border-radius: 50px;}

/* FORMS */
.form-card { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 16px; margin-bottom: 25px; overflow: hidden;}
.form-card-header { background: #1e1e1e; padding: 15px 25px; border-bottom: 1px solid #2a2a2a; font-weight: 500; display: flex; align-items: center; gap: 10px; color: var(--dash-gold);}
.form-card-body { padding: 25px; }
.form-grid-1 { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px;}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px;}
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 20px;}
.form-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 20px;}
.form-group { display: flex; flex-direction: column; gap: 8px; text-align: left;}
.form-input { background: #111; border: 1px solid #333; color: #fff; padding: 12px 15px; border-radius: 8px; font-family: 'Prompt'; outline: none; width: 100%;}
.form-input:focus { border-color: var(--dash-gold); }
.upload-zone { border: 1.5px dashed #444; border-radius: 12px; padding: 40px 20px; text-align: center; background: #111; cursor: pointer; position: relative;}
.upload-zone input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.gallery-preview { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.img-thumb-box { width: 90px; height: 120px; position: relative; border-radius: 8px; overflow: hidden; border: 2px solid #333; background: #000; display:flex; justify-content:center; align-items:center;}
.img-thumb-box img, .img-thumb-box video { width: 100%; height: 100%; object-fit: cover; }
.btn-remove-img { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.8); color: white; border: 1px solid #444; border-radius: 50%; width: 22px; height: 22px; cursor: pointer;}
.ag-card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 20px;}
.ag-profile-card { background: #161616; border: 1px solid #2a2a2a; border-radius: 12px; overflow: hidden; position: relative;}
.ag-card-img { width: 100%; height: 250px; object-fit: cover;}
.ag-card-content { padding: 15px;}
.btn-ag-action { width: 100%; padding: 8px; border-radius: 6px; font-size: 0.9rem; display: flex; justify-content: center; align-items: center; gap: 5px; cursor: pointer; font-family: 'Prompt'; border: 1px solid transparent;}

/* MODALS */
.kyc-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 6000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.3s;}
.kyc-overlay.active { opacity: 1; visibility: visible; }
.kyc-modal { background: #161616; width: 100%; max-width: 500px; border-radius: 16px; border: 1px solid #333; padding: 25px; position: relative; max-height: 90vh; overflow-y: auto;}
.my-profiles-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #161616; border-radius: 12px; overflow: hidden; border: 1px solid #222;}
.my-profiles-table th, .my-profiles-table td { padding: 15px; border-bottom: 1px solid #222; text-align: left; }
.wallet-card { background: linear-gradient(135deg, #1e1e1e 0%, #111 100%); border: 1px solid #333; border-radius: 16px; padding: 30px; text-align: center; max-width: 400px; margin: 0 auto 30px auto; box-shadow: 0 10px 30px rgba(0,0,0,0.5);}
.wallet-balance { font-size: 3.5rem; font-weight: 700; color: var(--btn-glow-text); text-shadow: 0 0 15px var(--btn-glow-shadow); line-height: 1;}

@media (max-width: 768px) {
    .grid-container { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; padding: 10px 3% 30px 3%; }
    .card-image-box { height: 220px; }
    .auth-modal { padding: 25px 20px; border-radius: 0; min-height: 100vh; border: none;}
    .dash-sidebar { display: none; } 
    .dash-topbar { padding: 15px; }
    .ag-content-pad { padding: 20px; }
    .form-grid-2, .form-grid-3, .form-grid-5 { grid-template-columns: 1fr; } 
    .ag-stats-card-group { grid-template-columns: repeat(2, 1fr); }
    .my-profiles-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* 🔥 THEME CUSTOMIZATION 🔥 */
body.theme-gold {
    --accent: #D4AF37; --accent-light: #F3E5AB; 
    --btn-glow-bg: linear-gradient(145deg, #333, #111); 
    --btn-glow-text: #D4AF37; --btn-glow-shadow: rgba(212, 175, 55, 0.4); 
    --text-dark: #fff; --text-muted: #aaa; 
    --bg-glass: rgba(20, 20, 20, 0.8); --dash-bg: #050505; 
    background-color: #111; background-image: none;
}
body.theme-cyber {
    --accent: #00ffcc; --accent-light: #00b3ff; 
    --btn-glow-bg: linear-gradient(145deg, #002233, #001122); 
    --btn-glow-text: #00ffcc; --btn-glow-shadow: rgba(0, 255, 204, 0.5); 
    --text-dark: #fff; --text-muted: #888; 
    --bg-glass: rgba(0, 15, 25, 0.8); --dash-bg: #020205; 
    background-color: #050510; background-image: none;
}
body.theme-pastel {
    --accent: #ff758c; --accent-light: #ff7eb3; 
    --btn-glow-bg: linear-gradient(145deg, #fff, #ffe5ec); 
    --btn-glow-text: #ff758c; --btn-glow-shadow: rgba(255, 117, 140, 0.4); 
    --text-dark: #555; --text-muted: #999; 
    --bg-glass: rgba(255, 255, 255, 0.8); --dash-bg: #fefefe; 
    background-color: #fcf9f9; background-image: none;
}
.theme-select-card { cursor: pointer; transition: 0.2s; padding: 15px; border-radius: 16px; background: #161616; border: 2px solid #333; }
.theme-select-card:hover { transform: translateY(-5px); border-color: var(--dash-gold); }
/* 🔥 PREMIUM AUTH PAGE 🔥 */
.auth-full-page {
    display: none; justify-content: center; align-items: center; 
    min-height: 100vh; background-color: #0a0a0a; padding: 20px;
    background-image: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
}
.auth-full-page.active { display: flex; }
.auth-premium-card {
    background: #141414; width: 100%; max-width: 450px; 
    padding: 40px 30px; border-radius: 16px; border: 1px solid #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.auth-icon-top {
    width: 60px; height: 60px; background: rgba(212, 175, 55, 0.1); 
    border: 1px solid var(--dash-gold); border-radius: 16px; 
    display: flex; justify-content: center; align-items: center; 
    margin: 0 auto 20px auto; color: var(--dash-gold); font-size: 2rem;
}
.dummy-captcha {
    background: #1a1a1a; border: 1px solid #333; padding: 15px; 
    border-radius: 8px; display: flex; justify-content: space-between; 
    align-items: center; margin-bottom: 20px; color: #fff; font-size: 0.9rem;
}
.role-card-premium {
    background: #111; border: 1px solid #333; border-radius: 12px; 
    padding: 15px 10px; text-align: center; cursor: pointer; transition: 0.3s;
}
.role-radio:checked + .role-card-premium {
    border-color: var(--dash-gold); background: rgba(212, 175, 55, 0.05);
}
/* 🔥 PREMIUM AUTH PAGE 🔥 */
.auth-full-page {
    display: none; justify-content: center; align-items: center; 
    min-height: 100vh; background-color: #0a0a0a !important; padding: 20px;
    background-image: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 50%) !important;
}
.auth-full-page.active { display: flex; }
.auth-premium-card {
    background: #141414 !important; width: 100%; max-width: 450px; 
    padding: 40px 30px; border-radius: 16px; border: 1px solid #333 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8); margin: auto;
}
.auth-icon-top {
    width: 60px; height: 60px; background: rgba(212, 175, 55, 0.1); 
    border: 1px solid var(--dash-gold); border-radius: 16px; 
    display: flex; justify-content: center; align-items: center; 
    margin: 0 auto 20px auto; color: var(--dash-gold); font-size: 2rem;
}
.dummy-captcha {
    background: #1a1a1a !important; border: 1px solid #333 !important; padding: 15px; 
    border-radius: 8px; display: flex; justify-content: space-between; 
    align-items: center; margin-bottom: 20px; color: #fff !important; font-size: 0.9rem;
}
.role-card-premium {
    background: #111 !important; border: 1px solid #333 !important; border-radius: 12px; 
    padding: 15px 10px; text-align: center; cursor: pointer; transition: 0.3s;
}
.role-radio:checked + .role-card-premium {
    border-color: var(--dash-gold) !important; background: rgba(212, 175, 55, 0.05) !important;
}
.auth-premium-card .auth-input {
    background: #111 !important; border: 1px solid #333 !important; color: #fff !important;
}
.auth-premium-card label {
    color: #ccc !important;
}
/* 🔥 PREMIUM DASHBOARD UPGRADE 🔥 */
.dash-sidebar {
    background-color: #0a0a0a !important;
    border-right: 1px solid #222 !important;
}
.dash-nav-item {
    color: #888 !important;
    border-radius: 8px !important;
    margin-bottom: 5px !important;
    transition: all 0.3s ease !important;
}
.dash-nav-item:hover {
    background-color: #1a1a1a !important;
    color: #fff !important;
}
.dash-nav-item.active {
    background-color: rgba(212, 175, 55, 0.1) !important;
    color: var(--dash-gold) !important;
    border-left: 4px solid var(--dash-gold) !important;
}

/* กล่องสถิติสุดหรู */
.ag-stat-box {
    background: #141414 !important;
    border: 1px solid #222 !important;
    border-radius: 12px !important;
}
.ag-stat-box:hover {
    border-color: var(--dash-gold) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1) !important;
}
.ag-stat-val {
    color: #fff !important;
}

/* แก้บั๊กปุ่ม สร้าง QR Code (และปุ่ม Glow อื่นๆ ให้เป็นสีทอง-ดำ ชัดเจน) */
.btn-glow {
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%) !important;
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
    border: none !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}
.btn-glow:hover {
    background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 100%) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5) !important;
}
/* 🔥 PREMIUM PROFILE FORM & CARDS 🔥 */
.form-card {
    background: transparent !important;
    border: 1px solid #333 !important;
    border-radius: 12px !important;
    margin-bottom: 25px !important;
}
.form-card-header {
    background: rgba(255,255,255,0.03) !important;
    border-bottom: 1px solid #333 !important;
    color: var(--dash-gold) !important;
    font-size: 1.1rem !important;
}
.form-input {
    background: #111 !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    transition: 0.3s !important;
}
.form-input:focus {
    border-color: var(--dash-gold) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2) !important;
}
.form-group label {
    color: #ccc !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
}
.form-group label .req {
    color: #ef4444 !important; /* เครื่องหมายดอกจันสีแดง */
}
/* 🔥 PREMIUM AGENCY PROFILE CARD 🔥 */
.ag-pro-card-premium {
    background: #141414;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}
.ag-pro-card-premium:hover {
    border-color: var(--dash-gold);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.ag-pro-card-img-box {
    width: 100%;
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
}
.ag-pro-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ag-pro-card-info {
    padding: 15px;
}
.btn-ag-card-action {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: var(--dash-gold);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-ag-card-action:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--dash-gold);
}
@keyframes skeleton-loading {
    0% { background-color: rgba(226, 159, 140, 0.1); } /* ใช้ค่า --accent-light แบบจาง */
    50% { background-color: rgba(226, 159, 140, 0.3); }
    100% { background-color: rgba(226, 159, 140, 0.1); }
}
.skeleton-img, .skeleton-text {
    animation: skeleton-loading 1.5s infinite ease-in-out;
}
/* --- SKELETON LOADING ANIMATION --- */

/* กำหนดการกะพริบเป็นโทนชมพูจางๆ ตามธีมหลัก */
@keyframes skeleton-loading {
    0% { background-color: rgba(181, 108, 94, 0.1); } /* ใช้สีจาก --accent แบบจาง */
    50% { background-color: rgba(181, 108, 94, 0.2); }
    100% { background-color: rgba(181, 108, 94, 0.1); }
}

/* สไตล์สำหรับการ์ดจำลอง (Skeleton Card) */
.skeleton-card {
    pointer-events: none;
    border: 1px solid rgba(181, 108, 94, 0.1) !important;
}

.skeleton-img, .skeleton-text {
    animation: skeleton-loading 1.5s infinite ease-in-out;
    background-size: 200% 100%;
}

.skeleton-img {
    background-color: #eee;
    height: 380px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.skeleton-text {
    background-color: #eee;
    height: 20px;
    border-radius: 4px;
    margin-bottom: 10px;
}
/* ล้างสีทองทิ้ง ใช้สีชมพู Rose Gold ตามธีมหลัก */
.btn-glow {
    background: var(--btn-glow-bg) !important; /* ชมพูพาสเทลตาม root */
    color: var(--btn-glow-text) !important;   /* ชมพูเข้ม */
    box-shadow: 0 4px 15px var(--btn-glow-shadow) !important;
    border: none !important;
}

.btn-glow:hover {
    filter: brightness(1.05) !important;
    transform: translateY(-2px) !important;
}

.dash-nav-item.active {
    background-color: rgba(181, 108, 94, 0.15) !important; /* ชมพูจาง */
    color: var(--accent) !important; /* ชมพูหลัก #b56c5e */
    border-left: 4px solid var(--accent) !important;
}

.ag-stat-box:hover {
    border-color: var(--accent) !important;
}

/* Skeleton Loading สีชมพู */
@keyframes skeleton-loading {
    0% { background-color: rgba(181, 108, 94, 0.1); }
    50% { background-color: rgba(181, 108, 94, 0.2); }
    100% { background-color: rgba(181, 108, 94, 0.1); }
}
