:root {
    --primary: #27ae60;
    --primary-dark: #1f8a4c;
    --primary-soft: #ecfdf3;
    --dark: #1f2937;
    --text: #4b5563;
    --muted: #6b7280;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e5e7eb;
    --danger: #dc2626;
    --danger-dark: #b91c1c;

    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.08);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;

    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    font-size: 15.5px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 14px;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 14px;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.section {
    padding: 84px 0;
}

.section-soft {
    background: var(--light);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
    border-radius: 12px;
    font-weight: 700;
    transition: 0.25s ease;
    cursor: pointer;
    min-height: 46px;
}

.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.9rem;
    min-height: 40px;
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border-color: #9ca3af;
}

.btn-outline-dark:hover {
    background: #f3f4f6;
    color: var(--dark);
    border-color: var(--dark);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.navbar {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ADIMOSTL compact brand logo */
.brand-logo,
.footer-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-mark {
    width: 58px;
    height: 58px;
    display: block;
}

.brand-logo-word {
    display: inline-flex;
    align-items: baseline;
    font-size: clamp(1.7rem, 2.2vw, 2.25rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-logo-green {
    color: var(--primary);
}

.brand-logo-dark {
    color: var(--dark);
}

.footer-brand-logo {
    gap: 10px;
    align-items: center;
}

.footer-brand-mark {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.footer-brand-word {
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.footer-brand-word span {
    color: var(--primary);
}

.footer-brand-text small {
    margin-top: 5px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
/* End ADIMOSTL compact brand logo */

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-text span,
.footer-logo .logo-text span {
    color: var(--primary);
}

.logo-icon {
    color: var(--primary);
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    color: var(--dark);
    font-weight: 600;
    position: relative;
}

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

.nav-cta {
    margin-left: 6px;
}

.mobile-menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    margin-inline: auto;
}

.hero {
    padding: 88px 0;
    background: linear-gradient(135deg, rgba(236, 253, 243, 0.95), rgba(255, 255, 255, 0.98));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 34px;
    align-items: center;
}

.hero-content p {
    font-size: 1rem;
    max-width: 680px;
    margin-bottom: 24px;
    color: var(--muted);
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.stat-card strong {
    display: block;
    font-size: 1.4rem;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 4px;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-panel .hero-box,
.info-panel,
.info-card,
.contact-form,
.cta-box,
.admin-auth-card,
.admin-stat-card,
.admin-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.hero-box,
.info-panel,
.info-card,
.contact-form,
.admin-auth-card,
.admin-stat-card,
.admin-panel {
    box-shadow: var(--shadow-sm);
}

.hero-box {
    padding: 28px;
}

.hero-box h3 {
    margin-bottom: 16px;
}

.hero-box ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
}

.hero-box ul li:last-child {
    border-bottom: none;
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}

.section-heading p {
    color: var(--muted);
}

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

.info-card {
    padding: 24px;
    transition: 0.25s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.info-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.page-banner {
    padding: 72px 0;
    background: linear-gradient(135deg, #27ae60 0%, #1f8a4c 100%);
    color: var(--white);
}

.page-banner h1,
.page-banner p {
    color: var(--white);
}

.page-banner p {
    max-width: 720px;
    opacity: 0.94;
}

.page-main {
    min-height: 60vh;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.info-panel,
.contact-form {
    padding: 28px;
}

.info-panel h3 {
    margin-bottom: 14px;
}

.info-panel ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.info-panel ul li:last-child {
    border-bottom: none;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    font: inherit;
    background: var(--white);
    color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.12);
}

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

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.form-check input {
    width: auto;
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 600;
}

.alert-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.narrow-box {
    max-width: 700px;
}

.cta-box {
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--shadow-md);
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 60px 0 20px;
}

.site-footer h3,
.site-footer a,
.site-footer .footer-logo {
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.footer-text {
    margin-top: 16px;
    max-width: 340px;
    color: #cbd5e1;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: #86efac;
}

.footer-contact i {
    color: var(--primary);
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 18px;
    text-align: center;
    color: #cbd5e1;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

/* Admin */
.admin-auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #f3f4f6;
    padding: 20px;
}

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

.admin-auth-card h1 {
    margin-bottom: 8px;
}

.admin-auth-card p {
    margin-bottom: 20px;
    color: var(--muted);
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    transition: grid-template-columns 0.25s ease;
}

.admin-sidebar {
    background: #111827;
    color: #fff;
    padding: 24px 16px;
    transition: all 0.25s ease;
    overflow: hidden;
}

.admin-sidebar h2 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 1.95rem;
    line-height: 1.1;
    word-break: break-word;
}

.admin-user {
    margin-bottom: 28px;
    color: #d1d5db;
    line-height: 1.5;
}

.admin-user strong {
    display: inline-block;
    margin-top: 4px;
    color: #fff;
}

.admin-user small {
    display: inline-block;
    margin-top: 6px;
    color: #9ca3af;
    font-size: 0.9rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-nav a {
    color: #d1d5db;
    padding: 13px 16px;
    border-radius: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: var(--primary);
    color: #fff;
}

.admin-main {
    padding: 30px;
    background: #f9fafb;
}

.admin-main h1 {
    margin-bottom: 8px;
}

.admin-main p {
    color: var(--muted);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.admin-stat-card {
    padding: 24px;
}

.admin-stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 2rem;
    color: var(--primary);
}

.admin-panel {
    padding: 24px;
    margin-top: 20px;
}

.admin-panel-header {
    margin-bottom: 20px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-search-form input {
    min-width: 240px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    outline: none;
}

.admin-search-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.12);
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.admin-table th,
.admin-table td {
    padding: 12px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #f3f4f6;
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.admin-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.admin-inline-actions .btn,
.admin-inline-actions .btn-delete,
.admin-inline-actions .btn-outline-dark {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-delete {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
    padding: 8px 14px;
}

.btn-delete:hover {
    background: var(--danger-dark);
    border-color: var(--danger-dark);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.admin-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.admin-preview-image {
    width: 180px;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.admin-form-panel {
    max-width: 820px;
}

.admin-muted,
.form-help {
    color: var(--muted);
    font-size: 0.9rem;
}

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

.activity-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: 0.25s ease;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.activity-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.activity-image-placeholder {
    display: grid;
    place-items: center;
    background: #f3f4f6;
    color: var(--muted);
}

.activity-card-body {
    padding: 20px;
}

.activity-card-body p {
    color: var(--muted);
    margin-bottom: 0;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.section-center {
    text-align: center;
}

.mt-24 {
    margin-top: 24px;
}

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

.activity-title-link {
    color: var(--dark);
    transition: 0.2s ease;
}

.activity-title-link:hover {
    color: var(--primary);
}

.activity-read-more {
    margin-top: 16px;
}

.activity-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: start;
}

.activity-detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.activity-detail-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.activity-detail-body {
    padding: 28px;
}

.activity-detail-body h2 {
    margin-bottom: 16px;
}

.activity-detail-meta {
    margin-bottom: 18px;
}

.activity-detail-text {
    color: var(--text);
    line-height: 1.8;
    white-space: normal;
}

.activity-detail-actions {
    margin-top: 24px;
}

.activity-side-panel .info-panel {
    position: sticky;
    top: 100px;
}

.activity-side-list li {
    border-bottom: 1px solid var(--border);
}

.activity-side-list li:last-child {
    border-bottom: none;
}

.activity-side-list a {
    display: block;
    padding: 12px 0;
    color: var(--dark);
}

.activity-side-list a:hover {
    color: var(--primary);
}

.activity-side-list strong {
    display: block;
    margin-bottom: 4px;
}

.activity-side-list span {
    color: var(--muted);
    font-size: 0.9rem;
}

.password-field-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-field-wrap input {
    flex: 1;
}

.password-toggle-btn {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--dark);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.password-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.admin-main h1 {
    font-size: 1.75rem;
}

.admin-table td {
    vertical-align: middle;
}

.admin-main h1 {
    font-size: 1.6rem;
}

.admin-panel-header h2 {
    font-size: 1.25rem;
}

.admin-main h1 {
    font-size: 1.7rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.admin-panel-header h2 {
    font-size: 1.35rem;
    margin-bottom: 0;
    line-height: 1.2;
}

.admin-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
    transition: grid-template-columns 0.25s ease;
}

.admin-layout.sidebar-collapsed {
    grid-template-columns: 82px 1fr;
}

.admin-sidebar {
    background: #111827;
    color: #fff;
    padding: 24px 16px;
    transition: all 0.25s ease;
    overflow: hidden;
}

.admin-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-brand {
    color: #fff;
    margin-bottom: 0;
    font-size: 1.75rem;
    line-height: 1.1;
    word-break: break-word;
    transition: opacity 0.2s ease;
}

.admin-sidebar-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.admin-sidebar-toggle:hover {
    background: rgba(255,255,255,0.16);
}

.admin-layout.sidebar-collapsed .admin-brand,
.admin-layout.sidebar-collapsed .admin-user,
.admin-layout.sidebar-collapsed .admin-nav a {
    white-space: nowrap;
}

.admin-layout.sidebar-collapsed .admin-brand {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.admin-layout.sidebar-collapsed .admin-user {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.admin-layout.sidebar-collapsed .admin-nav a {
    text-align: center;
    padding: 14px 10px;
    font-size: 0;
}

.admin-layout.sidebar-collapsed .admin-nav a::before {
    font-size: 0.95rem;
    display: inline-block;
}

.admin-layout.sidebar-collapsed .admin-nav a[href="index.php"]::before { content: "D"; }
.admin-layout.sidebar-collapsed .admin-nav a[href="messages.php"]::before { content: "M"; }
.admin-layout.sidebar-collapsed .admin-nav a[href="subscribers.php"]::before { content: "S"; }
.admin-layout.sidebar-collapsed .admin-nav a[href="activities.php"]::before { content: "A"; }
.admin-layout.sidebar-collapsed .admin-nav a[href="admin_users.php"]::before { content: "U"; }
.admin-layout.sidebar-collapsed .admin-nav a[href="change_password.php"]::before { content: "P"; }
.admin-layout.sidebar-collapsed .admin-nav a[href="logout.php"]::before { content: "L"; }

.admin-inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.admin-inline-actions .btn,
.admin-inline-actions .btn-delete,
.admin-inline-actions .btn-outline-dark {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}



/* Security Phase 2: hidden honeypot field for public forms */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}


/* Security Phase 5: audit log pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--dark);
    background: var(--white);
    font-weight: 700;
}

.pagination a.active,
.pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.admin-layout.sidebar-collapsed .admin-nav a[href="audit_logs.php"]::before { content: "G"; }


/* Security Phase 8: security check page */
.security-checklist {
    list-style: disc;
    padding-left: 22px;
    color: var(--text);
}

.security-checklist li {
    margin-bottom: 10px;
}

.admin-layout.sidebar-collapsed .admin-nav a[href="security_check.php"]::before {
    content: "C";
}

.admin-layout.sidebar-collapsed .admin-nav a[href="smtp_test.php"]::before { content: "E"; }


.auth-links {
    margin-top: 16px;
    text-align: center;
}

.auth-links a {
    color: var(--primary);
    font-weight: 700;
}

.auth-links a:hover {
    color: var(--primary-dark);
}


/* ==========================================================================
   Admin Polish Phase 1
   Modernizes auth pages, dashboard, sidebar, tables and admin panels.
   ========================================================================== */

.admin-auth-polished {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(39, 174, 96, 0.20), transparent 34%),
        radial-gradient(circle at bottom right, rgba(31, 41, 55, 0.18), transparent 32%),
        linear-gradient(135deg, #f7fbf8 0%, #edf7f1 45%, #ffffff 100%);
}

.admin-auth-shell {
    width: min(100%, 1040px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
    gap: 26px;
    align-items: stretch;
}

.admin-auth-intro,
.admin-auth-polished .admin-auth-card {
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
}

.admin-auth-intro {
    min-height: 540px;
    padding: 42px;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.93), rgba(31, 138, 76, 0.90)),
        linear-gradient(135deg, #111827, #1f8a4c);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.admin-auth-intro::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    right: -70px;
    bottom: -80px;
    background: rgba(255, 255, 255, 0.10);
}

.admin-auth-intro h1,
.admin-auth-intro p,
.admin-auth-intro .admin-page-eyebrow,
.admin-auth-intro li {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.admin-auth-intro h1 {
    margin-top: 70px;
    font-size: clamp(2.25rem, 4vw, 4.3rem);
    letter-spacing: -0.06em;
}

.admin-auth-intro p {
    max-width: 570px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.auth-brand-mark,
.admin-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), #8ee7b5);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(39, 174, 96, 0.26);
}

.auth-brand strong,
.admin-console-brand strong {
    display: block;
    color: inherit;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.04em;
}

.auth-brand small,
.admin-console-brand small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    font-weight: 700;
}

.auth-feature-list {
    margin-top: 32px;
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.86);
}

.auth-feature-list li::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #8ee7b5;
    flex: 0 0 auto;
}

.admin-auth-polished .admin-auth-card {
    max-width: none;
    padding: 36px;
    align-self: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.admin-auth-polished .admin-auth-card h1,
.admin-auth-polished .admin-auth-card h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    letter-spacing: -0.035em;
}

.auth-submit-btn {
    width: 100%;
    margin-top: 4px;
}

.admin-layout {
    grid-template-columns: 304px minmax(0, 1fr);
    background: #f4f8f5;
}

.admin-layout.sidebar-collapsed {
    grid-template-columns: 92px minmax(0, 1fr);
}

.admin-sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;
    background:
        radial-gradient(circle at top left, rgba(39, 174, 96, 0.35), transparent 34%),
        linear-gradient(180deg, #0f172a 0%, #111827 52%, #0b1220 100%);
    padding: 22px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-console-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.admin-brand-text {
    min-width: 0;
    transition: 0.2s ease;
}

.admin-sidebar-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    gap: 4px;
    padding: 10px;
}

.admin-sidebar-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 999px;
}

.admin-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 24px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.admin-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

.admin-user-meta {
    min-width: 0;
}

.admin-user-meta span,
.admin-user-meta small {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.77rem;
    line-height: 1.35;
}

.admin-user-meta strong {
    display: block;
    color: #ffffff;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-nav {
    gap: 6px;
}

.admin-nav-section {
    margin: 16px 10px 6px;
    color: rgba(255, 255, 255, 0.40);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    padding: 12px 13px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.72);
    border-radius: 15px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(39, 174, 96, 0.16);
    border-color: rgba(142, 231, 181, 0.22);
    color: #ffffff;
}

.admin-nav a.active {
    box-shadow: inset 3px 0 0 #8ee7b5;
}

.nav-icon {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-logout-link {
    margin-top: 4px;
}

.admin-main {
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(39, 174, 96, 0.10), transparent 30%),
        #f4f8f5;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 16px 18px;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.admin-topbar strong,
.admin-topbar-kicker {
    display: block;
}

.admin-topbar strong {
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
    line-height: 1.25;
}

.admin-topbar-kicker,
.admin-page-eyebrow {
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.admin-page-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding: 26px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 253, 243, 0.84));
    border: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: var(--shadow-sm);
}

.admin-page-hero h1 {
    margin-bottom: 8px;
    letter-spacing: -0.045em;
}

.admin-page-hero p {
    max-width: 700px;
    margin-bottom: 0;
}

.admin-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-stats-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stat-link {
    color: inherit;
    transition: 0.22s ease;
    position: relative;
    overflow: hidden;
}

.admin-stat-link::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -46px;
    top: -46px;
    border-radius: 999px;
    background: rgba(39, 174, 96, 0.09);
}

.admin-stat-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.admin-stat-label {
    display: block;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
}

.admin-stat-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
    gap: 20px;
    align-items: start;
}

.admin-panel {
    border: 1px solid rgba(229, 231, 235, 0.90);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.05);
}

.admin-panel-header {
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
    padding-bottom: 16px;
}

.admin-panel-header h2 {
    letter-spacing: -0.035em;
}

.admin-quick-panel {
    position: sticky;
    top: 24px;
}

.admin-quick-actions {
    display: grid;
    gap: 12px;
}

.admin-quick-actions a {
    display: block;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fafc;
    color: var(--dark);
    transition: 0.2s ease;
}

.admin-quick-actions a:hover {
    border-color: rgba(39, 174, 96, 0.35);
    background: var(--primary-soft);
    transform: translateY(-2px);
}

.admin-quick-actions strong,
.admin-quick-actions span {
    display: block;
}

.admin-quick-actions span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    background: #f6faf7;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.065em;
    color: #374151;
}

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

.admin-table tbody tr:hover {
    background: rgba(236, 253, 243, 0.48);
}

.admin-table td {
    color: #374151;
}

.admin-search-form input,
.contact-form input,
.contact-form textarea,
.contact-form select {
    border-radius: 13px;
}

.admin-search-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: rgba(39, 174, 96, 0.70);
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.12);
}

.status-badge {
    border-radius: 999px;
    font-weight: 800;
}

.admin-footer-note {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding: 16px 4px 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-layout.sidebar-collapsed .admin-brand-text,
.admin-layout.sidebar-collapsed .admin-user-meta,
.admin-layout.sidebar-collapsed .admin-nav-section,
.admin-layout.sidebar-collapsed .nav-label {
    display: none;
}

.admin-layout.sidebar-collapsed .admin-console-brand,
.admin-layout.sidebar-collapsed .admin-sidebar-top {
    justify-content: center;
}

.admin-layout.sidebar-collapsed .admin-sidebar-toggle {
    margin-inline: auto;
}

.admin-layout.sidebar-collapsed .admin-user-card {
    justify-content: center;
    padding: 10px;
}

.admin-layout.sidebar-collapsed .admin-nav a {
    justify-content: center;
    padding: 12px 10px;
    font-size: inherit;
}

.admin-layout.sidebar-collapsed .admin-nav a::before {
    content: none !important;
}

.admin-layout.sidebar-collapsed .nav-icon {
    margin: 0;
}

@media (max-width: 1100px) {
    .admin-auth-shell {
        grid-template-columns: 1fr;
    }

    .admin-auth-intro {
        min-height: auto;
    }

    .admin-auth-intro h1 {
        margin-top: 34px;
    }

    .admin-stats-compact,
    .admin-dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .admin-layout,
    .admin-layout.sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        min-height: auto;
    }

    .admin-main {
        padding: 18px;
    }

    .admin-page-hero,
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-stats-compact,
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .admin-auth-polished {
        padding: 14px;
    }

    .admin-auth-intro,
    .admin-auth-polished .admin-auth-card {
        padding: 24px;
        border-radius: 22px;
    }

    .admin-footer-note {
        flex-direction: column;
    }
}


/* ==========================================================================
   Admin Polish Phase 2
   Refines remaining admin forms, settings, checks and system pages.
   ========================================================================== */

.admin-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.55fr);
    gap: 20px;
    align-items: start;
}

