@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ============================================================
   PREMIUM TOOLS DASHBOARD THEME — COMPLETE REVAMP
   ============================================================ */
div#ptSubsToggle span, .pt-subs-header h3, .pt-subs-header .pt-subs-count {
    color: #ffffff !important;
}
:root {
    --pt-deep: #6B21A8;
    --pt-primary: #7C3AED;
    --pt-mid: #8B5CF6;
    --pt-light: #A78BFA;
    --pt-soft: #C4B5FD;
    --pt-wash: #EDE9FE;
    --pt-ghost: #F5F3FF;
    --pt-bg: #FAF8FF;
    --pt-sb-bg: #0F0720;
    --pt-sb-hover: #251548;
    --pt-sb-border: rgba(139,92,246,.15);
    --pt-sb-text: #B8A9D4;
    --pt-sb-text-dim: #7C6B9E;
    --pt-white: #ffffff;
    --pt-text: #1E1133;
    --pt-text-sub: #6B5D85;
    --pt-sb-gap: 20px;
    --pt-sb-radius: 24px;
    --pt-sb-width: 272px;
    --pt-sb-collapsed-width: 78px;
    --pt-ease: cubic-bezier(.4,0,.2,1);
    --pt-fast: .2s cubic-bezier(.4,0,.2,1);
    --pt-med: .35s cubic-bezier(.4,0,.2,1);
}

