/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */

/* Custom CSS for Nexus Cart
 *
 * This block allows you to customize theme colors and styles for the entire Nexus Cart template.
 *
 * To customize colors:
 * - Replace the var() references with your own hex colors or other CSS values.
 * - For example, instead of --primary: #4b5563; use --primary: #your-color;
 * - You can also override any CSS properties here.
 */

html {
    font-size: 14px;
}

/* Sticky footer — push footer to bottom on short pages */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
section#main-body {
    flex: 1 0 auto;
}
/* Global Poppins Font */
body,
h1, h2, h3, h4, h5, h6,
.btn,
.navbar,
.nav,
.panel,
.form-control,
input, select, textarea,
.tiles .tile .title,
.tile .stat {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root {
    --white: #fff;

    /* Neutral shades */
    --neutral-50: #fbf9fa;
    --neutral-100: #f4f5f7;
    --neutral-200: #e4e4e7;
    --neutral-300: #d0d5dd;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --neutral-950: #030712;

    /* Primary brand palette based on #030712 */
    --primary-50: #f0f1f5;
    --primary-100: #d8dbe3;
    --primary-200: #b1b7c7;
    --primary-300: #8a93ab;
    --primary-400: #636f8f;
    --primary-500: #3c4b73;
    --primary-600: #1e2a4d;
    --primary-700: #111b36;
    --primary-800: #0a1122;
    --primary-900: #050a15;
    --primary-950: #030712;

    /* Primary colors */
    --primary: #030712;
    --primary-lifted: #0a1122;
    --primary-accented: #111b36;

    /* Secondary colors */
    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    /* Success colors */
    --success: #00a63e;
    --success-lifted: #008236;
    --success-accented: #016630;

    /* Info colors */
    --info: #155dfc;
    --info-lifted: #1447e6;
    --info-accented: #193cb8;

    /* Notice colors */
    --notice: #7f22fe;
    --notice-lifted: #7008e7;
    --notice-accented: #5d0ec0;

    /* Warning colors */
    --warning: #f54a00;
    --warning-lifted: #ca3500;
    --warning-accented: #9f2d00;

    /* Error colors */
    --error: #e7000b;
    --error-lifted: #c10007;
    --error-accented: #9f0712;

    /* Grayscale colors */
    --grayscale: #030712;
    --grayscale-lifted: #0a1122;
    --grayscale-accented: #111b36;

    /* Neutral colors */
    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* Text neutral colors */
    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-900);

    /* Border neutral colors */
    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    /* Background neutral colors */
    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: var(--neutral-100);
    --bg-accented: var(--neutral-200);
    --bg-inverted: #030712;

    /* Additional colors */
    --yellow-200: #fff085;
    --yellow-300: #ffdf20;
    --teal-300: #46edd5;
    --teal-400: #00d5be;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;

    /* Additional custom properties */
    /* Font sizes */
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    /* Spacing */
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    /* Rounding */
    --rounding-sm: 0.25rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.75rem;

    /* Other */
    --letter-spacing: 0em;
    --disabled-opacity: 25%;
}

/* ======================================
   Bootstrap Primary Color Overrides
   Primary: var(--primary)
   ====================================== */

/* Links */
a {
    color: var(--primary);
}
a:hover,
a:focus {
    color: #111b36;
}

/* btn-primary */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
    background-color: #0a1122;
    border-color: #0a1122;
    color: #fff;
}
.btn-primary.disabled,
.btn-primary[disabled],
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    opacity: 0.65;
}

/* btn-default hover accent */
.btn-default:hover,
.btn-default:focus {
    border-color: var(--primary);
    color: var(--primary);
}

/* Progress bar */
.progress-bar {
    background-color: var(--primary);
}

/* Labels & badges */
.label-primary {
    background-color: var(--primary);
}

/* Panels */
.panel-primary {
    border-color: var(--primary);
}
.panel-primary > .panel-heading {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Navs / tabs / pills */
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    background-color: var(--primary);
    color: #fff;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Pagination */
.pagination > li > a:hover,
.pagination > li > a:focus {
    color: var(--primary);
}

/* Dropdown menu active */
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    background-color: var(--primary);
    color: #fff;
}

/* Alerts - info link color */
.alert-info a {
    color: var(--primary);
}

/* Table striped header */
.table > thead > tr > th {
    border-bottom-color: var(--primary);
}

/* ======================================
   Elegant Header — Dark Top Bar
   ====================================== */

section#header {
    margin: 0;
    padding: 0;
    background: #4a2818;
    border: none;
    border-radius: 0;
}

section#header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

section#header .header-left {
    flex-shrink: 0;
}

section#header .logo img {
    max-height: 58px;
    vertical-align: middle;
    filter: none;
}

section#header .logo-text {
    font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.65em;
    color: #fff;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-decoration: none;
}

section#header .logo-text:hover {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

/* Header Center — Navigation Links */
section#header .header-center {
    display: none;
}

/* Header Center Nav */
.header-center-nav {
    display: flex;
    align-items: center;
}

.hdr-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hdr-nav-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.hdr-nav-list > li > a:hover,
.hdr-nav-list > li > a:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.hdr-nav-list > li > a .caret {
    border-top-color: rgba(255, 255, 255, 0.5);
    margin-left: 3px;
}

.hdr-nav-list > li > a:hover .caret {
    border-top-color: #fff;
}

/* Header Dropdowns */
.hdr-dropdown {
    position: relative;
}

.hdr-dropdown-menu {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #E8D0BB;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(74, 40, 24, 0.12), 0 2px 8px rgba(74, 40, 24, 0.06);
    padding: 12px;
    padding-top: 12px;
    min-width: 180px;
    z-index: 1050;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

/* Invisible bridge to prevent hover gap */
.hdr-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
    display: none;
}

.hdr-dropdown:hover::after {
    display: block;
}

.hdr-dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    min-width: 320px;
}

.hdr-dropdown:hover > .hdr-dropdown-menu {
    display: block !important;
    visibility: visible;
    opacity: 1;
}

.hdr-dropdown:hover > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hdr-dropdown-menu > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #5C3D28;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s;
    white-space: nowrap;
}

.hdr-dropdown-menu > a i {
    color: #D4A574;
    font-size: 15px;
    width: 20px;
    text-align: center;
}

.hdr-dropdown-menu > a:hover {
    background: #FDF6F0;
    color: #B8693F;
    text-decoration: none;
}

.hdr-dropdown-menu > a:hover i {
    color: #B8693F;
}

/* Header Right Actions */
section#header .header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: rgba(222, 190, 160, 0.7);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.header-action:hover,
.header-action:focus {
    color: #F5DCC3;
    background: rgba(222, 190, 160, 0.1);
    text-decoration: none;
}

.header-action i {
    font-size: 15px;
}

.header-action .caret {
    border-top-color: rgba(222, 190, 160, 0.5);
    margin-left: 2px;
}

.header-action:hover .caret {
    border-top-color: #F5DCC3;
}

/* Notification dot */
.notif-dot {
    position: absolute;
    top: 6px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #4a2818;
    animation: notifPulse 2s infinite;
}

@keyframes notifPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

/* Header Buttons */
.header-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    color: rgba(222, 190, 160, 0.85);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(222, 190, 160, 0.25);
    border-radius: 8px;
    transition: all 0.2s;
}

.header-btn-outline:hover {
    color: #F5DCC3;
    border-color: rgba(222, 190, 160, 0.45);
    background: rgba(222, 190, 160, 0.08);
    text-decoration: none;
}

.header-btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #D4893E;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.header-btn-solid:hover {
    background: #E09A52;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 137, 62, 0.35);
    text-decoration: none;
}

/* Responsive header */
@media (max-width: 767px) {
    section#header .header-inner {
        flex-direction: column;
        gap: 14px;
        padding: 16px 0;
    }
    section#header .header-center {
        display: none;
    }
    section#header .header-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ======================================
   Elegant Navigation — Light Bar
   ====================================== */

section#main-menu {
    background-color: #FDF6F0;
    border-bottom: 1px solid #E8D0BB;
    box-shadow: 0 1px 3px rgba(74, 40, 24, 0.06);
}

/* Panel buttons in navbar */
.nav-panel-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px !important;
}

.nav-panel-btns > li > a.nav-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px !important;
    margin: 5px 2px;
    color: #fff !important;
    background: #4a2818 !important;
    border: 1px solid rgba(212, 165, 116, 0.3) !important;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: all 0.25s ease;
    border-bottom: none !important;
}

.nav-panel-btns > li > a.nav-panel-link i {
    color: #D4A574;
    font-size: 13px;
    transition: color 0.25s ease;
}

.nav-panel-btns > li > a.nav-panel-link:hover,
.nav-panel-btns > li > a.nav-panel-link:focus {
    background: rgba(74, 40, 24, 0.85) !important;
    border-color: rgba(212, 137, 62, 0.5) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(74, 40, 24, 0.25);
}

.nav-panel-btns > li > a.nav-panel-link:hover i {
    color: #D4893E;
}