.admin-form-panel {
    max-width: none;
}

.admin-polished-form {
    display: grid;
    gap: 18px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.admin-side-note {
    position: sticky;
    top: 24px;
}

.admin-side-note ul,
.polished-checklist {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.admin-side-note li,
.polished-checklist li {
    position: relative;
    padding-left: 24px;
    color: var(--muted);
}

.admin-side-note li::before,
.polished-checklist li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 10px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.12);
}

.admin-warning-note {
    border-color: rgba(220, 38, 38, 0.18);
    background: linear-gradient(135deg, #ffffff, #fff7f7);
}

.admin-warning-note .admin-page-eyebrow {
    color: var(--danger);
}

.admin-warning-note li::before {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.admin-side-preview {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin: 12px 0 18px;
    object-fit: cover;
    max-height: 280px;
}

.admin-config-list {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.admin-config-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8fafc;
}

.admin-config-list span {
    color: var(--muted);
    font-size: 0.88rem;
}

.admin-config-list strong {
    color: var(--dark);
    text-align: right;
    overflow-wrap: anywhere;
}

.status-neutral {
    background: #eef2ff;
    color: #3730a3;
}

.admin-table td strong {
    color: var(--dark);
}

.admin-panel code {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 7px;
    background: #f3f4f6;
    color: #111827;
    font-size: 0.88em;
}

.admin-inline-actions .btn {
    white-space: nowrap;
}

@media (max-width: 980px) {
    .admin-form-layout {
        grid-template-columns: 1fr;
    }

    .admin-side-note {
        position: static;
    }
}

@media (max-width: 680px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-config-list > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-config-list strong {
        text-align: left;
    }
}


/* ==========================================================================
   Admin Polish Phase 3
   Refines day-to-day list pages: messages, subscribers and activities.
   ========================================================================== */

.admin-stat-small {
    font-size: 1rem !important;
    line-height: 1.35;
    word-break: break-word;
}

.admin-filter-note {
    margin: -4px 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(39, 174, 96, 0.18);
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--dark);
}

.admin-table-comfort th,
.admin-table-comfort td {
    padding: 15px 14px;
}

.admin-table-title {
    display: block;
    margin-bottom: 7px;
    color: var(--dark);
    font-weight: 800;
}

.admin-message-cell {
    max-width: 360px;
    color: var(--muted);
    line-height: 1.55;
}

.admin-empty-state {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 34px 18px;
    text-align: center;
}

.admin-empty-state strong {
    color: var(--dark);
    font-size: 1.05rem;
}

.admin-empty-state span {
    color: var(--muted);
}

.admin-thumb-lg {
    width: 96px;
    height: 68px;
    object-fit: cover;
    border-radius: 14px;
}

.admin-no-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 68px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 760px) {
    .admin-table-comfort {
        min-width: 760px;
    }

    .admin-message-cell {
        max-width: 260px;
    }
}