* {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: var(--pt-bg);
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   DASHBOARD ROOT
   ============================================================ */
.ptdash-root {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

.ptdash-root *, .ptdash-root *::before, .ptdash-root *::after {
    box-sizing: border-box;
}

/* ============================================================
   ANNOUNCEMENT BANNER
   ============================================================ */
.ptdash-announcement {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    animation: ptann-slide .4s var(--pt-ease);
}
.ptdash-announcement.ann-info { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.ptdash-announcement.ann-success { background: linear-gradient(135deg, #10b981, #34d399); }
.ptdash-announcement.ann-warning { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.ptdash-announcement.ann-error { background: linear-gradient(135deg, #ef4444, #f87171); }
.ptdash-announcement.ann-promo { background: linear-gradient(135deg, #9333ea, #c084fc); }
@keyframes ptann-slide { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.ptdash-announcement a { color: #fff; text-decoration: underline; font-weight: 600; margin-left: 8px; }
.ptdash-ann-close { background: rgba(255,255,255,.2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; margin-left: auto; transition: background .2s; }
.ptdash-ann-close:hover { background: rgba(255,255,255,.3); }
.ptdash-ann-close svg { width: 14px; height: 14px; }
.ptdash-has-announcement .ptdash-sidebar { top: calc(var(--pt-sb-gap) + 52px); height: calc(100vh - (var(--pt-sb-gap)*2) - 52px); }
.ptdash-has-announcement .ptdash-content { padding-top: 52px; }
@media(max-width:991px) { .ptdash-has-announcement .ptdash-sidebar { top: 52px; height: calc(100vh - 52px); } }

/* ============================================================
   SIDEBAR
   ============================================================ */
.ptdash-sidebar {
    width: var(--pt-sb-width);
    background: var(--pt-sb-bg);
    position: fixed;
    left: var(--pt-sb-gap);
    top: var(--pt-sb-gap);
    height: calc(100vh - (var(--pt-sb-gap)*2));
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 24px 14px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: var(--pt-sb-radius);
    border: 1px solid var(--pt-sb-border);
    transition: width var(--pt-med), padding var(--pt-med), top var(--pt-med), height var(--pt-med);
    will-change: width;
    box-shadow: 0 0 0 1px rgba(139,92,246,.06) inset, 0 8px 40px rgba(15,7,32,.55), 0 0 80px -20px rgba(124,58,237,.25);
}
.ptdash-sidebar::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124,58,237,.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.ptdash-sidebar > * { position: relative; z-index: 1; }
.ptdash-sidebar::-webkit-scrollbar { width: 4px; }
.ptdash-sidebar::-webkit-scrollbar-track { background: transparent; }
.ptdash-sidebar::-webkit-scrollbar-thumb { background: var(--pt-sb-hover); border-radius: 4px; }
.ptdash-collapsed .ptdash-sidebar { width: var(--pt-sb-collapsed-width); padding: 24px 10px 16px; }

/* Brand */
.ptdash-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 24px;
    border-bottom: 1px solid var(--pt-sb-border);
    margin-bottom: 16px;
    text-decoration: none;
}
.ptdash-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(124,58,237,.35);
}
.ptdash-brand-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.ptdash-brand-info { display: flex; flex-direction: column; overflow: hidden; transition: opacity var(--pt-med); }
.ptdash-collapsed .ptdash-brand-info { opacity: 0; width: 0; }
.ptdash-brand-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 700; color: #fff; white-space: nowrap; line-height: 1.2; }
.ptdash-brand-tag { font-size: 11px; color: var(--pt-sb-text-dim); margin-top: 2px; white-space: nowrap; }

/* Navigation */
.ptdash-nav { list-style: none; padding: 0; margin: 0; }
.ptdash-nav-cat { font-size: 10px; color: var(--pt-sb-text-dim); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; padding: 0 12px; margin: 20px 0 8px; white-space: nowrap; overflow: hidden; transition: opacity var(--pt-med), height var(--pt-med); }
.ptdash-collapsed .ptdash-nav-cat { opacity: 0; height: 0; margin: 8px 0 0; }
.ptdash-nav-item { margin: 3px 0; animation: ptslide .4s var(--pt-ease) both; }
.ptdash-nav-item:nth-child(1){animation-delay:.03s}.ptdash-nav-item:nth-child(2){animation-delay:.06s}.ptdash-nav-item:nth-child(3){animation-delay:.09s}.ptdash-nav-item:nth-child(4){animation-delay:.12s}.ptdash-nav-item:nth-child(5){animation-delay:.15s}.ptdash-nav-item:nth-child(6){animation-delay:.18s}.ptdash-nav-item:nth-child(7){animation-delay:.21s}.ptdash-nav-item:nth-child(8){animation-delay:.24s}
@keyframes ptslide { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }

.ptdash-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--pt-sb-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--pt-fast), color var(--pt-fast), box-shadow var(--pt-fast);
    position: relative;
    overflow: hidden;
}
.ptdash-collapsed .ptdash-nav-link { justify-content: center; padding: 11px 8px; gap: 0; }
.ptdash-nav-link:hover { background: var(--pt-sb-hover); color: #fff; }
.ptdash-nav-link.active {
    background: linear-gradient(135deg, var(--pt-primary), var(--pt-mid));
    color: #fff;
    box-shadow: 0 4px 20px rgba(124,58,237,.35);
}
.ptdash-nav-link.active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,.12), transparent);
    pointer-events: none;
}
.ptdash-nav-link:not(.active)::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,.06), transparent);
    transition: left .5s var(--pt-ease);
    pointer-events: none;
}
.ptdash-nav-link:not(.active):hover::after { left: 100%; }
.ptdash-nav-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ptdash-nav-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.ptdash-nav-text { white-space: nowrap; transition: opacity var(--pt-med); }
.ptdash-collapsed .ptdash-nav-text { display: none; opacity: 0; }
.ptdash-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-left: auto; background: rgba(124,58,237,.2); color: var(--pt-light); }
.ptdash-badge.ptdash-badge-success { background: rgba(52,211,153,.15); color: #34D399; }
.ptdash-collapsed .ptdash-badge { display: none; }

/* Sidebar Footer */
.ptdash-sb-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--pt-sb-border); }
.ptdash-sb-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 12px; }
.ptdash-collapsed .ptdash-sb-user { justify-content: center; }
.ptdash-sb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--pt-mid), var(--pt-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    overflow: hidden;
    letter-spacing: -.5px;
}
.ptdash-sb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ptdash-sb-user-info { overflow: hidden; transition: opacity var(--pt-med); min-width: 0; }
.ptdash-collapsed .ptdash-sb-user-info { display: none; opacity: 0; }
.ptdash-sb-user-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.ptdash-sb-user-email { font-size: 11px; color: var(--pt-sb-text-dim); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

/* Sidebar Ad */
.ptdash-sidebar-ad { margin-top: 12px; padding: 0 4px; border-radius: 12px; overflow: hidden; }
.ptdash-sidebar-ad a { display: block; text-decoration: none; }
.ptdash-sidebar-ad img { max-width: 100%; height: auto; border-radius: 10px; }
.ptdash-collapsed .ptdash-sidebar-ad { display: none !important; }

/* Toggle */
.ptdash-toggle {
    background: var(--pt-sb-hover);
    border: 1px solid var(--pt-sb-border);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--pt-sb-text);
    transition: background var(--pt-fast), color var(--pt-fast);
    margin: 12px auto 0;
    flex-shrink: 0;
}
.ptdash-toggle:hover { background: var(--pt-primary); color: #fff; border-color: var(--pt-primary); }
.ptdash-toggle svg { transition: transform var(--pt-med); }
.ptdash-collapsed .ptdash-toggle svg { transform: rotate(180deg); }
.ptdash-mobile-close {
    display: none;
    position: absolute;
    top: 16px;
    right: 14px;
    background: var(--pt-sb-hover);
    border: 1px solid var(--pt-sb-border);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--pt-sb-text);
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.ptdash-mobile-close:hover { background: var(--pt-primary); color: #fff; }

/* ============================================================
   CONTENT AREA
   ============================================================ */
.ptdash-content {
    flex: 1;
    margin-left: calc(var(--pt-sb-width) + (var(--pt-sb-gap)*2));
    width: calc(100% - var(--pt-sb-width) - (var(--pt-sb-gap)*2));
    transition: margin-left var(--pt-med), width var(--pt-med);
    position: relative;
    min-height: 100vh;
}
.ptdash-collapsed .ptdash-content {
    margin-left: calc(var(--pt-sb-collapsed-width) + (var(--pt-sb-gap)*2));
    width: calc(100% - var(--pt-sb-collapsed-width) - (var(--pt-sb-gap)*2));
}

/* Topbar */
.ptdash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    margin: 20px 24px;
    background: var(--pt-white);
    border-radius: 18px;
    border: 1px solid rgba(139,92,246,.06);
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(124,58,237,.04);
    animation: ptfade .5s var(--pt-ease) both;
    position: relative;
    z-index: 100;
}
@keyframes ptfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.ptdash-greeting { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ptdash-greeting h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 700; color: var(--pt-text); margin: 0; line-height: 1.3; }
.ptdash-greeting h1 span { color: var(--pt-primary); }
.ptdash-greeting p { font-size: 14px; color: var(--pt-text-sub); margin: 2px 0 0; }
.ptdash-topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; position: relative; z-index: 10000; }
.ptdash-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: 1px solid rgba(139,92,246,.15);
    background: var(--pt-white);
    color: var(--pt-text);
    cursor: pointer;
    transition: all var(--pt-fast);
    white-space: nowrap;
}
.ptdash-topbar-btn:hover { border-color: var(--pt-mid); color: var(--pt-primary); box-shadow: 0 4px 12px rgba(124,58,237,.1); }
.ptdash-topbar-btn svg { flex-shrink: 0; }
.ptdash-topbar-btn.ptdash-btn-primary {
    background: linear-gradient(135deg, var(--pt-primary), var(--pt-mid));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(124,58,237,.3);
}
.ptdash-topbar-btn.ptdash-btn-primary:hover { box-shadow: 0 6px 24px rgba(124,58,237,.4); transform: translateY(-1px); color: #fff; }

/* Notification Bell */
.ptdash-notif-wrap { position: relative; z-index: 10000; }
.ptdash-notif-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pt-ghost);
    border: 1px solid transparent;
    color: var(--pt-text-sub);
    cursor: pointer;
    transition: all var(--pt-fast);
}
.ptdash-notif-btn:hover { border-color: var(--pt-light); color: var(--pt-primary); background: var(--pt-wash); }
.ptdash-notif-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--pt-white);
    animation: ptpulse 2s ease-in-out infinite;
}
@keyframes ptpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.ptdash-notif-count:empty, .ptdash-notif-count[data-count="0"] { display: none; }
.ptdash-notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    background: var(--pt-white);
    border-radius: 16px;
    border: 1px solid rgba(139,92,246,.08);
    box-shadow: 0 12px 40px rgba(0,0,0,.2), 0 0 0 1px rgba(139,92,246,.04);
    display: none;
    opacity: 0;
    transform: translateY(6px) scale(.97);
    transition: opacity .25s ease, transform .25s ease;
    z-index: 10001;
    overflow: hidden;
}
.ptdash-notif-dropdown.show { display: block; opacity: 1; transform: translateY(0) scale(1); }
.ptdash-notif-header { padding: 16px 18px; border-bottom: 1px solid var(--pt-wash); display: flex; align-items: center; justify-content: space-between; }
.ptdash-notif-header h4 { font-size: 15px; font-weight: 700; color: var(--pt-text); margin: 0; display: flex; align-items: center; gap: 8px; }
.ptdash-notif-header h4 svg { color: var(--pt-primary); }
.ptdash-notif-list { max-height: 320px; overflow-y: auto; }
.ptdash-notif-list::-webkit-scrollbar { width: 4px; }
.ptdash-notif-list::-webkit-scrollbar-thumb { background: var(--pt-soft); border-radius: 4px; }
.ptdash-notif-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--pt-wash); transition: background .2s; cursor: pointer; text-decoration: none; color: inherit; }
.ptdash-notif-item:last-child { border-bottom: none; }
.ptdash-notif-item:hover { background: var(--pt-ghost); }
.ptdash-notif-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--pt-wash); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ptdash-notif-content { flex: 1; min-width: 0; }
.ptdash-notif-title { font-size: 13px; font-weight: 600; color: var(--pt-text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptdash-notif-desc { font-size: 12px; color: var(--pt-text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptdash-notif-time { font-size: 11px; color: var(--pt-soft); margin-top: 4px; }
.ptdash-notif-empty { padding: 40px 20px; text-align: center; color: var(--pt-text-sub); }
.ptdash-notif-empty svg { width: 40px; height: 40px; color: var(--pt-soft); margin-bottom: 10px; }

/* User Menu */
.ptdash-user-menu { position: relative; z-index: 10000; }
.ptdash-user-trigger {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 2px solid var(--pt-wash);
    background: linear-gradient(135deg, var(--pt-mid), var(--pt-light));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color var(--pt-fast), box-shadow var(--pt-fast);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.ptdash-user-trigger:hover { border-color: var(--pt-primary); box-shadow: 0 4px 16px rgba(124,58,237,.25); }
.ptdash-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: var(--pt-white);
    border-radius: 16px;
    border: 1px solid rgba(139,92,246,.08);
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
    display: none;
    opacity: 0;
    transform: translateY(6px) scale(.97);
    transition: opacity .25s ease, transform .25s ease;
    z-index: 10001;
    overflow: hidden;
}
.ptdash-dropdown.show { display: block; opacity: 1; transform: translateY(0) scale(1); }
.ptdash-dd-header { padding: 16px; border-bottom: 1px solid var(--pt-wash); }
.ptdash-dd-name { font-weight: 700; color: var(--pt-text); font-size: 14px; }
.ptdash-dd-role { font-size: 12px; color: var(--pt-text-sub); margin-top: 2px; }
.ptdash-dd-items { padding: 6px 0; }
.ptdash-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--pt-text-sub);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background var(--pt-fast), color var(--pt-fast);
}
.ptdash-dd-item:hover { background: var(--pt-ghost); color: var(--pt-primary); }
.ptdash-dd-item svg { color: var(--pt-soft); flex-shrink: 0; }
.ptdash-dd-item:hover svg { color: var(--pt-primary); }
.ptdash-dd-sep { height: 1px; background: var(--pt-wash); margin: 4px 0; }
.ptdash-mobile-menu {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--pt-ghost);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--pt-text-sub);
    flex-shrink: 0;
}
.ptdash-mobile-menu:hover { background: var(--pt-wash); color: var(--pt-primary); }
.ptdash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15,7,32,.65);
    backdrop-filter: blur(4px);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity .3s ease;
}
.ptdash-mobile-open .ptdash-overlay { display: block; opacity: 1; }
.ptdash-main { padding: 0 24px 24px; position: relative; z-index: 1; }

