@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Calistoga&display=swap');

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

:root {
    --bark: #1a1208;
    --bark-mid: #2e1f0a;
    --gold: #EAD135;
    --gold-light: #8BFBFF;
    --gold-pale: #F6EEEECC;
    --cream: #EFEFEF;
    --white: #ffffff;
    --muted: #333333;
    --border: rgba(200, 146, 42, 0.18);
    --border-strong: rgba(200, 146, 42, 0.4);
    --shadow: 0 8px 40px rgba(26, 18, 8, 0.18);
    --shadow-card: 0 2px 20px rgba(26, 18, 8, 0.10);
    --radius: 14px;
    --radius-lg: 22px;
}

/* body {
    font-family: "Nunito", sans-serif;
    background: var(--cream);
    color: var(--bark);
    min-height: 100vh;
    overflow-x: hidden;
} */

/* NAV */
/* nav {
    background: var(--bark);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
} */

.nav-cusss {
    background: var(--bark);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 100%;
    max-width: 100px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 400;
    color: var(--bark);
}

.nav-tab {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold-light);
}

.nav-tab.active {
    color: var(--gold-light);
}

/* MAIN LAYOUT */
.app {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 64px);
}

/* SIDEBAR */
aside {
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bark-mid);
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
}

.sidebar-link.active,
.sidebar-link:hover {
    background: var(--bark);
    color: var(--gold);
}

.sidebar-link .icon {
    width: 18px;
    text-align: center;
}

.sidebar-link.active img,
.sidebar-link:hover img {
    filter: brightness(0) saturate(100%) invert(78%) sepia(62%) saturate(560%) hue-rotate(5deg) brightness(95%) contrast(95%);
}

.badge {
    margin-left: auto;
    background: var(--gold);
    color: var(--bark);
    font-size: 10px;
    font-weight: 400;
    padding: 2px 8px;
    border-radius: 20px;
}

.badge.new {
    background: #e74c3c;
    color: #fff;
}

/* SUBSCRIPTION BAR */

.progress-track {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    height: 5px;
    overflow: hidden;
}

.progress-fill {
    background: var(--gold);
    height: 100%;
    border-radius: 6px;
    width: 37.5%;
}

/* MAIN */
main {
    padding: 2rem 2.5rem;
    background: var(--cream);
}

.page-header {
    margin-bottom: 2rem;
}

.breadcrumb {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

h1 {
    font-family: "Calistoga", serif;
    font-size: 30px;
    font-weight: 400;
    color: var(--bark);
    line-height: 1.2;
}

.subtitle {
    font-size: 15px;
    color: var(--muted);
    margin-top: 6px;
    font-weight: 400;
}

/* WEEK CARDS GRID */
.weeks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 2rem;
}

.week-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.22s;
    position: relative;
    overflow: hidden;
}

.week-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.week-card.active {
    border-color: var(--gold);
    background: #fffdf6;
}

.week-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
}

.week-card.locked {
    opacity: 0.55;
    cursor: default;
    background: #f9f9f9;
}

.week-card.locked:hover {
    transform: none;
    box-shadow: none;
}

.week-num {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.week-title {
    font-family: "Calistoga", serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--bark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.week-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 20px;
}

.status-done {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-current {
    background: #fff8e1;
    color: #f57f17;
}

.status-locked {
    background: #f5f5f5;
    color: #9e9e9e;
}

.week-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* CONTENT AREA */
.content-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
}

.content-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.content-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.content-title {
    font-family: "Calistoga", serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--bark);
}

.content-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.18s;
    border: none;
    white-space: nowrap;
    font-family: "Nunito", sans-serif;
}

.btn-gold {
    background: var(--gold);
    color: var(--bark);
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--bark-mid);
    border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
    background: var(--gold-pale);
}