/* ==========================================================================
   Admin Sidebar Separate Scroll Hotfix
   Keeps the sidebar and main content scrolling independently on desktop.
   ========================================================================== */

@media (min-width: 861px) {
    body:has(.admin-layout) {
        overflow: hidden;
    }

    .admin-layout {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }

    .admin-sidebar {
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
    }

    .admin-sidebar::-webkit-scrollbar {
        width: 8px;
    }

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

    .admin-sidebar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.24);
        border-radius: 999px;
    }

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

    .admin-main {
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }
}

@media (max-width: 860px) {
    body:has(.admin-layout) {
        overflow: auto;
    }

    .admin-layout,
    .admin-sidebar,
    .admin-main {
        height: auto;
        max-height: none;
        overflow: visible;
    }
}


/* ==========================================================================
   Admin Actions Dropdown Hotfix
   Combines row actions into one compact dropdown.
   ========================================================================== */

.admin-action-dropdown {
    position: relative;
    display: inline-block;
    min-width: 118px;
}

.admin-action-dropdown summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid rgba(39, 174, 96, 0.30);
    border-radius: 12px;
    background: #ffffff;
    color: var(--dark);
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    transition: 0.18s ease;
}

.admin-action-dropdown summary::-webkit-details-marker {
    display: none;
}