/* ============================================================
   PAGE CONTENT OVERRIDES
   ============================================================ */
.page-wrapper {
    background: transparent !important;
}
.page-header {
    margin-bottom: 0;
}
.page-header .page-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--pt-text);
    font-size: 22px;
}
.page-body {
    margin-top: 0.5em;
}
.container-xl {
    padding: 0;
}

/* Hide old navbar */
.navbar.navbar-expand-md,
.navbar-expand-md > .collapse,
header.navbar-expand-md {
    display: none !important;
}

/* ============================================================
   FORMS — PREMIUM STYLE
   ============================================================ */
.am-form form {
    padding: 1.5em;
    background: var(--pt-white);
    border-radius: 18px;
    border: 1px solid rgba(139,92,246,.06);
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(124,58,237,.04);
}
.am-form div.am-element-title .comment {
    font-size: 0.7rem;
}
.am-form div.am-element-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    color: var(--pt-text);
}

/* Auth form */
.am-auth-form {
    width: 100%;
}
.am-auth-form div.am-row {
    background: transparent;
    border-bottom: none;
}
.am-auth-form.am-form fieldset legend {
    padding: 1.5em 1rem;
    font-size: 26px;
    background: transparent;
    border-bottom: none;
    float: none;
    font-weight: 700;
    color: var(--pt-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.am-auth-form .am-row {
    display: block;
    padding: 15px 0;
}
.am-auth-form .am-row .am-element-title {
    padding: 0;
    width: 100%;
    text-align: left;
    float: none;
    margin: 0 0 10px 0;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--pt-text);
}
.am-auth-form .am-row .am-element {
    padding: 0;
    float: none;
    width: 100%;
    margin: 0;
}
.am-auth-form .am-row.am-row-buttons .am-element input {
    display: block;
    width: 100%;
    border-radius: 14px;
    padding: 14px;
    font-weight: 600;
}
.am-auth-form .am-row.am-row-buttons .am-element span {
    display: block;
    margin-top: 20px;
    font-size: 14px;
    color: var(--pt-text-sub);
}

/* ============================================================
   BUTTONS — PREMIUM STYLE
   ============================================================ */
.am-body-content a.button,
.am-body-content button,
.am-body-content input[type="button"],
.am-body-content input[type="submit"],
.am-popup a.button,
.am-popup button,
.am-popup input[type="button"],
.am-popup input[type="submit"] {
    color: white;
    background: linear-gradient(135deg, var(--pt-primary), var(--pt-mid));
    border-color: var(--pt-primary);
    border-radius: 12px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    transition: all .3s ease;
    box-shadow: 0 4px 16px rgba(124,58,237,.2);
}
.am-body-content a.button:hover,
.am-body-content button:hover,
.am-body-content input[type="button"]:hover,
.am-body-content input[type="submit"]:hover,
.am-popup a.button:hover,
.am-popup button:hover,
.am-popup input[type="button"]:hover,
.am-popup input[type="submit"]:hover {
    color: white;
    background: linear-gradient(135deg, var(--pt-deep), var(--pt-primary));
    border-color: var(--pt-deep);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(124,58,237,.35);
}
.am-body-content input[type=submit]:disabled,
.am-body-content input[type=submit]:disabled:hover,
.am-body-content input[type=button]:disabled,
.am-body-content input[type=button]:disabled:hover {
    background: #f1f1f1;
    color: #ccc;
    border-color: #ced4da;
    box-shadow: none;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pt-primary), var(--pt-mid)) !important;
    border-color: var(--pt-primary) !important;
    box-shadow: 0 4px 16px rgba(124,58,237,.2);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--pt-deep), var(--pt-primary)) !important;
    box-shadow: 0 6px 24px rgba(124,58,237,.35);
}
.btn-success {
    background: linear-gradient(135deg, #10b981, #34d399) !important;
    border-color: #10b981 !important;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(16,185,129,.2);
}
.btn-success:hover {
    box-shadow: 0 6px 24px rgba(16,185,129,.35);
    transform: translateY(-1px);
}

/* ============================================================
   CARDS — PREMIUM STYLE
   ============================================================ */
.card {
    border-radius: 18px !important;
    border: 1px solid rgba(139,92,246,.06) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(124,58,237,.04) !important;
    overflow: hidden;
    transition: all .3s ease;
}
.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.06), 0 8px 24px rgba(124,58,237,.08) !important;
    transform: translateY(-2px);
}
.card-body {
    padding: 1.25rem;
}
.card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--pt-text);
}
.card-footer {
    background: var(--pt-ghost);
    border-top: 1px solid var(--pt-wash);
}
.bg-primary-lt {
    background: var(--pt-ghost) !important;
    border: 1px solid var(--pt-wash) !important;
}

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */
.am-layout-two-coll,
.am-layout-two-coll .am-layout-two-coll-top,
.am-layout-two-coll .am-layout-two-coll-bottom {
    background: transparent !important;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
}
.am-layout-two-coll .am-coll-left,
.am-layout-two-coll .am-coll-right {
    float: none;
    width: auto;
}
.am-layout-two-coll .am-coll-left .am-coll-content,
.am-layout-two-coll .am-coll-right .am-coll-content {
    margin: 0 !important;
}

