/* ============================================================
   GroupBuySEOTool Dashboard Theme — #3B82F6 brand
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand: #3B82F6;
    --brand-hover: #2563EB;
    --brand-light: rgba(59,130,246,0.08);
    --brand-ring: rgba(59,130,246,0.15);
    --brand-shadow: 0 4px 14px rgba(59,130,246,0.25);
    --brand-gradient: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
    --bg: #FFFFFF;
    --bg2: #F8FAFC;
    --bg3: #F1F5F9;
    --text1: #1E293B;
    --text2: #64748B;
    --text3: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --green: #10B981;
    --orange: #F59E0B;
    --red: #EF4444;
    --purple: #6366F1;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background-color: var(--bg2) !important;
    color: var(--text1);
    -webkit-font-smoothing: antialiased;
}
.preloader { background: var(--bg) !important; }
.lds-ripple div { border-color: var(--brand) !important; }

/* ============================================================
   TOPBAR — kill ALL borders and lines
   ============================================================ */
.topbar, .topbar .top-navbar, .topbar .top-navbar .navbar-header,
.navbar-header[data-logobg="skin6"], .topbar[data-navbarbg="skin6"],
.topbar .navbar-collapse[data-navbarbg="skin6"], .topbar .top-navbar .navbar-collapse {
    background: var(--bg) !important;
}
.topbar {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    z-index: 100;
    border: none !important;
}
.topbar .top-navbar { min-height: 64px !important; }

.topbar .top-navbar .navbar-header,
.topbar .navbar-header,
.navbar-header[data-logobg="skin6"] {
    border: none !important;
    border-right: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: var(--bg) !important;
}
.topbar .navbar-collapse,
.topbar .top-navbar .navbar-collapse,
#navbarSupportedContent {
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
}

/* ---- Brand Logo ---- */
.navbar-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
}
.brand-logo-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    padding: 0 !important;
}
.brand-logo-link:hover { text-decoration: none !important; }
.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--brand) 0%, #6366F1 100%);
    border-radius: 11px;
    color: #FFF;
    flex-shrink: 0;
}
.brand-icon svg { stroke: #FFF; width: 26px !important; height: 26px !important; }
.brand-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text1);
    line-height: 1;
}
.brand-highlight { color: var(--brand); }
.brand-sub { font-size: 11px; font-weight: 600; color: var(--text2); display: block; letter-spacing: 0.04em; margin-top: 2px; }
/* Hide the old image-based logos */
.navbar-brand .logo-text,
.navbar-brand .logo-text img,
.navbar-brand .dark-logo,
.navbar-brand .light-logo { display: none !important; }

/* ---- Quick nav links ---- */
.topbar-quick-link .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--text1) !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}
.topbar-quick-link .nav-link svg {
    flex-shrink: 0;
    opacity: 1;
    width: 18px !important;
    height: 18px !important;
}
.topbar-quick-link .nav-link:hover {
    color: var(--brand) !important;
    background: var(--brand-light) !important;
}
.topbar-quick-link .nav-link:hover svg {
    opacity: 1;
    stroke: var(--brand);
}

/* Social links */
.topbar-social-link .nav-link:hover {
    background: var(--brand-light) !important;
}
.topbar-social-link .nav-link[href*="t.me"]:hover {
    color: #0088cc !important;
    background: rgba(0,136,204,0.06) !important;
}
.topbar-social-link .nav-link[href*="t.me"]:hover svg { fill: #0088cc; }
.topbar-whatsapp:hover {
    color: #25D366 !important;
    background: rgba(37,211,102,0.06) !important;
}
.topbar-whatsapp:hover svg { fill: #25D366 !important; }

/* ---- User dropdown ---- */
.topbar .top-navbar .navbar-nav.float-right > .nav-item > .nav-link {
    color: var(--text1) !important; font-weight: 500; font-size: 15px;
    display: flex !important; align-items: center !important;
}
.topbar .top-navbar .navbar-nav > .nav-item > .nav-link:hover { color: var(--brand) !important; }
.topbar .top-navbar .navbar-nav > .nav-item > .nav-link img.rounded-circle { border: 2px solid var(--border) !important; }

.dropdown-menu { border: 1px solid var(--border) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow-lg) !important; padding: 8px !important; background: var(--bg) !important; }
.dropdown-item { border-radius: var(--radius-sm) !important; padding: 10px 16px !important; font-size: 14.5px !important; font-weight: 500 !important; color: var(--text1) !important; transition: all 0.2s ease !important; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--brand-light) !important; color: var(--brand) !important; }
.dropdown-divider { border-color: var(--border-light) !important; margin: 4px 0 !important; }

/* Kill all separator lines */
.topbar,
.topbar .top-navbar,
.topbar .top-navbar .navbar-header,
header.topbar {
    border-bottom: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}
.topbar .navbar-collapse {
    border-bottom: none !important;
    border-top: none !important;
}
.topbar .top-navbar .navbar-collapse.collapsing,
.topbar .top-navbar .navbar-collapse.show {
    border-top: none !important;
}
.page-wrapper {
    border-top: none !important;
}

/* ============================================================
   LEFT SIDEBAR
   ============================================================ */
.left-sidebar, .left-sidebar[data-sidebarbg="skin6"], .scroll-sidebar[data-sidebarbg="skin6"] {
    background: var(--bg) !important;
    border-right: 1px solid var(--border) !important;
    box-shadow: none !important;
}
.left-sidebar .sidebar-nav,
.scroll-sidebar,
.left-sidebar .sidebar-nav > ul,
#sidebarnav {
    border: none !important;
    border-top: none !important;
}
.left-sidebar .sidebar-nav::before,
.left-sidebar .sidebar-nav::after,
.scroll-sidebar::before,
.scroll-sidebar::after,
.left-sidebar hr,
#sidebarnav::before,
#sidebarnav::after {
    display: none !important;
    border: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.scroll-sidebar {
    border-top: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.navbar-header,
.topbar .navbar-header,
.left-sidebar .navbar-header,
#main-wrapper .navbar-header,
.navbar-header[data-logobg="skin6"] {
    border-bottom: none !important;
    box-shadow: none !important;
}
.left-sidebar .sidebar-nav #sidebarnav {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 4px !important;
}
.left-sidebar .sidebar-nav,
.left-sidebar .scroll-sidebar,
.left-sidebar aside.left-sidebar > div,
.left-sidebar > nav,
.left-sidebar > div {
    border-top: none !important;
    box-shadow: none !important;
}
.logo-row + *,
.navbar-header + *,
.navbar-header + .scroll-sidebar,
.navbar-header ~ .scroll-sidebar,
.navbar-header ~ .sidebar-nav {
    border-top: 0 !important;
    margin-top: 0 !important;
}
.navbar-brand::after,
.navbar-header::after,
.logo-row::after {
    display: none !important;
    content: none !important;
}
aside.left-sidebar .scroll-sidebar {
    border-top: 0 !important;
    border-color: transparent !important;
}

