/* ============================================
   Tìm Phòng Trọ - Airbnb-inspired Light Theme
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #fafafa;
    --bg-secondary: #f3f4f6;
    --bg-tertiary: #e5e7eb;
    --bg-card: #ffffff;
    --bg-card-hover: #f9fafb;
    --glass: rgba(0, 0, 0, 0.03);
    --glass-strong: rgba(0, 0, 0, 0.06);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 0, 0, 0.15);

    --accent: #1e3a5f;
    --accent-hover: #152d4a;
    --accent-light: #2c5282;
    --accent-glow: rgba(30, 58, 95, 0.15);
    --accent-2: #0891b2;
    --accent-2-light: #06b6d4;
    --accent-3: #f59e0b;

    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #a0aec0;
    --text-price: #16a34a;

    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #16a34a;
    --warning: #f59e0b;

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(30, 58, 95, 0.08);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    --nav-height: 72px;
    --container-width: 1280px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---------- Subtle Background ---------- */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(30, 58, 95, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(8, 145, 178, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navigation ---------- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 32px;
    color: var(--accent);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}



.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link .material-symbols-rounded {
    font-size: 20px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--glass);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(30, 58, 95, 0.08);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* ---------- Main Content ---------- */
#app {
    min-height: calc(100vh - var(--nav-height));
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 60px;
}

/* ---------- Page Header ---------- */
.page-header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out;
}

.page-header h1 {
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.filter-section {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Price Sort Dropdown */
.price-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.price-sort-icon {
    color: var(--accent-2);
    font-size: 20px;
    pointer-events: none;
}

.price-sort-select {
    padding: 12px 40px 12px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    appearance: none;
    -webkit-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='%2394a3b8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    min-width: 170px;
}

.price-sort-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
}

.price-sort-select:hover {
    border-color: var(--glass-border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.price-sort-select:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
    color: var(--text-primary);
}

/* Active sort state - when not default */
.price-sort-select:not([data-default="true"]):not(:first-child) {
    color: var(--text-primary);
}

.filter-btn {
    padding: 12px 28px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    opacity: 0;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--glass-border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.filter-btn.active::before {
    opacity: 1;
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

/* ---------- Room Cards Grid ---------- */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.room-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.room-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.04), rgba(8, 145, 178, 0.04));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.room-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-md);
}

.room-card:hover::before {
    opacity: 1;
}

.room-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.room-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    background: rgba(10, 10, 26, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 1;
}

.room-card-body {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.room-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
}

.room-card:hover .room-card-title {
    color: var(--accent-light);
}

.room-card-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-price);
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.room-card-price small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.room-card-address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.room-card-address .material-symbols-rounded {
    font-size: 16px;
    color: var(--accent-2);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---------- Contact CTA Banner ---------- */
.contact-cta-banner {
    margin-top: 48px;
    padding: 0 4px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.cta-3d-frame {
    text-align: center;
    padding: 36px 28px;
    background: #fff5f5;
    border: 2px solid #e53e3e;
    border-radius: var(--radius);
    box-shadow:
        0 4px 0 0 #c53030,
        0 8px 20px rgba(229, 62, 62, 0.15);
    transition: var(--transition);
    position: relative;
}

.cta-3d-frame:hover {
    transform: translateY(-3px);
    box-shadow:
        0 7px 0 0 #c53030,
        0 14px 30px rgba(229, 62, 62, 0.2);
}

.cta-icon-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    border-radius: 50%;
    margin-bottom: 16px;
    animation: ctaPulse 2s ease-in-out infinite;
}

.cta-icon-pulse .material-symbols-rounded {
    font-size: 28px;
    color: white;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(229, 62, 62, 0); }
}

.cta-main-text {
    color: #c53030;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 500;
}

.cta-main-text strong {
    color: #9b2c2c;
    font-weight: 700;
}

.cta-zalo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.cta-zalo-link:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.cta-zalo-link .material-symbols-rounded {
    font-size: 20px;
}

/* ---------- Empty State (Admin placeholders) ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .material-symbols-rounded {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 1rem;
}

/* ============================================
   DETAIL PAGE
   ============================================ */
.detail-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    animation: fadeInUp 0.5s ease-out;
}

.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-bottom: 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

.detail-back-btn:hover {
    color: var(--text-primary);
    background: var(--glass-strong);
    transform: translateX(-4px);
}

/* Gallery */
.gallery-section {
    margin-bottom: 36px;
}

.gallery-main {
    width: 100%;
    height: 480px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    cursor: zoom-in;
    background: var(--bg-secondary);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-main:hover img {
    transform: scale(1.02);
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-strong) transparent;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--glass-strong);
    border-radius: 4px;
}

