/* Faith Harvest user panel — same fonts/theme as public site (fh_styles.php) */

:root {
    --ip-bg: #07111f;
    --ip-card: #121a28;
    --ip-card-border: rgba(212, 175, 55, 0.32);
    --ip-gold: #d4af37;
    --ip-gold-light: #fff6d8;
    --ip-gold-dark: #8a6a12;
    --ip-text: #ffffff;
    --ip-muted: rgba(255,255,255,0.65);
    --ip-gutter-x: clamp(1.25rem, 5vw, 3rem);
}

body.ip-user-panel,
body.ip-admin-layout {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    position: relative;
    background-color: var(--body-bg, #0a0e12);
    color: var(--ip-text);
    min-height: 100vh;
}

.ip-page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ip-page-shell .ip-main {
    flex: 1 0 auto;
}

/* Equal left/right inset — header, hero, content, footer */
body.ip-user-panel .ip-auth-header .container,
body.ip-user-panel .ip-inner-hero .container,
body.ip-user-panel .ip-main .container,
body.ip-user-panel .ip-panel-footer .container {
    padding-left: var(--ip-gutter-x);
    padding-right: var(--ip-gutter-x);
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

body.ip-user-panel .ip-main > .container:not(.ip-auth-form-spacing) {
    padding-top: 2.5rem;
}

@media (min-width: 768px) {
    body.ip-user-panel .ip-main > .container:not(.ip-auth-form-spacing) {
        padding-top: 3rem;
    }
}

body.ip-admin-layout .ip-admin-body {
    padding-left: max(1.5rem, var(--ip-gutter-x));
    padding-right: max(1.5rem, var(--ip-gutter-x));
}

body.ip-user-panel h1,
body.ip-user-panel h2,
body.ip-user-panel h3,
body.ip-user-panel h4,
body.ip-user-panel h5,
body.ip-user-panel h6,
body.ip-admin-layout h1,
body.ip-admin-layout h2,
body.ip-admin-layout h3,
body.ip-admin-layout h4,
body.ip-admin-layout h5,
body.ip-admin-layout h6,
body.ip-user-panel .ip-stat-card .val {
    font-family: "Cinzel", "Times New Roman", serif;
}

/* Header — uses .header + fh-brand from faith-harvest-theme.css */
.ip-auth-header {
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.98) 0%, rgba(7, 17, 31, 0.96) 100%);
    border-bottom: 1px solid hsl(var(--base) / 0.25);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.ip-auth-header .navbar {
    min-height: 72px;
}
.ip-auth-header .navbar-brand.site-logo {
    margin-right: 0;
}
.ip-auth-header .nav-link {
    color: #ffffff !important;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    padding: 1rem 0.75rem !important;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 400;
}
.ip-auth-header .nav-link:hover,
.ip-auth-header .nav-link.active {
    color: var(--ip-gold-light) !important;
}
.ip-auth-header .dropdown-menu {
    background: #0f141c;
    border: 1px solid var(--ip-card-border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.ip-auth-header .dropdown-item {
    color: #fff;
    font-size: 0.9rem;
}
.ip-auth-header .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(212,175,55,0.18), rgba(10,25,47,0.2));
    color: var(--ip-gold-light);
}
.ip-user-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #d4af37, #8a6a12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0A192F;
    border-radius: 6px;
    font-size: 1.2rem;
}

/* Hero breadcrumb — same banner as public inner pages */
.ip-inner-hero {
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 2px solid hsl(var(--base) / 0.35);
}
.ip-inner-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.65) 100%),
        radial-gradient(circle at 85% 50%, rgba(189, 195, 199),0.22) 0%, transparent 50%);
    z-index: 0;
}
.ip-inner-hero.fh-inner-hero-steel::before {
    background:
        linear-gradient(90deg, rgba(10, 25, 47, 0.72) 0%, rgba(10, 25, 47, 0.38) 55%, rgba(7, 17, 31, 0.7) 100%),
        radial-gradient(circle at 85% 50%, rgba(189, 195, 199, 0.18) 0%, transparent 50%);
    opacity: 1;
}
.ip-inner-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ip-gold), transparent);
}
.ip-inner-hero .container { position: relative; z-index: 1; }

/* Auth hero (Login / Register) — title left with small inset, gap before form card */
.ip-inner-hero--auth-page {
    padding-bottom: 72px;
}

.ip-inner-hero--auth-page .ip-hero-page-title {
    text-align: left !important;
    width: auto !important;
}