#sidebarnav { padding: 8px 14px !important; margin-top: 0 !important; }
#sidebarnav .sidebar-item { margin-bottom: 2px; }
#sidebarnav .sidebar-item .sidebar-link {
    border-radius: var(--radius-sm) !important;
    padding: 11px 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--text1) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
#sidebarnav .sidebar-item .sidebar-link i,
#sidebarnav .sidebar-item .sidebar-link .feather-icon {
    font-size: 20px !important; width: 22px !important; height: 22px !important; min-width: 22px;
    color: var(--text2) !important; transition: color 0.2s ease !important;
}
#sidebarnav .sidebar-item .sidebar-link:hover { background: var(--brand-light) !important; color: var(--brand) !important; }
#sidebarnav .sidebar-item.selected > .sidebar-link {
    background: var(--brand) !important; color: #FFF !important; font-weight: 600 !important;
    box-shadow: var(--brand-shadow) !important;
}
#sidebarnav .sidebar-item.selected > .sidebar-link i,
#sidebarnav .sidebar-item.selected > .sidebar-link .feather-icon { color: #FFF !important; }
.list-divider { border-color: var(--border-light) !important; margin: 10px 0 !important; }
.nav-small-cap { padding: 6px 14px 4px !important; }
.nav-small-cap .hide-menu { font-size: 11.5px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.08em !important; color: var(--text3) !important; }

/* ---- Colorful Sidebar Icons ---- */
#sidebarnav .sidebar-item .sidebar-link-dashboard svg { color: var(--brand) !important; stroke: var(--brand) !important; }
#sidebarnav .sidebar-item .sidebar-link-profile svg { color: #8B5CF6 !important; stroke: #8B5CF6 !important; }
#sidebarnav .sidebar-item .sidebar-link-payment svg { color: #10B981 !important; stroke: #10B981 !important; }
#sidebarnav .sidebar-item .sidebar-link-order svg { color: #F59E0B !important; stroke: #F59E0B !important; }
#sidebarnav .sidebar-item .sidebar-link-affiliate svg { color: #EC4899 !important; stroke: #EC4899 !important; }
#sidebarnav .sidebar-item .sidebar-link-helpdesk svg { color: #06B6D4 !important; stroke: #06B6D4 !important; }
#sidebarnav .sidebar-item .sidebar-link-faq svg { color: #F97316 !important; stroke: #F97316 !important; }
/* White on selected */
#sidebarnav .sidebar-item.selected > .sidebar-link svg,
#sidebarnav .sidebar-item.selected > .sidebar-link i,
#sidebarnav .sidebar-item.selected > .sidebar-link .feather-icon,
#sidebarnav .sidebar-item.selected > .sidebar-link-dashboard svg,
#sidebarnav .sidebar-item.selected > .sidebar-link-profile svg,
#sidebarnav .sidebar-item.selected > .sidebar-link-payment svg,
#sidebarnav .sidebar-item.selected > .sidebar-link-order svg,
#sidebarnav .sidebar-item.selected > .sidebar-link-affiliate svg,
#sidebarnav .sidebar-item.selected > .sidebar-link-helpdesk svg,
#sidebarnav .sidebar-item.selected > .sidebar-link-faq svg { color: #FFF !important; stroke: #FFF !important; }