.admin-action-dropdown summary::after {
    content: "▾";
    font-size: 0.8rem;
    color: var(--primary);
}

.admin-action-dropdown[open] summary,
.admin-action-dropdown summary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.admin-action-menu {
    margin-top: 8px;
    min-width: 180px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.14);
}

.admin-action-menu a,
.admin-action-menu button {
    width: 100%;
    display: block;
    padding: 10px 11px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--dark);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.admin-action-menu a:hover,
.admin-action-menu button:hover {
    background: #f3f4f6;
    color: var(--primary);
}

.admin-action-menu form {
    margin: 0;
}

.admin-action-menu .danger-action {
    color: var(--danger);
}

.admin-action-menu .danger-action:hover {
    background: #fef2f2;
    color: var(--danger-dark);
}

.admin-table td:has(.admin-action-dropdown) {
    vertical-align: top;
}

@media (max-width: 760px) {
    .admin-action-dropdown {
        min-width: 110px;
    }

    .admin-action-menu {
        min-width: 165px;
    }
}


/* ==========================================================================
   Admin Actions Dropdown Position Hotfix
   Makes action menus float instead of stretching table rows.
   ========================================================================== */

.table-wrap {
    overflow-x: auto;
    overflow-y: visible;
}

.admin-table,
.admin-table tbody,
.admin-table tr,
.admin-table td {
    overflow: visible;
}