.gallery-thumb {
    width: 90px;
    height: 68px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: var(--transition);
    opacity: 0.6;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    border-color: var(--accent);
    opacity: 1;
    box-shadow: 0 0 12px var(--accent-glow);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Section */
.video-section {
    margin-bottom: 36px;
}

.video-section h2 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-section h2 .material-symbols-rounded {
    color: var(--accent-2);
}

.video-wrapper {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
}

.video-wrapper video {
    width: 100%;
    display: block;
    max-height: 500px;
}

/* Room Info */
.detail-info {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
}

.detail-info h1 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--glass);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

.detail-info-item .label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-info-item .label .material-symbols-rounded {
    font-size: 16px;
}

.detail-info-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-info-item .value.price {
    color: var(--text-price);
    font-size: 1.4rem;
}

.detail-info-item .value.area-badge {
    color: var(--accent-light);
}

.detail-description {
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.detail-description h3 {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-description h3 .material-symbols-rounded {
    color: var(--accent-2);
    font-size: 22px;
}

.detail-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
}

/* ============================================
   ADMIN LOGIN PAGE
   ============================================ */
.admin-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
    animation: fadeInUp 0.5s ease-out;
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 48px 36px;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.admin-login-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent-glow);
}

.admin-login-icon .material-symbols-rounded {
    font-size: 36px;
    color: white;
}

.admin-login-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.admin-login-card > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 20px;
    pointer-events: none;
}

.password-input-wrapper .form-input {
    padding-left: 46px;
    padding-right: 46px;
    font-size: 1rem;
    height: 52px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--text-primary);
    background: var(--glass);
}

.admin-login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-xs);
    color: #f87171;
    font-size: 0.85rem;
    font-weight: 500;
}

.admin-login-error .material-symbols-rounded {
    font-size: 18px;
    flex-shrink: 0;
}

.admin-login-btn {
    width: 100%;
    height: 50px;
    margin-top: 20px;
    font-size: 1rem;
    justify-content: center;
}

.admin-login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.admin-login-back:hover {
    color: var(--accent-light);
}

.admin-login-back .material-symbols-rounded {
    font-size: 16px;
}

/* Shake animation for wrong password */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* ============================================
   ADMIN PAGE
   ============================================ */
.admin-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    animation: fadeInUp 0.5s ease-out;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

/* Admin Tab Navigation */
.admin-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
    animation: fadeInUp 0.4s ease-out 0.1s both;
}

.admin-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.admin-tab .material-symbols-rounded {
    font-size: 28px;
    transition: var(--transition);
}

.admin-tab-text {
    text-align: center;
    line-height: 1.3;
}

.admin-tab-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 11px;
}

.admin-tab:hover {
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.admin-tab:hover .material-symbols-rounded {
    color: var(--accent-light);
}

.admin-tab.active {
    background: rgba(30, 58, 95, 0.06);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.admin-tab.active .material-symbols-rounded {
    color: var(--accent-light);
}

.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 3px 3px 0 0;
}

/* Special style for "Thêm phòng mới" tab */
.admin-tab[data-action="add"] {
    border-style: dashed;
    border-color: rgba(30, 58, 95, 0.2);
}

.admin-tab[data-action="add"]:hover {
    border-color: var(--accent);
    border-style: solid;
}

.admin-tab[data-action="add"] .material-symbols-rounded {
    color: var(--accent);
}

/* Tab Content */
.admin-tab-content {
    display: none;
    animation: fadeInUp 0.3s ease-out;
}

.admin-tab-content.active {
    display: block;
}

.admin-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-header h1 .material-symbols-rounded {
    color: var(--accent);
    font-size: 32px;
}

/* Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--glass);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    color: var(--text-primary);
    background: var(--glass-strong);
    border-color: var(--glass-border-hover);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Admin Search Bar */
.admin-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    animation: fadeInUp 0.4s ease-out 0.1s both;
}