/* ---- Colorful Topbar Icons ---- */
.topbar-quick-link .nav-link svg { transition: all 0.2s ease; }
.topbar-quick-link .nav-link[href*="helpdesk"] svg { stroke: #06B6D4; }
.topbar-quick-link .nav-link[href*="download"] svg { stroke: #8B5CF6; }
.topbar-quick-link .nav-link[href*="t.me"] svg { fill: #0088cc; }
.topbar-quick-link .nav-link[href*="whatsapp"] svg { fill: #25D366; }

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page-wrapper { background: var(--bg2) !important; }
#main-wrapper .page-wrapper h1,
#main-wrapper .page-wrapper .container-fluid h1,
#main-wrapper .page-wrapper .am-body-content h1,
#main-wrapper .page-wrapper .am-body-content-content h1,
.page-wrapper h1,
.page-wrapper .container-fluid h1,
html body h1.h1,
html body .page-wrapper h1 {
    font-size: 20px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--text1) !important;
    line-height: 1.3 !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}
#main-wrapper .page-wrapper h2,
#main-wrapper .page-wrapper .container-fluid h2,
.page-wrapper h2,
.page-wrapper .container-fluid h2,
html body .page-wrapper h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--text1) !important;
    line-height: 1.3 !important;
}
.page-breadcrumb { padding: 28px 30px 0 !important; background: transparent !important; }
.container-fluid { padding: 0 30px 30px !important; }

/* ============================================================
   WELCOME BANNER — blue gradient
   ============================================================ */
.welcome-banner {
    background: linear-gradient(135deg, #3B82F6 0%, #6366F1 40%, #8B5CF6 70%, #7C3AED 100%);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    color: #FFF;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.welcome-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.welcome-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.welcome-left h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    white-space: nowrap;
    color: #FFF !important;
}
.welcome-name { color: #FFF; opacity: 0.95; }

.welcome-right { flex-shrink: 0; }

.welcome-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    color: #FFF;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid rgba(255,255,255,0.30);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.welcome-whatsapp-link:hover {
    background: rgba(255,255,255,0.38);
    color: #FFF;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ============================================================
   SUBSCRIPTION CARDS
   ============================================================ */
.sub-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px; margin-bottom: 8px;
}
.sub-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; transition: all 0.25s ease; position: relative; overflow: hidden;
}
.sub-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sub-card.sub-good { border-left: 3px solid var(--green); }
.sub-card.sub-warning { border-left: 3px solid var(--orange); }
.sub-card.sub-danger { border-left: 3px solid var(--red); }
.sub-card.sub-lifetime { border-left: 3px solid var(--purple); }

.sub-card-top { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border-light); }
.sub-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sub-plan-name { font-size: 16px; font-weight: 700; color: var(--text1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.sub-status-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.sub-badge-good { background: #ECFDF5; color: #059669; }
.sub-badge-warning { background: #FFFBEB; color: #D97706; }
.sub-badge-danger { background: #FEF2F2; color: #DC2626; }
.sub-badge-lifetime { background: #EEF2FF; color: #4F46E5; }

.sub-card-bottom { display: flex; align-items: center; justify-content: space-between; }
.sub-days { display: flex; align-items: baseline; gap: 6px; }
.sub-days-number { font-size: 28px; font-weight: 800; line-height: 1; color: var(--text1); }
.sub-card.sub-good .sub-days-number { color: var(--green); }
.sub-card.sub-warning .sub-days-number { color: var(--orange); }
.sub-card.sub-danger .sub-days-number { color: var(--red); }
.sub-card.sub-lifetime .sub-days-number { color: var(--purple); }
.sub-days-label { font-size: 13px; font-weight: 500; color: var(--text2); }
.sub-renew-btn {
    display: inline-flex; align-items: center; padding: 7px 16px; font-size: 12px; font-weight: 600;
    color: var(--brand); background: var(--brand-light); border-radius: var(--radius-sm);
    text-decoration: none; transition: all 0.2s ease;
}
.sub-renew-btn:hover { background: var(--brand); color: #FFF; text-decoration: none; box-shadow: var(--brand-shadow); }

/* ---- Extension Download CTA ---- */
.extension-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border: 1px solid #C7D2FE;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 20px;
}
.extension-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #6366F1;
    border-radius: 10px;
    flex-shrink: 0;
    color: #FFF;
}
.extension-cta-icon svg { stroke: #FFF; }
.extension-cta-content { flex: 1; min-width: 0; }
.extension-cta-content h4 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--text1) !important;
    margin: 0 0 2px 0 !important;
}
.extension-cta-content p {
    font-size: 12px;
    color: var(--text2);
    margin: 0;
    line-height: 1.4;
}
.extension-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #6366F1;
    color: #FFF;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.extension-cta-btn svg { stroke: #FFF; }
.extension-cta-btn:hover {
    background: #4F46E5;
    color: #FFF;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(99,102,241,0.3);
    transform: translateY(-1px);
}

/* ============================================================
   WIDGET / AM-BLOCK OVERRIDES
   ============================================================ */
.am-widget { margin-bottom: 24px; }
#widget-member-main-newsletter,
.am-widget[id*="newsletter"],
[id*="newsletter-head"],
#member-main-newsletter-head,
#member-main-newsletter { display: none !important; }
.am-widget h2 { font-size: 17px !important; font-weight: 700 !important; color: var(--text1) !important; margin-bottom: 14px !important; padding: 0 !important; }
.am-block .alert {
    background: var(--bg) !important; border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important; color: var(--text1) !important;
    box-shadow: var(--shadow-sm) !important; padding: 20px !important;
}
.card { background: var(--bg) !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow-sm) !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { font-family: 'Inter', sans-serif !important; font-weight: 600 !important; font-size: 14px !important; border-radius: var(--radius-sm) !important; padding: 10px 20px !important; transition: all 0.25s ease !important; border: none !important; }
.btn-primary, input[type="submit"].am-cta-signup-btn, .am-cta-signup-btn { background: var(--brand) !important; color: #FFF !important; }
.btn-primary:hover { background: var(--brand-hover) !important; box-shadow: var(--brand-shadow) !important; }

/* ============================================================
   RESOURCES GRID — 4 columns
   ============================================================ */
.resources-section { padding: 0; }
.resources-section .section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.resources-section .section-title { font-size: 17px; font-weight: 700; color: var(--text1); }
.resources-section .resource-count { font-size: 12px; color: var(--text3); font-weight: 500; background: var(--bg3); padding: 3px 10px; border-radius: 20px; }
.resource-search-container { position: relative; margin-bottom: 20px; max-width: 420px; }
.resource-search-container .search-icon-wrapper { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text3); pointer-events: none; }
.resource-search-container .search-icon-wrapper svg { width: 18px; height: 18px; }
.resource-search-container input {
    width: 100%; padding: 10px 16px 10px 42px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: 'Inter', sans-serif; color: var(--text1); background: var(--bg); transition: all 0.25s ease; outline: none;
}
.resource-search-container input::placeholder { color: var(--text3); }
.resource-search-container input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.resource-search-container .clear-search { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text3); padding: 4px; border-radius: 50%; display: none; }
.resource-search-container .clear-search.visible { display: flex; }

.resources-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.resource-card {
    background: var(--bg); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); transition: all 0.3s ease; display: flex; flex-direction: column;
}
.resource-card:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(59,130,246,0.10); transform: translateY(-3px); }
.resource-card .resource-image-wrapper {
    width: 100%; height: 120px; background: linear-gradient(145deg, #F8FAFC 0%, #EFF6FF 100%);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.resource-card .resource-image-wrapper a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.resource-card .resource-image-wrapper img { max-width: 70%; max-height: 70%; object-fit: contain; transition: transform 0.3s ease; }
.resource-card:hover .resource-image-wrapper img { transform: scale(1.06); }
.resource-card .resource-body { padding: 12px 14px 14px; }
.resource-card .resource-access-btn {
    display: block; width: 100%; padding: 9px 14px; background: var(--brand); color: #FFF;
    border: none; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.25s ease; text-decoration: none; text-align: center;
}
.resource-card .resource-access-btn:hover { background: var(--brand-hover); box-shadow: var(--brand-shadow); text-decoration: none; color: #FFF; }

.resources-no-results { grid-column: 1 / -1; text-align: center; padding: 50px 20px; }
.resources-no-results .no-results-icon { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--border); }
.resources-no-results .no-results-title { font-size: 15px; font-weight: 600; color: var(--text1); margin: 0 0 4px; }
.resources-no-results .no-results-text { font-size: 13px; color: var(--text3); margin: 0; }

@keyframes resourceFadeIn { from { opacity:0;transform:translateY(10px); } to { opacity:1;transform:translateY(0); } }
.resource-card.fade-in { animation: resourceFadeIn 0.3s ease forwards; }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-hero {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.profile-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: linear-gradient(135deg, #3B82F6 0%, #6366F1 50%, #8B5CF6 100%);
}
.profile-hero-avatar {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-left: 28px;
    margin-top: 25px;
    margin-bottom: 20px;
}
.profile-hero-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    object-fit: cover;
    background: var(--bg);
}
.profile-hero-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    background: var(--green);
    border-radius: 50%;
    border: 2px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
}
.profile-hero-info {
    position: relative;
    z-index: 1;
    padding-top: 30px;
    padding-bottom: 20px;
}
.profile-hero-info h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--text1) !important;
    margin: 0 0 2px 0 !important;
}
.profile-hero-info p {
    font-size: 13px;
    color: var(--text2);
    margin: 0;
}

/* Profile Form Card */
.am-form {
    margin: 0 !important;
}
.am-profile-form,
form#profile {
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 0 !important;
    width: 100% !important;
}

.am-profile-form::before,
form#profile::before {
    content: 'Edit Profile' !important;
    display: block !important;
    padding: 16px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--text1) !important;
    border-bottom: 1px solid var(--border) !important;
    background: var(--bg2) !important;
}