/* VIDEO PLACEHOLDER */
.video-block {
    background: var(--bark);
    aspect-ratio: 16/7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-bg-text {
    position: absolute;
    font-family: "Calistoga", serif;
    font-size: 80px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: -0.02em;
    user-select: none;
}

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.play-btn:hover {
    transform: scale(1.08);
    background: var(--gold-light);
}

.play-triangle {
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid var(--bark);
    margin-left: 4px;
}

.video-label {
    position: absolute;
    bottom: 16px;
    left: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.video-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
}

.secure-badge {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    letter-spacing: 0.04em;
}

.lock-icon {
    font-size: 10px;
}

/* CONTENT BODY */
.content-body {
    padding: 20px 24px;
}

.lesson-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.18s;
}

.lesson-item:hover {
    background: var(--gold-pale);
    border-color: var(--border-strong);
}

.lesson-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-pale);
    color: var(--gold);
    font-size: 12px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lesson-num.done {
    background: #e8f5e9;
    color: #2e7d32;
}

.lesson-info {
    flex: 1;
}

.lesson-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--bark);
}

.lesson-dur {
    font-size: 12px;
    color: var(--muted);
    margin-top: 1px;
}

.lesson-play {
    color: var(--muted);
    font-size: 14px;
}

/* PROGRAMS PAGE */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 1.5rem;
}

.program-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.22s;
    box-shadow: var(--shadow-card);
    position: relative;
}

.program-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.program-card.enrolled {
    border-color: var(--gold);
}

.program-thumb {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    position: relative;
}


/* ADDED BY CWJ  */
.program-thumb img {
width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
}

/* **************** */
.thumb-foundation {
    background: linear-gradient(135deg, #1a1208 60%, #2e1f0a);
}

.thumb-aggression {
    background: linear-gradient(135deg, #1a0808 60%, #2e0a0a);
}

.thumb-advanced {
    background: linear-gradient(135deg, #081a08 60%, #0a2e0a);
}

.thumb-recall {
    background: linear-gradient(135deg, #08081a 60%, #0a0a2e);
}

.thumb-puppy {
    background: linear-gradient(135deg, #1a1508 60%, #2e250a);
}

.thumb-anxiety {
    background: linear-gradient(135deg, #0d1a1a 60%, #0a2e2e);
}

.enrolled-ribbon {
    position: absolute;
    top: 10px;
    right: -20px;
    background: var(--gold);
    color: var(--bark);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 30px;
    transform: rotate(30deg);
}

.completed-ribbon {
    position: absolute;
    top: 10px;
    right: -20px;
    background: var(--gold-light);
    color: var(--bark);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 30px;
    transform: rotate(30deg);
}

.program-body {
    padding: 16px;
}

.program-name {
    font-family: "Calistoga", serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--bark);
    margin-bottom: 4px;
    text-decoration: none;
}

.program-desc {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.program-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.program-price {
    font-size: 15px;
    font-weight: 400;
    color: var(--gold);
}

.program-price span {
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
}

.pill {
    font-size: 10px;
    font-weight: 400;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--bark);
}

.pill-gold {
    background: var(--gold);
    z-index: 1;
}

.pill-gold:hover {
    background: var(--bark);
    color: var(--gold);
}

.pill-dark {
    background: var(--bark);
    color: var(--gold-light);
}

/* TABS */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.18s;
}

.tab:hover {
    color: var(--bark);
}

.tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Q&A */
.qa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.qa-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--bark);
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qa-item {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
}

.qa-question {
    font-size: 14px;
    font-weight: 500;
    color: var(--bark);
    margin-bottom: 6px;
}

.qa-answer {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.qa-meta {
    font-size: 11px;
    color: #bbb;
    margin-top: 8px;
    display: flex;
    gap: 10px;
}

.qa-input-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.qa-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    background: var(--white);
    color: var(--bark);
    outline: none;
    transition: border-color 0.18s;
}

.qa-input:focus {
    border-color: var(--gold);
}

/* PAGE VIEWS */  /* Commented For Testing */
/* .page {
    display: none;
}

.page.visible {
    display: block;
} */

/* STATS ROW */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 2.5rem;
}

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

.stat-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 15px;
}

.stat-value {
    font-family: "Calistoga", serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--bark);
    line-height: 1;
}