/* ============================================================
   WIDGETS — PREMIUM STYLE
   ============================================================ */
#widget-member-main-links {
    display: none;
}
#widget-member-main-subscriptions #member-main-subscriptions-head {
    display: none;
}
#member-main-subscriptions {
    margin-bottom: 2em;
    padding: 0 !important;
}

/* Subscription List */
.am-list-subscriptions {
    list-style: none;
    padding: 0;
    margin: 0;
}
.am-list-subscriptions li {
    padding: 16px 0;
    border-bottom: 1px solid var(--pt-wash);
}
.am-list-subscriptions li:last-child {
    border-bottom: none;
}
.am-list-subscriptions-title {
    font-weight: 600;
    color: var(--pt-text);
}
.am-list-subscriptions-title a {
    color: var(--pt-primary);
    text-decoration: none;
    font-weight: 600;
}
.am-list-subscriptions-title a:hover {
    text-decoration: underline;
}
.am-list-subscriptions-date {
    font-size: 13px;
    color: var(--pt-text-sub);
    margin-left: 12px;
}

/* Resources Grid */
#widget-member-main-resources {
    margin: 20px 0;
    padding: 0;
    border: none;
    background-color: transparent;
}
#widget-member-main-resources .am-block {
    background: transparent;
    border: none;
    border-radius: 3px;
    margin-bottom: 1em;
    padding: 0;
    box-shadow: none;
}
#widget-member-main-resources .am-block ul {
    margin: 0;
    padding: 0;
    display: grid;
    justify-content: space-between;
    grid-gap: 1.25em;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
#widget-member-main-resources .am-block ul.am-widget-list li {
    padding: 0;
    background: transparent;
    list-style: none;
}
#widget-member-main-resources .product-description {
    min-height: 20px;
    color: var(--pt-text-sub);
    font-size: 13px;
}

/* No data */
.am-block-nodata {
    text-align: center;
    padding: 3em;
    background: var(--pt-white);
    font-size: 1.25rem;
    margin-bottom: 0;
    border-radius: 18px;
    color: var(--pt-text-sub);
}
img.img-non-data {
    max-width: 250px;
    display: block;
    margin: 20px auto;
}