.admin-table td:has(.admin-action-dropdown) {
    position: relative;
    width: 1%;
    white-space: nowrap;
}

.admin-action-dropdown {
    position: relative;
    display: inline-block;
    min-width: 120px;
    z-index: 1;
}

.admin-action-dropdown[open] {
    z-index: 999;
}

.admin-action-dropdown summary {
    width: auto;
    min-width: 120px;
    white-space: nowrap;
}

.admin-action-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    margin-top: 0;
    min-width: 190px;
}

.admin-action-dropdown[open] .admin-action-menu {
    animation: adminDropdownIn 0.14s ease-out;
}

@keyframes adminDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-table tbody tr:has(.admin-action-dropdown[open]) {
    background: rgba(236, 253, 243, 0.66);
}

@media (max-width: 760px) {
    .admin-action-dropdown summary {
        min-width: 104px;
    }

    .admin-action-menu {
        min-width: 170px;
    }
}


/* ==========================================================================
   Admin Actions Dropdown Viewport Hotfix
   Positions action menus relative to the viewport so table scrollbars are not affected.
   ========================================================================== */

.admin-action-dropdown {
    position: relative;
}

.admin-action-dropdown[open] {
    z-index: 1000;
}

.admin-action-menu {
    position: fixed !important;
    top: var(--admin-action-menu-top, 0) !important;
    left: var(--admin-action-menu-left, 0) !important;
    right: auto !important;
    z-index: 99999 !important;
    margin-top: 0 !important;
    max-width: min(220px, calc(100vw - 20px));
}

.admin-action-dropdown:not([open]) .admin-action-menu {
    display: none;
}

.admin-table td:has(.admin-action-dropdown) {
    width: 1%;
    min-width: 132px;
    white-space: nowrap;
}

.admin-action-dropdown summary {
    min-width: 118px;
}

.table-wrap {
    overflow-x: auto;
}


/* ==========================================================================
   Admin Horizontal Scroll Cleanup Hotfix
   Removes unnecessary horizontal table scrolling on normal admin screens.
   ========================================================================== */

@media (min-width: 861px) {
    .admin-main,
    .admin-panel,
    .table-wrap {
        max-width: 100%;
        overflow-x: visible;
    }

    .admin-table,
    .admin-table-comfort {
        width: 100%;
        min-width: 0 !important;
        table-layout: auto;
    }

    .admin-table th,
    .admin-table td {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .admin-table td:has(.admin-action-dropdown) {
        min-width: 128px;
        width: 128px;
        overflow-wrap: normal;
        white-space: nowrap;
    }

    .admin-action-dropdown,
    .admin-action-dropdown summary {
        min-width: 112px;
    }

    .admin-message-cell {
        max-width: 320px;
    }

    .admin-table-title {
        overflow-wrap: anywhere;
    }

    .admin-table td .status-badge {
        white-space: normal;
    }

    .admin-table td:nth-last-child(1) {
        white-space: nowrap;
    }
}

@media (max-width: 860px) {
    .table-wrap {
        overflow-x: auto;
    }

    .admin-table,
    .admin-table-comfort {
        min-width: 760px;
    }
}


/* ==========================================================================
   Audit Logs Layout Hotfix
   Audit logs are intentionally wide because they contain event, IP, details and user-agent columns.
   This restores controlled horizontal scrolling for audit logs only.
   ========================================================================== */

.audit-log-table {
    min-width: 1180px !important;
    table-layout: auto !important;
}

.admin-wide-table-wrap {
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: visible;
    padding-bottom: 6px;
}

.audit-log-table th,
.audit-log-table td {
    overflow-wrap: normal !important;
    word-break: normal !important;
    vertical-align: top;
}

.audit-log-table th:nth-child(1),
.audit-log-table td:nth-child(1),
.audit-log-table th:nth-child(3),
.audit-log-table td:nth-child(3),
.audit-log-table th:nth-child(4),
.audit-log-table td:nth-child(4) {
    white-space: nowrap !important;
}

.audit-log-table th:nth-child(2),
.audit-log-table td:nth-child(2) {
    min-width: 150px;
}

.audit-log-table th:nth-child(5),
.audit-log-table td:nth-child(5) {
    min-width: 280px;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

.audit-log-table th:nth-child(6),
.audit-log-table td:nth-child(6) {
    min-width: 320px;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}


/* ==========================================================================
   Admin Sidebar Pinned Layout Hotfix
   Keeps ADIMOSTL brand fixed at the top, nav scrollable in the middle,
   and current user fixed at the bottom.
   ========================================================================== */

@media (min-width: 861px) {
    .admin-sidebar {
        display: flex;
        flex-direction: column;
        height: 100vh;
        max-height: 100vh;
        min-height: 100vh;
        overflow: hidden !important;
    }

    .admin-sidebar-top {
        flex: 0 0 auto;
        position: relative;
        z-index: 3;
        margin-bottom: 14px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .admin-nav {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        padding-right: 4px;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
    }

    .admin-nav::-webkit-scrollbar {
        width: 7px;
    }

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

    .admin-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.22);
        border-radius: 999px;
    }

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

    .admin-user-card {
        flex: 0 0 auto;
        margin: 16px 0 0;
        position: relative;
        z-index: 3;
        box-shadow: 0 -14px 30px rgba(15, 23, 42, 0.18);
    }

    .admin-layout.sidebar-collapsed .admin-user-card {
        margin-top: 14px;
    }
}

@media (max-width: 860px) {
    .admin-sidebar {
        display: block;
        height: auto;
        max-height: none;
        min-height: 0;
        overflow: visible !important;
    }

    .admin-sidebar-top,
    .admin-user-card {
        position: static;
    }

    .admin-nav {
        overflow: visible;
        max-height: none;
        padding-right: 0;
    }

    .admin-user-card {
        margin: 16px 0 0;
    }
}


/* ==========================================================================
   Admin Sidebar Logo Hotfix
   Replaces the top initial letter with the ADIMOSTL logo mark.
   ========================================================================== */

.admin-brand-logo-mark {
    padding: 7px;
    overflow: hidden;
}

.admin-brand-logo-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.admin-layout.sidebar-collapsed .admin-brand-logo-mark {
    width: 48px;
    height: 48px;
}


/* ==========================================================================
   Admin User Menu Hotfix
   Moves logout/change password/profile actions into the bottom current-user menu.
   ========================================================================== */

.admin-user-menu {
    flex: 0 0 auto;
    position: relative;
    margin: 16px 0 0;
}

.admin-user-menu summary {
    list-style: none;
    cursor: pointer;
}

.admin-user-menu summary::-webkit-details-marker {
    display: none;
}

.admin-user-menu .admin-user-card {
    margin: 0;
    transition: 0.18s ease;
}

.admin-user-menu[open] .admin-user-card,
.admin-user-menu .admin-user-card:hover {
    border-color: rgba(142, 231, 181, 0.26);
    background: rgba(255, 255, 255, 0.09);
}

.admin-user-menu-caret {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 800;
    transition: 0.18s ease;
}

.admin-user-menu[open] .admin-user-menu-caret {
    transform: rotate(180deg);
    color: #8ee7b5;
}

.admin-user-menu-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    z-index: 20;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: #111827;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.admin-user-menu-panel a {
    display: block;
    padding: 12px 13px;
    border-radius: 13px;
    color: rgba(255, 255, 255, 0.88);
    transition: 0.18s ease;
}

