:root {
    --bg-dark: #0f1012;
    --bg-card-dark: #16181c;
    --bg-light: #fbfaf7;
    --bg-card-light: #ffffff;
    --primary-gold: #d4af37;
    --gold-hover: #f3e5ab;
    --text-dark: #1c1d1f;
    --text-muted: #6e7178;
    --text-light: #f3f4f6;
    --border-color: rgba(212, 175, 55, 0.22);
    --transition: all 0.25s ease;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
.logo-text {
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    color: var(--text-dark);
    font-size: clamp(2.35rem, 4vw, 3.2rem);
    line-height: 1.02;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-align: center;
}

header {
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav-container {
    align-items: center;
    display: flex;
    height: 86px;
    justify-content: space-between;
}

.logo {
    align-items: center;
    color: var(--text-light);
    display: flex;
    gap: 0.8rem;
}

.logo-icon {
    border: 2px solid var(--primary-gold);
    height: 42px;
    transform: rotate(45deg);
    width: 42px;
}

.logo-image {
    display: block;
    height: 58px;
    object-fit: contain;
    width: 58px;
}

.logo-text h2 {
    font-size: 1.72rem;
    line-height: 1;
}

.logo-text span {
    color: var(--primary-gold);
    display: block;
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

nav ul {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

nav a {
    color: var(--text-light);
    font-size: 0.95rem;
}

nav a:hover,
nav a.active {
    color: var(--primary-gold);
}

.btn-verify-nav,
.btn-order,
.search-box button {
    background: var(--primary-gold);
    border: 0;
    border-radius: 7px;
    color: #111;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    padding: 0.85rem 1.35rem;
    transition: var(--transition);
}

.btn-verify-nav:hover,
.btn-order:hover,
.search-box button:hover {
    background: var(--gold-hover);
}

.hero {
    background:
        radial-gradient(circle at 82% 55%, rgba(212, 175, 55, 0.16), transparent 28%),
        linear-gradient(135deg, #111 0%, #17110c 100%);
    color: var(--text-light);
    min-height: 520px;
    overflow: hidden;
    position: relative;
}

.hero::after {
    border: 2px solid var(--primary-gold);
    content: '';
    height: 160px;
    opacity: 0.95;
    position: absolute;
    right: 15%;
    top: 145px;
    transform: rotate(45deg);
    width: 160px;
}

.hero-content {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 0.98;
    margin-bottom: 1.5rem;
}

.hero p {
    color: #d8d5cd;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.search-box {
    background: #fff;
    border-radius: 10px;
    display: flex;
    gap: 1rem;
    max-width: 640px;
    padding: 0.75rem;
}

.search-box input {
    border: 0;
    flex: 1;
    font-size: 1rem;
    outline: 0;
    padding: 0 0.8rem;
}

.hero-features {
    color: var(--gold-hover);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.hero-features span::before {
    background: var(--primary-gold);
    content: '';
    display: inline-block;
    height: 10px;
    margin-right: 0.55rem;
    transform: rotate(45deg);
    width: 10px;
}

.blogs,
.stonopedia {
    background: var(--bg-light);
}

.blog-grid,
.product-grid,
.gallery-grid {
    display: grid;
    gap: 1.6rem;
}

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

.blog-card,
.product-card,
.result-card {
    background: var(--bg-card-light);
    border: 1px solid #e7dfcf;
    border-radius: 8px;
    box-shadow: 0 16px 35px rgba(15, 16, 18, 0.05);
}

.blog-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    padding: 1.5rem;
}

.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    line-height: 1.12;
    margin-bottom: 0.7rem;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
}

.stonopedia {
    background: #fff;
}

.stonopedia-card {
    border-color: rgba(212, 175, 55, 0.45);
}

.content-type-pill,
.content-type-label {
    color: var(--primary-gold);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.split-heading {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    margin: 2rem 0 1.2rem;
}

.read-more {
    color: var(--primary-gold);
    font-weight: 700;
    margin-top: 1rem;
}

.gallery {
    background:
        radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.15), transparent 28%),
        linear-gradient(135deg, #2a241d 0%, #171411 100%);
    color: var(--text-light);
    overflow: hidden;
    position: relative;
}

.gallery .section-title {
    color: var(--text-light);
}

.gallery .section-subtitle {
    color: #d9d0be;
}

.gallery-carousel {
    margin: 0 auto;
    max-width: 860px;
    min-height: 360px;
    position: relative;
}

.gallery-stack {
    height: 310px;
    margin: 0 auto;
    position: relative;
    width: min(760px, 100%);
}

.gallery-photo {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(212, 175, 55, 0.18)),
        #211b17;
    background-position: center;
    background-size: cover;
    border: 7px solid #fff;
    border-radius: 3px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.38);
    display: flex;
    height: 230px;
    justify-content: center;
    overflow: hidden;
    position: absolute;
    top: 38px;
    transition: var(--transition);
    width: 330px;
}

.gallery-photo::after {
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
    content: '';
    inset: 0;
    position: absolute;
    z-index: 1;
}

.gallery-photo-1 {
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    z-index: 7;
}

.gallery-photo-2 {
    left: 50%;
    transform: translateX(-28%) scale(0.9);
    z-index: 6;
}

.gallery-photo-3 {
    left: 50%;
    transform: translateX(-72%) scale(0.9);
    z-index: 5;
}

.gallery-photo-4 {
    left: 50%;
    transform: translateX(2%) scale(0.78);
    z-index: 4;
}

.gallery-photo-5 {
    left: 50%;
    transform: translateX(-102%) scale(0.78);
    z-index: 3;
}

.gallery-photo-6 {
    left: 50%;
    transform: translateX(28%) scale(0.68);
    z-index: 2;
}

.gallery-photo-7 {
    left: 50%;
    transform: translateX(-128%) scale(0.68);
    z-index: 1;
}

.gallery-photo:hover {
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.48);
    filter: brightness(1.06);
    z-index: 10;
}

.gallery-arrow {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-size: 3.2rem;
    height: 58px;
    line-height: 1;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    transition: var(--transition);
    width: 58px;
    z-index: 12;
}

.gallery-arrow:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: var(--primary-gold);
    color: var(--gold-hover);
}