.ip-inner-hero--auth-page .ip-hero-title-wrap {
    padding-left: clamp(1rem, 3vw, 2.25rem);
}

.ip-inner-hero .ip-hero-title-wrap {
    padding-left: clamp(0.5rem, 2vw, 1rem);
}

.ip-auth-form-spacing {
    padding-top: 6rem !important;
    margin-top: 0 !important;
}

@media (min-width: 768px) {
    .ip-auth-form-spacing {
        padding-top: 7rem !important;
    }

    .ip-inner-hero--auth-page .ip-hero-title-wrap {
        padding-left: clamp(1.25rem, 3.5vw, 2.75rem);
    }
}

.ip-inner-hero h2,
.ip-inner-hero .title {
    font-family: "Cinzel", "Times New Roman", serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.ip-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(189, 195, 199),0.15);
    border: 1px solid rgba(189, 195, 199),0.35);
    color: var(--ip-gold-light);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.ip-hero-badge i { font-size: 1rem; }

/* Stats */
.ip-stat-card {
    background: linear-gradient(145deg, #1a2030 0%, #10151e 100%);
    border: 1px solid var(--ip-card-border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}
.ip-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(189, 195, 199),0.55);
}
.ip-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--ip-gold-dark), var(--ip-gold-light));
}
.ip-stat-card h6 {
    color: var(--ip-muted);
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ip-stat-card .val {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--ip-gold-light);
}
.ip-stat-card .ic {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #0A192F;
    background: linear-gradient(135deg, var(--ip-gold-light), var(--ip-gold));
}

/* Alerts */
.ip-alert-box {
    border-left: 4px solid var(--ip-gold);
    background: rgba(189, 195, 199),0.08);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(189, 195, 199),0.15);
    border-left-width: 4px;
}
.ip-alert-box.danger { border-left-color: #dc3545; background: rgba(220,53,69,0.08); }
.ip-alert-box.warning { border-left-color: #fd7e14; background: rgba(253,126,20,0.08); }
.ip-alert-box.success { border-left-color: #28a745; background: rgba(40,167,69,0.08); }

/* Panels */
.ip-panel-card {
    background: var(--ip-card);
    border: 1px solid rgba(189, 195, 199),0.12);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.ip-panel-card > h5,
.ip-panel-card > .d-flex h5 {
    color: var(--ip-gold-light);
    font-family: "Cinzel", "Times New Roman", serif;
}

/* Plans */
.ip-plan-card {
    background: var(--ip-card);
    border: 2px solid rgba(189, 195, 199),0.35);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ip-plan-card:hover {
    border-color: var(--ip-gold);
    box-shadow: 0 0 24px rgba(189, 195, 199),0.15);
}
.ip-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(189, 195, 199),0.45), transparent);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}
.ip-plan-card h5 {
    color: var(--ip-gold-light);
    font-weight: 700;
    font-family: "Cinzel", "Times New Roman", serif;
}
.ip-plan-card ul { list-style: none; padding: 0; margin: 1rem 0; }
.ip-plan-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--ip-muted);
}
.ip-plan-card .range {
    color: var(--ip-gold-light);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1rem 0;
}

/* Tables */
.ip-table { color: #fff; }
.ip-table thead {
    background: linear-gradient(90deg, #0A192F, #2C3E50);
}
.ip-table thead th {
    border: none;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--fh-cream, #fff6d8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ip-table tbody td { border-color: rgba(255,255,255,0.08); vertical-align: middle; }
.ip-table .badge-wallet {
    background: rgba(189, 195, 199),0.25);
    color: var(--ip-gold-light);
    border: 1px solid rgba(189, 195, 199),0.35);
}

/* Forms */
.form--control,
.ip-panel-card .form-control,
.ip-panel-card .form-select {
    background: #0a0e14;
    border: 1px solid rgba(189, 195, 199),0.2);
    color: #fff;
}
.form--control:focus,
.ip-panel-card .form-control:focus,
.ip-panel-card .form-select:focus {
    background: #0a0e14;
    border-color: var(--ip-gold);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(189, 195, 199),0.2);
}

.ip-panel-card .input-group-text,
.ip-login-card .input-group-text,
.ip-deposit-layout .input-group-text {
    background: #0a0e14;
    border-color: rgba(189, 195, 199), 0.25);
    color: var(--ip-gold-light);
}
.form-check-input:checked {
    background-color: var(--ip-gold);
    border-color: var(--ip-gold);
}