.admin-user-menu-panel a:hover,
.admin-user-menu-panel a.active {
    background: rgba(39, 174, 96, 0.16);
    color: #ffffff;
}

.admin-user-menu-panel a span,
.admin-user-menu-panel a small {
    display: block;
}

.admin-user-menu-panel a span {
    font-weight: 800;
}

.admin-user-menu-panel a small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.78rem;
}

.admin-user-menu-panel .danger-link span {
    color: #fca5a5;
}

.admin-layout.sidebar-collapsed .admin-user-menu {
    display: flex;
    justify-content: center;
}

.admin-layout.sidebar-collapsed .admin-user-menu .admin-user-card {
    width: 56px;
    padding: 8px;
}

.admin-layout.sidebar-collapsed .admin-user-menu-caret {
    display: none;
}

.admin-layout.sidebar-collapsed .admin-user-menu-panel {
    left: 72px;
    right: auto;
    bottom: 0;
    min-width: 220px;
}

@media (max-width: 860px) {
    .admin-user-menu {
        margin-top: 16px;
    }

    .admin-user-menu-panel {
        position: static;
        margin-top: 10px;
    }
}


/* ==========================================================================
   Admin User Menu Bright Hotfix
   Makes the bottom account menu brighter and easier to read.
   ========================================================================== */

.admin-user-menu-panel {
    border: 1px solid rgba(142, 231, 181, 0.48);
    background: #ffffff;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
}

.admin-user-menu-panel a {
    color: #1f2937;
}

.admin-user-menu-panel a:hover,
.admin-user-menu-panel a.active {
    background: #ecfdf3;
    color: #166534;
}

.admin-user-menu-panel a span {
    color: inherit;
}

.admin-user-menu-panel a small {
    color: #6b7280;
}

.admin-user-menu-panel .danger-link span {
    color: #dc2626;
}

.admin-user-menu-panel .danger-link:hover {
    background: #fef2f2;
}

.admin-user-menu-panel .danger-link:hover span {
    color: #b91c1c;
}

.admin-user-menu[open] .admin-user-card {
    border-color: rgba(142, 231, 181, 0.62);
    background: rgba(236, 253, 243, 0.11);
}

.admin-user-menu[open] .admin-user-menu-caret {
    color: #8ee7b5;
}


/* ==========================================================================
   Admin User Menu Compact Hotfix
   Reduces the height and white space in the bottom account menu popup.
   ========================================================================== */

.admin-user-menu-panel {
    padding: 7px;
    border-radius: 16px;
}

.admin-user-menu-panel a {
    padding: 8px 10px;
    border-radius: 11px;
}

.admin-user-menu-panel a + a {
    margin-top: 3px;
}

.admin-user-menu-panel a span {
    font-size: 0.96rem;
    line-height: 1.15;
}

.admin-user-menu-panel a small {
    margin-top: 2px;
    font-size: 0.74rem;
    line-height: 1.25;
}

.admin-user-menu-panel {
    bottom: calc(100% + 8px);
}

@media (max-width: 860px) {
    .admin-user-menu-panel {
        margin-top: 8px;
    }
}


/* ==========================================================================
   Admin Auth Compact Hotfix
   Makes login, forgot-password and reset-password screens smaller and prevents awkward scrolling.
   ========================================================================== */

.admin-auth-polished {
    min-height: 100vh;
    padding: 18px;
    align-items: center;
}

.admin-auth-shell {
    width: min(100%, 1040px);
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.62fr);
    gap: 20px;
}

.admin-auth-intro {
    min-height: 430px;
    padding: 30px;
    border-radius: 24px;
}