.gallery-arrow-left {
    left: 0;
}

.gallery-arrow-right {
    right: 0;
}

.gallery-carousel-line {
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.48), transparent);
    height: 1px;
    margin: 0 auto;
    max-width: 760px;
}

.gallery-item-bg {
    border: 2px solid rgba(255, 255, 255, 0.75);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-heading);
    padding: 1rem;
    position: absolute;
    transform: rotate(45deg);
    z-index: 2;
}

.gallery-photo h4 {
    background: rgba(255, 255, 255, 0.94);
    bottom: 0.85rem;
    color: #4f351e;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    left: 50%;
    min-width: 68%;
    padding: 0.38rem 0.75rem;
    position: absolute;
    text-align: center;
    transform: translateX(-50%);
    z-index: 2;
}

.product-icon {
    border: 2px solid var(--primary-gold);
    height: 48px;
    margin-bottom: 1rem;
    transform: rotate(45deg);
    width: 48px;
}

.product-image {
    aspect-ratio: 1 / 1;
    border: 1px solid #eadfca;
    border-radius: 8px;
    display: block;
    margin-bottom: 1rem;
    object-fit: cover;
    width: 100%;
}

.pukhraj .product-icon {
    background: #f2c94c;
}

.ruby .product-icon {
    background: #b3263a;
}

.emerald .product-icon {
    background: #1f8a5b;
}

.neelam .product-icon {
    background: #284b9b;
}

.product-card h4 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
}