.am-profile-form .am-row,
form#profile .am-row {
    display: block !important;
    padding: 14px 24px !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--border-light) !important;
}
.am-profile-form .am-row:last-of-type,
form#profile .am-row:last-of-type {
    border-bottom: none !important;
}

.am-profile-form .am-element-title,
form#profile .am-element-title {
    flex: none !important;
    max-width: none !important;
    padding: 0 0 6px 0 !important;
    margin: 0 !important;
}
.am-profile-form .am-element-title label,
form#profile .am-element-title label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--text2) !important;
    display: block !important;
    text-align: left !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}
.am-profile-form .am-element-title .required,
form#profile .am-element-title .required,
.am-profile-form .am-element-title span.required,
form#profile .am-element-title span.required {
    color: var(--brand) !important;
}
.am-profile-form .am-element-title .comment,
form#profile .am-element-title .comment {
    font-size: 12px !important;
    color: var(--text3) !important;
    margin-top: 2px !important;
    text-align: left !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.am-profile-form .am-element,
form#profile .am-element,
.am-profile-form .am-element.group,
form#profile .am-element.group {
    width: 100% !important;
    min-width: 0 !important;
}

.am-profile-form input[type="text"],
.am-profile-form input[type="email"],
.am-profile-form input[type="password"],
form#profile input[type="text"],
form#profile input[type="email"],
form#profile input[type="password"] {
    display: block !important;
    width: 100% !important;
    max-width: 480px !important;
    padding: 10px 14px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--text1) !important;
    background: var(--bg2) !important;
    transition: all 0.2s ease !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}
.am-profile-form .am-element.group,
form#profile .am-element.group {
    display: flex !important;
    gap: 10px !important;
    max-width: 480px !important;
}
.am-profile-form .am-element.group input,
form#profile .am-element.group input {
    flex: 1 !important;
    margin-bottom: 0 !important;
}

.am-profile-form input:focus,
form#profile input:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px var(--brand-ring) !important;
    outline: none !important;
    background: var(--bg) !important;
}

/* Change password link / toggle button */
.am-change-pass-toggle,
a.am-change-pass-toggle,
a.local-link,
.tbuy-pass-toggle-btn,
a.tbuy-pass-toggle-btn,
form#profile .am-element a.local,
form#profile .am-element a.local-link,
.am-profile-form .am-element a.local,
.am-profile-form .am-element a.local-link,
form .am-element a[onclick*="pass"],
form .am-element a[onclick*="Change"] {
    display: inline-flex !important;
    align-items: center !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #3B82F6 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    padding: 8px 18px !important;
    border: 1.5px solid #3B82F6 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: none !important;
    transform: none !important;
    width: auto !important;
}
.am-change-pass-toggle:hover,
a.am-change-pass-toggle:hover,
a.local-link:hover,
.tbuy-pass-toggle-btn:hover,
a.tbuy-pass-toggle-btn:hover,
form#profile .am-element a.local:hover,
form#profile .am-element a.local-link:hover,
.am-profile-form .am-element a.local:hover,
.am-profile-form .am-element a.local-link:hover {
    background: #EFF6FF !important;
    background-color: #EFF6FF !important;
    color: #3B82F6 !important;
    text-decoration: none !important;
    border-color: #3B82F6 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Submit button row */
form#profile .am-row:last-of-type,
.am-profile-form .am-row:last-of-type {
    padding: 16px 24px !important;
    background: var(--bg2) !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: none !important;
}
.am-cta-profile,
form#profile input[type="submit"],
.am-profile-form input[type="submit"] {
    background: var(--brand) !important;
    color: #FFF !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}
.am-cta-profile:hover,
form#profile input[type="submit"]:hover {
    background: var(--brand-hover) !important;
    box-shadow: var(--brand-shadow) !important;
    transform: translateY(-1px) !important;
}

/* ---- Password Fields Toggle Wrapper ---- */
.tbuy-pass-fields {
    background: var(--bg2) !important;
    border-top: 1px dashed var(--border) !important;
    border-bottom: 1px dashed var(--border) !important;
}
.tbuy-pass-fields .am-row {
    background: var(--bg2) !important;
}

/* ---- Address Information Section ---- */
.tbuy-address-section {
    border-top: 1px solid var(--border-light);
}
.tbuy-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text1);
    cursor: pointer;
    background: var(--bg2);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
    font-family: 'Inter', sans-serif;
    user-select: none;
}
.tbuy-section-header:hover { background: var(--bg3); }
.tbuy-section-header svg { color: var(--brand); stroke: var(--brand); flex-shrink: 0; }
.tbuy-toggle-arrow { margin-left: auto; font-size: 11px; color: var(--text3); }
.tbuy-address-fields {
    padding: 0;
    background: var(--bg);
}
.tbuy-addr-row {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-light);
}
.tbuy-addr-row:last-child { border-bottom: none; }
.tbuy-addr-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}
.tbuy-addr-row input[type="text"],
.tbuy-addr-row select {
    width: 100%;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    background: var(--bg) !important;
    color: var(--text1) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box;
}
.tbuy-addr-row input:focus,
.tbuy-addr-row select:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px var(--brand-ring) !important;
    outline: none !important;
}
.tbuy-addr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 14px 24px;
}
.tbuy-addr-grid > div label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}
@media (max-width: 767px) {
    .tbuy-addr-grid { grid-template-columns: 1fr; gap: 0; }
    .tbuy-addr-grid > div { margin-bottom: 12px; }
}

/* ============================================================
   PAYMENT HISTORY & GENERAL
   ============================================================ */
#main-wrapper .page-wrapper .am-body-content h1,
#main-wrapper .page-wrapper .am-body-content h2,
#main-wrapper .page-wrapper .am-body-content-content h1,
#main-wrapper .page-wrapper .am-body-content-content h2,
.page-wrapper .container-fluid .am-body-content h1,
.page-wrapper .container-fluid .am-body-content h2,
.am-body-content h1,
.am-body-content h2,
.am-body-content-content h1,
.am-body-content-content h2 {
    font-size: 20px !important; font-weight: 700 !important; color: var(--text1) !important;
    margin-bottom: 18px !important; margin-top: 0 !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.3 !important;
    padding: 0 !important;
}

.am-body-content {
    font-family: 'Inter', sans-serif !important;
}
.am-body-content > h1,
.am-body-content > h2,
.am-body-content-content > h1,
.am-body-content-content > h2 {
    padding-top: 8px !important;
}

#am-block-active-subscriptions,
.am-block-active-subscriptions,
[id*="active-subscriptions"] {
    background: var(--bg) !important; border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important; padding: 0 !important; overflow: hidden;
    margin-bottom: 28px !important;
}
#am-block-active-subscriptions > h1,
#am-block-active-subscriptions > h2,
[id*="active-subscriptions"] > h1,
[id*="active-subscriptions"] > h2 {
    padding: 18px 22px 0 22px !important;
    margin-bottom: 8px !important;
}
#am-block-active-subscriptions > div,
[id*="active-subscriptions"] > div {
    padding: 16px 22px; border-bottom: 1px solid var(--border-light);
    font-size: 14px; line-height: 1.6; transition: background 0.15s ease;
}
#am-block-active-subscriptions > div:last-child { border-bottom: none; }
#am-block-active-subscriptions > div:hover { background: var(--bg2); }