.btn-ip-outline {
    background: transparent;
    border: 1px solid var(--ip-gold);
    color: var(--ip-gold-light);
    font-weight: 600;
}
.btn-ip-outline:hover {
    background: rgba(189, 195, 199),0.12);
    color: var(--ip-gold-light);
}

.ip-deposit-layout .wallet-qr-box {
    background: #0a0e14;
    border: 1px solid var(--ip-card-border);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

/* Admin panel (shared) */
.ip-admin-wrap .ip-admin-stat {
    background: linear-gradient(145deg, #1a2030, #10151e);
    border: 1px solid var(--ip-card-border);
    border-radius: 10px;
    padding: 1.25rem;
    height: 100%;
}
.ip-admin-wrap .ip-admin-stat strong {
    display: block;
    font-size: 2rem;
    color: var(--ip-gold-light);
    font-family: "Cinzel", "Times New Roman", serif;
}
.ip-admin-wrap .ip-admin-stat span {
    color: var(--ip-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ip-login-card {
    background: var(--ip-card);
    border: 1px solid var(--ip-card-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}
.ip-login-card h4 {
    color: var(--ip-gold-light);
    font-family: "Cinzel", "Times New Roman", serif;
}

.text-gold { color: var(--ip-gold-light) !important; }
a.text-gold:hover { color: var(--ip-gold) !important; }

.ip-main .alert-success {
    background: rgba(40,167,69,0.15);
    border-color: rgba(40,167,69,0.35);
    color: #b8f0c8;
}
.ip-main .alert-danger {
    background: rgba(220,53,69,0.15);
    border-color: rgba(220,53,69,0.35);
    color: #ffb8c0;
}

/* Gold action buttons (match public site / register) */
.btn-ip-blue,
.btn-ip,
body.ip-user-panel .ip-login-card .btn.btn-ip,
body.ip-user-panel .ip-login-card button[type="submit"].btn {
    background: linear-gradient(135deg, #3d4f63 0%, #1b2838 48%, #0A192F 100%) !important;
    background-color: #0A192F !important;
    border: 1px solid rgba(189, 195, 199, 0.45) !important;
    color: #e8eef4 !important;
    font-weight: 700;
    font-family: "Cinzel", "Times New Roman", serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(10, 25, 47, 0.45);
}
.btn-ip-blue:hover,
.btn-ip:hover,
body.ip-user-panel .ip-login-card .btn.btn-ip:hover,
body.ip-user-panel .ip-login-card button[type="submit"].btn:hover {
    background: linear-gradient(135deg, #5a6d82 0%, #2C3E50 50%, #0A192F 100%) !important;
    background-color: #2C3E50 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(189, 195, 199, 0.22);
}

.ip-table-blue thead {
    background: linear-gradient(90deg, #0A192F, #2C3E50);
}
.ip-table-blue thead th {
    color: var(--fh-cream, #fff6d8);
}

.ip-charge-label { color: #28a745 !important; }

.ip-pay-method {
    cursor: pointer;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    border: 1px solid transparent;
}
.ip-pay-method:hover { background: rgba(255,255,255,0.03); }
.ip-pay-method:has(input:checked) {
    border-color: hsl(var(--base) / 0.5);
    background: hsl(var(--base) / 0.08);
}
.ip-pay-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--ip-gold-light);
}

.ip-usd-badge {
    background: hsl(var(--base)) !important;
    color: #0A192F !important;
    border-color: hsl(var(--base) / 0.5) !important;
    font-weight: 600;
}

.ip-empty-state {
    min-height: 220px;
    background: #0d1118;
}

.ip-invest-summary h3 {
    font-family: "Cinzel", "Times New Roman", serif;
    font-weight: 700;
}

.ip-wallet-badge {
    background: hsl(var(--base));
    color: #0A192F;
    font-weight: 500;
    padding: 0.35em 0.75em;
    border-radius: 999px;
}

.ip-tx-filter {
    background: #121820;
}

.ip-profile-summary h4 {
    font-family: "Cinzel", "Times New Roman", serif;
}

.ip-plan-card {
    border-color: rgba(189, 195, 199),0.45);
}
.ip-plan-card::before {
    background: linear-gradient(135deg, rgba(189, 195, 199),0.4), transparent);
}

@media (max-width: 991px) {
    .ip-inner-hero { padding: 90px 0 55px; }
    .ip-auth-header .nav-link { padding: 0.65rem 0.5rem !important; }
    .ip-auth-header .navbar-collapse {
        background: #0a0e14;
        border: 1px solid rgba(189, 195, 199), 0.15);
        border-radius: 8px;
        padding: 0.75rem 1rem 1rem;
        margin-top: 0.75rem;
    }
    .ip-auth-header .dropdown-menu {
        background: #121820;
        border: none;
        box-shadow: none;
        padding-left: 0.5rem;
    }
    .ip-auth-header .nav-item.ms-lg-2 {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
}

/* Admin sidebar layout */
body.ip-admin-layout {
    background: var(--body-bg, #07111f);
    min-height: 100vh;
}
.ip-admin-shell {
    display: flex;
    min-height: 100vh;
}
.ip-admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #0d1118 0%, #080b10 100%);
    border-right: 1px solid rgba(189, 195, 199),0.15);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    overflow-y: auto;
}
.ip-sidebar-brand {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ip-sidebar-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fh-cream, #fff6d8);
    text-decoration: none;
    font-family: "Cinzel", "Times New Roman", serif;
    font-weight: 700;
}
.ip-sidebar-brand .site-logo__img {
    height: 36px !important;
    width: auto !important;
    border-radius: 8px;
}
.ip-sidebar-brand .site-logo__text {
    display: inline-block;
    font-family: "Cinzel", "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: normal;
    background: linear-gradient(90deg, #b8860b 0%, #fff6d8 48%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ip-sidebar-brand img { height: 36px; }
.ip-sidebar-nav { flex: 1; padding: 1rem 0; }
.ip-sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.ip-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1.25rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.92rem;
    border-left: 3px solid transparent;
}
.ip-sidebar-nav a:hover,
.ip-sidebar-nav a.is-active {
    background: hsl(var(--base) / 0.1);
    color: #fff;
    border-left-color: hsl(var(--base));
}
.ip-sidebar-nav a.ip-sidebar-priority {
    background: rgba(189, 195, 199),0.08);
    border-left-color: rgba(189, 195, 199),0.45);
    font-weight: 600;
}
.ip-sidebar-nav a.ip-sidebar-priority.is-active,
.ip-sidebar-nav a.ip-sidebar-priority:hover {
    background: hsl(var(--base) / 0.15);
    border-left-color: hsl(var(--base));
}
.ip-sidebar-nav a i { font-size: 1.15rem; width: 22px; }
.ip-sidebar-section {
    padding: 1rem 1.25rem 0.35rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
}
.ip-sidebar-badge {
    margin-left: auto;
    background: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
}
.ip-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ip-sidebar-footer a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.88rem;
}
.ip-sidebar-footer a:hover { color: var(--ip-gold-light); }
.ip-admin-main {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
    position: relative;
    z-index: 1;
    background: transparent;
}
.ip-admin-topbar {
    background: #121820;
    border-bottom: 1px solid rgba(189, 195, 199),0.12);
    padding: 1rem 1.5rem;
    padding-left: 4.5rem;
    align-items: center;
}
@media (min-width: 992px) {
    .ip-admin-topbar { padding-left: 1.5rem; }
}
.ip-admin-topbar-title {
    font-family: "Cinzel", "Times New Roman", serif;
    color: #fff;
    font-size: 1.35rem;
}
.ip-admin-body { padding: 1.5rem; }
.ip-sidebar-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1050;
    background: hsl(var(--base));
    color: #0A192F;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 6px;
}
.ip-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1035;
}
.ip-sidebar-backdrop.show { display: block; }
.ip-ticket-message {
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    padding: 1rem;
}
body.ip-sidebar-open { overflow: hidden; }