@media (max-width: 991px) {
    .nav-panel-btns {
        flex-direction: column;
        margin-left: 0 !important;
        padding: 8px 15px;
        gap: 4px;
    }
    .nav-panel-btns > li {
        width: 100%;
    }
    .nav-panel-btns > li > a.nav-panel-link {
        display: flex;
        margin: 2px 0;
        justify-content: center;
    }
}

.navbar-main {
    margin-bottom: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    min-height: 46px;
    font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-shadow: none;
}

/* Nav links */
.navbar-main .navbar-nav > li > a {
    color: #6B4D38;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 13px 18px;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.navbar-main .navbar-nav > li > a:hover,
.navbar-main .navbar-nav > li > a:focus {
    color: #B8693F;
    background-color: transparent;
    border-bottom-color: #D4A574;
}

.navbar-main .navbar-nav > .active > a,
.navbar-main .navbar-nav > .active > a:hover,
.navbar-main .navbar-nav > .active > a:focus,
.navbar-main .navbar-nav > .open > a,
.navbar-main .navbar-nav > .open > a:hover,
.navbar-main .navbar-nav > .open > a:focus {
    color: #B8693F;
    background-color: transparent;
    border-bottom-color: #B8693F;
}

/* Caret */
.navbar-main .navbar-nav > li > a .caret {
    border-top-color: #A08060;
}

.navbar-main .navbar-nav > li > a:hover .caret,
.navbar-main .navbar-nav > .open > a .caret {
    border-top-color: #B8693F;
}

/* "Hello, user" account pill */
.navbar-main li.account {
    background-color: transparent;
}

.navbar-main li.account > a {
    color: #4a2818 !important;
    background: rgba(184, 105, 63, 0.1) !important;
    border: 1px solid rgba(184, 105, 63, 0.2) !important;
    border-radius: 20px;
    padding: 8px 16px !important;
    margin: 5px 0;
    border-bottom: none !important;
    font-weight: 600;
    font-size: 12.5px;
    transition: all 0.2s;
}

.navbar-main li.account > a:hover {
    background: rgba(184, 105, 63, 0.18) !important;
    color: #4a2818 !important;
}

/* Dropdown menus */
.navbar-main .dropdown-menu {
    border: 1px solid #E8D0BB;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(74, 40, 24, 0.1), 0 2px 8px rgba(74, 40, 24, 0.06);
    padding: 8px 0;
    margin-top: 2px;
    min-width: 210px;
    animation: dropFadeIn 0.18s ease;
    background: #fff;
}

@keyframes dropFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar-main .dropdown-menu > li > a {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #5C3D28;
    transition: all 0.15s;
}

.navbar-main .dropdown-menu > li > a:hover,
.navbar-main .dropdown-menu > li > a:focus {
    background-color: #FDF6F0;
    color: #B8693F;
    padding-left: 24px;
}

.navbar-main .dropdown-menu > .active > a,
.navbar-main .dropdown-menu > .active > a:hover,
.navbar-main .dropdown-menu > .active > a:focus {
    background-color: #B8693F;
    color: #fff;
}

/* Hover-to-open on desktop */
@media (min-width: 992px) {
    .navbar-main .navbar-nav > li.dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* Navbar toggle (mobile) */
.navbar-main .navbar-toggle {
    border-color: #D4A574;
    border-radius: 6px;
    margin-top: 7px;
    margin-bottom: 7px;
}

.navbar-main .navbar-toggle .icon-bar {
    background-color: #A07850;
}

.navbar-main .navbar-toggle:hover,
.navbar-main .navbar-toggle:focus {
    background-color: rgba(184, 105, 63, 0.08);
    border-color: #B8693F;
}

.navbar-main .navbar-toggle:hover .icon-bar,
.navbar-main .navbar-toggle:focus .icon-bar {
    background-color: #B8693F;
}

/* Mobile nav */
@media (max-width: 991px) {
    .navbar-main .navbar-nav > li > a {
        padding: 10px 20px;
        border-bottom: none;
    }
    .navbar-main .navbar-nav > .active > a,
    .navbar-main .navbar-nav > .open > a {
        border-bottom: none;
        color: var(--primary);
        background-color: #f9fafb;
    }
    .navbar-main .navbar-nav .open .dropdown-menu {
        box-shadow: none;
        border-radius: 0;
        border: none;
        padding: 0;
    }
    .navbar-main .navbar-nav .open .dropdown-menu > li > a {
        color: #4b5563;
        padding: 9px 35px;
    }
    .navbar-main .navbar-nav .open .dropdown-menu > li > a:hover {
        color: var(--primary);
        background-color: #f9fafb;
    }
    .navbar-main li.account > a {
        border-radius: 0;
        margin: 0;
    }
}

/* ======================================
   Hero Section — Text & Info Only
   ====================================== */

section#home-banner.hero-info {
    margin: 0;
    padding: 80px 0 90px;
    background: var(--primary);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow behind content */
section#home-banner.hero-info::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99,111,143,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 20px;
    color: #fff;
}

.hero-desc {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
    min-width: 170px;
}

.hero-btn-primary {
    background: #fff;
    color: var(--primary);
    border: 2px solid #fff;
}
.hero-btn-primary:hover,
.hero-btn-primary:focus {
    background: transparent;
    color: #fff;
    text-decoration: none;
    border-color: #fff;
}

.hero-btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.hero-btn-outline:hover,
.hero-btn-outline:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 992px) {
    section#home-banner.hero-info {
        padding: 60px 0 70px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-desc {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    section#home-banner.hero-info {
        padding: 48px 20px 56px;
    }
    .hero-title {
        font-size: 26px;
    }
    .hero-desc {
        font-size: 15px;
        margin-bottom: 28px;
    }
    .hero-btn {
        min-width: 150px;
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Hide old home-shortcuts (removed from template) */
.home-shortcuts {
    display: none;
}

/* ======================================
   Footer Divider — Removed
   ====================================== */

.footer-divider {
    display: none !important;
}

/* ======================================
   Footer — Premium Layout
   ====================================== */

section#footer {
    margin: 0;
    padding: 0;
    background: #3E2316;
    border-top: none;
    color: rgba(210, 180, 150, 0.7);
    font-size: 14px;
    position: relative;
}

/* Main grid: brand left, links right */
.footer-main {
    display: grid;
    grid-template-columns: 1.3fr 2fr;
    gap: 60px;
    padding: 70px 0 50px;
}

/* Brand column */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: inline-block;
    text-decoration: none;
}

.footer-logo img {
    max-height: 120px;
    transition: opacity 0.3s ease;
}

.footer-logo:hover img {
    opacity: 0.85;
}

.footer-tagline {
    color: rgba(210, 180, 150, 0.6);
    line-height: 1.75;
    margin: 0;
    font-size: 13.5px;
    max-width: 320px;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(210, 180, 150, 0.08);
    color: rgba(210, 180, 150, 0.55);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.social-link:hover {
    background: rgba(212, 137, 62, 0.2);
    color: #D4893E;
    transform: translateY(-2px);
}

/* Links columns wrapper */
.footer-links-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-link-col {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: #D4893E;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: rgba(212, 137, 62, 0.4);
    border-radius: 2px;
}

.footer-link-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-link-col ul li {
    margin-bottom: 12px;
}

.footer-link-col ul li a {
    color: rgba(210, 180, 150, 0.6);
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.footer-link-col ul li a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: #D4893E;
    transition: width 0.25s ease;
    margin-right: 0;
}

.footer-link-col ul li a:hover {
    color: #E8C496;
}

.footer-link-col ul li a:hover::before {
    width: 12px;
    margin-right: 8px;
}

/* Bottom bar */
.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid rgba(210, 180, 150, 0.1);
}

.footer-bottom-bar p {
    margin: 0;
    color: rgba(210, 180, 150, 0.4);
    font-size: 12.5px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links a {
    color: rgba(210, 180, 150, 0.4);
    text-decoration: none;
    font-size: 12.5px;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #D4893E;
}

.footer-dot {
    color: rgba(210, 180, 150, 0.2);
    font-size: 14px;
}

.footer-bottom-bar .back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(210, 180, 150, 0.08);
    color: rgba(210, 180, 150, 0.45);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom-bar .back-to-top:hover {
    background: rgba(212, 137, 62, 0.2);
    color: #D4893E;
    transform: translateY(-3px);
}

.footer-bottom-bar .back-to-top i {
    font-size: 13px;
    padding: 0;
    background: none;
    border-radius: 0;
    opacity: 1;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-links-wrap {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .footer-main {
        padding: 50px 0 35px;
    }
    .footer-links-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-brand-col {
        text-align: center;
        align-items: center;
    }
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-link-col {
        align-items: center;
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-bottom-links {
        justify-content: center;
    }
}



/* ======================================
   Shared Section Header
   ====================================== */

.hp-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.hp-section-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.hp-section-header p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

/* ======================================
   Features Section — Why Choose Us
   ====================================== */

section#hp-features {
    padding: 80px 0;
    background: #fff;
}

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

.feat-card {
    padding: 32px 28px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.feat-card:hover {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 8px 30px rgba(3, 7, 18, 0.06);
    transform: translateY(-3px);
}

.feat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feat-card:hover .feat-icon {
    transform: scale(1.08);
}

.feat-icon svg {
    width: 22px;
    height: 22px;
}

.feat-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
}

.feat-card p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.65;
}

/* ======================================
   Stats Section — Numbers Band
   ====================================== */

section#hp-stats {
    padding: 56px 0;
    background: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 12px 10px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ======================================
   Steps Section — How It Works
   ====================================== */

section#hp-steps {
    padding: 80px 0;
    background: #f9fafb;
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 0 24px;
}