.am-active-invoice {
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 16px 22px !important;
    margin-bottom: 12px !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.2s ease;
}
.am-active-invoice:hover { border-color: var(--brand) !important; box-shadow: 0 2px 8px rgba(59,130,246,0.08) !important; }
.am-active-invoice .am-active-invoice-num { color: var(--brand) !important; font-weight: 700 !important; }
.am-active-invoice .am-active-invoice-terms { color: var(--text2) !important; font-style: normal !important; }
.am-active-invoice .am-active-invoice-product { color: var(--text2) !important; }
.am-active-invoice .am-active-invoice-product-list { margin: 6px 0 0 20px !important; }
.am-active-invoice .am-active-invoice-product-list li { color: var(--text1) !important; margin-bottom: 2px; }

.am-body-content .am-block {
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 18px 22px !important;
    margin-bottom: 14px !important;
    box-shadow: var(--shadow-sm) !important;
}

.am-body-content .am-info {
    background: #EFF6FF !important;
    border: 1px solid #BFDBFE !important;
    border-radius: var(--radius) !important;
    color: #1E40AF !important;
    padding: 14px 20px !important;
}
.am-body-content .am-notice {
    background: #FFFBEB !important;
    border: 1px solid #FDE68A !important;
    border-radius: var(--radius) !important;
    color: #92400E !important;
    padding: 14px 20px !important;
}

/* Tables */
table.table, .am-grid table, .am-body-content table {
    border-collapse: separate !important; border-spacing: 0 !important;
    border: 1px solid var(--border) !important; border-radius: var(--radius) !important;
    overflow: hidden; width: 100%; background: var(--bg) !important;
    margin-bottom: 8px !important;
}
table.table th, .am-grid table th, .am-body-content table th {
    background: var(--bg3) !important; font-weight: 600 !important; font-size: 11px !important;
    text-transform: uppercase !important; letter-spacing: 0.06em !important;
    color: var(--text2) !important; padding: 12px 18px !important;
    border-bottom: 1px solid var(--border) !important; border-top: none !important;
}
table.table td, .am-grid table td, .am-body-content table td {
    padding: 14px 18px !important; font-size: 14px !important;
    border-bottom: 1px solid var(--border-light) !important;
    color: var(--text1) !important; vertical-align: middle !important;
}
table.table tr:last-child td { border-bottom: none !important; }
table.table tbody tr:hover td { background: var(--bg2) !important; }
table.table td a, .am-body-content table td a { color: var(--brand) !important; font-weight: 600 !important; text-decoration: none !important; }
table.table td a:hover { text-decoration: underline !important; }

.am-member-payment-history-amount { text-align: right !important; font-weight: 600 !important; }

.am-grid-container {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden !important;
    margin-bottom: 18px !important;
}