.admin-auth-intro h1 {
    margin-top: 46px;
    font-size: clamp(2.1rem, 3.2vw, 3.35rem);
    line-height: 1.02;
}

.admin-auth-intro p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 560px;
}

.auth-brand {
    gap: 12px;
}

.auth-brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.auth-brand-logo-mark {
    padding: 7px;
    overflow: hidden;
}

.auth-brand-logo-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.auth-brand strong {
    font-size: 1.05rem;
}

.auth-brand small {
    font-size: 0.78rem;
}

.auth-feature-list {
    margin-top: 22px;
    gap: 10px;
}

.auth-feature-list li {
    padding: 10px 12px;
    border-radius: 13px;
    font-size: 0.92rem;
}

.admin-auth-polished .admin-auth-card {
    padding: 28px;
    border-radius: 24px;
}

.admin-auth-polished .admin-auth-card h1,
.admin-auth-polished .admin-auth-card h2 {
    font-size: 1.9rem;
    line-height: 1.15;
}

.admin-auth-polished .admin-auth-card p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.55;
}

.admin-auth-polished .contact-form {
    gap: 14px;
}

.admin-auth-polished .contact-form .form-group {
    margin-bottom: 12px;
}

.admin-auth-polished .contact-form label {
    margin-bottom: 7px;
}

.admin-auth-polished .contact-form input {
    min-height: 50px;
    padding: 12px 15px;
}

.admin-auth-polished .password-field-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.admin-auth-polished .password-toggle-btn {
    min-width: 92px;
    min-height: 50px;
    padding: 0 16px;
}

.admin-auth-polished .auth-submit-btn {
    min-height: 50px;
    padding: 12px 16px;
}

.admin-auth-polished .auth-links {
    margin-top: 12px;
}

@media (max-width: 1050px) {
    .admin-auth-shell {
        grid-template-columns: 1fr;
        width: min(100%, 620px);
    }

    .admin-auth-intro {
        min-height: auto;
        padding: 24px;
    }

    .admin-auth-intro h1 {
        margin-top: 28px;
    }

    .auth-feature-list {
        display: none;
    }
}

@media (max-width: 560px) {
    .admin-auth-polished {
        padding: 10px;
    }

    .admin-auth-polished .admin-auth-card,
    .admin-auth-intro {
        padding: 20px;
        border-radius: 18px;
    }

    .admin-auth-polished .password-field-wrap {
        grid-template-columns: 1fr;
    }

    .admin-auth-polished .password-toggle-btn {
        width: 100%;
    }
}


/* ==========================================================================
   Admin Auth Eye Icon Hotfix
   Replaces "Show" text buttons with compact eye icons and tightens auth layout.
   ========================================================================== */

.password-eye-toggle {
    width: 52px !important;
    min-width: 52px !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 14px !important;
    font-size: 0 !important;
    position: relative;
}

.password-eye-toggle::before {
    content: "";
    width: 22px;
    height: 22px;
    display: block;
    background-color: currentColor;
    opacity: 0.86;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.password-eye-toggle.is-visible::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(-45deg);
    opacity: 0.9;
}

.admin-auth-polished .password-field-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    align-items: center;
    gap: 10px;
}

.admin-auth-polished .password-field-wrap input {
    width: 100%;
}

.admin-auth-polished .admin-auth-card {
    max-height: calc(100vh - 44px);
    overflow-y: auto;
}

.admin-auth-intro {
    max-height: calc(100vh - 44px);
}

.admin-auth-polished .admin-auth-card::-webkit-scrollbar,
.admin-auth-intro::-webkit-scrollbar {
    width: 6px;
}

.admin-auth-polished .admin-auth-card::-webkit-scrollbar-thumb,
.admin-auth-intro::-webkit-scrollbar-thumb {
    background: rgba(17, 24, 39, 0.16);
    border-radius: 999px;
}

.admin-auth-intro::after {
    width: 210px;
    height: 210px;
}

@media (max-width: 560px) {
    .admin-auth-polished .password-field-wrap {
        grid-template-columns: minmax(0, 1fr) 52px;
    }

    .password-eye-toggle {
        width: 52px !important;
    }
}


/* ==========================================================================
   Admin Auth Brand Layout Hotfix
   Fixes the weak arrangement around the logo, tagline and secure-area label.
   ========================================================================== */

.admin-auth-intro .auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
}

.admin-auth-intro .auth-brand > span:last-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-auth-intro .auth-brand strong {
    font-size: 1.1rem;
    line-height: 1.05;
    white-space: nowrap;
}

.admin-auth-intro .auth-brand small {
    margin-top: 0;
    max-width: 290px;
    line-height: 1.25;
    white-space: normal;
}

.admin-auth-intro > .admin-page-eyebrow {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(142, 231, 181, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    letter-spacing: 0.16em;
    line-height: 1;
}

.admin-auth-intro > .admin-page-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #8ee7b5;
    box-shadow: 0 0 0 5px rgba(142, 231, 181, 0.12);
}

.admin-auth-intro h1 {
    margin-top: 34px;
}