.product-card span {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

footer {
    background: #090909;
    color: #d7d3c7;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 2fr 1fr 1fr;
}

.footer-heading,
.footer-about h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.result-page {
    background: var(--bg-light);
}

.result-shell {
    padding: 5rem 0;
}

.result-card {
    align-items: center;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.2fr 0.8fr;
    padding: 2rem;
}

.result-card h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.eyebrow {
    color: var(--primary-gold);
    font-weight: 700;
    text-transform: uppercase;
}

.report-preview {
    align-items: center;
    background: #fffaf0;
    border: 1px dashed var(--primary-gold);
    border-radius: 8px;
    display: flex;
    height: 300px;
    justify-content: center;
    position: relative;
}

.report-preview span {
    bottom: 1rem;
    color: var(--text-muted);
    position: absolute;
}

.whatsapp-float {
    align-items: center;
    background: #25d366;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    bottom: 24px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
    color: #fff;
    display: flex;
    font-size: 1.8rem;
    height: 60px;
    justify-content: center;
    position: fixed;
    right: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 60px;
    z-index: 60;
}

.whatsapp-float:hover {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.whatsapp-float span {
    display: block;
    line-height: 1;
    transform: rotate(-18deg);
}

.report-image-link {
    display: block;
}

.report-image {
    background: #fff;
    border: 1px solid #e7dfcf;
    border-radius: 8px;
    display: block;
    max-height: 560px;
    object-fit: contain;
    width: 100%;
}

.compact-search {
    margin-top: 1.5rem;
}

.page-section {
    padding-top: 6rem;
}

.narrow {
    max-width: 820px;
}

.content-page h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.4rem);
    line-height: 1.04;
    margin-bottom: 1.5rem;
    text-align: center;
}

.rich-content {
    background: #fff;
    border: 1px solid #e7dfcf;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 1.05rem;
    padding: 2rem;
}

.admin-login-page,
.install-page {
    align-items: center;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.login-card,
.install-card {
    background: #fff;
    border-radius: 8px;
    max-width: 460px;
    padding: 2rem;
    width: calc(100% - 2rem);
}

.login-card h1,
.install-card h1 {
    font-family: var(--font-heading);
    margin-bottom: 0.8rem;
}

.admin-page {
    --admin-bg: #f5f1e8;
    --admin-surface: rgba(255, 255, 255, 0.82);
    --admin-surface-strong: #ffffff;
    --admin-border: rgba(201, 169, 94, 0.24);
    --admin-ink: #19140f;
    --admin-soft: #7b7162;
    --admin-shadow: 0 24px 60px rgba(54, 42, 22, 0.12);
    --admin-glow: 0 16px 36px rgba(212, 175, 55, 0.22);
    background:
        radial-gradient(circle at 8% 10%, rgba(212, 175, 55, 0.2), transparent 22rem),
        radial-gradient(circle at 92% 0%, rgba(125, 77, 31, 0.12), transparent 26rem),
        linear-gradient(135deg, #fffaf0 0%, var(--admin-bg) 42%, #efe6d6 100%);
    color: var(--admin-ink);
}

.admin-sidebar {
    background:
        radial-gradient(circle at 18% 8%, rgba(212, 175, 55, 0.24), transparent 11rem),
        linear-gradient(180deg, #18110c 0%, #0b0b0d 55%, #070708 100%);
    bottom: 0;
    box-shadow: 24px 0 60px rgba(10, 8, 6, 0.22);
    color: #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    left: 0;
    overflow-y: auto;
    padding: 1.25rem 1rem;
    position: fixed;
    top: 0;
    width: 280px;
}

.admin-sidebar a:not(.admin-brand) {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #d7d3c7;
    display: flex;
    gap: 0.75rem;
    padding: 0.76rem 0.85rem;
    position: relative;
    transition: var(--transition);
}

.admin-sidebar a:not(.admin-brand):hover,
.admin-sidebar a.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(255, 255, 255, 0.06));
    border-color: rgba(212, 175, 55, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    color: var(--primary-gold);
    transform: translateX(3px);
}

.admin-sidebar a.active::before {
    background: var(--primary-gold);
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.8);
    content: '';
    height: 55%;
    left: -0.55rem;
    position: absolute;
    top: 22.5%;
    width: 4px;
}

.admin-brand {
    align-items: center;
    color: var(--primary-gold);
    display: flex;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    padding: 0.45rem 0.25rem 1rem;
}

.admin-brand img {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 16px;
    height: 48px;
    object-fit: contain;
    padding: 0.25rem;
    width: 48px;
}

.admin-nav {
    display: grid;
    gap: 0.2rem;
}

.admin-nav-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.admin-sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 0.2rem;
    margin-top: auto;
    padding-top: 0.9rem;
}