/* Pagination */
.am-pagination { text-align: center; padding: 10px 0; }
.am-pagination a, .am-pagination span {
    padding: 6px 14px !important; border-radius: var(--radius-sm) !important;
    font-size: 13px !important; margin: 0 2px !important;
}
.am-pagination a { background: var(--bg3) !important; color: var(--text1) !important; text-decoration: none !important; }
.am-pagination a:hover { background: var(--brand) !important; color: #FFF !important; }
.am-pagination .am-pagination-current { background: var(--brand) !important; color: #FFF !important; }

.page-wrapper .container-fluid .am-body-content {
    max-width: 100%;
}

/* ============================================================
   HELPDESK
   ============================================================ */
.am-body-content .am-helpdesk-ticket-list,
.am-body-content .am-list { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.am-body-content .am-helpdesk-message {
    border-radius: var(--radius) !important;
    padding: 0 !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.2s ease;
}
.am-body-content .am-helpdesk-message:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.07) !important;
}
.am-body-content .am-helpdesk-message.am-helpdesk-message-inbound {
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-left: 4px solid var(--brand) !important;
}
.am-body-content .am-helpdesk-message.am-helpdesk-message-inbound .am-helpdesk-message-header {
    background: #EFF6FF !important;
    border-bottom: 1px solid #DBEAFE !important;
}
.am-body-content .am-helpdesk-message.am-helpdesk-message-inbound .am-helpdesk-message-author {
    color: var(--brand) !important;
}
.am-body-content .am-helpdesk-message.am-helpdesk-message-outbound {
    background: #F0FDF4 !important;
    border: 1px solid #BBF7D0 !important;
    border-left: 4px solid #10B981 !important;
}
.am-body-content .am-helpdesk-message.am-helpdesk-message-outbound .am-helpdesk-message-header {
    background: #DCFCE7 !important;
    border-bottom: 1px solid #BBF7D0 !important;
}
.am-body-content .am-helpdesk-message.am-helpdesk-message-outbound .am-helpdesk-message-author {
    color: #059669 !important;
}
.am-body-content .am-helpdesk-message .am-helpdesk-message-header {
    padding: 12px 20px !important;
    opacity: 1 !important;
    font-size: 13px !important;
}
.am-body-content .am-helpdesk-message .am-helpdesk-message-author {
    font-weight: 700 !important;
    font-size: 14px !important;
}
.am-body-content .am-helpdesk-message .am-helpdesk-message-content {
    padding: 16px 20px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}
.am-body-content .am-helpdesk-message .am-helpdesk-message-content pre {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--text1) !important;
}
.am-body-content .am-helpdesk-message-action-fold {
    padding: 12px 18px 0 0 !important;
    font-size: 1.4em !important;
}
.am-body-content .am-helpdesk-message-action-fold a {
    color: var(--text3) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
.am-body-content .am-helpdesk-message-action {
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
}
.am-body-content .am-helpdesk-message-action a {
    color: var(--brand) !important;
    text-decoration: none !important;
}
.am-body-content .am-helpdesk-message-action a:hover { text-decoration: underline !important; }
.am-body-content .am-helpdesk-message.am-helpdesk-message-comment {
    background: #FFFBEB !important;
    border: 1px solid #FDE68A !important;
    border-left: 4px solid #F59E0B !important;
}
.am-body-content .am-helpdesk-message.am-helpdesk-message-comment .am-helpdesk-message-header {
    background: #FEF3C7 !important;
    border-bottom: 1px solid #FDE68A !important;
}
.am-helpdesk-history {
    border-bottom: 1px solid var(--border) !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
}
.am-helpdesk-history h1 {
    font-size: 18px !important;
}

/* ---- Helpdesk Attachment Uploader ---- */
.tbuy-attach-wrapper,
#tbuy-attach-wrapper {
    margin: 16px 0 20px;
    font-family: 'Inter', sans-serif;
}
.tbuy-attach-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.tbuy-attach-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: var(--brand) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #FFF !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: 'Inter', sans-serif !important;
}
.tbuy-attach-btn:hover {
    background: var(--brand-hover) !important;
    box-shadow: var(--brand-shadow) !important;
    transform: translateY(-1px);
}
.tbuy-attach-btn svg { stroke: #FFF !important; fill: none !important; flex-shrink: 0; }
.tbuy-attach-hint {
    font-size: 12px;
    color: var(--text3);
    line-height: 1.4;
}
.tbuy-upload-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 16px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--radius-sm);
}
.tbuy-progress-bar-container {
    flex: 1;
    height: 6px;
    background: #DBEAFE;
    border-radius: 3px;
    overflow: hidden;
}
.tbuy-progress-bar {
    height: 100%;
    background: var(--brand);
    border-radius: 3px;
    transition: width 0.2s ease;
    width: 0%;
}
.tbuy-progress-text {
    font-size: 12px;
    color: #1E40AF;
    font-weight: 500;
    white-space: nowrap;
}
.tbuy-attach-status {
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}
.tbuy-status-success {
    background: #F0FDF4;
    color: #15803D;
    border: 1px solid #BBF7D0;
}
.tbuy-status-error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}
.tbuy-attached-list {
    margin-top: 12px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.tbuy-attached-header {
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text1);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg);
}
.tbuy-attached-items {
    padding: 4px 0;
}
.tbuy-attached-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s ease;
    flex-wrap: wrap;
}
.tbuy-attached-item:last-child { border-bottom: none; }
.tbuy-attached-item:hover { background: var(--bg2); }
.tbuy-file-icon { flex-shrink: 0; color: var(--text2); display: flex; }
.tbuy-file-icon svg { stroke: var(--text2); }
.tbuy-file-name {
    font-weight: 600;
    color: var(--text1);
    word-break: break-all;
}
.tbuy-file-size {
    color: var(--text3);
    font-size: 12px;
    white-space: nowrap;
}
.tbuy-file-action {
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    background-color: transparent !important;
    padding: 2px 4px !important;
    font-family: 'Inter', sans-serif !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    outline: none !important;
    display: inline !important;
    line-height: 1.4 !important;
}
button.tbuy-file-action,
.am-body-content button.tbuy-file-action,
.am-body-content .tbuy-action-remove,
button.tbuy-action-remove {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    color: #DC2626 !important;
    box-shadow: none !important;
    padding: 2px 4px !important;
    font-size: 12px !important;
    transform: none !important;
}
button.tbuy-action-remove:hover,
.am-body-content button.tbuy-action-remove:hover {
    text-decoration: underline !important;
    color: #B91C1C !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}
a.tbuy-action-view,
.am-body-content a.tbuy-action-view {
    color: #2563EB !important;
    background: none !important;
    border: none !important;
    padding: 2px 4px !important;
    font-size: 12px !important;
}
a.tbuy-action-view:hover,
.am-body-content a.tbuy-action-view:hover {
    text-decoration: underline !important;
    color: #1D4ED8 !important;
}
.tbuy-drag-over {
    border-color: var(--brand) !important;
    background: var(--brand-light) !important;
    box-shadow: 0 0 0 3px var(--brand-ring) !important;
}
.am-helpdesk-attachment-expand,
a.am-helpdesk-attachment-expand,
.local.am-helpdesk-attachment-expand,
a.local.am-helpdesk-attachment-expand {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}
.am-row:has(.am-helpdesk-attachment-expand) {
    display: none !important;
}
#row-attachments-0,
.am-row[id^="row-attachments"] {
    display: none !important;
}

/* General form inputs */
.am-body-content input[type="text"],
.am-body-content input[type="email"],
.am-body-content input[type="password"],
.am-body-content select,
.am-body-content textarea {
    border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important;
    padding: 10px 14px !important; font-size: 14px !important;
    font-family: 'Inter', sans-serif !important; transition: all 0.2s ease !important;
    background: var(--bg) !important; color: var(--text1) !important;
}
.am-body-content input:focus, .am-body-content select:focus, .am-body-content textarea:focus {
    border-color: var(--brand) !important; box-shadow: 0 0 0 3px var(--brand-ring) !important; outline: none !important;
}
.am-body-content input[type="submit"],
.am-body-content button[type="submit"] {
    background: var(--brand) !important; color: #FFF !important; border: none !important;
    border-radius: var(--radius-sm) !important; padding: 12px 28px !important;
    font-size: 14px !important; font-weight: 600 !important; font-family: 'Inter', sans-serif !important;
    cursor: pointer; transition: all 0.25s ease !important;
}
.am-body-content input[type="submit"]:hover,
.am-body-content button[type="submit"]:hover {
    background: var(--brand-hover) !important; box-shadow: var(--brand-shadow) !important;
}

.pagination .page-link { border-radius: var(--radius-sm) !important; margin: 0 2px !important; font-weight: 500 !important; color: var(--text2) !important; border-color: var(--border) !important; }
.pagination .page-item.active .page-link { background: var(--brand) !important; border-color: var(--brand) !important; color: #FFF !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: transparent !important; border-top: 1px solid var(--border) !important; padding: 18px 30px !important; font-size: 13px !important; color: var(--text3) !important; }
.footer a { color: var(--brand) !important; font-weight: 600 !important; text-decoration: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .resources-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .resources-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .sub-grid { grid-template-columns: 1fr 1fr; }
    .topbar-quick-link { display: none !important; }
}
@media (max-width: 767px) {
    .resources-grid { grid-template-columns: 1fr; }
    .sub-grid { grid-template-columns: 1fr; }
    .resource-search-container { max-width: 100%; }
    .container-fluid { padding: 0 16px 16px !important; }
    .page-breadcrumb { padding: 14px 16px 0 !important; }
    .welcome-banner { padding: 18px 20px; }
    .welcome-banner-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .welcome-left h2 { font-size: 17px; white-space: normal; }
    .profile-hero { flex-direction: column; text-align: center; padding: 0; }
    .profile-hero-avatar { margin-left: 0; margin-top: 20px; }
    .profile-hero-info { padding-top: 10px; padding-bottom: 16px; text-align: center; }
    .am-profile-form .am-row, form#profile .am-row { padding: 12px 16px !important; }
    .am-profile-form .am-element.group, form#profile .am-element.group {
        flex-direction: column !important; gap: 8px !important;
    }
    .extension-cta { flex-direction: column; text-align: center; gap: 12px; }
    .extension-cta-btn { width: 100%; justify-content: center; }
    .tbuy-attach-section { flex-direction: column; align-items: flex-start; }
    .tbuy-attached-item { font-size: 12px; padding: 8px 14px; }
    .tbuy-file-name { font-size: 12px; }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ============================================================
   SIGNUP / ORDER PAGE STYLES
   ============================================================ */
.signup-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    margin-bottom: 20px;
}
.signup-hero-icon {
    width: 52px; height: 52px;
    background: var(--brand) !important;
    background-image: var(--brand-gradient) !important;
    border-radius: 14px;
    display: flex !important; align-items: center; justify-content: center;
    flex-shrink: 0; color: #FFF;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.signup-hero-icon svg { stroke: #FFFFFF !important; color: #FFFFFF !important; fill: none !important; width: 28px !important; height: 28px !important; }
.signup-hero-info h2 {
    font-size: 20px !important; font-weight: 700 !important;
    color: var(--text1) !important; margin: 0 0 2px !important;
    font-family: 'Inter', sans-serif !important; line-height: 1.3 !important;
}
.signup-hero-info p {
    font-size: 14px; color: var(--text2); margin: 0;
}

/* Signup form styles */
.am-signup fieldset {
    border: none !important; padding: 0 !important; margin: 0 !important;
}
.am-signup fieldset > legend,
.am-signup > h1,
.am-signup .am-page-title {
    display: none !important;
}

.tbuy-signup-form,
.am-signup form {
    background: var(--bg) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius) !important;
    overflow: visible !important;
}

.am-signup .am-row {
    display: block !important;
    padding: 16px 24px !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-light) !important;
    margin: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    clear: both !important;
    min-height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.am-signup .am-row::after {
    content: '' !important; display: table !important; clear: both !important;
}

.am-signup .am-element-title {
    width: 100% !important;
    float: none !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 0 8px !important;
}
.am-signup .am-element-title label,
.am-signup .am-element-title {
    font-size: 12.5px !important; font-weight: 600 !important;
    color: var(--text2) !important;
    text-transform: uppercase !important; letter-spacing: 0.5px !important;
    font-family: 'Inter', sans-serif !important;
}
.am-signup .am-element-title .required,
.am-signup .am-element-title span.required {
    color: var(--brand) !important;
}
.am-signup .am-element-title .comment {
    display: none !important;
}

.am-signup .am-element {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

.am-signup input[type="text"],
.am-signup input[type="email"],
.am-signup input[type="password"],
.am-signup input[type="tel"],
.am-signup input[type="number"],
.am-signup input[type="url"],
.am-signup select,
.am-signup textarea {
    width: 100% !important; max-width: 100% !important;
    padding: 10px 14px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 14px !important; font-family: 'Inter', sans-serif !important;
    color: var(--text1) !important; background: #FFF !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    outline: none !important; box-shadow: none !important;
    height: auto !important; line-height: 1.5 !important;
    -webkit-appearance: none !important;
}
.am-signup input[type="text"]:focus,
.am-signup input[type="email"]:focus,
.am-signup input[type="password"]:focus,
.am-signup select:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12) !important;
}
.am-signup .am-element.group {
    display: flex !important; gap: 12px !important;
}