/* Search / Filter */
.am-input-filter-wrapper {
    background: var(--pt-white);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(139,92,246,.06);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.am-input-filter {
    border: 2px solid var(--pt-wash) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    transition: all .25s ease;
    width: 100%;
}
.am-input-filter:focus {
    border-color: var(--pt-light) !important;
    box-shadow: 0 0 0 4px rgba(139,92,246,.08) !important;
    outline: none;
}

/* ============================================================
   SIGNUP PAGE STYLES
   ============================================================ */
.am-signup-link, .am-login-text {
    font-size: 14px;
    color: var(--pt-text-sub);
}
.am-signup-link a, .am-login-text a {
    color: var(--pt-primary);
    font-weight: 600;
    text-decoration: none;
}
.am-signup-link a:hover, .am-login-text a:hover {
    text-decoration: underline;
}
.am-info.am-login-text {
    background: var(--pt-ghost);
    border: 1px solid var(--pt-wash);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
}

@media all and (min-width: 800px) {
    #signup-page #row-product_id_page-0-0 .am-element-title {
        width: 100%;
        text-align: center;
        padding: 12px;
        background-color: var(--pt-ghost);
        margin-bottom: 8px;
        border-radius: 12px;
        font-weight: 600;
    }
    #signup-page #row-product_id_page-0-0 .am-element {
        margin: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        padding-top: 0;
    }
    #signup-page #row-product_id_page-0-0 .am-element > * { flex: 1; }
    #signup-page #row-product_id_page-0-0 .am-element br { display: none; }
    #signup-page #row-product_id_page-0-0 .am-element label {
        padding: 18px;
        box-shadow: 0 2px 8px rgba(124,58,237,.06);
        border: 2px solid var(--pt-wash);
        margin: 0 6px;
        cursor: pointer;
        border-radius: 14px;
        transition: all .25s ease;
    }
    #signup-page #row-product_id_page-0-0 .am-element label:hover {
        border-color: var(--pt-light);
        box-shadow: 0 4px 16px rgba(124,58,237,.12);
    }
    #signup-page #row-product_id_page-0-0 .am-element label span { display: block; margin: 5px 0; }

    #signup-page #row-paysys_id .am-element-title {
        width: 100%;
        text-align: center;
        padding: 12px;
        background-color: var(--pt-ghost);
        margin-bottom: 8px;
        border-radius: 12px;
        font-weight: 600;
    }
    #signup-page #row-paysys_id .am-element {
        margin: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        padding-top: 0;
    }
    #signup-page #row-paysys_id .am-element > * { flex: 1; }
    #signup-page #row-paysys_id .am-element br { display: none; }
    #signup-page #row-paysys_id .am-element label {
        padding: 18px;
        box-shadow: 0 2px 8px rgba(124,58,237,.06);
        border: 2px solid var(--pt-wash);
        margin: 0 6px;
        cursor: pointer;
        border-radius: 14px;
        transition: all .25s ease;
    }
    #signup-page #row-paysys_id .am-element label:hover {
        border-color: var(--pt-light);
        box-shadow: 0 4px 16px rgba(124,58,237,.12);
    }
    #signup-page #row-paysys_id .am-element label span { display: block; margin: 5px 0; }
}
@media all and (max-width: 800px) {
    #signup-page #row-paysys_id .am-element-title { margin-top: 20px; border-top: 1px solid var(--pt-wash); padding-top: 20px; }
    #signup-page #row-paysys_id .am-element { padding-left: 25px; }
    #signup-page #row-product_id_page-0-0 .am-element { padding-left: 25px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.ptdash-footer {
    padding: 24px 0;
    margin-top: 20px;
}
.ptdash-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 24px;
}
.ptdash-footer-links {
    flex: 1;
}
.ptdash-footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.ptdash-footer-links ul li {
    display: inline-block;
}
.ptdash-footer-links a, .ptdash-footer-links ul li a {
    text-decoration: none;
    color: var(--pt-text-sub);
    font-weight: 500;
    font-size: 13px;
    transition: color .2s;
}
.ptdash-footer-links a:hover, .ptdash-footer-links ul li a:hover {
    color: var(--pt-primary);
}
.ptdash-footer-social {
    display: flex;
    gap: 10px;
}
.ptdash-footer-social-link {
    font-size: 16px;
    color: var(--pt-text-sub);
    transition: color .2s;
}
.ptdash-footer-social-link:hover {
    color: var(--pt-primary);
}
.ptdash-footer-copy {
    font-size: 12px;
    color: var(--pt-sb-text-dim);
    text-align: center;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--pt-wash);
    margin-top: 8px;
}

/* Hide old footer */
.footer.footer-transparent {
    display: none !important;
}
.am-credits {
    display: none;
}

/* ============================================================
   POPUP / MODAL OVERRIDES
   ============================================================ */
.am-popup .am-form.am-auth-form div.am-element-title {
    padding: 0.5em 0.5em 0;
    display: block;
}
.am-popup .am-form.am-auth-form .am-row {
    padding: 0;
}

/* ============================================================
   RESPONSIVE GRID
   ============================================================ */
@media all and (max-width: 900px) {
    #widget-member-main-resources .am-block ul { grid-template-columns: 1fr 1fr 1fr; }
}
@media all and (max-width: 700px) {
    #widget-member-main-resources .am-block ul { grid-template-columns: 1fr 1fr; }
}
@media all and (max-width: 400px) {
    #widget-member-main-resources .am-block ul { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE DASHBOARD
   ============================================================ */
@media(max-width:991px) {
    .ptdash-mobile-close { display: flex; }
    .ptdash-mobile-menu { display: flex; }
    .ptdash-toggle { display: none; }
    .ptdash-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        border-radius: 0;
        border: none;
        transform: translateX(-100%);
        z-index: 1000;
        padding: 60px 14px 16px;
        box-shadow: 8px 0 40px rgba(15,7,32,.5);
    }
    .ptdash-mobile-open .ptdash-sidebar { transform: translateX(0); }
    .ptdash-content, .ptdash-collapsed .ptdash-content {
        margin-left: 0;
        width: 100%;
    }
    .ptdash-has-announcement .ptdash-sidebar { top: 0; height: 100vh; }
}
@media(max-width:600px) {
    .ptdash-topbar { padding: 14px 16px; margin: 12px; border-radius: 14px; flex-wrap: wrap; gap: 12px; }
    .ptdash-greeting h1 { font-size: 18px; }
    .ptdash-greeting p { font-size: 13px; }
    .ptdash-topbar-btn span { display: none; }
    .ptdash-topbar-btn { padding: 9px 12px; }
    .ptdash-main { padding: 0 12px 16px; }
    .ptdash-notif-btn { width: 36px; height: 36px; }
    .ptdash-user-trigger { width: 38px; height: 38px; }
    .ptdash-notif-dropdown { width: 300px; right: -60px; }
}
@media(max-width:400px) {
    .ptdash-topbar { margin: 8px; padding: 12px; }
    .ptdash-greeting h1 { font-size: 16px; }
    .ptdash-main { padding: 0 8px 12px; }
    .ptdash-notif-dropdown { width: 280px; right: -80px; }
}

/* ============================================================
   MISC
   ============================================================ */
.navbar-brand-image {
    height: 3rem;
    width: auto;
}
.am-cart ul.am-cart-layout-product-list li.am-cart-layout-product-list_item {
    list-style: none;
    margin: 0;
    display: inline;
    float: left;
}
#signup-page #row-name-0 {
    margin-top: 20px;
    border-top: 1px solid var(--pt-wash);
    padding-top: 20px;
}
.login-logo {
    display: none;
}
.am-login-form-wrapper {
    margin-top: 0;
}

/* ============================================================
   CRITICAL TEXT VISIBILITY FIXES
   ============================================================ */