.admin-main {
    margin-left: 280px;
    min-height: 100vh;
    padding: clamp(1.6rem, 2.6vw, 2.8rem);
}

.admin-topbar {
    align-items: center;
    backdrop-filter: blur(18px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 240, 0.68));
    border: 1px solid var(--admin-border);
    border-radius: 22px;
    box-shadow: var(--admin-shadow);
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: clamp(1.25rem, 2vw, 1.8rem);
    position: sticky;
    top: 1rem;
    z-index: 8;
}

.admin-topbar h1 {
    font-family: var(--font-heading);
    line-height: 1.15;
    margin-top: 0.1rem;
}

.admin-eyebrow {
    color: var(--primary-gold);
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-user-chip {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--admin-border);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(35, 26, 15, 0.08);
    display: flex;
    gap: 0.7rem;
    padding: 0.45rem 0.8rem 0.45rem 0.45rem;
}

.admin-user-chip span {
    align-items: center;
    background: linear-gradient(135deg, #f5dd82, var(--primary-gold));
    border-radius: 50%;
    color: #111;
    display: inline-flex;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.admin-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-bottom: 1.5rem;
}

.admin-stat,
.admin-panel,
.admin-form,
.admin-table {
    backdrop-filter: blur(16px);
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    box-shadow: var(--admin-shadow);
}

.admin-stat {
    overflow: hidden;
    padding: 1.25rem;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.admin-stat:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: var(--admin-shadow), var(--admin-glow);
    transform: translateY(-4px);
}

.admin-stat::after {
    background: linear-gradient(135deg, var(--primary-gold), #fff0a8);
    border-radius: 999px;
    content: '';
    height: 86px;
    opacity: 0.16;
    position: absolute;
    right: -28px;
    top: -28px;
    width: 86px;
}

.admin-stat-icon {
    align-items: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(212, 175, 55, 0.26);
    border-radius: 15px;
    color: #8a6a10;
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    margin-bottom: 0.8rem;
    width: 42px;
}

.admin-stat span {
    color: var(--admin-soft);
    display: block;
    font-weight: 700;
}

.admin-stat strong {
    display: block;
    font-size: 2.25rem;
    letter-spacing: -0.04em;
}

.admin-panel {
    padding: 1.55rem;
}

.admin-panel,
.admin-form,
.admin-filter-bar,
.admin-table {
    margin-bottom: 1.4rem;
}

.admin-main > .admin-panel,
.admin-main > .admin-form,
.admin-main > .admin-filter-bar,
.admin-main > .admin-table {
    width: 100%;
}

.admin-panel-heading {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.7rem;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.2rem 0 1.4rem;
}

.admin-actions form {
    margin: 0;
}

.admin-page .btn-order {
    background: linear-gradient(135deg, #f7dc72 0%, var(--primary-gold) 58%, #b88918 100%);
    border: 1px solid rgba(138, 106, 16, 0.18);
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(212, 175, 55, 0.28);
    min-height: 46px;
    padding: 0.78rem 1.35rem;
}

.admin-page .btn-order:hover {
    box-shadow: 0 16px 34px rgba(212, 175, 55, 0.36);
    filter: saturate(1.08);
    transform: translateY(-2px);
}

.admin-page .btn-link {
    border-radius: 999px;
}

.admin-quick-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-top: 1.2rem;
}

.admin-quick-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 229, 0.78));
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 18px;
    display: grid;
    gap: 0.25rem;
    overflow: hidden;
    padding: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.admin-quick-card::after {
    background: var(--primary-gold);
    border-radius: 999px;
    content: '';
    height: 44px;
    opacity: 0.12;
    position: absolute;
    right: -16px;
    top: -16px;
    width: 44px;
}

.admin-quick-card:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--admin-glow);
    transform: translateY(-4px);
}

.admin-quick-card span {
    color: var(--primary-gold);
    font-size: 1.5rem;
}

.admin-quick-card small {
    color: var(--text-muted);
}