.admin-search-icon {
    position: absolute;
    left: 16px;
    font-size: 22px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

.admin-search-input {
    width: 100%;
    padding: 14px 48px 14px 50px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.admin-search-input::placeholder {
    color: var(--text-muted);
}

.admin-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.admin-search-input:focus ~ .admin-search-icon,
.admin-search-input:not(:placeholder-shown) ~ .admin-search-icon {
    color: var(--accent-light);
}

.admin-search-clear {
    position: absolute;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.admin-search-clear:hover {
    background: var(--glass-strong);
    color: var(--text-primary);
}

.admin-search-clear.hidden {
    display: none;
}

/* Section Labels */
.admin-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding: 0 4px;
}

.admin-section-label .material-symbols-rounded {
    font-size: 20px;
}

.admin-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--glass-strong);
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-count-badge.expired-badge {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Expired Room Styles */
.admin-room-expired {
    border-color: rgba(239, 68, 68, 0.25) !important;
    opacity: 0.75;
}

.admin-room-expired:hover {
    opacity: 1;
}

.expired-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.expired-date {
    color: var(--danger) !important;
}

.expired-section {
    background: rgba(239, 68, 68, 0.03);
    border-color: rgba(239, 68, 68, 0.15) !important;
    border-radius: var(--radius-sm);
    padding: 20px;
}

/* Admin Room List */
.admin-room-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-room-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.admin-room-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
}

.admin-room-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.admin-room-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-room-info {
    flex: 1;
    min-width: 0;
}

.admin-room-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-room-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-room-meta .price-text {
    color: var(--text-price);
    font-weight: 600;
}

.admin-room-meta .area-text {
    color: var(--accent-light);
    font-weight: 600;
}

/* Room Type Tags */
.type-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.type-studio {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

.type-phongtro {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

/* Type filter buttons style */
.filter-btn-type {
    gap: 4px;
}

.admin-room-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    width: 100%;
    max-width: 680px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.95) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 .material-symbols-rounded {
    color: var(--accent);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0;
}

.modal-close .material-symbols-rounded {
    font-size: 20px;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ---------- Form Styles ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-select {
    cursor: pointer;
    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='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Title Type Selector (Radio Cards) */
.title-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.type-radio-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
}

.type-radio-card input[type="radio"] {
    display: none;
}

.type-radio-card .material-symbols-rounded {
    font-size: 24px;
    transition: var(--transition);
}

.type-radio-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
    color: var(--text-primary);
}

.type-radio-card.selected {
    background: rgba(30, 58, 95, 0.08);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.type-radio-card.selected .material-symbols-rounded {
    color: var(--accent-light);
}

/* Title Auto Preview */
.title-auto-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.title-auto-preview .material-symbols-rounded {
    font-size: 18px;
    color: var(--accent-light);
}

.title-auto-preview strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--accent);
    background: rgba(30, 58, 95, 0.04);
}

.upload-area.dragover {
    border-color: var(--accent);
    background: rgba(30, 58, 95, 0.08);
}

.upload-area .material-symbols-rounded {
    font-size: 40px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.upload-area p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.upload-area p strong {
    color: var(--accent-light);
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Upload Previews */
.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.upload-preview-item {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition-fast);
    line-height: 1;
}

.upload-preview-item .remove-btn:hover {
    background: var(--danger);
}

.video-preview {
    margin-top: 12px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.video-preview video {
    width: 100%;
    max-height: 200px;
    display: block;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.lightbox.hidden {
    display: none;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-nav .material-symbols-rounded {
    font-size: 28px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 22px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 280px;
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.success .material-symbols-rounded {
    color: var(--success);
}

.toast.error {
    border-left: 3px solid var(--danger);
}

.toast.error .material-symbols-rounded {
    color: var(--danger);
}

.toast.info {
    border-left: 3px solid var(--accent-2);
}

.toast.info .material-symbols-rounded {
    color: var(--accent-2);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

/* ============================================
   CONFIRM DIALOG
   ============================================ */
.confirm-dialog {
    text-align: center;
    padding: 20px 0;
}

.confirm-dialog .material-symbols-rounded {
    font-size: 56px;
    color: var(--danger);
    margin-bottom: 16px;
}

.confirm-dialog h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.confirm-dialog p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.confirm-dialog .btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-confirm-delete {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--danger), var(--danger-hover));
    color: white;
    border: none;
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-confirm-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.btn-cancel {
    padding: 12px 28px;
    background: var(--glass);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    color: var(--text-primary);
    background: var(--glass-strong);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.animate-card {
    animation: fadeInUp 0.5s ease-out both;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.35rem; }

    .nav-link span:last-child {
        display: none;
    }

    .nav-link {
        padding: 10px 14px;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .filter-bar {
        flex-direction: column;
        gap: 14px;
    }

    .filter-section {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.82rem;
    }

    .price-sort-wrapper {
        width: 100%;
        justify-content: center;
    }

    .price-sort-select {
        flex: 1;
        max-width: 240px;
    }

    .gallery-main {
        height: 280px;
    }

    .detail-info {
        padding: 20px;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .admin-tab {
        padding: 14px 10px;
        font-size: 0.78rem;
    }

    .admin-tab .material-symbols-rounded {
        font-size: 24px;
    }

    .admin-room-item {
        flex-wrap: wrap;
    }

    .admin-room-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .modal {
        margin: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

@media (max-width: 480px) {
    .admin-room-thumb {
        display: none;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .gallery-main {
        height: 220px;
    }

    .detail-info h1 {
        font-size: 1.4rem;
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-strong);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(30, 58, 95, 0.2);
    color: white;
}

/* ---------- No images placeholder ---------- */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    color: var(--text-muted);
}

.no-image-placeholder .material-symbols-rounded {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.no-image-placeholder span {
    font-size: 0.8rem;
}

/* ============================================
   WATERMARK OVERLAY
   ============================================ */
.watermark {
    position: relative;
    overflow: hidden;
}

.watermark::after {
    content: 'TRẦN XUÂN ĐẠT • 0965278868   ◆   TRẦN XUÂN ĐẠT • 0965278868   ◆   TRẦN XUÂN ĐẠT • 0965278868';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    text-align: center;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 18px;
    font-weight: 800;
    color: white;
    opacity: 0.2;
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
    letter-spacing: 3px;
    user-select: none;
    font-family: 'Inter', sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Larger watermark for big images (detail gallery) */
.watermark-lg::after {
    font-size: 26px;
    letter-spacing: 5px;
}

/* Lightbox watermark */
.lightbox-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    text-align: center;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 32px;
    font-weight: 800;
    color: white;
    opacity: 0.18;
    white-space: nowrap;
    pointer-events: none;
    z-index: 3002;
    letter-spacing: 5px;
    user-select: none;
    font-family: 'Inter', sans-serif;
}

/* Smaller watermark for cards */
@media (max-width: 768px) {
    .watermark::after {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .watermark-lg::after {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .lightbox-watermark {
        font-size: 20px;
        letter-spacing: 3px;
    }
}

/* ============================================
   FLOATING CONTACT BUTTONS
   ============================================ */
.floating-contact {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}

.floating-contact.hidden {
    display: none;
}

.float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: floatBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    overflow: visible;
}

.float-btn:nth-child(1) {
    animation-delay: 0.3s;
}

.float-btn:nth-child(2) {
    animation-delay: 0.5s;
}

.float-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.float-btn:active {
    transform: scale(0.95);
}

/* Phone Button - Green */
.float-btn-phone {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    animation: floatBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both,
               phoneShake 3s ease-in-out 2s infinite;
}

.float-btn-phone:hover {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

/* Zalo Button - Blue */
.float-btn-zalo {
    background: linear-gradient(135deg, #0068ff, #0054d9);
    animation: floatBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both,
               zaloPulse 3s ease-in-out 2.5s infinite;
}

.float-btn-zalo:hover {
    background: linear-gradient(135deg, #3d8bff, #0068ff);
}

/* Floating Label */
.float-btn-label {
    position: absolute;
    right: calc(100% + 12px);
    white-space: nowrap;
    padding: 8px 16px;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.float-btn:hover .float-btn-label {
    opacity: 1;
    transform: translateX(0);
}

/* Pulse ring effect */
.float-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: pulseRing 2s ease-out infinite;
    pointer-events: none;
}

.float-btn-phone .float-pulse {
    border-color: #22c55e;
}

.float-btn-zalo .float-pulse {
    border-color: #0068ff;
}

/* Animations */
@keyframes floatBounceIn {
    0% {
        opacity: 0;
        transform: scale(0) translateY(40px);
    }
    60% {
        opacity: 1;
        transform: scale(1.15) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.45);
        opacity: 0;
    }
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@keyframes phoneShake {
    0%, 100% { transform: rotate(0deg); }
    2% { transform: rotate(-12deg); }
    4% { transform: rotate(12deg); }
    6% { transform: rotate(-10deg); }
    8% { transform: rotate(10deg); }
    10% { transform: rotate(-6deg); }
    12% { transform: rotate(6deg); }
    14% { transform: rotate(0deg); }
}

@keyframes zaloPulse {
    0%, 100% { transform: scale(1); }
    5% { transform: scale(1.15); }
    10% { transform: scale(1); }
    15% { transform: scale(1.1); }
    20% { transform: scale(1); }
}

/* Admin Contact Settings Section */
.admin-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.admin-section-header h2 .material-symbols-rounded {
    color: var(--accent-2);
}

.contact-settings-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 600px;
}

.contact-settings-form .form-group {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 16px;
        gap: 12px;
    }

    .float-btn {
        width: 54px;
        height: 54px;
    }

    .float-btn svg {
        width: 24px;
        height: 24px;
    }

    .float-btn-label {
        display: none;
    }

    .contact-settings-form {
        grid-template-columns: 1fr;
    }
}