/* Force text colors on subscription list ONLY (not hero card) */
.pt-subs-card, .pt-subs-card * {
    color: #1E1133;
}
/* Hero card - force white text */
.pt-hero-card, .pt-hero-card * {
    color: #fff !important;
}
.pt-hero-card .pt-hero-action-sub {
    color: #C4B5FD !important;
}
.pt-hero-clock-date {
    color: rgba(255,255,255,.5) !important;
}
/* Tools hero - force white text */
.pt-tools-hero, .pt-tools-hero * {
    color: #fff !important;
}
.pt-tools-hero-desc {
    color: #DDD6FE !important;
}

/* Override bg-primary-lt to ensure readable text */
.bg-primary-lt {
    background: #F5F3FF !important;
    color: #1E1133 !important;
}
.bg-primary-lt h3,
.bg-primary-lt .card-title {
    color: #1E1133 !important;
}

/* Subscription list items - ensure visible */
.am-list-subscriptions li {
    color: #1E1133 !important;
    list-style: none !important;
}
.am-list-subscriptions-title,
.am-list-subscriptions-title strong {
    color: #1E1133 !important;
    font-weight: 600 !important;
}

/* Fix widget headings */
.am-widget h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: #1E1133;
    font-size: 20px;
    margin-bottom: 16px;
}

/* Resource card title/description overrides */
.card .card-title {
    color: #1E1133 !important;
    font-size: 15px;
}
.card .text-muted,
.card .product-description {
    color: #6B5D85 !important;
}
.card-footer .btn {
    border-radius: 12px;
    font-weight: 600;
}

/* Page title fix */
.page-title {
    color: #1E1133 !important;
}

/* aMember widget hide old subscription heading */
#widget-member-main-subscriptions > h2 {
    display: none;
}

/* ============================================================
   PREMIUM TOOLS SECTION — COMPLETE REDESIGN
   ============================================================ */

/* Hero Banner */
.pt-tools-hero {
    position: relative;
    background: linear-gradient(135deg, #0F0520 0%, #1A0836 30%, #2E1065 65%, #4C1D95 100%);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    overflow: hidden;
}
.pt-tools-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 400px 300px at 85% 15%, rgba(167,139,250,.18), transparent),
        radial-gradient(ellipse 300px 200px at 5% 85%, rgba(124,58,237,.12), transparent);
    pointer-events: none;
}
.pt-tools-hero-shape {
    position: absolute;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.03);
    pointer-events: none;
}
.pt-tools-hero-shape.s1 { width: 70px; height: 70px; border-radius: 20%; top: -12px; right: 50px; }
.pt-tools-hero-shape.s2 { width: 45px; height: 45px; border-radius: 50%; bottom: -8px; right: 180px; }
.pt-tools-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
}
.pt-tools-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pt-tools-hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 2px;
    letter-spacing: -.3px;
    text-shadow: 0 2px 12px rgba(0,0,0,.5), 0 0 20px rgba(0,0,0,.3);
}
.pt-tools-hero-desc {
    font-size: 14px;
    color: #DDD6FE;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

/* Search & Filter */
.pt-tools-filterbar {
    background: var(--pt-white);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(139,92,246,.04);
}
.pt-tools-search {
    position: relative;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 0;
}
.pt-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--pt-wash);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}
.pt-tools-search svg {
    pointer-events: none;
}
.pt-tools-search-input {
    width: 100%;
    padding: 16px 20px 16px 62px;
    border: 2px solid var(--pt-wash);
    border-radius: 14px;
    font-size: 15px;
    color: var(--pt-text);
    background: var(--pt-ghost);
    transition: all .25s ease;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    box-sizing: border-box;
}
.pt-tools-search-input:focus {
    border-color: var(--pt-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124,58,237,.08);
}
/* Search focus styles handled by inline JS */
.pt-tools-search-input::placeholder { color: #B8A9D4; font-weight: 500; }
.pt-tools-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pt-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all .2s ease;
    background: var(--pt-ghost);
    color: var(--pt-text-sub);
}
.pt-filter-pill:hover { background: var(--pt-wash); color: var(--pt-primary); }
.pt-filter-pill.active {
    background: linear-gradient(135deg, var(--pt-primary), var(--pt-mid));
    color: #fff;
    box-shadow: 0 2px 10px rgba(124,58,237,.25);
}
.pt-tools-count {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--pt-text-sub);
    background: var(--pt-ghost);
    padding: 6px 14px;
    border-radius: 8px;
}

/* Tools Grid */
.pt-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Tool Card */
.pt-tool-card {
    background: var(--pt-white);
    border-radius: 18px;
    border: 1px solid rgba(139,92,246,.08);
    overflow: hidden;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.pt-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7C3AED, #A78BFA, #7C3AED);
    opacity: 0;
    transition: opacity .3s ease;
}
.pt-tool-card:hover {
    border-color: rgba(139,92,246,.2);
    box-shadow: 0 12px 40px rgba(124,58,237,.12), 0 4px 12px rgba(0,0,0,.04);
    transform: translateY(-4px);
}
.pt-tool-card:hover::before {
    opacity: 1;
}

/* Card Image */
.pt-tool-card-img {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, #FAFAFF 0%, #F5F3FF 100%) !important;
    border-bottom: 1px solid #EDE9FE;
    position: relative;
    overflow: hidden;
}
.pt-tool-card-img img { background: transparent !important; }
.pt-tool-card-img img {
    max-width: 80%;
    max-height: 90px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.06));
}
.pt-tool-card-img-fallback {
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 50%, #C4B5FD 100%) !important;
}
.pt-tool-card-img-fallback::before {
    content: '';
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.3);
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 1;
}

/* Premium Badge */
.pt-tool-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 7px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    color: #10b981;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
    border: 1px solid rgba(16,185,129,.15);
}
.pt-tool-badge svg { color: #10b981; }

/* Card Body */
.pt-tool-card-body {
    padding: 16px 18px 12px;
}
.pt-tool-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--pt-text) !important;
    margin: 0 0 4px;
    line-height: 1.3;
}
.pt-tool-desc {
    font-size: 12.5px;
    color: var(--pt-text-sub) !important;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.pt-tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 16px;
    border-top: 1px solid rgba(139,92,246,.06);
}
.pt-tool-access-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
}
.pt-tool-open-btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pt-primary), var(--pt-mid));
    color: #fff;
    text-decoration: none;
    transition: all .25s ease;
    border: none;
    box-shadow: 0 3px 12px rgba(124,58,237,.25);
}
.pt-tool-open-btn:hover {
    box-shadow: 0 6px 20px rgba(124,58,237,.4);
    transform: translateY(-2px) scale(1.05);
    color: #fff;
}