.step-num {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px;
}

.step-card p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.65;
}

.step-divider {
    flex-shrink: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 14px;
    color: #d1d5db;
}

.step-divider svg {
    width: 24px;
    height: 24px;
}

/* ======================================
   Testimonials Section
   ====================================== */

section#hp-testimonials {
    padding: 80px 0;
    background: #fff;
}

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

.test-card {
    padding: 30px 28px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.test-card:hover {
    border-color: #e5e7eb;
    box-shadow: 0 6px 24px rgba(3, 7, 18, 0.05);
}

.test-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    color: #facc15;
}

.test-stars svg {
    width: 16px;
    height: 16px;
}

.test-card blockquote {
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
    margin: 0 0 20px;
    padding: 0;
    border: none;
    font-style: normal;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.test-avatar {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.test-author strong {
    display: block;
    font-size: 14px;
    color: #111827;
    font-weight: 600;
    line-height: 1.3;
}

.test-author span {
    display: block;
    font-size: 12px;
    color: #9ca3af;
}

/* ======================================
   FAQ Section
   ====================================== */

section#hp-faq {
    padding: 80px 0;
    background: #f9fafb;
}

.faq-list {
    max-width: 740px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.25s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: #d1d5db;
}

.faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(3, 7, 18, 0.05);
}

.faq-item summary {
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: #9ca3af;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    content: '\2212';
    color: var(--primary);
}

.faq-item[open] summary {
    color: var(--primary);
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
}

/* ======================================
   Final CTA Section — Card Style
   ====================================== */

section#hp-cta {
    padding: 80px 0 90px;
    background: #f3f4f6;
}

.cta-card {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 48px;
    background: var(--primary);
    border-radius: 20px;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 111, 143, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 22px;
    letter-spacing: 0.02em;
}

.cta-card h2 {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
    position: relative;
}

.cta-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 auto 34px;
    line-height: 1.7;
    max-width: 480px;
    position: relative;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.cta-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cta-btn-main:hover,
.cta-btn-main:focus {
    background: #f3f4f6;
    color: var(--primary);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.cta-btn-main span {
    transition: transform 0.25s ease;
}

.cta-btn-main:hover span {
    transform: translateX(4px);
}

.cta-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cta-btn-ghost:hover,
.cta-btn-ghost:focus {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ======================================
   Responsive — New Sections
   ====================================== */

@media (max-width: 992px) {
    .feat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
    .stat-item:not(:last-child)::after {
        display: none;
    }
    .stat-number {
        font-size: 30px;
    }
    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .step-divider {
        transform: rotate(90deg);
        padding-top: 0;
    }
    .test-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }
    .hp-section-header h2 {
        font-size: 26px;
    }
    section#hp-features,
    section#hp-steps,
    section#hp-testimonials,
    section#hp-faq {
        padding: 60px 0;
    }
    section#hp-cta {
        padding: 60px 0 70px;
    }
    .cta-card h2 {
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .feat-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 0;
    }
    section#hp-features,
    section#hp-steps,
    section#hp-testimonials,
    section#hp-faq {
        padding: 48px 15px;
    }
    section#hp-stats {
        padding: 40px 15px;
    }
    section#hp-cta {
        padding: 48px 15px;
    }
    .cta-card h2 {
        font-size: 22px;
    }
    .cta-card p {
        font-size: 14px;
    }
    .cta-card {
        padding: 40px 24px;
        border-radius: 16px;
    }
    .faq-item summary {
        font-size: 14px;
        padding: 16px 18px;
    }
    .faq-answer {
        padding: 0 18px 16px;
        font-size: 13px;
    }
}

/* ======================================
   Game Cards Section
   ====================================== */

section#game-cards {
    padding: 70px 0 80px;
    background: #f9fafb;
}

.gc-header {
    text-align: center;
    margin-bottom: 48px;
}

.gc-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.gc-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

.gc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.gc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.gc-card:hover {
    text-decoration: none;
    color: var(--primary);
    border-color: #d1d5db;
    box-shadow: 0 4px 16px rgba(3, 7, 18, 0.08);
    transform: translateY(-2px);
}

.gc-card:hover::before {
    transform: scaleY(1);
}

.gc-card:focus {
    text-decoration: none;
    color: var(--primary);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.gc-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.gc-card:hover .gc-icon {
    background: var(--primary);
    color: #fff;
}

.gc-icon svg {
    width: 22px;
    height: 22px;
}

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

.gc-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 3px;
    color: #111827;
    line-height: 1.3;
}

.gc-info p {
    font-size: 12.5px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-arrow {
    flex-shrink: 0;
    font-size: 18px;
    color: #d1d5db;
    transition: all 0.25s ease;
    margin-left: auto;
}

.gc-card:hover .gc-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

.gc-footer {
    text-align: center;
    margin-top: 36px;
}

.gc-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    padding: 10px 28px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    transition: all 0.25s ease;
}

.gc-view-all:hover,
.gc-view-all:focus {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

.gc-view-all span {
    transition: transform 0.25s ease;
}

.gc-view-all:hover span {
    transform: translateX(4px);
}

/* Responsive — Game Cards */
@media (max-width: 1200px) {
    .gc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    section#game-cards {
        padding: 50px 0 60px;
    }
    .gc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gc-title {
        font-size: 26px;
    }
    .gc-header {
        margin-bottom: 36px;
    }
}

@media (max-width: 575px) {
    section#game-cards {
        padding: 40px 15px 48px;
    }
    .gc-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .gc-card {
        padding: 16px 18px;
    }
    .gc-title {
        font-size: 22px;
    }
}

/* ======================================
   Client Area — Modern Redesign
   ====================================== */

/* Page header / breadcrumb area */
.page-header-container .page-header h1 {
    font-weight: 700;
    color: #3A1C0E;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.page-header-container .page-header h1 small {
    color: #8A6548;
    font-weight: 400;
}

.breadcrumb {
    background: transparent;
    padding: 8px 0;
    margin: 0;
    font-size: 13px;
}

.breadcrumb > li + li::before {
    color: #D4A574;
    content: "/";
}

.breadcrumb a {
    color: #8A6548;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #B8693F;
}

.breadcrumb > .active {
    color: #B8693F;
    font-weight: 500;
}