.admin-filter-bar {
    align-items: end;
    backdrop-filter: blur(16px);
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    box-shadow: var(--admin-shadow);
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(260px, 1fr) auto;
    margin: 1.4rem 0;
    padding: clamp(1rem, 1.8vw, 1.35rem);
}

.admin-filter-bar label {
    color: #333;
    display: grid;
    font-weight: 700;
    gap: 0.35rem;
}

.admin-filter-bar input,
.admin-filter-bar select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(171, 141, 77, 0.28);
    border-radius: 14px;
    font: inherit;
    padding: 0.75rem;
}

.admin-control-group {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-control-group label {
    min-width: 220px;
}

.admin-control-group .btn-order,
.admin-control-group .btn-link {
    min-height: 47px;
}

.admin-control-group .btn-link {
    align-items: center;
    display: inline-flex;
    padding: 0.75rem 0.35rem;
}

.joined-control-group {
    display: grid;
    gap: 0.35rem;
}

.joined-control-label {
    color: #333;
    font-weight: 700;
}

.joined-control-row {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(171, 141, 77, 0.28);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    display: flex;
    overflow: hidden;
}

.joined-control-row select {
    border: 0;
    border-radius: 0;
    min-width: 220px;
}

.joined-control-row .btn-order {
    border-radius: 0;
    min-height: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.joined-control-row .btn-link {
    align-items: center;
    border-left: 1px solid rgba(171, 141, 77, 0.22);
    display: inline-flex;
    min-height: 0;
    padding: 0.75rem 1rem;
}

.admin-list-meta {
    color: var(--admin-soft);
    font-size: 0.92rem;
    margin: 0.6rem 0 1rem;
}

.bulk-action-bar {
    align-items: end;
    backdrop-filter: blur(16px);
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 20px 20px 0 0;
    box-shadow: var(--admin-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: clamp(1rem, 1.8vw, 1.35rem);
}

.bulk-action-bar label {
    color: #333;
    display: grid;
    font-weight: 700;
    gap: 0.35rem;
    min-width: 220px;
}

.bulk-action-bar select {
    border: 1px solid rgba(171, 141, 77, 0.28);
    border-radius: 14px;
    font: inherit;
    padding: 0.75rem;
}

.bulk-selection-count {
    color: var(--text-muted);
    font-weight: 700;
    padding: 0.75rem 0;
}

.bulk-selection-tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.bulk-selection-tools .btn-link {
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(171, 141, 77, 0.28);
    border-radius: 999px;
    display: inline-flex;
    min-height: 42px;
    padding: 0.65rem 1rem;
}

.bulk-selection-tools .bulk-select-button {
    background: rgba(247, 220, 114, 0.32);
}

.admin-form {
    display: grid;
    gap: 1.15rem;
    max-width: none;
    padding: clamp(1.25rem, 2.2vw, 2rem);
}

.compact-admin-form {
    align-items: end;
    max-width: none;
    grid-template-columns: repeat(4, minmax(170px, 1fr)) auto auto;
}

.compact-admin-form .btn-link {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 47px;
    padding: 0.72rem 1rem;
}

.admin-form label,
.login-card label {
    color: #333;
    display: grid;
    font-weight: 700;
    gap: 0.5rem;
}

.admin-form small {
    color: var(--admin-soft, var(--text-muted));
    font-size: 0.92rem;
    line-height: 1.55;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.login-card input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(171, 141, 77, 0.28);
    border-radius: 14px;
    font: inherit;
    padding: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-filter-bar input:focus,
.admin-filter-bar select:focus,
.joined-control-row select:focus,
.login-card input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
    outline: 0;
}

.admin-form textarea {
    min-height: 120px;
}

.checkbox-label {
    align-items: center;
    display: flex !important;
    flex-direction: row;
    gap: 0.6rem;
}

.checkbox-label input {
    width: auto;
}

.admin-thumb {
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(35, 26, 15, 0.1);
    max-height: 180px;
    max-width: 220px;
    object-fit: contain;
}

.admin-current-image {
    align-items: start;
    display: grid;
    gap: 0.5rem;
}

.admin-db-details {
    background: rgba(255, 250, 240, 0.78);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    padding: 0.85rem;
}

.admin-db-details span {
    color: var(--admin-soft, var(--text-muted));
    display: grid;
    font-size: 0.9rem;
    gap: 0.15rem;
}

.admin-db-details strong {
    color: var(--text-dark);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-current-image small,
.text-muted {
    color: var(--admin-soft, var(--text-muted));
}

.admin-table-thumb {
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    display: block;
    height: 58px;
    object-fit: cover;
    width: 78px;
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid rgba(201, 169, 94, 0.18);
    padding: 1.1rem 1.25rem;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background: rgba(255, 248, 229, 0.82);
    color: #4f4637;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-table tbody tr {
    transition: background 0.18s ease;
}

.admin-table tbody tr:hover {
    background: rgba(255, 250, 240, 0.75);
}

.admin-table .select-column {
    text-align: center;
    width: 48px;
}

.admin-table input[type='checkbox'] {
    accent-color: var(--primary-gold);
    height: 18px;
    width: 18px;
}

.table-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.table-actions a,
.table-actions button,
.btn-link {
    background: transparent;
    border: 0;
    color: #8a6a10;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.table-actions a,
.table-actions button {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(201, 169, 94, 0.26);
    border-radius: 999px;
    padding: 0.36rem 0.7rem;
    transition: var(--transition);
}

.table-actions a:hover,
.table-actions button:hover,
.btn-link:hover {
    color: #111;
    transform: translateY(-1px);
}

.status-badge {
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.28rem 0.65rem;
    text-transform: capitalize;
}

.status-badge.published,
.status-badge.active {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #1b7d3e;
}

.status-badge.draft {
    background: linear-gradient(135deg, #fff4d9, #fde68a);
    color: #8a6a10;
}

.status-badge.hidden,
.status-badge.inactive {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #596070;
}

.status-badge.revoked {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #9f1d1d;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.pagination a {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(201, 169, 94, 0.26);
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 700;
    min-width: 40px;
    padding: 0.55rem 0.75rem;
    text-align: center;
}

.pagination a.active,
.pagination a:hover {
    background: linear-gradient(135deg, #f7dc72, var(--primary-gold));
    border-color: var(--primary-gold);
    box-shadow: var(--admin-glow);
    color: #111;
}

.notice {
    border: 1px solid transparent;
    border-radius: 16px;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
}

.notice.success {
    background: linear-gradient(135deg, #eaf6ec, #dcfce7);
    border-color: rgba(27, 125, 62, 0.12);
    color: #1b7d3e;
}

.notice.error {
    background: linear-gradient(135deg, #fdeaea, #fee2e2);
    border-color: rgba(159, 29, 29, 0.12);
    color: #9f1d1d;
}

@media (max-width: 900px) {
    nav,
    .btn-verify-nav {
        display: none;
    }

    .admin-page nav {
        display: grid;
    }

    .blog-grid,
    .product-grid,
    .gallery-grid,
    .footer-grid,
    .result-card {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input {
        min-height: 48px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .gallery-carousel {
        min-height: 310px;
    }

    .gallery-stack {
        height: 270px;
        width: 100%;
    }

    .gallery-photo {
        height: 205px;
        width: min(290px, 74vw);
    }

    .gallery-photo-4,
    .gallery-photo-5,
    .gallery-photo-6,
    .gallery-photo-7 {
        display: none;
    }

    .gallery-arrow {
        font-size: 2.4rem;
        height: 44px;
        width: 44px;
    }

    .admin-filter-bar {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

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

    .admin-control-group,
    .bulk-action-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-control-group label {
        min-width: 0;
    }

    .joined-control-row {
        border: 0;
        border-radius: 0;
        display: grid;
        gap: 0.75rem;
        overflow: visible;
    }

    .joined-control-row select,
    .joined-control-row .btn-order,
    .joined-control-row .btn-link {
        border: 1px solid #d8cfbf;
        border-radius: 6px;
        justify-content: center;
        width: 100%;
    }

    .pagination {
        justify-content: flex-start;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
    }

    .admin-sidebar-footer {
        margin-top: 0;
    }

    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-topbar,
    .admin-panel-heading {
        align-items: stretch;
        flex-direction: column;
    }
}