/* Empty State */
.pt-tools-empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--pt-white);
    border-radius: 20px;
    border: 1px solid rgba(139,92,246,.04);
}
.pt-tools-empty-icon { margin-bottom: 20px; }
.pt-tools-empty h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--pt-text);
    font-size: 22px;
    margin: 0 0 8px;
}
.pt-tools-empty p {
    color: var(--pt-text-sub);
    font-size: 14px;
    margin: 0 0 24px;
}
.pt-tools-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--pt-primary), var(--pt-mid));
    color: #fff;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 6px 24px rgba(124,58,237,.3);
    transition: all .3s ease;
}
.pt-tools-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(124,58,237,.4);
}

/* Hide old resources widget wrapper */
#widget-member-main-resources > h2,
#member-main-resources-head {
    display: none !important;
}
#widget-member-main-resources {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
#widget-member-main-resources .am-block {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
/* Hide old filter wrapper when new one is present */
.pt-tools-hero ~ .am-input-filter-wrapper,
.pt-tools-filterbar ~ .am-input-filter-wrapper {
    display: none !important;
}

/* Tools Grid Responsive */
@media (max-width: 900px) {
    .pt-tools-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}
@media (max-width: 600px) {
    .pt-tools-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .pt-tools-hero { padding: 22px 20px; }
    .pt-tools-hero-title { font-size: 18px; }
    .pt-tools-filterbar { padding: 16px; }
    .pt-tool-card-img { height: 110px; padding: 16px; }
    .pt-tool-card-body { padding: 12px 14px 8px; }
    .pt-tool-name { font-size: 13px; }
    .pt-tool-card-footer { padding: 10px 14px 12px; }
}
@media (max-width: 400px) {
    .pt-tools-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   GLOBAL POLISH — REMOVE WHITE SHADOWS, PREMIUM FEEL
   ============================================================ */

/* Override all white/grey shadows with subtle purple */
.card {
    border-radius: 16px !important;
    border: 1px solid rgba(139,92,246,.05) !important;
    box-shadow: none !important;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.card:hover {
    box-shadow: 0 8px 28px rgba(124,58,237,.08) !important;
    transform: translateY(-2px);
}

/* Remove all white box shadows globally */
.page-wrapper { box-shadow: none !important; }
.container-xl { max-width: 100%; }

/* Better form styling */
.am-form form {
    padding: 1.5em;
    background: var(--pt-white);
    border-radius: 16px;
    border: 1px solid rgba(139,92,246,.04);
    box-shadow: none;
}

/* Input fields - global premium style */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    border: 2px solid var(--pt-wash) !important;
    border-radius: 12px !important;
    font-family: 'DM Sans', sans-serif !important;
    transition: all .25s ease !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--pt-light) !important;
    box-shadow: 0 0 0 3px rgba(139,92,246,.06) !important;
    outline: none !important;
}

/* Clean up old widget borders */
.am-widget {
    margin-bottom: 0;
}
.am-block {
    box-shadow: none !important;
    border: none !important;
}

/* Page body clean */
.page-body.am-body-content {
    margin-top: 0;
}

/* ============================================================
   SIGNUP PAGE — PREMIUM MEMBERSHIP CARDS
   ============================================================ */

/* Signup form container */
.am-signup .am-form form {
    background: var(--pt-white);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(139,92,246,.06);
}

/* Membership Type heading - only for product selection row */
#row-product_id_page-0-0 > .am-element-title,
#signup-page #row-product_id_page-0-0 > .am-element-title {
    text-align: center !important;
    width: 100% !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: var(--pt-primary) !important;
    padding: 16px 0 !important;
    margin-bottom: 8px !important;
}
#row-paysys_id > .am-element-title {
    text-align: center !important;
}

/* Product cards container - scrollable grid */
#row-product_id_page-0-0 .am-element,
#signup-page #row-product_id_page-0-0 .am-element {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    padding: 8px 4px !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #EDE9FE transparent;
}
#row-product_id_page-0-0 .am-element::-webkit-scrollbar { width: 5px; }
#row-product_id_page-0-0 .am-element::-webkit-scrollbar-thumb { background: #EDE9FE; border-radius: 4px; }
#row-product_id_page-0-0 .am-element::-webkit-scrollbar-track { background: transparent; }
#row-product_id_page-0-0 .am-element br,
#signup-page #row-product_id_page-0-0 .am-element br { display: none !important; }

/* Each product label card */
#row-product_id_page-0-0 .am-element label,
#signup-page #row-product_id_page-0-0 .am-element label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 18px 14px !important;
    border: 2px solid var(--pt-wash) !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    transition: all .3s ease !important;
    background: var(--pt-white) !important;
    margin: 0 !important;
    text-align: center !important;
    box-shadow: none !important;
    position: relative;
}
@media(max-width:600px){
    #row-product_id_page-0-0 .am-element,
    #signup-page #row-product_id_page-0-0 .am-element {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
#row-product_id_page-0-0 .am-element label:hover,
#signup-page #row-product_id_page-0-0 .am-element label:hover {
    border-color: var(--pt-light) !important;
    background: var(--pt-ghost) !important;
    transform: translateY(-2px);
}
/* Selected product card - styled via JS below */
#row-product_id_page-0-0 .am-element label input[type="radio"],
#signup-page #row-product_id_page-0-0 .am-element label input[type="radio"] {
    accent-color: var(--pt-primary);
    width: 18px;
    height: 18px;
    margin-bottom: 10px;
}
#row-product_id_page-0-0 .am-element label span,
#signup-page #row-product_id_page-0-0 .am-element label span {
    display: block !important;
    margin: 3px 0 !important;
    font-size: 13px;
    color: var(--pt-text-sub);
}
#row-product_id_page-0-0 .am-element label span:first-of-type,
#signup-page #row-product_id_page-0-0 .am-element label span:first-of-type {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: var(--pt-text) !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Payment system section */
#row-paysys_id .am-element-title,
#signup-page #row-paysys_id .am-element-title {
    text-align: center !important;
    width: 100% !important;
    font-weight: 700;
    font-size: 16px;
    color: var(--pt-text);
    padding: 16px 0 8px !important;
}
#row-paysys_id .am-element label,
#signup-page #row-paysys_id .am-element label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 14px 20px !important;
    border: 2px solid var(--pt-wash) !important;
    border-radius: 12px !important;
    margin: 4px !important;
    cursor: pointer;
    transition: all .25s ease;
    background: var(--pt-white) !important;
    box-shadow: none !important;
}
#row-paysys_id .am-element label:hover,
#signup-page #row-paysys_id .am-element label:hover {
    border-color: var(--pt-light) !important;
    background: var(--pt-ghost) !important;
}