/* ---- Stat Tiles — Individual Cards ---- */
.tiles {
    margin: 0 0 28px 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tiles .row {
    display: flex;
    flex-wrap: wrap;
}

.tiles .tile {
    background: transparent !important;
    border: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    padding: 0 15px !important;
    margin: 0 0 12px 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.tiles .tile a {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}

.tiles .tile a:hover {
    box-shadow: 0 6px 20px rgba(3,7,18,0.08);
    transform: translateY(-2px);
}

.tiles .tile:last-child {
    border-right: none !important;
}

.tile .icon {
    font-size: 32px !important;
    color: var(--primary) !important;
    opacity: 0.12;
    top: 16px !important;
    right: 18px !important;
}

.tile .stat {
    font-size: 30px !important;
    font-weight: 700;
    color: var(--primary);
    margin-top: 10px !important;
    line-height: 1.1;
}

.tile .title {
    font-size: 11px !important;
    font-weight: 600;
    color: #6b7280 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.tiles .tile .highlight {
    height: 3px !important;
    border-radius: 3px !important;
    margin-top: 12px !important;
}

/* Modern tile highlight colors */
.tiles .tile .highlight.bg-color-blue { background: #3b82f6 !important; }
.tiles .tile .highlight.bg-color-green { background: #10b981 !important; }
.tiles .tile .highlight.bg-color-red { background: #ef4444 !important; }
.tiles .tile .highlight.bg-color-gold { background: #f59e0b !important; }

/* Responsive tiles */
@media (max-width: 767px) {
    .tiles .tile {
        margin: 0 10px 10px 10px !important;
        border-right: 1px solid #e5e7eb !important;
    }
}

/* ---- Client Home Panels Layout ---- */
.client-home-panels > .row {
    margin-left: -10px;
    margin-right: -10px;
}
.client-home-panels > .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

/* ---- KB Search Bar (hidden) ---- */
.home-kb-search,
form[action="clientarea.php?action=kbsearch"] {
    display: none !important;
}

/* ---- Client Home Panels ---- */
.client-home-panels .panel {
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 20px;
    transition: box-shadow 0.25s ease;
}

.client-home-panels .panel:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Remove ugly colored top borders, replace with subtle left accent */
.client-home-panels .panel[class*="panel-accent-"] {
    border-top: none !important;
    border-left: 3px solid var(--primary) !important;
}

.client-home-panels .panel.panel-accent-gold {
    border-left-color: #f59e0b !important;
}
.client-home-panels .panel.panel-accent-green {
    border-left-color: #10b981 !important;
}
.client-home-panels .panel.panel-accent-red {
    border-left-color: #ef4444 !important;
}
.client-home-panels .panel.panel-accent-blue {
    border-left-color: #3b82f6 !important;
}
.client-home-panels .panel.panel-accent-orange {
    border-left-color: #f97316 !important;
}
.client-home-panels .panel.panel-accent-purple {
    border-left-color: #8b5cf6 !important;
}
.client-home-panels .panel.panel-accent-teal {
    border-left-color: #14b8a6 !important;
}
.client-home-panels .panel.panel-accent-lime {
    border-left-color: #84cc16 !important;
}

.client-home-panels .panel > .panel-heading {
    background: #fff !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.client-home-panels .panel > .panel-heading .panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
}

/* Icon — always first in visual order */
.client-home-panels .panel > .panel-heading .panel-title > i {
    margin-right: 8px;
    color: #6b7280;
    font-size: 16px;
    flex-shrink: 0;
    order: -1;
}

/* Badge after the title text */
.client-home-panels .panel > .panel-heading .panel-title > .badge {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 8px;
    order: 1;
}

/* The button container — always push to the right end */
.client-home-panels .panel > .panel-heading .panel-title > .pull-right {
    float: none !important;
    margin-left: auto;
    flex-shrink: 0;
    order: 99;
}

.client-home-panels .panel > .panel-heading .panel-title .btn {
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid #e5e7eb !important;
    color: #4b5563 !important;
    background: #f9fafb !important;
    transition: all 0.2s;
    white-space: nowrap;
}

.client-home-panels .panel > .panel-heading .panel-title .btn:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.client-home-panels .panel > .panel-body {
    padding: 0 !important;
}

.client-home-panels .panel > .panel-body p {
    padding: 16px 20px !important;
    margin: 0;
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.6;
}

.client-home-panels .panel > .panel-footer {
    background: #f9fafb !important;
    border-top: 1px solid #f3f4f6 !important;
    padding: 10px 20px;
    font-size: 13px;
}

.client-home-panels .panel > .panel-footer a {
    color: #6b7280;
    font-weight: 500;
}

.client-home-panels .panel > .panel-footer a:hover {
    color: var(--primary);
}

.client-home-panels .panel > .list-group {
    border-top: none !important;
    border-bottom: none !important;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 0;
}

.client-home-panels .panel > .list-group .list-group-item {
    border-color: #f3f4f6;
    border-left: none;
    border-right: none;
    padding: 12px 20px;
    font-size: 13.5px;
    color: #374151;
    display: flex;
    align-items: center;
    transition: all 0.15s ease;
}

.client-home-panels .panel > .list-group .list-group-item:first-child {
    border-top: none;
}

.client-home-panels .panel > .list-group .list-group-item i {
    color: #9ca3af;
    margin-right: 10px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.client-home-panels .panel > .list-group .list-group-item .badge {
    margin-left: auto;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    border-radius: 8px;
    padding: 3px 8px;
}

.client-home-panels .panel > .list-group .list-group-item:hover {
    background: #f9fafb;
    color: var(--primary);
    text-decoration: none;
}

.client-home-panels .panel > .list-group .list-group-item:hover i {
    color: var(--primary);
}

/* ---- General Panels (all pages) ---- */
.panel {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.panel-default > .panel-heading {
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    color: #111827;
}

/* Override bg-color classes on panel buttons — keep them neutral */
.client-home-panels .panel-heading .btn.bg-color-blue,
.client-home-panels .panel-heading .btn.bg-color-green,
.client-home-panels .panel-heading .btn.bg-color-red,
.client-home-panels .panel-heading .btn.bg-color-gold,
.client-home-panels .panel-heading .btn.bg-color-orange,
.client-home-panels .panel-heading .btn.bg-color-purple,
.client-home-panels .panel-heading .btn.bg-color-teal,
.client-home-panels .panel-heading .btn.bg-color-lime {
    background: #f9fafb !important;
    color: #4b5563 !important;
    border: 1px solid #e5e7eb !important;
}

.client-home-panels .panel-heading .btn.bg-color-blue:hover,
.client-home-panels .panel-heading .btn.bg-color-green:hover,
.client-home-panels .panel-heading .btn.bg-color-red:hover,
.client-home-panels .panel-heading .btn.bg-color-gold:hover,
.client-home-panels .panel-heading .btn.bg-color-orange:hover,
.client-home-panels .panel-heading .btn.bg-color-purple:hover,
.client-home-panels .panel-heading .btn.bg-color-teal:hover,
.client-home-panels .panel-heading .btn.bg-color-lime:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* Modern bg-color overrides */
.bg-color-blue { background-color: #3b82f6 !important; }
.bg-color-green { background-color: #10b981 !important; }
.bg-color-red { background-color: #ef4444 !important; }
.bg-color-gold { background-color: #f59e0b !important; }
.bg-color-orange { background-color: #f97316 !important; }
.bg-color-purple { background-color: #8b5cf6 !important; }
.bg-color-teal { background-color: #14b8a6 !important; }
.bg-color-lime { background-color: #84cc16 !important; }

/* Revert for tile highlights (let them use bg-color) */
.tiles .tile .highlight.bg-color-blue,
.tiles .tile .highlight.bg-color-green,
.tiles .tile .highlight.bg-color-red,
.tiles .tile .highlight.bg-color-gold {
    /* The highlight-specific overrides above handle these */
}

/* ---- Buttons ---- */
.btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: 13.5px;
    padding: 8px 18px;
    transition: all 0.2s ease;
}

.btn-primary {
    box-shadow: 0 1px 3px rgba(3, 7, 18, 0.15);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(3, 7, 18, 0.2);
    transform: translateY(-1px);
}

.btn-success {
    background: #10b981;
    border-color: #10b981;
    border-radius: 8px;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    border-radius: 8px;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.btn-info {
    background: #3b82f6;
    border-color: #3b82f6;
    border-radius: 8px;
    color: #fff;
}

.btn-info:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.btn-warning {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
    border-radius: 8px;
}

.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

/* ---- Form Controls ---- */
.form-control {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13.5px;
    color: #374151;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 7, 18, 0.08);
}

/* ---- Tables ---- */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table > thead > tr > th {
    background: #f9fafb;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 12px 16px;
}

.table > tbody > tr > td {
    padding: 12px 16px;
    font-size: 13.5px;
    color: #374151;
    border-top: 1px solid #f3f4f6;
    vertical-align: middle;
}

.table > tbody > tr:hover > td {
    background: #f9fafb;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fafbfc;
}

/* ---- Labels / Badges ---- */
.label {
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    letter-spacing: 0.02em;
}

.label-success {
    background: #dcfce7;
    color: #166534;
}

.label-danger {
    background: #fee2e2;
    color: #991b1b;
}

.label-warning {
    background: #fef3c7;
    color: #92400e;
}

.label-info {
    background: #dbeafe;
    color: #1e40af;
}

.label-default {
    background: #f3f4f6;
    color: #4b5563;
}

.label-primary {
    background: var(--primary);
    color: #fff;
}

/* ---- Alerts ---- */
.alert {
    border-radius: 10px;
    border: 1px solid;
    font-size: 13.5px;
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* ---- Main Body Section ---- */
section#main-body {
    background: #FDF6F0;
}

/* ---- Modals ---- */
.modal-content {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.modal-header {
    border-bottom: 1px solid #f3f4f6;
    border-radius: 14px 14px 0 0;
    padding: 18px 24px;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 16px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid #f3f4f6;
    padding: 14px 24px;
    border-radius: 0 0 14px 14px;
}

/* ---- Pagination ---- */
.pagination > li > a,
.pagination > li > span {
    border-radius: 8px !important;
    margin: 0 2px;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 13px;
    padding: 7px 13px;
}

.pagination > .active > a,
.pagination > .active > span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination > li > a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: var(--primary);
}

/* ---- Register Domain panel in client area ---- */
.client-home-panels #registerDomainPanel .panel-body .input-group .form-control {
    border-radius: 8px 0 0 8px;
}

.client-home-panels #registerDomainPanel .panel-body .input-group-btn input {
    border-radius: 0;
}

.client-home-panels #registerDomainPanel .panel-body .input-group-btn input:last-child {
    border-radius: 0 8px 8px 0;
}

/* ======================================
   Sidebar — Modern Redesign
   ====================================== */

/* Sidebar container spacing */
.sidebar {
    padding-top: 4px;
}

/* Panel card */
.panel-sidebar {
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 20px !important;
    font-size: 14px;
    background: #fff;
    transition: box-shadow 0.25s ease;
}

.panel-sidebar:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Panel heading */
.panel-sidebar > .panel-heading {
    background: #fff !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 16px 20px !important;
}

.panel-sidebar .panel-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    color: #111827 !important;
    line-height: 1.4 !important;
    display: flex;
    align-items: center;
}

.panel-sidebar .panel-title > i:first-child {
    color: #6b7280;
    font-size: 15px;
    margin-right: 8px;
    flex-shrink: 0;
}

.panel-sidebar .panel-title .badge {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

/* Collapse chevron */
.panel-sidebar .panel-minimise {
    margin-top: 0 !important;
    color: #d1d5db !important;
    font-size: 12px;
    margin-left: auto;
    transition: all 0.2s ease;
}

.panel-sidebar .panel-minimise:hover {
    color: #6b7280 !important;
}

/* Panel body (Your Info section etc.) */
.panel-sidebar > .panel-body {
    padding: 18px 20px !important;
    color: #4b5563;
    font-size: 13.5px;
    line-height: 1.7;
}

.panel-sidebar > .panel-body strong,
.panel-sidebar > .panel-body b {
    color: #111827;
    font-weight: 600;
}

/* Update / action buttons inside sidebar body */
.panel-sidebar > .panel-body .btn {
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    width: 100%;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.panel-sidebar > .panel-body .btn-success {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.panel-sidebar > .panel-body .btn-success:hover {
    background: var(--primary-lifted) !important;
    border-color: var(--primary-lifted) !important;
    box-shadow: 0 4px 12px rgba(3,7,18,0.2);
    transform: translateY(-1px);
}

.panel-sidebar > .panel-body .btn-default {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
}

.panel-sidebar > .panel-body .btn-default:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* List group items (Shortcuts, menu links) */
.panel-sidebar .list-group {
    margin-bottom: 0;
}

.panel-sidebar .list-group-item {
    border-color: #f3f4f6 !important;
    border-left: none !important;
    border-right: none !important;
    padding: 12px 20px !important;
    font-size: 13.5px;
    color: #374151;
    line-height: 1.5 !important;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    word-wrap: break-word;
}

.panel-sidebar .list-group-item:first-child {
    border-top: none !important;
}

.panel-sidebar .list-group-item:last-child {
    border-bottom: none !important;
}

/* Icons float right in sidebar — restyle them */
.panel-sidebar .list-group-item i:not(.fa-circle):not(.fa-dot-circle):not(.no-transform) {
    float: none !important;
    order: 99;
    margin-left: auto;
    color: #d1d5db !important;
    font-size: 14px !important;
    line-height: inherit !important;
    transition: color 0.15s ease;
}

.panel-sidebar .list-group-item .sidebar-menu-item-icon {
    float: none !important;
    order: 99;
    margin-left: auto;
}

.panel-sidebar a.list-group-item:hover {
    background: #f9fafb !important;
    color: var(--primary) !important;
    text-decoration: none;
}

.panel-sidebar a.list-group-item:hover i.fas,
.panel-sidebar a.list-group-item:hover i.far {
    color: var(--primary) !important;
}

/* Active state */
.panel-sidebar a.list-group-item.active,
.panel-sidebar a.list-group-item.active:focus,
.panel-sidebar a.list-group-item.active:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    font-weight: 500;
}

.panel-sidebar a.list-group-item.active i,
.panel-sidebar a.list-group-item.active:focus i,
.panel-sidebar a.list-group-item.active:hover i {
    color: rgba(255,255,255,0.7) !important;
}

/* Badges inside list items */
.panel-sidebar .list-group-item .badge {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    border-radius: 8px;
    padding: 3px 8px;
    margin-right: 6px;
    float: none !important;
}

.panel-sidebar a.list-group-item.active .badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Panel footer */
.panel-sidebar > .panel-footer {
    background: #f9fafb !important;
    border-top: 1px solid #f3f4f6 !important;
    padding: 12px 20px !important;
    font-size: 13px;
    color: #6b7280;
}

.panel-sidebar > .panel-footer a {
    color: #6b7280;
    font-weight: 500;
}

.panel-sidebar > .panel-footer a:hover {
    color: var(--primary);
}

/* Filter buttons variant */
.panel-sidebar.view-filter-btns .list-group-item.active,
.panel-sidebar.view-filter-btns .list-group-item.active:focus,
.panel-sidebar.view-filter-btns .list-group-item.active:hover {
    background: #f3f4f6 !important;
    border-color: #f3f4f6 !important;
    color: var(--primary) !important;
}

/* Sidebar panel body text links */
.panel-sidebar > .panel-body a:not(.btn) {
    color: var(--primary);
    font-weight: 500;
}

.panel-sidebar > .panel-body a:not(.btn):hover {
    color: #1f2937;
    text-decoration: underline;
}

/* ======================================
   Announcements — Modern Card Layout
   ====================================== */

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ann-card {
    background: #fff;
    border: 1px solid #E8D0BB;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ann-card:hover {
    border-color: rgba(184, 105, 63, 0.3);
    box-shadow: 0 8px 30px rgba(74, 40, 24, 0.07);
    transform: translateY(-2px);
}

.ann-card-body {
    padding: 28px 32px;
}

.ann-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ann-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #A08060;
    font-weight: 500;
    background: rgba(184, 105, 63, 0.06);
    padding: 5px 12px;
    border-radius: 20px;
}

.ann-date i {
    font-size: 12px;
    color: #B8693F;
}

.ann-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #A08060;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.ann-edit-link:hover {
    color: #B8693F;
    background: rgba(184, 105, 63, 0.06);
}

.ann-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.ann-title a {
    color: #3A1C0E;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ann-title a:hover {
    color: #B8693F;
}

.ann-excerpt {
    color: #6B5744;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 18px;
}

.ann-excerpt p {
    margin: 0;
}

.ann-footer {
    display: flex;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #F0E4D8;
}

.ann-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #B8693F;
    text-decoration: none;
    transition: all 0.25s ease;
}

.ann-read-more:hover {
    color: #9C5935;
    gap: 12px;
}

.ann-read-more i {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.ann-read-more:hover i {
    transform: translateX(3px);
}

/* Announcements pagination */
.ann-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.ann-pagination .btn-group .btn {
    border-color: #E8D0BB;
    color: #6B5744;
}

.ann-pagination .btn-group .btn:hover {
    background: rgba(184, 105, 63, 0.06);
    color: #B8693F;
    border-color: #D4A574;
}

.ann-pagination .btn-group .btn.active {
    background: #B8693F;
    border-color: #B8693F;
    color: #fff;
}

/* Hide old default announcement styling */
.announcement-single {
    display: none;
}

/* Responsive announcements */
@media (max-width: 575px) {
    .ann-card-body {
        padding: 20px;
    }
    .ann-title {
        font-size: 18px;
    }
}

/* ======================================
   Submit Ticket — Department Selection
   ====================================== */

.dept-intro {
    margin-bottom: 28px;
}

.dept-intro p {
    color: #6B5744;
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.dept-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #E8D0BB;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.dept-card:hover {
    border-color: rgba(184, 105, 63, 0.35);
    box-shadow: 0 8px 28px rgba(74, 40, 24, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.dept-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(184, 105, 63, 0.08);
    color: #B8693F;
    font-size: 18px;
    transition: all 0.3s ease;
}

.dept-card:hover .dept-icon-wrap {
    background: #B8693F;
    color: #fff;
    box-shadow: 0 4px 14px rgba(184, 105, 63, 0.25);
}

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

.dept-name {
    margin: 0 0 4px;
    font-size: 15.5px;
    font-weight: 700;
    color: #3A1C0E;
    transition: color 0.2s ease;
}

.dept-card:hover .dept-name {
    color: #B8693F;
}

.dept-desc {
    margin: 0;
    font-size: 13px;
    color: #8A6548;
    line-height: 1.55;
}

.dept-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(184, 105, 63, 0.05);
    color: #D4A574;
    font-size: 12px;
    transition: all 0.3s ease;
}

.dept-card:hover .dept-arrow {
    background: rgba(184, 105, 63, 0.12);
    color: #B8693F;
    transform: translateX(3px);
}

@media (max-width: 575px) {
    .dept-grid {
        grid-template-columns: 1fr;
    }
    .dept-card {
        padding: 20px;
        gap: 14px;
    }
}

/* ======================================
   User Management — Modern Card Layout
   ====================================== */

.um-section {
    margin-bottom: 36px;
}

.um-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #6B5744;
    background: rgba(184, 105, 63, 0.06);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.um-count i {
    color: #B8693F;
    font-size: 14px;
}

/* User cards list */
.um-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.um-user-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #E8D0BB;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.um-user-card:hover {
    border-color: rgba(184, 105, 63, 0.3);
    box-shadow: 0 4px 20px rgba(74, 40, 24, 0.06);
}

/* Avatar circle */
.um-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B8693F 0%, #D4956A 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.um-avatar-pending {
    background: linear-gradient(135deg, #A08060 0%, #C4A882 100%);
}

.um-avatar-pending span {
    font-size: 16px;
}

/* User info */
.um-user-info {
    flex: 1;
    min-width: 0;
}

.um-user-email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: #3A1C0E;
    flex-wrap: wrap;
}

.um-badge-owner {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #B8693F;
    background: rgba(184, 105, 63, 0.1);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.um-2fa-on {
    color: #16a34a;
    font-size: 14px;
}

.um-2fa-off {
    color: #D4A574;
    font-size: 14px;
    opacity: 0.5;
}

.um-user-login {
    font-size: 12.5px;
    color: #8A6548;
    margin-top: 3px;
}

/* Action buttons */
.um-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.um-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.um-btn[disabled] {
    opacity: 0.4;
    pointer-events: none;
}

.um-btn-default {
    background: rgba(184, 105, 63, 0.06);
    color: #6B5744;
    border: 1px solid #E8D0BB;
}

.um-btn-default:hover {
    background: rgba(184, 105, 63, 0.12);
    color: #B8693F;
    border-color: #D4A574;
    text-decoration: none;
}

.um-btn-danger {
    background: rgba(220, 38, 38, 0.05);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.um-btn-danger:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    text-decoration: none;
}

.um-btn-muted {
    background: transparent;
    color: #8A6548;
    border: 1px solid #E8D0BB;
}

.um-btn-muted:hover {
    background: rgba(184, 105, 63, 0.06);
    color: #6B5744;
}

/* Pending invites header */
.um-pending-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: #A08060;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.um-pending-header i {
    color: #D4A574;
}

.um-invite-card {
    border-style: dashed;
    opacity: 0.85;
}

.um-invite-card:hover {
    opacity: 1;
}

.um-note {
    font-size: 12.5px;
    color: #8A6548;
    font-style: italic;
    margin-top: 8px;
}

/* Invite new user section */
.um-invite-section {
    background: #fff;
    border: 1px solid #E8D0BB;
    border-radius: 14px;
    padding: 30px 32px;
}

.um-invite-header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #F0E4D8;
}

.um-invite-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(184, 105, 63, 0.08);
    color: #B8693F;
    font-size: 20px;
}

.um-invite-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #3A1C0E;
}

.um-invite-desc {
    margin: 0;
    font-size: 13.5px;
    color: #6B5744;
    line-height: 1.65;
}

.um-invite-form .um-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3A1C0E;
    margin-bottom: 8px;
}

.um-input-wrap {
    position: relative;
}

.um-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #D4A574;
    font-size: 14px;
    pointer-events: none;
}

.um-input-wrap .form-control {
    padding-left: 44px;
    height: 46px;
    border-color: #E8D0BB;
    font-size: 14px;
}

.um-input-wrap .form-control:focus {
    border-color: #B8693F;
    box-shadow: 0 0 0 3px rgba(184, 105, 63, 0.1);
}

/* Radio group styling */
.um-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.um-radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

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

.um-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #E8D0BB;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #6B5744;
    transition: all 0.2s ease;
}

.um-radio-label i {
    color: #D4A574;
    font-size: 13px;
}

.um-radio-option input[type="radio"]:checked + .um-radio-label {
    background: rgba(184, 105, 63, 0.08);
    border-color: #B8693F;
    color: #B8693F;
}

.um-radio-option input[type="radio"]:checked + .um-radio-label i {
    color: #B8693F;
}

.um-radio-label:hover {
    border-color: #D4A574;
    background: rgba(184, 105, 63, 0.03);
}

/* Submit button */
.um-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #B8693F;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 8px;
}

.um-btn-submit:hover {
    background: #A05A34;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(184, 105, 63, 0.3);
}

/* Responsive user management */
@media (max-width: 767px) {
    .um-user-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 20px;
    }
    .um-user-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .um-btn {
        flex: 1;
        justify-content: center;
    }
    .um-invite-section {
        padding: 22px 20px;
    }
    .um-invite-header {
        flex-direction: column;
        gap: 14px;
    }
    .um-radio-group {
        flex-direction: column;
    }
}

/* ============================================================
   CONTACTS PAGE – Warm Brown / Copper Theme
   ============================================================ */

/* Wrapper */
.ct-wrapper {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Contact Selector Card ── */
.ct-selector-card {
    background: #FDF6F0;
    border: 1px solid #E8D0BB;
    border-radius: 14px;
    padding: 22px 28px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.ct-selector-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #B8693F 0%, #D4893E 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ct-selector-icon svg {
    stroke: #fff !important;
}
.ct-selector-form {
    flex: 1;
}
.ct-selector-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6B4D38;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.ct-selector-controls {
    display: flex;
    gap: 10px;
}
.ct-select {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #E8D0BB;
    border-radius: 10px;
    background: #fff;
    color: #3A1C0E;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: auto;
    outline: none;
}
.ct-select:focus {
    border-color: #B8693F;
    box-shadow: 0 0 0 3px rgba(184, 105, 63, 0.12);
}
.ct-go-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, #B8693F 0%, #D4893E 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
}
.ct-go-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 105, 63, 0.25);
}