/* Live earnings counter */
.ip-live-earnings {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(18, 24, 32, 0.95) 0%, rgba(30, 24, 12, 0.85) 100%);
    border: 1px solid rgba(189, 195, 199), 0.45);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 0 40px rgba(189, 195, 199), 0.12);
}
.ip-live-earnings__glow {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(189, 195, 199), 0.18) 0%, transparent 70%);
    pointer-events: none;
    animation: ip-live-pulse 3s ease-in-out infinite;
}
@keyframes ip-live-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}
.ip-live-earnings__label {
    color: var(--ip-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ip-live-earnings__amount {
    font-family: "Cinzel", "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--ip-gold-light);
    line-height: 1.1;
    text-shadow: 0 0 24px rgba(189, 195, 199), 0.35);
    transition: color 0.3s;
}
.ip-live-earnings__sub {
    color: var(--ip-muted);
    font-size: 0.9rem;
}
.ip-live-rates {
    display: grid;
    gap: 0.75rem;
}
.ip-live-rate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(189, 195, 199), 0.2);
    border-radius: 8px;
}
.ip-live-rate .label {
    color: var(--ip-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ip-live-rate .val {
    font-family: "Cinzel", "Times New Roman", serif;
    font-weight: 600;
    font-size: 1rem;
}
.ip-live-earnings--idle .ip-live-earnings__amount {
    font-size: 2rem;
}

@media (max-width: 991px) {
    .ip-admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s;
    }
    .ip-admin-sidebar.show { transform: translateX(0); }
    .ip-admin-main { margin-left: 0; }
    .ip-admin-body { padding: 1rem; }
    .ip-admin-topbar { padding: 0.85rem 1rem 0.85rem 4.5rem; }
    .ip-admin-topbar-title { font-size: 1.1rem; }
}

/* ── Responsive: phones & tablets ── */
body.ip-user-panel {
    overflow-x: hidden;
}

@media (max-width: 767px) {
    .ip-inner-hero {
        padding: 72px 0 44px;
    }

    .ip-inner-hero h2 {
        font-size: 1.5rem;
    }

    .ip-hero-inner:not(.ip-hero-inner--keep-row) {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .ip-auth-form-spacing {
        padding-top: 4.5rem !important;
    }

    .ip-hero-inner .btn {
        width: 100%;
    }

    .ip-panel-card {
        padding: 1rem;
        border-radius: 8px;
    }

    .ip-stat-card {
        padding: 1rem 0.85rem;
    }

    .ip-stat-card h6 {
        font-size: 0.7rem;
        padding-right: 0;
    }

    .ip-stat-card .val {
        font-size: 1.15rem;
        line-height: 1.2;
        word-break: break-word;
        padding-right: 0;
    }

    .ip-stat-card .ic {
        position: static;
        transform: none;
        margin-top: 0.65rem;
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .ip-live-earnings {
        padding: 1.25rem 1rem;
    }

    .ip-live-earnings__amount {
        font-size: clamp(1.65rem, 8vw, 2.25rem);
    }

    .ip-live-earnings__sub {
        font-size: 0.82rem;
    }

    .ip-live-rates {
        margin-top: 0.5rem;
    }

    .ip-live-rate {
        padding: 0.55rem 0.75rem;
    }

    .ip-live-rate .val {
        font-size: 0.9rem;
    }

    .ip-alert-box {
        padding: 0.85rem 1rem;
        font-size: 0.92rem;
    }

    .ip-table thead th,
    .ip-table tbody td {
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .ip-table-scroll {
        -webkit-overflow-scrolling: touch;
        margin: 0 -0.25rem;
    }

    .ip-deposit-layout .wallet-qr-box {
        padding: 1rem;
    }

    .ip-deposit-layout .wallet-qr-box img {
        max-width: 140px !important;
    }

    .ip-pay-method {
        flex-wrap: wrap;
    }

    .btn-ip-blue,
    .btn-ip,
    .btn-ip-outline {
        min-height: 44px;
    }

    .ip-main .alert {
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .ip-auth-header .site-logo__text {
        font-size: 0.72rem;
        letter-spacing: 0.03em;
    }

    .ip-stat-card .val {
        font-size: 1.05rem;
    }

    .ip-live-earnings__glow {
        width: 180px;
        height: 180px;
    }

    .ip-charge-label {
        display: block;
        margin-top: 0.25rem;
    }

    .ip-panel-card .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .ip-panel-card .input-group .form-control {
        border-radius: 6px !important;
    }

    .ip-panel-card .input-group .btn {
        width: 100%;
        margin-top: 0.5rem;
        border-radius: 6px !important;
    }
}

@media (max-width: 380px) {
    .ip-stat-card h6 {
        font-size: 0.65rem;
        letter-spacing: 0.02em;
    }
}

@media (max-width: 991px) {
    .ip-auth-header .navbar-collapse {
        background: #0A192F;
        border: 1px solid rgba(189, 195, 199, 0.16);
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 0.35rem 0.85rem 0.85rem;
    }

    .ip-auth-header .nav-link {
        padding: 0.7rem 0.2rem !important;
    }

    .ip-auth-header .dropdown-menu {
        width: 100%;
        position: static !important;
        transform: none !important;
        box-shadow: none;
        margin-bottom: 0.35rem;
    }

    .ip-login-card {
        padding: 1.25rem;
    }

    .ip-hero-page-title,
    .ip-inner-hero .title {
        overflow-wrap: anywhere;
        max-width: 100%;
    }

    .ip-panel-footer .footer__top {
        padding-top: 56px;
        padding-bottom: 28px;
    }

    .ip-panel-card .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 575px) {
    :root {
        --ip-gutter-x: 1rem;
    }

    .ip-login-card h4 {
        font-size: 1.15rem;
    }

    .ip-user-icon {
        width: 40px;
        height: 40px;
    }

    .btn-ip,
    .btn-ip-blue,
    .fh-gold-btn {
        width: 100%;
    }
}

/* Same gold link styling as public site (footer excluded — see .ip-panel-footer below) */
body.ip-user-panel .ip-main a:not(.btn):not(.btn-ip-blue):not(.nav-link):not(.dropdown-item):not(.navbar-brand):not(.site-logo):not(.ip-user-icon),
body.ip-user-panel .ip-page-shell > main a:not(.btn):not(.btn-ip-blue):not(.text-gold),
body.ip-admin-layout a:not(.btn):not(.btn-ip-blue):not(.nav-link):not(.dropdown-item):not(.ip-sidebar-link) {
    color: var(--fh-link, #BDC3C7);
    transition: color 0.2s ease;
}

body.ip-user-panel .ip-main a:not(.btn):not(.btn-ip-blue):not(.nav-link):not(.dropdown-item):not(.navbar-brand):not(.site-logo):not(.ip-user-icon):hover,
body.ip-user-panel .ip-page-shell > main a:not(.btn):not(.btn-ip-blue):not(.text-gold):hover,
body.ip-admin-layout a:not(.btn):not(.btn-ip-blue):not(.nav-link):not(.dropdown-item):not(.ip-sidebar-link):hover {
    color: var(--fh-link-hover, #e8eef4);
}

.ip-main {
    background: radial-gradient(ellipse at center, rgba(189, 195, 199), 0.04) 0%, transparent 70%);
}

.ip-content-section {
    background: radial-gradient(ellipse at center, rgba(189, 195, 199), 0.04) 0%, transparent 70%), var(--body-bg, #0a0e12);
}

.pt-120 { padding-top: 120px; }
.pb-120 { padding-bottom: 120px; }

.ip-section-title {
    font-family: "Cinzel", "Times New Roman", serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
    margin-bottom: 0.75rem;
}

.ip-section-desc {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0;
}

/* Panel footer — identical styling to public homepage footer */
.ip-panel-footer.footer {
    border-top: 2px solid hsl(var(--base) / 0.5);
    position: relative;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: auto;
}

.ip-panel-footer.footer::before {
    position: absolute;
    content: "";
    inset: 0;
    background-color: var(--second_color, #0A192F);
    opacity: 0.22;
    z-index: -1;
}

.ip-panel-footer .footer__top {
    padding-top: 100px;
    padding-bottom: 50px;
}

.ip-panel-footer .footer__bottom {
    padding: 20px 0;
    background-color: var(--second_color, #0f1419);
}

.ip-panel-footer .footer-short-menu {
    margin: -5px -10px;
    list-style: none;
    padding: 0;
}

.ip-panel-footer .footer-short-menu li {
    margin: 5px 10px;
}

.ip-panel-footer .footer-short-menu a {
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none !important;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.ip-panel-footer .footer-short-menu a:hover {
    color: var(--fh-link-hover, #e8eef4) !important;
}

.ip-panel-footer .copy-right-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
}

.ip-panel-footer .copy-right-text a.text--base {
    color: var(--fh-link, #BDC3C7) !important;
    text-decoration: none !important;
}

.ip-panel-footer .copy-right-text a.text--base:hover {
    color: var(--fh-link-hover, #e8eef4) !important;
}

.ip-panel-footer .site-logo--footer.fh-brand {
    display: inline-flex;
    justify-content: center;
}

.ip-inner-hero h2,
.ip-inner-hero .title {
    font-family: "Cinzel", "Times New Roman", serif;
    letter-spacing: 0.02em;
}

.ip-auth-card p,
.ip-panel-card .text-white-50 {
    font-family: "Cormorant Garamond", Georgia, serif;
}