/* Product grid */
.tbuy-product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
}

.tbuy-product-grid .radio,
.tbuy-product-grid .checkbox,
.tbuy-product-grid .tbuy-plan-card,
.tbuy-product-grid > label {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 16px 18px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius) !important;
    background: #FFF !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    min-height: 72px !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: var(--text1) !important;
    line-height: 1.5 !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}
.tbuy-product-grid .radio:hover,
.tbuy-product-grid .checkbox:hover,
.tbuy-product-grid .tbuy-plan-card:hover,
.tbuy-product-grid > label:hover {
    border-color: var(--brand) !important;
    background: #F8FBFF !important;
    box-shadow: 0 2px 8px rgba(59,130,246,0.08) !important;
}

.tbuy-product-grid .tbuy-item-selected,
.tbuy-product-grid .radio.tbuy-item-selected,
.tbuy-product-grid .checkbox.tbuy-item-selected,
.tbuy-product-grid .tbuy-plan-card.tbuy-item-selected {
    border-color: var(--brand) !important;
    background: var(--brand-light) !important;
    box-shadow: 0 2px 12px rgba(59,130,246,0.12) !important;
}

.tbuy-product-grid input[type="checkbox"],
.tbuy-product-grid input[type="radio"] {
    position: absolute !important;
    top: 14px !important; right: 14px !important;
    width: 18px !important; height: 18px !important;
    accent-color: var(--brand) !important;
    margin: 0 !important; padding: 0 !important;
    cursor: pointer !important; border: none !important;
}

.tbuy-product-grid .radio label,
.tbuy-product-grid .checkbox label,
.tbuy-product-grid .tbuy-plan-card label {
    font-size: 14px !important; font-weight: 500 !important;
    color: var(--text1) !important; cursor: pointer !important;
    padding-right: 28px !important; line-height: 1.5 !important;
    margin: 0 !important; display: block !important;
    font-family: 'Inter', sans-serif !important;
}
.tbuy-product-grid label strong {
    display: block !important; font-size: 15px !important;
    font-weight: 700 !important; color: var(--text1) !important;
    margin-bottom: 2px !important;
}

/* Payment system row */
.tbuy-payment-row .am-element,
#row-paysys_id .am-element {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}
.tbuy-payment-row .am-element label.radio,
.tbuy-payment-row .am-element > label,
#row-paysys_id .am-element label.radio,
#row-paysys_id .am-element > label,
.tbuy-payment-option,
.am-signup .tbuy-payment-option {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 16px 18px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    background: #F9FAFB !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}
.tbuy-payment-row .am-element label.radio:hover,
#row-paysys_id .am-element label.radio:hover,
.tbuy-payment-option:hover {
    border-color: var(--brand) !important;
    background: #FFF !important;
    box-shadow: 0 2px 8px rgba(59,130,246,0.06) !important;
}
.tbuy-payment-row .am-element label.radio:has(input:checked),
#row-paysys_id .am-element label.radio:has(input:checked),
.tbuy-payment-option:has(input[type="radio"]:checked) {
    border-color: var(--brand) !important;
    background: var(--brand-light) !important;
    box-shadow: 0 2px 10px rgba(59,130,246,0.1) !important;
}
.tbuy-payment-row input[type="radio"],
#row-paysys_id input[type="radio"] {
    width: 18px !important; height: 18px !important;
    accent-color: var(--brand) !important;
    margin: 2px 0 0 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}