/* ── Form Card ── */
.ct-form-card {
    background: #fff;
    border: 1px solid #E8D0BB;
    border-radius: 14px;
    padding: 28px 30px;
}
.ct-form-card + .ct-form-card {
    margin-top: 24px;
}
.ct-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0DFD0;
}
.ct-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #3A1C0E;
    margin: 0;
    padding: 0;
}

/* ── Fields Grid ── */
.ct-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
}
.ct-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ct-field {
    margin-bottom: 16px;
}
.ct-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6B4D38;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ct-input,
.ct-wrapper select.form-control,
.ct-wrapper .ct-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E8D0BB;
    border-radius: 10px;
    background: #FEFBF8;
    color: #3A1C0E;
    font-size: 0.95rem;
    line-height: 1.4;
    height: auto;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}
.ct-input:focus,
.ct-wrapper select.form-control:focus,
.ct-wrapper .ct-field select:focus {
    border-color: #B8693F;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(184, 105, 63, 0.10);
}
.ct-input::placeholder {
    color: #C4A78C;
}

/* Country dropdown inside contacts */
.ct-wrapper #country,
.ct-wrapper select[name="country"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E8D0BB;
    border-radius: 10px;
    background: #FEFBF8;
    color: #3A1C0E;
    font-size: 0.95rem;
    line-height: 1.4;
    height: auto;
    vertical-align: middle;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}