@media (max-width: 560px) {
    .admin-auth-intro .auth-brand {
        align-items: flex-start;
    }

    .admin-auth-intro .auth-brand strong {
        white-space: normal;
    }

    .admin-auth-intro > .admin-page-eyebrow {
        margin-top: 14px;
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .admin-auth-intro h1 {
        margin-top: 24px;
    }
}


/* ==========================================================================
   Admin Collapsed Sidebar Hotfix
   Fixes folded sidebar logo squeezing, visible scrollbar and icon alignment.
   ========================================================================== */

@media (min-width: 861px) {
    .admin-layout.sidebar-collapsed .admin-sidebar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .admin-layout.sidebar-collapsed .admin-sidebar-top {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        margin-bottom: 12px;
        padding-bottom: 14px;
    }

    .admin-layout.sidebar-collapsed .admin-console-brand {
        width: 56px;
        height: 56px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
    }

    .admin-layout.sidebar-collapsed .admin-brand-logo-mark,
    .admin-layout.sidebar-collapsed .admin-brand-mark {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        flex: 0 0 56px !important;
        padding: 7px;
        border-radius: 17px;
    }

    .admin-layout.sidebar-collapsed .admin-brand-logo-mark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .admin-layout.sidebar-collapsed .admin-sidebar-toggle {
        width: 46px;
        height: 46px;
        margin: 0;
        padding: 11px;
        border-radius: 15px;
    }

    .admin-layout.sidebar-collapsed .admin-nav {
        align-items: center;
        padding-right: 0;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .admin-layout.sidebar-collapsed .admin-nav::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .admin-layout.sidebar-collapsed .admin-nav a {
        width: 54px;
        min-height: 54px;
        justify-content: center;
        padding: 12px;
        border-radius: 18px;
    }

    .admin-layout.sidebar-collapsed .admin-nav a.active {
        box-shadow: 0 0 0 2px rgba(142, 231, 181, 0.35);
        background: rgba(39, 174, 96, 0.18);
    }

    .admin-layout.sidebar-collapsed .nav-icon {
        width: 34px;
        height: 34px;
        border-radius: 14px;
        font-size: 0.86rem;
    }

    .admin-layout.sidebar-collapsed .admin-user-menu {
        width: 100%;
        justify-content: center;
    }

    .admin-layout.sidebar-collapsed .admin-user-menu .admin-user-card {
        width: 64px;
        min-height: 64px;
        justify-content: center;
        padding: 10px;
        border-radius: 21px;
    }

    .admin-layout.sidebar-collapsed .admin-user-avatar {
        width: 44px;
        height: 44px;
        border-radius: 16px;
    }

    .admin-layout.sidebar-collapsed .admin-user-menu-panel {
        left: 72px;
        bottom: 0;
    }
}


/* ==========================================================================
   Admin Sidebar Icons Patch
   Replaces collapsed sidebar initials with clear SVG icons.
   ========================================================================== */

.nav-icon {
    color: currentColor;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.admin-nav a.active .nav-icon,
.admin-nav a:hover .nav-icon {
    background: rgba(255, 255, 255, 0.15);
}

.admin-layout.sidebar-collapsed .nav-icon svg {
    width: 20px;
    height: 20px;
}

.admin-layout.sidebar-collapsed .admin-nav a {
    position: relative;
}

.admin-layout.sidebar-collapsed .admin-nav a[title]::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: none;
    min-width: max-content;
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    pointer-events: none;
}

.admin-layout.sidebar-collapsed .admin-nav a[title]::before {
    content: "";
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    display: none;
    border: 6px solid transparent;
    border-right-color: #111827;
    pointer-events: none;
}

.admin-layout.sidebar-collapsed .admin-nav a[title]:hover::after,
.admin-layout.sidebar-collapsed .admin-nav a[title]:hover::before {
    display: block;
}

.admin-layout.sidebar-collapsed .admin-nav {
    overflow-x: visible;
}

.admin-layout.sidebar-collapsed .admin-sidebar {
    overflow: visible !important;
}

@media (max-width: 860px) {
    .nav-icon svg {
        width: 18px;
        height: 18px;
    }

    .admin-layout.sidebar-collapsed .admin-nav a[title]::after,
    .admin-layout.sidebar-collapsed .admin-nav a[title]::before {
        display: none !important;
    }
}


/* ==========================================================================
   Messages Table Layout Hotfix
   Prevents ugly word-breaking in the Messages table while keeping it readable.
   ========================================================================== */

.admin-messages-table-wrap {
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: visible;
    padding-bottom: 6px;
}

.admin-messages-table {
    width: 100%;
    min-width: 1080px !important;
    table-layout: fixed;
}

.admin-messages-table th,
.admin-messages-table td {
    overflow-wrap: normal !important;
    word-break: normal !important;
    vertical-align: middle;
}

.admin-messages-table th {
    white-space: nowrap !important;
}

.admin-messages-table .col-id,
.admin-messages-table td:nth-child(1) {
    width: 52px;
    text-align: center;
    white-space: nowrap !important;
}

.admin-messages-table .col-sender,
.admin-messages-table td:nth-child(2) {
    width: 170px;
}

.admin-messages-table td:nth-child(2) strong {
    display: block;
    line-height: 1.25;
}

.admin-messages-table td:nth-child(2) .admin-muted {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere !important;
    font-size: 0.92rem;
}

.admin-messages-table .col-community,
.admin-messages-table td:nth-child(3) {
    width: 115px;
    white-space: normal !important;
}

.admin-messages-table .col-service,
.admin-messages-table td:nth-child(4) {
    width: 155px;
}

.admin-messages-table td:nth-child(4) .admin-table-title {
    margin-bottom: 8px;
    line-height: 1.25;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.admin-messages-table .col-message,
.admin-messages-table td:nth-child(5) {
    width: 310px;
}

.admin-messages-table td:nth-child(5) {
    line-height: 1.5;
    overflow-wrap: anywhere !important;
}

.admin-messages-table .col-sms,
.admin-messages-table td:nth-child(6) {
    width: 82px;
    text-align: center;
    white-space: nowrap !important;
}

.admin-messages-table .sms-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding-left: 12px;
    padding-right: 12px;
    white-space: nowrap !important;
    line-height: 1;
}

.admin-messages-table .col-date,
.admin-messages-table td:nth-child(7) {
    width: 142px;
    white-space: normal !important;
}

.admin-messages-table .col-action,
.admin-messages-table td:nth-child(8) {
    width: 150px;
    white-space: nowrap !important;
}

.admin-messages-table .status-badge {
    word-break: normal !important;
    overflow-wrap: normal !important;
}

@media (min-width: 1300px) {
    .admin-messages-table {
        min-width: 0 !important;
    }

    .admin-messages-table .col-message,
    .admin-messages-table td:nth-child(5) {
        width: auto;
    }
}