.stat-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 10px;
}

/* .stat-icon {
    width: 100%;
    max-width: 45px;
    margin-bottom: 30px;
} */

.stat-icon {
width: 100%;
max-width: 45px;
margin-bottom: 30px;
filter: brightness(0) saturate(100%) invert(78%) sepia(62%) saturate(560%) hue-rotate(5deg) brightness(95%)
contrast(95%);
}

.stat-sub a {
font-size: 12px;
color: var(--muted);
margin-top: 10px;
text-decoration: none;
}

.program-content,
.resources-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.program-content ul {
    padding-left: 20px;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.download_link {
    color: var(--gold);
    font-size: 14px;
    line-height: 1;
}

.download_link:hover {
    color: var(--bark);
}

.program-thumb a {
    text-decoration: none;
}

.link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.inprogress-tasks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* LOGIN PAGE */
.right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    min-height: 100vh;
}

.right::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 10%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 92, 56, .07) 0%, transparent 70%);
    pointer-events: none;
}

.form-card {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background-color: #ffffff;
}

.form-head {
    margin-bottom: 2.5rem;
}

.form-head .eyebrow {
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: .75rem;
}

.form-head h2 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.15;
    font-family: "Calistoga", serif;
}

.form-head p {
    margin-top: .6rem;
    font-size: .85rem;
    color: var(--muted);
    font-weight: 300;
}

.form-head p a {
    color: var(--gold);
    font-weight: 500;
}

.form-head p a:hover {
    text-decoration: underline;
}

/* Fields */
.field {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .03em;
    margin-bottom: .45rem;
}

.input-wrap {
    position: relative;
}

.input-wrap>svg {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: var(--muted);
    pointer-events: none;
    transition: stroke .2s;
}

input {
    width: 100%;
    padding: .78rem 1rem .78rem 2.6rem;
    border: 1.5px solid var(--cream);
    border-radius: 10px;
    background: #fff;
    font-size: .875rem;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

input::placeholder {
    color: #c0b8b0;
}

input:focus {
    border-color: var(--cream);
    box-shadow: 0 0 0 3px rgba(184, 92, 56, .1);
}

input:focus+svg,
.input-wrap:focus-within svg {
    stroke: var(--accent);
}

.field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .45rem;
}

.field-row label {
    margin-bottom: 0;
}

.forgot {
    font-size: .72rem;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.forgot:hover {
    color: var(--accent);
}

.eye-toggle {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    color: var(--muted);
    transition: color .2s;
}

.eye-toggle:hover {}

/* Remember */
.remember {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.75rem;
}

.remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 4px;
    accent-color: var(--accent);
    cursor: pointer;
}

.remember span {
    font-size: .8rem;
    color: var(--muted);
}

/* Submit */
.btn-submit {
    width: 100%;
    padding: .88rem;
    background: var(--gold-light);
    color: var(--bark);
    border: none;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .02em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background .25s, transform .15s;
}

.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .08) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .5s ease;
}

.btn-submit:hover {
    background: #1e1c1a;
    transform: translateY(-1px);
    color: var(--white);
}

.btn-submit:hover::after {
    transform: translateX(100%);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    font-size: .72rem;
    color: var(--muted);
    white-space: nowrap;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* OAuth */
.oauth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .72rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font-size: .8rem;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .15s;
    font-weight: 400;
}

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

.btn-oauth svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* BILLING PAGE */
.section-title {
    font-family: "Calistoga", serif;
    font-size: 1.18rem;
    font-weight: 400;
    color: var(--bark);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

/* ─── Subscription Overview ─── */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 580px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-card);
    padding: 24px 26px;
}