.ct-wrapper #country:focus,
.ct-wrapper select[name="country"]:focus {
    border-color: #B8693F;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(184, 105, 63, 0.10);
}

/* ── Email Preferences ── */
.ct-prefs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.ct-pref-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #FEFBF8;
    border: 1px solid #F0DFD0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    margin: 0;
    font-weight: normal;
}
.ct-pref-item:hover {
    background: #FDF6F0;
    border-color: #D4A574;
}
.ct-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.ct-pref-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #D4A574;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.ct-pref-check svg {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.15s, transform 0.15s;
}
.ct-checkbox:checked + .ct-pref-check {
    background: linear-gradient(135deg, #B8693F 0%, #D4893E 100%);
    border-color: #B8693F;
    transform: scale(1.05);
}
.ct-checkbox:checked + .ct-pref-check svg {
    opacity: 1;
    transform: scale(1);
}
.ct-pref-text {
    font-size: 0.9rem;
    color: #3A1C0E;
    line-height: 1.3;
}
.ct-checkbox:checked ~ .ct-pref-text {
    color: #3A1C0E;
    font-weight: 600;
}

/* ── Action Buttons ── */
.ct-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.ct-btn {
    padding: 11px 28px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    outline: none;
}
.ct-btn:hover {
    transform: translateY(-1px);
}
.ct-btn-primary {
    background: linear-gradient(135deg, #B8693F 0%, #D4893E 100%);
    color: #fff;
}
.ct-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(184, 105, 63, 0.3);
}
.ct-btn-secondary {
    background: #F0DFD0;
    color: #6B4D38;
}
.ct-btn-secondary:hover {
    background: #E8D0BB;
    box-shadow: 0 2px 8px rgba(107, 77, 56, 0.1);
}
.ct-btn-danger {
    background: #DC3545;
    color: #fff;
}
.ct-btn-danger:hover {
    background: #c82333;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

/* ── Delete Modal ── */
.ct-modal {
    border: 1px solid #E8D0BB;
    border-radius: 14px;
    overflow: hidden;
}
.ct-modal-header {
    background: linear-gradient(135deg, #3E2316 0%, #4a2818 100%);
    border-bottom: none;
    padding: 18px 24px;
}
.ct-modal-title {
    color: #fff;
    font-weight: 700;
}
.ct-modal-header .close {
    color: #D4A574;
    opacity: 0.8;
    text-shadow: none;
}
.ct-modal-header .close:hover {
    color: #fff;
    opacity: 1;
}
.ct-modal-body {
    padding: 24px;
    color: #3A1C0E;
    font-size: 0.95rem;
}
.ct-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #F0DFD0;
    background: #FDF6F0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ct-wrapper {
        gap: 18px;
    }
    .ct-selector-card {
        flex-direction: column;
        padding: 18px 20px;
    }
    .ct-selector-controls {
        flex-direction: column;
    }
    .ct-form-card {
        padding: 20px 18px;
    }
    .ct-fields-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .ct-prefs-grid {
        grid-template-columns: 1fr;
    }
    .ct-actions {
        flex-direction: column;
    }
    .ct-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   ACCOUNT DETAILS PAGE – Warm Brown / Copper Theme
   ============================================================ */

.accd-wrapper {
    max-width: 880px;
    margin: 0 auto;
}

/* ── Card ── */
.accd-card {
    background: #fff;
    border: 1px solid #E8D0BB;
    border-radius: 14px;
    padding: 28px 30px;
    margin-bottom: 24px;
}
.accd-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0DFD0;
}
.accd-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #3A1C0E;
    margin: 0;
    padding: 0;
}