.am-paysystem-title,
#row-paysys_id .am-paysystem-title,
span[id*="paysystem"][id*="title"] {
    font-size: 14px !important; font-weight: 600 !important;
    color: var(--text1) !important;
    font-family: 'Inter', sans-serif !important;
    display: block !important;
}
.am-paysystem-desc,
#row-paysys_id .am-paysystem-desc,
span[id*="paysystem"][id*="desc"] {
    font-size: 12.5px !important; font-weight: 400 !important;
    color: var(--text3) !important;
    font-family: 'Inter', sans-serif !important;
    display: block !important;
    margin-top: 2px !important;
    font-style: normal !important;
}
#row-paysys_id label.radio br { display: none !important; }

/* Submit / Next button */
.am-signup input[type="submit"],
.am-signup button[type="submit"],
.am-signup .btn,
.am-signup .btn-orange,
.am-signup .btn.btn-orange,
.am-signup .am-cta-signup-btn,
.am-signup a.am-cta-signup-btn,
.tbuy-signup-form input[type="submit"],
.tbuy-signup-form button[type="submit"],
.tbuy-signup-form .btn-orange,
.tbuy-signup-form .am-cta-signup-btn,
.am-body-content .am-signup input[type="submit"],
.am-body-content .am-signup button[type="submit"],
.am-body-content .am-signup .btn-orange,
body .am-signup input[type="submit"],
body .am-signup .am-cta-signup-btn,
html body .am-signup input[type="submit"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    min-width: 220px !important;
    height: auto !important;
    max-height: none !important;
    padding: 14px 40px !important;
    margin: 8px 0 !important;
    background: #3B82F6 !important;
    background-image: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    background-color: #3B82F6 !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3) !important;
    text-decoration: none !important;
    text-align: center !important;
    -webkit-appearance: none !important;
    position: relative !important;
    z-index: 10 !important;
    overflow: visible !important;
    max-width: 100% !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    float: none !important;
    transition: all 0.25s ease !important;
    text-shadow: none !important;
}
.am-signup input[type="submit"]:hover,
.am-signup button[type="submit"]:hover,
.am-signup .btn-orange:hover,
.am-signup .am-cta-signup-btn:hover,
.tbuy-signup-form input[type="submit"]:hover,
.tbuy-signup-form .btn-orange:hover,
body .am-signup input[type="submit"]:hover {
    background: #2563EB !important;
    background-image: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
    box-shadow: 0 6px 16px rgba(59,130,246,0.45) !important;
    transform: translateY(-1px) !important;
    color: #FFFFFF !important;
}

.am-signup .am-row:has(input[type="submit"]),
.am-signup .am-row:has(button[type="submit"]),
.am-signup .am-row:has(.am-cta-signup-btn),
.am-signup .am-row:has(.btn-orange),
.am-signup .am-form-buttons,
.tbuy-signup-form .am-row:last-child,
.am-signup .am-row:last-child,
.am-signup .am-row:last-of-type {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    padding: 20px 24px !important;
    border-bottom: none !important;
    position: relative !important;
    z-index: 5 !important;
}

/* Misc signup */
.am-signup .am-info.am-login-text {
    background: #EFF6FF !important; border: 1px solid #BFDBFE !important;
    border-radius: var(--radius-sm) !important; padding: 12px 16px !important;
    font-size: 13.5px !important; color: #1E40AF !important;
    margin-bottom: 20px !important; line-height: 1.5 !important;
    font-family: 'Inter', sans-serif !important;
}
.am-signup .am-info.am-login-text a { color: var(--brand) !important; font-weight: 600 !important; }
.am-signup .am-info.am-login-text .am-login-text_login { color: #1E40AF !important; font-weight: 700 !important; }

.am-signup input[name*="coupon"] { border-style: dashed !important; }

.am-signup .errors, .am-signup ul.errors, .am-signup .error {
    background: #FEF2F2 !important; border: 1px solid #FECACA !important;
    color: #DC2626 !important; border-radius: var(--radius-sm) !important;
    padding: 10px 14px !important; font-size: 13px !important;
    margin-bottom: 16px !important; list-style: none !important;
}

.am-signup .g-recaptcha,
.am-signup iframe[title*="reCAPTCHA"] {
    margin-top: 4px !important;
}

/* Currency toggle */
.am-signup .am-currency-toggle {
    background: #F8FAFC !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius) !important;
    max-width: 360px !important;
    padding: 12px 18px !important;
    margin: 12px auto 16px !important;
}
.am-signup .am-curr-btn {
    font-family: 'Inter', sans-serif !important;
    border-radius: 8px !important;
    padding: 9px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    color: #555 !important;
    background: #FFFFFF !important;
    background-image: none !important;
    border: 2px solid #ddd !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    min-width: auto !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    z-index: auto !important;
    float: none !important;
    transform: none !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.am-signup .am-curr-btn:hover {
    color: #333 !important;
    background: #F1F5F9 !important;
    background-image: none !important;
    border-color: #aaa !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: none !important;
}
.am-signup .am-curr-btn:focus,
.am-signup .am-curr-btn:active {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}
/* INR selected — brand blue */
.am-signup .am-curr-btn.selected.inr-btn,
.am-signup .am-curr-btn.selected.inr-btn:hover,
.am-signup .am-curr-btn.selected.inr-btn:focus {
    color: #FFFFFF !important;
    background: #3B82F6 !important;
    background-image: linear-gradient(135deg, #3B82F6, #2563EB) !important;
    border-color: #3B82F6 !important;
    box-shadow: 0 2px 8px rgba(59,130,246,0.3) !important;
}
/* USD selected — indigo */
.am-signup .am-curr-btn.selected.usd-btn,
.am-signup .am-curr-btn.selected.usd-btn:hover,
.am-signup .am-curr-btn.selected.usd-btn:focus {
    color: #FFFFFF !important;
    background: #6366F1 !important;
    background-image: linear-gradient(135deg, #818CF8, #6366F1) !important;
    border-color: #6366F1 !important;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3) !important;
}
.am-signup .am-curr-btn img {
    width: 20px !important;
    height: 14px !important;
    border-radius: 2px !important;
    object-fit: cover !important;
    display: inline-block !important;
    vertical-align: middle !important;
}
.am-signup .am-currency-note {
    font-family: 'Inter', sans-serif !important;
    color: var(--text3) !important;
    font-size: 12px !important;
    margin-bottom: 8px !important;
}
.tbuy-product-grid .am-hide-product,
.tbuy-product-grid .am-hide-product.tbuy-plan-card,
.tbuy-product-grid div.am-hide-product,
.am-hide-product {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    min-height: 0 !important;
}

/* Signup responsive */
@media (max-width: 992px) {
    .tbuy-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 576px) {
    .tbuy-product-grid {
        grid-template-columns: 1fr !important;
    }
    .signup-hero {
        flex-direction: column; text-align: center; padding: 20px;
    }
    .am-signup .am-row {
        padding: 14px 16px !important;
    }
}