/* Current Plan Card */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(234, 209, 53, 0.18);
    border: 1px solid rgba(234, 209, 53, 0.55);
    color: #7a6600;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.plan-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b89b00;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 18px;
}

.plan-price .amount {
    font-family: "Calistoga", serif;
    font-size: 2.2rem;
    color: var(--bark);
    line-height: 1;
}

.plan-price .period {
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 500;
}

.btn-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bark);
    color: var(--gold);
    font-family: "Nunito", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
    letter-spacing: 0.01em;
}

.btn-upgrade:hover {
    background: var(--bark-mid);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 18, 8, 0.22);
}

.btn-upgrade svg {
    width: 14px;
    height: 14px;
}

/* Usage Summary Card */
.usage-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 18px;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

.usage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.usage-value {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--bark);
}

.usage-pct {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}

.progress-track {
    width: 100%;
    height: 7px;
    background: var(--cream);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 14px;
}

.progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.6s cubic-bezier(.4, 0, .2, 1);
}

.progress-fill.api {
    background: linear-gradient(90deg, #EAD135 0%, #d4b800 100%);
}

.progress-fill.storage {
    background: linear-gradient(90deg, #8BFBFF 0%, #00cdd4 100%);
}

/* ─── Billing History ─── */
.billing-history-section {
    margin-bottom: 40px;
}

.billing-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1.5px solid var(--border-strong);
    color: var(--bark);
    font-family: "Nunito", sans-serif;
    font-size: 0.83rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 9px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.btn-filter:hover {
    background: var(--gold-pale);
    border-color: var(--border-strong);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.history-table thead th {
    text-align: left;
    padding: 12px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(234, 209, 53, 0.07);
    border-bottom: 1.5px solid var(--border);
}

.history-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.13s;
}

.history-table tbody tr:last-child {
    border-bottom: none;
}

.history-table tbody tr:hover {
    background: rgba(234, 209, 53, 0.05);
}

.history-table td {
    padding: 14px 18px;
    font-size: 0.9rem;
    color: var(--bark);
    vertical-align: middle;
}

.history-table td.date {
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
}

.history-table td.amount {
    font-weight: 700;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.paid {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.paid::before {
    background: #16a34a;
}

.status-badge.failed {
    background: rgba(239, 68, 68, 0.10);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.status-badge.failed::before {
    background: #ef4444;
}

/* Action links */
.action-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bark);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}

.action-link:hover {
    color: #8a6a00;
}

.action-link svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.no-action {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ─── Payment Methods ─── */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 500px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
}

/* Visa Card */
.visa-card {
    border-radius: var(--radius-lg);
    padding: 22px 22px 18px;
    background: linear-gradient(135deg, #c8944a 0%, #8B6220 40%, #3d2a0a 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(26, 18, 8, 0.28);
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.visa-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.visa-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: 40px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.visa-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.visa-logo {
    font-family: "Calistoga", serif;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.card-menu-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    position: relative;
    z-index: 1;
}

.card-menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.card-number {
    font-size: 1.08rem;
    letter-spacing: 0.18em;
    font-weight: 700;
    margin: 12px 0 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.card-footer {
    display: flex;
    gap: 24px;
}

.card-field label {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.65;
    display: block;
    margin-bottom: 1px;
}

.card-field span {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Add New Card */
.add-card {
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-strong);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    min-height: 148px;
    transition: background 0.18s, border-color 0.18s;
    color: var(--muted);
}

.add-card:hover {
    background: rgba(234, 209, 53, 0.07);
    border-color: rgba(200, 146, 42, 0.55);
}

.add-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cream);
    border: 1.5px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--muted);
    font-weight: 300;
    transition: background 0.15s;
}

.add-card:hover .add-icon {
    background: rgba(234, 209, 53, 0.18);
}

.add-card span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
}



/* CSS ADDED BY CWJ */
.k9_program-template-default .entry-content{
max-width: 1440px;
}