/* ── Fields Grid ── */
.accd-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
}
.accd-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.accd-field {
    margin-bottom: 16px;
}
.accd-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6B4D38;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.accd-input,
.accd-select,
.accd-wrapper select.form-control,
.accd-wrapper .accd-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E8D0BB;
    border-radius: 10px;
    background: #FEFBF8;
    color: #3A1C0E;
    font-size: 0.95rem;
    line-height: 1.4;
    height: auto;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    appearance: auto;
}
.accd-input:focus,
.accd-select:focus,
.accd-wrapper select.form-control:focus,
.accd-wrapper .accd-field select:focus {
    border-color: #B8693F;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(184, 105, 63, 0.10);
}
.accd-input:disabled,
.accd-select:disabled {
    background: #F5EDE5;
    color: #8A6548;
    cursor: not-allowed;
    opacity: 0.7;
}
.accd-input::placeholder {
    color: #C4A78C;
}

/* Country dropdown */
.accd-wrapper #country,
.accd-wrapper select[name="country"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E8D0BB;
    border-radius: 10px;
    background: #FEFBF8;
    color: #3A1C0E;
    font-size: 0.95rem;
    line-height: 1.4;
    height: auto;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.accd-wrapper #country:focus,
.accd-wrapper select[name="country"]:focus {
    border-color: #B8693F;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(184, 105, 63, 0.10);
}

/* Custom field inputs inherit styling */
.accd-custom-field input,
.accd-custom-field select,
.accd-custom-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E8D0BB;
    border-radius: 10px;
    background: #FEFBF8;
    color: #3A1C0E;
    font-size: 0.95rem;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.accd-custom-field input:focus,
.accd-custom-field select:focus,
.accd-custom-field textarea:focus {
    border-color: #B8693F;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(184, 105, 63, 0.10);
}

/* ── Email Preferences ── */
.accd-prefs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.accd-pref-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #FEFBF8;
    border: 1px solid #F0DFD0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    margin: 0;
    font-weight: normal;
}
.accd-pref-item:hover {
    background: #FDF6F0;
    border-color: #D4A574;
}
.accd-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.accd-pref-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #D4A574;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.accd-pref-check svg {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.15s, transform 0.15s;
}
.accd-checkbox:checked + .accd-pref-check {
    background: linear-gradient(135deg, #B8693F 0%, #D4893E 100%);
    border-color: #B8693F;
    transform: scale(1.05);
}
.accd-checkbox:checked + .accd-pref-check svg {
    opacity: 1;
    transform: scale(1);
}
.accd-pref-text {
    font-size: 0.9rem;
    color: #3A1C0E;
    line-height: 1.3;
}
.accd-checkbox:checked ~ .accd-pref-text {
    color: #3A1C0E;
    font-weight: 600;
}

/* ── Mailing List Card ── */
.accd-mailing-card {
    /* inherits .accd-card */
}
.accd-mailing-text {
    font-size: 0.92rem;
    color: #6B4D38;
    line-height: 1.5;
    margin: 0 0 16px 0;
}
.accd-mailing-toggle {
    display: flex;
    align-items: center;
}

/* ── Action Buttons ── */
.accd-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.accd-btn {
    padding: 11px 28px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    outline: none;
}
.accd-btn:hover {
    transform: translateY(-1px);
}
.accd-btn-primary {
    background: linear-gradient(135deg, #B8693F 0%, #D4893E 100%);
    color: #fff;
}
.accd-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(184, 105, 63, 0.3);
}
.accd-btn-secondary {
    background: #F0DFD0;
    color: #6B4D38;
}
.accd-btn-secondary:hover {
    background: #E8D0BB;
    box-shadow: 0 2px 8px rgba(107, 77, 56, 0.1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .accd-card {
        padding: 20px 18px;
        margin-bottom: 18px;
    }
    .accd-fields-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .accd-prefs-grid {
        grid-template-columns: 1fr;
    }
    .accd-actions {
        flex-direction: column;
    }
    .accd-btn {
        width: 100%;
        text-align: center;
    }
}

/* ======================================
   Auth Pages — Login / Register / PW Reset
   ====================================== */

/* Wrapper — centers the card on the page */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px 60px;
    min-height: 50vh;
}

.auth-wrapper-wide {
    padding: 30px 16px 60px;
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid #E8D0BB;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(62, 35, 22, 0.08), 0 1px 4px rgba(62, 35, 22, 0.04);
    overflow: hidden;
}

.auth-card-wide {
    max-width: 720px;
}

/* Card Header */
.auth-card-header {
    text-align: center;
    padding: 36px 32px 24px;
    background: linear-gradient(135deg, #FDF6F0 0%, #F5E6D8 100%);
    border-bottom: 1px solid #E8D0BB;
}

.auth-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4893E 0%, #B8693F 100%);
    border-radius: 50%;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(212, 137, 62, 0.3);
}

.auth-title {
    font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    color: #3A1C0E;
    margin: 0 0 6px;
}

.auth-subtitle {
    font-size: 0.92em;
    color: #8A6548;
    margin: 0;
    font-weight: 400;
}

/* Form */
.auth-form {
    padding: 28px 32px;
}

.auth-card-wide .auth-form {
    padding: 28px 36px;
}

/* Field Group */
.auth-field-group {
    margin-bottom: 20px;
}

.auth-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    font-weight: 600;
    color: #3A1C0E;
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}

.auth-label i {
    color: #B8693F;
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.auth-input {
    width: 100%;
    padding: 11px 14px !important;
    font-size: 0.93em !important;
    color: #3A1C0E !important;
    background: #FEFCFA !important;
    border: 1.5px solid #E8D0BB !important;
    border-radius: 10px !important;
    transition: all 0.25s ease !important;
    outline: none !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.auth-input:focus {
    border-color: #D4893E !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(212, 137, 62, 0.12) !important;
}

.auth-input::placeholder {
    color: #BFA28A;
}

.auth-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A6548' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
}

/* Options Row (remember me + forgot pw) */
.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.auth-forgot-link {
    font-size: 0.85em;
    color: #B8693F;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: #D4893E;
    text-decoration: underline;
}

/* Custom Checkbox */
.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88em;
    color: #6B4D38;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 28px;
    line-height: 1.4;
}

.auth-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-check-mark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #E8D0BB;
    border-radius: 6px;
    background: #FEFCFA;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-checkbox input:checked + .auth-check-mark {
    background: #D4893E;
    border-color: #D4893E;
}

.auth-checkbox input:checked + .auth-check-mark::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -1px;
}

/* Primary Button */
.auth-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, #D4893E 0%, #B8693F 100%);
    color: #fff;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(212, 137, 62, 0.25);
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #E09A52 0%, #C97A4A 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(212, 137, 62, 0.35);
    color: #fff;
    text-decoration: none;
}

.auth-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212, 137, 62, 0.25);
}

.auth-btn-primary svg {
    transition: transform 0.2s ease;
}

.auth-btn-primary:hover svg {
    transform: translateX(3px);
}

.auth-btn-wide {
    max-width: 360px;
    margin: 0 auto;
}

/* Outline Button */
.auth-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    background: transparent;
    color: #6B4D38;
    font-size: 0.88em;
    font-weight: 500;
    border: 1.5px solid #E8D0BB;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-btn-outline:hover {
    background: #FDF6F0;
    border-color: #D4A574;
    color: #3A1C0E;
    text-decoration: none;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 32px 20px;
    color: #BFA28A;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E8D0BB;
}

/* Social Section */
.auth-social-section {
    padding: 0 32px 24px;
}

/* Card Footer */
.auth-card-footer {
    text-align: center;
    padding: 18px 32px;
    background: #FEFCFA;
    border-top: 1px solid #E8D0BB;
    font-size: 0.88em;
    color: #8A6548;
}

.auth-footer-link {
    color: #B8693F;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s;
}

.auth-footer-link:hover {
    color: #D4893E;
    text-decoration: underline;
}

/* Description text in pw reset */
.auth-desc-text {
    font-size: 0.9em;
    color: #6B4D38;
    margin: 0 0 20px;
    line-height: 1.6;
}

/* Success box */
.auth-success-box {
    text-align: center;
    padding: 32px;
}

.auth-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #E8F5E9;
    border-radius: 50%;
    color: #4CAF50;
    margin-bottom: 16px;
}

.auth-success-box h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    color: #3A1C0E;
    margin: 0 0 10px;
}

.auth-success-box p {
    color: #6B4D38;
    font-size: 0.92em;
    line-height: 1.6;
    margin: 0;
}

/* Actions row */
.auth-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.auth-actions-row .auth-btn-primary {
    width: auto;
    min-width: 180px;
}