/* Info box on signup */
.am-info.am-login-text {
    background: var(--pt-ghost) !important;
    border: 1px solid var(--pt-wash) !important;
    border-radius: 14px !important;
    padding: 14px 20px !important;
    color: var(--pt-text-sub) !important;
    font-size: 14px !important;
}
.am-info.am-login-text a {
    color: var(--pt-primary) !important;
    font-weight: 600;
}

/* Next/Submit button on signup */
.am-signup input[type="submit"],
.am-signup .am-row-buttons input[type="submit"] {
    background: linear-gradient(135deg, var(--pt-primary), var(--pt-mid)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all .3s ease !important;
    box-shadow: 0 4px 16px rgba(124,58,237,.25) !important;
}
.am-signup input[type="submit"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 24px rgba(124,58,237,.35) !important;
}

/* ============================================================
   TOOL ACCESS PAGES — CLEAN WHITE LAYOUT
   ============================================================ */

/* Page content area */
.page-body .container-xl {
    max-width: 100%;
}

/* Content pages (like /page/Semrush) */
.am-page-page .page-body,
.am-page-content .page-body {
    background: transparent;
}

/* Page content cards/blocks */
.page-body .card,
.page-body .am-block {
    background: var(--pt-white) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(139,92,246,.05) !important;
    box-shadow: none !important;
}

/* Purple banner boxes on tool pages */
.page-body div[style*="background"] {
    border-radius: 16px !important;
    overflow: hidden;
}

/* Access buttons on tool pages */
.page-body a[style*="background"][style*="purple"],
.page-body a[style*="background-color"],
.page-body .btn-primary,
.page-body a.btn {
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all .25s ease !important;
}
.page-body a.btn:hover,
.page-body .btn:hover {
    transform: translateY(-1px) !important;
}

/* Form styling on all pages */
.am-form form {
    background: var(--pt-white) !important;
    border-radius: 18px !important;
    border: 1px solid rgba(139,92,246,.06) !important;
    box-shadow: none !important;
}
.am-form fieldset {
    border: none !important;
    background: transparent !important;
}
.am-form fieldset legend {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    color: var(--pt-text) !important;
    border-bottom: none !important;
    background: transparent !important;
}

/* Row styling */
.am-form .am-row {
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
}

/* Cart styling */
.am-cart {
    background: var(--pt-white) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(139,92,246,.06) !important;
    box-shadow: none !important;
    overflow: hidden;
}
.am-cart table {
    width: 100%;
}
.am-cart th {
    background: linear-gradient(135deg, #2E1065, #7C3AED) !important;
    color: #fff !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    padding: 14px 18px !important;
}
.am-cart td {
    padding: 14px 18px !important;
    border-bottom: 1px solid var(--pt-wash) !important;
    color: var(--pt-text) !important;
}

/* Google button wrapper */
.am-google-button-wrapper {
    margin-bottom: 16px;
}

/* Profile page */
.am-page-profile .am-form form {
    padding: 24px !important;
}

/* Helpdesk */
.am-page-helpdesk .am-form form {
    padding: 24px !important;
}

/* User custom fixes */
div#row-product_id_page-0-0 {
    overflow-x: visible !important;
    overflow: visible !important;
}
div#row-product_id_page-0-0 .am-element-title {
    width: 100% !important;
    float: none !important;
}
div#row-product_id_page-0-0 .am-element {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
}
/* Fix signup form row layout */
.am-signup .am-form .am-row {
    display: block !important;
    overflow: visible !important;
    padding: 10px 0 !important;
    border: none !important;
    background: transparent !important;
}
.am-signup .am-form .am-row .am-element-title {
    width: 100% !important;
    float: none !important;
    text-align: left !important;
    padding: 0 0 6px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--pt-text) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.am-signup .am-form .am-row .am-element-title .comment {
    font-size: 12px !important;
    color: var(--pt-text-sub) !important;
    font-weight: 400 !important;
    display: block;
    margin-top: 2px;
}
.am-signup .am-form .am-row .am-element {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    padding: 0 !important;
}
/* Signup inputs full width and styled */
.am-signup .am-form input[type="text"],
.am-signup .am-form input[type="email"],
.am-signup .am-form input[type="password"],
.am-signup .am-form input[type="tel"],
.am-signup .am-form select,
.am-signup .am-form textarea {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 2px solid var(--pt-wash) !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    color: var(--pt-text) !important;
    background: var(--pt-ghost) !important;
    font-family: 'DM Sans', sans-serif !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all .25s ease !important;
}
.am-signup .am-form input[type="text"]:focus,
.am-signup .am-form input[type="email"]:focus,
.am-signup .am-form input[type="password"]:focus,
.am-signup .am-form input[type="tel"]:focus,
.am-signup .am-form select:focus,
.am-signup .am-form textarea:focus {
    border-color: var(--pt-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,.08) !important;
}
.am-signup .am-form input::placeholder {
    color: #B8A9D4 !important;
}
/* Name fields side by side */
.am-signup .am-form .am-row .am-element .am-form-group-name {
    display: flex;
    gap: 12px;
}
.am-signup .am-form .am-row .am-element .am-form-group-name input {
    flex: 1;
}
div#ptSubsToggle span,
.pt-subs-header h3,
.pt-subs-header .pt-subs-count {
    color: #1E1133 !important;
}
.pt-subs-header h3 svg {
    color: #7C3AED !important;
}

/* Hide "Dashboard" page title - done via JS */
.am-page-main .page-header {
    display: none !important;
}
.pt-hide-title { display: none !important; }

/* Fix topbar white bar above content */
.ptdash-topbar {
    margin-top: 16px;
    margin-bottom: 8px;
}