/* --- Register Page Sections --- */
.auth-section {
    margin-bottom: 8px;
}

.auth-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid #F0E0D0;
}

.auth-section-header svg {
    color: #B8693F;
    flex-shrink: 0;
}

.auth-section-header h3 {
    font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.05em;
    font-weight: 700;
    color: #3A1C0E;
    margin: 0;
}

/* Fields Grid */
.auth-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    padding-top: 16px;
}

.auth-field-full {
    grid-column: 1 / -1;
}

/* Custom field styling */
.auth-custom-field input,
.auth-custom-field select,
.auth-custom-field textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.93em;
    color: #3A1C0E;
    background: #FEFCFA;
    border: 1.5px solid #E8D0BB;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.auth-custom-field input:focus,
.auth-custom-field select:focus,
.auth-custom-field textarea:focus {
    border-color: #D4893E;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 137, 62, 0.12);
    outline: none;
}

.auth-field-help {
    display: block;
    font-size: 0.8em;
    color: #8A6548;
    margin-top: 4px;
}

/* Password Strength */
.auth-pw-strength .progress {
    height: 6px;
    border-radius: 3px;
    background: #F0E0D0;
    margin-bottom: 6px;
    overflow: hidden;
}

.auth-pw-strength .progress-bar {
    border-radius: 3px;
    transition: width 0.4s ease;
}

.auth-pw-label {
    font-size: 0.8em;
    color: #8A6548;
    text-align: center;
    margin: 0;
}

/* Mailing List Card */
.auth-mailing-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    background: #FDF6F0;
    border: 1px solid #E8D0BB;
    border-radius: 12px;
}

.auth-mailing-info h4 {
    font-size: 0.95em;
    font-weight: 700;
    color: #3A1C0E;
    margin: 0 0 4px;
}

.auth-mailing-info p {
    font-size: 0.85em;
    color: #6B4D38;
    margin: 0;
    line-height: 1.5;
}

/* Toggle Switch */
.auth-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.auth-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #D8C4B0;
    border-radius: 26px;
    transition: all 0.3s ease;
}

.auth-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    left: 3px;
    bottom: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.auth-toggle input:checked + .auth-toggle-slider {
    background: #D4893E;
}

.auth-toggle input:checked + .auth-toggle-slider::before {
    transform: translateX(22px);
}

/* TOS Card */
.auth-tos-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #FFF8F0;
    border: 1px solid #F0D4B8;
    border-radius: 12px;
    border-left: 4px solid #D4893E;
}

.auth-tos-icon {
    flex-shrink: 0;
    color: #D4893E;
    font-size: 1.2em;
    margin-top: 2px;
}

.auth-tos-content h4 {
    font-size: 0.95em;
    font-weight: 700;
    color: #3A1C0E;
    margin: 0 0 8px;
}

.auth-link {
    color: #B8693F;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #D4893E;
}

/* Submit section */
.auth-submit-section {
    padding: 12px 0 4px;
    text-align: center;
}

/* Override WHMCS logincontainer styles */
.auth-wrapper .logincontainer,
.auth-wrapper .header-lined {
    display: none;
}

/* Override the prepend-icon field styles inside auth pages */
.auth-card .field,
.auth-card .field.form-control {
    padding: 11px 14px !important;
    font-size: 0.93em !important;
    color: #3A1C0E !important;
    background: #FEFCFA !important;
    border: 1.5px solid #E8D0BB !important;
    border-radius: 10px !important;
    height: auto !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
}

.auth-card .field:focus,
.auth-card .field.form-control:focus {
    border-color: #D4893E !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(212, 137, 62, 0.12) !important;
}

/* intlTelInput phone field fix (older version class names) */
.auth-card .intl-tel-input,
.auth-card-wide .intl-tel-input {
    width: 100% !important;
    display: block !important;
}

.auth-card .intl-tel-input.separate-dial-code,
.auth-card-wide .intl-tel-input.separate-dial-code {
    width: 100% !important;
}

.auth-card .intl-tel-input input[type="tel"],
.auth-card-wide .intl-tel-input input[type="tel"] {
    width: 100% !important;
    padding: 11px 14px 11px 90px !important;
    font-size: 0.93em !important;
    color: #3A1C0E !important;
    background: #FEFCFA !important;
    border: 1.5px solid #E8D0BB !important;
    border-radius: 10px !important;
    height: auto !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    outline: none !important;
}

.auth-card .intl-tel-input input[type="tel"]:focus,
.auth-card-wide .intl-tel-input input[type="tel"]:focus {
    border-color: #D4893E !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(212, 137, 62, 0.12) !important;
}

.auth-card .intl-tel-input .flag-container,
.auth-card-wide .intl-tel-input .flag-container {
    border-radius: 10px 0 0 10px !important;
    border-right: 1px solid #E8D0BB !important;
    background: transparent !important;
}

.auth-card .intl-tel-input .selected-flag,
.auth-card-wide .intl-tel-input .selected-flag {
    border-radius: 10px 0 0 10px !important;
    padding: 0 8px 0 12px !important;
    background: transparent !important;
    height: 100% !important;
}

.auth-card .intl-tel-input .selected-dial-code,
.auth-card-wide .intl-tel-input .selected-dial-code {
    color: #6B4D38 !important;
    font-size: 0.9em !important;
    padding-left: 6px !important;
}

/* Responsiveness */
@media (max-width: 600px) {
    .auth-card {
        border-radius: 14px;
    }
    .auth-card-header {
        padding: 28px 24px 20px;
    }
    .auth-form {
        padding: 24px 20px;
    }
    .auth-fields-grid {
        grid-template-columns: 1fr;
    }
    .auth-options-row {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .auth-divider {
        margin: 4px 20px 20px;
    }
    .auth-social-section {
        padding: 0 20px 20px;
    }
    .auth-card-footer {
        padding: 16px 20px;
    }
    .auth-mailing-card {
        flex-direction: column;
        text-align: center;
    }
    .auth-tos-card {
        flex-direction: column;
    }
    .auth-actions-row {
        flex-direction: column;
    }
    .auth-actions-row .auth-btn-primary {
        width: 100%;
    }
}

/* ======================================
   Markdown Editor Toolbar — Theme
   ====================================== */
.md-editor {
    border: 1px solid #E8D0BB;
    border-radius: 12px;
    overflow: hidden;
}
.md-editor.active {
    border-color: #B8693F;
    box-shadow: 0 0 0 3px rgba(184, 105, 63, 0.1);
}
.md-editor > .btn-toolbar {
    background: #fdf8f4 !important;
    border-bottom: 1px solid #E8D0BB !important;
    padding: 6px 8px !important;
}
.md-editor > .btn-toolbar .btn-group {
    margin-right: 4px;
}
.md-editor > .btn-toolbar .btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #6B5744;
    font-size: 14px;
    padding: 6px 10px;
    transition: all 0.2s ease;
}
.md-editor > .btn-toolbar .btn:hover {
    background: rgba(184, 105, 63, 0.1);
    color: #B8693F;
    border-color: rgba(184, 105, 63, 0.2);
}
.md-editor > .btn-toolbar .btn:active,
.md-editor > .btn-toolbar .btn.active {
    background: rgba(184, 105, 63, 0.15);
    color: #B8693F;
}
.md-editor > .md-preview,
.md-editor > textarea.markdown-editor {
    border-top: none !important;
    border-bottom: none !important;
    padding: 16px !important;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #3A1C0E;
    background: #fff !important;
}
.md-editor > textarea.markdown-editor:focus {
    outline: none;
    box-shadow: none;
}
.markdown-editor-status {
    background: #fdf8f4;
    border-top: 1px solid #E8D0BB;
    padding: 4px 12px;
    font-size: 12px;
    color: #8A6548;
}

/* intlTelInput phone field fix for account details page */
.accd-wrapper .intl-tel-input {
    width: 100% !important;
    display: block !important;
}
.accd-wrapper .intl-tel-input.separate-dial-code {
    width: 100% !important;
}
.accd-wrapper .intl-tel-input input[type="tel"] {
    width: 100% !important;
    padding: 10px 14px 10px 90px !important;
    font-size: 0.95rem !important;
    color: #3A1C0E !important;
    background: #FEFBF8 !important;
    border: 1px solid #E8D0BB !important;
    border-radius: 10px !important;
    height: auto !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
}
.accd-wrapper .intl-tel-input input[type="tel"]:focus {
    border-color: #B8693F !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(184, 105, 63, 0.10) !important;
}
.accd-wrapper .intl-tel-input .flag-container {
    border-radius: 10px 0 0 10px !important;
    border-right: 1px solid #E8D0BB !important;
    background: transparent !important;
}
.accd-wrapper .intl-tel-input .selected-flag {
    border-radius: 10px 0 0 10px !important;
    padding: 0 8px 0 12px !important;
    background: transparent !important;
    height: 100% !important;
}
.accd-wrapper .intl-tel-input .selected-dial-code {
    color: #6B4D38 !important;
    font-size: 0.9em !important;
    padding-left: 6px !important;
}
