/*
Theme Name: WO Courier Theme
Theme URI: https://wocourier.com
Author: WO Courier
Description: A completely standalone, modern, and lightning-fast custom theme for WO Courier. Built with raw HTML/CSS/PHP and no page builder bloat.
Version: 1.0.0
Text Domain: bd-courier-theme
*/

/* --- Google Fonts & CSS Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1e3a8a;
    --primary-hover: #1e40af;
    --primary-light: #eff6ff;
    --secondary: #0ea5e9;
    --secondary-hover: #0284c7;
    --dark: #0f172a;
    --gray-dark: #334155;
    --gray-light: #f8fafc;
    --border: #e2e8f0;
    --text: #475569;
    --white: #ffffff;
    --green: #10b981;
    --orange: #f59e0b;
    --red: #ef4444;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --font-bd: 'Hind Siliguri', sans-serif;
    --font-en: 'Inter', sans-serif;
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-bd);
    color: var(--text);
    background-color: #f1f5f9;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: var(--font-bd);
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: #3b82f6;
    color: var(--white);
}

.btn-accent:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    height: 42px;
    width: auto;
}

.logo-text {
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text span {
    font-family: var(--font-bd);
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Top Highlights Bar --- */
.highlight-section {
    padding: 40px 0 20px;
    background-color: var(--white);
}

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

.highlight-card {
    background-color: #f0fdf4;
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid #dcfce7;
}

.highlight-card:nth-child(2) {
    background-color: #eff6ff;
    border-color: #dbeafe;
}

.highlight-card:nth-child(3) {
    background-color: #f0f9ff;
    border-color: #e0f2fe;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.highlight-icon-box {
    background-color: #bbf7d0;
    color: #15803d;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    width: 50px;
    height: 50px;
}

.highlight-card:nth-child(2) .highlight-icon-box {
    background-color: #bfdbfe;
    color: #1d4ed8;
}

.highlight-card:nth-child(3) .highlight-icon-box {
    background-color: #bae6fd;
    color: #0369a1;
}

.highlight-content h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.highlight-content p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

/* --- Hero Section --- */
.hero-section {
    padding: 60px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 40px;
    align-items: center;
}

.hero-content .subtitle-tag {
    color: #e11d48;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.hero-content h1 {
    font-size: 38px;
    line-height: 1.3;
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content .lead-p {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 25px;
}

.hero-checklist {
    list-style: none;
    margin-bottom: 30px;
}

.hero-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.hero-checklist li .check-icon {
    color: var(--green);
    font-size: 18px;
}

.hero-alert-desc {
    background-color: #fff1f2;
    border-left: 4px solid #f43f5e;
    padding: 15px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 15px;
    color: #9f1239;
    line-height: 1.6;
}

/* Hero Right: SVG Illustration & Mockup Group */
.hero-visual-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.worried-merchant-card {
    background-color: #fff5f5;
    border: 1px solid #ffe3e3;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: var(--shadow);
}

.trendline-svg {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    opacity: 0.85;
}

.merchant-img {
    height: 180px;
    width: auto;
    margin-top: 20px;
    z-index: 2;
}

.visual-mockups-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* Mockup elements simulating screenshot */
.mockup-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--shadow);
}

.mockup-search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mockup-search-box input {
    flex-grow: 1;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
}

.mockup-search-box button {
    background-color: var(--green);
    color: var(--white);
    border: none;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.mockup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.mockup-table th {
    background-color: #f8fafc;
    text-align: left;
    padding: 6px;
    color: var(--gray-dark);
}

.mockup-table td {
    padding: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.mockup-pill-bar {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.mockup-pill {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    color: var(--white);
}

.mockup-pill-total { background-color: var(--text); }
.mockup-pill-success { background-color: var(--green); }
.mockup-pill-cancel { background-color: var(--red); }

.mockup-progress-fill-bar {
    height: 8px;
    background-color: #f1f5f9;
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

.mockup-progress-fill-bar .fill {
    height: 100%;
    background-color: var(--green);
    width: 80%;
}

.mockup-pie-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.mockup-pie-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--green) 0% 75%, var(--red) 75% 100%);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.mockup-pie-legend {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    font-size: 11px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legend-color.green { background-color: var(--green); }
.legend-color.red { background-color: var(--red); }

/* --- Features Section --- */
.features-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-wrapper h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.section-title-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.section-title-wrapper p {
    font-size: 16px;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.feature-card:nth-child(1) .feature-icon-wrapper {
    background-color: #e0f2fe;
    color: #0ea5e9;
    border: 1px solid #bae6fd;
}

.feature-card:nth-child(2) .feature-icon-wrapper {
    background-color: #ffedd5;
    color: #f97316;
    border: 1px solid #fed7aa;
}

.feature-card:nth-child(3) .feature-icon-wrapper {
    background-color: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.feature-card:nth-child(4) .feature-icon-wrapper {
    background-color: #fce7f3;
    color: #ec4899;
    border: 1px solid #fbcfe8;
}

.feature-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.feature-info p {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.6;
}

.feature-info .learn-more {
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feature-info .learn-more:hover {
    color: var(--secondary-hover);
    gap: 10px;
}

/* --- Pricing Section --- */
.pricing-section {
    padding: 80px 0;
    background-color: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.pricing-card.popular {
    border: 2px solid var(--secondary);
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 25px;
}

.pricing-header h3 {
    font-size: 22px;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.price-box {
    font-family: var(--font-en);
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.price-box span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    font-family: var(--font-bd);
}

.pricing-features {
    list-style: none;
    margin-bottom: 35px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--gray-dark);
}

.pricing-features li .check-icon {
    color: var(--green);
}

.pricing-features li.disabled {
    color: #94a3b8;
    text-decoration: line-through;
}

.pricing-features li.disabled .check-icon {
    color: #94a3b8;
}

.pricing-btn {
    width: 100%;
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 15px;
}

/* --- Auth Portal Shortcode [phfc_auth_portal] --- */
.phfc-auth-container {
    max-width: 480px;
    margin: 50px auto;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.phfc-auth-tabs {
    display: flex;
    background-color: #f1f5f9;
    border-bottom: 1px solid var(--border);
}

.phfc-auth-tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.phfc-auth-tab.active {
    background-color: var(--white);
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
}

.phfc-auth-body {
    padding: 35px 30px;
}

.phfc-auth-panel {
    display: none;
}

.phfc-auth-panel.active {
    display: block;
}

.phfc-auth-group {
    margin-bottom: 20px;
}

.phfc-auth-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.phfc-auth-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.phfc-auth-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.phfc-auth-btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: var(--radius);
    margin-top: 10px;
}

.phfc-auth-msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.phfc-auth-msg.error {
    background-color: #fef2f2;
    color: var(--red);
    border: 1px solid #fee2e2;
    display: block;
}

.phfc-auth-msg.success {
    background-color: #ecfdf5;
    color: var(--green);
    border: 1px solid #d1fae5;
    display: block;
}

/* --- Merchant Custom Dashboard /account Layout --- */
.phfc-account-wrap {
    padding: 50px 0;
}

.phfc-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Checkout Form Layout */
.phfc-checkout-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.phfc-checkout-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.phfc-checkout-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

.phfc-checkout-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 40px;
}

.phfc-payment-instructions {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: var(--radius);
    padding: 25px;
}

.phfc-payment-instructions h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.phfc-pay-method-list {
    list-style: none;
    margin-top: 15px;
}

.phfc-pay-method-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #cbd5e1;
    font-size: 15px;
    font-weight: 600;
}

.phfc-pay-method-list li span.number {
    color: var(--secondary);
    font-family: var(--font-en);
}

.phfc-checkout-form-box {
    display: flex;
    flex-direction: column;
}

/* Dashboard Merchant Info Box */
.phfc-merchant-info-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.merchant-meta h2 {
    font-size: 26px;
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 8px;
}

.merchant-meta .plan-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.plan-badge.basic { background-color: #e0f2fe; color: #0369a1; }
.plan-badge.growth { background-color: #ffedd5; color: #c2410c; }
.plan-badge.pro { background-color: #ecfdf5; color: #047857; }
.plan-badge.custom { background-color: #f3e8ff; color: #6b21a8; }
.plan-badge.none { background-color: #f1f5f9; color: #475569; }

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}
.status-badge.active { background-color: #d1fae5; color: #065f46; }
.status-badge.suspended { background-color: #fee2e2; color: #991b1b; }
.status-badge.pending { background-color: #fef3c7; color: #92400e; }

.phfc-pending-alert {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 5px solid #d97706;
    border-radius: var(--radius);
    padding: 20px 25px;
    font-size: 15px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* API Control Card */
.phfc-api-control-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.phfc-api-control-card h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.phfc-control-field {
    margin-bottom: 25px;
}

.phfc-control-field label {
    display: block;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 15px;
}

.phfc-key-wrapper {
    display: flex;
    gap: 10px;
    max-width: 600px;
}

.phfc-key-wrapper input {
    flex-grow: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: #f8fafc;
    font-family: var(--font-en);
    font-size: 14px;
    outline: none;
    font-weight: 600;
}

/* Usage Progress bar */
.phfc-usage-section {
    max-width: 600px;
}

.phfc-usage-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
}

.phfc-progress-bg {
    height: 12px;
    background-color: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.phfc-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.phfc-bar-green { background-color: var(--green); }
.phfc-bar-orange { background-color: var(--orange); }
.phfc-bar-red { background-color: var(--red); }

/* Integration Codes UI */
.phfc-docs-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.phfc-docs-card h3 {
    font-size: 20px;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 15px;
}

.phfc-tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.phfc-tab-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    background-color: #f1f5f9;
    color: var(--text);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.phfc-tab-btn.active {
    background-color: var(--secondary);
    color: var(--white);
}

.phfc-tab-content {
    display: none;
}

.phfc-tab-content.active {
    display: block;
}

.phfc-code-block-wrapper {
    position: relative;
}

.phfc-code-block {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
    margin: 0;
}

.phfc-code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.phfc-code-copy-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

/* History table */
.phfc-history-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.phfc-history-card h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.phfc-history-table-wrapper {
    overflow-x: auto;
}

.phfc-history-table {
    width: 100%;
    border-collapse: collapse;
}

.phfc-history-table th {
    background-color: #f8fafc;
    color: var(--gray-dark);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 2px solid var(--border);
}

.phfc-history-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark);
    color: #94a3b8;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #1e293b;
    font-size: 14px;
}

.site-footer p {
    margin-bottom: 10px;
}

.site-footer a {
    color: var(--white);
}

.site-footer a:hover {
    color: var(--secondary);
}

/* --- Spin Loader --- */
.phfc-spin {
    animation: phfc-spin-anim 1s linear infinite;
    display: inline-block;
}

@keyframes phfc-spin-anim {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pricing-grid,
    .highlight-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .phfc-checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ══════════════════════════════════════════════
   WO COURIER — APP DASHBOARD LAYOUT
══════════════════════════════════════════════ */

/* Force standard container width and centering when dashboard is inside */
.container:has(.woc-app),
.phfc-account-wrap:has(.woc-app) {
    max-width: 1200px !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.woc-app {
    display: flex;
    min-height: calc(100vh - 180px);
    background: #f5f3ff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.woc-sidebar {
    width: 220px;
    background: #fff; border-right: 1px solid #ede9fe;
    display: flex; flex-direction: column;
    position: sticky; top: 90px; height: calc(100vh - 180px);
    overflow-y: auto; transition: width .2s;
    z-index: 100; flex-shrink: 0;
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}
.woc-sidebar.collapsed { width: 60px; }
.woc-sidebar.collapsed .woc-logo-text,
.woc-sidebar.collapsed .woc-nav ul li a span,
.woc-sidebar.collapsed .woc-collapse-btn span,
.woc-sidebar.collapsed .woc-logout-btn span { display: none; }
.woc-sidebar.collapsed .woc-nav ul li a { justify-content: center; padding: 10px; }
.woc-sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px; border-bottom: 1px solid #f3f0ff; }
.woc-logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg,#7c3aed,#a78bfa); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.woc-logo-text { font-size: 15px; font-weight: 700; color: #1e1b4b; white-space: nowrap; }
.woc-nav { flex: 1; padding: 10px 0; }
.woc-nav ul { list-style: none; margin: 0; padding: 0; }
.woc-nav ul li a { display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: #6b7280; font-size: 13px; font-weight: 500; text-decoration: none; border-left: 3px solid transparent; transition: all .15s; white-space: nowrap; }
.woc-nav ul li a svg { width: 17px; height: 17px; flex-shrink: 0; stroke: currentColor; fill: none; }
.woc-nav ul li a:hover { background: #f5f3ff; color: #7c3aed; }
.woc-nav ul li.active a { background: #f5f3ff; color: #7c3aed; border-left-color: #7c3aed; font-weight: 600; }
.woc-sidebar-footer { padding: 12px 0; border-top: 1px solid #f3f0ff; }
.woc-collapse-btn, .woc-logout-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 18px; background: none; border: none; cursor: pointer; font-size: 13px; font-weight: 500; color: #6b7280; text-decoration: none; transition: all .15s; white-space: nowrap; }
.woc-collapse-btn svg, .woc-logout-btn svg { width: 17px; height: 17px; flex-shrink: 0; stroke: currentColor; fill: none; }
.woc-collapse-btn:hover { color: #7c3aed; background: #f5f3ff; }
.woc-logout-btn { color: #ef4444; }
.woc-logout-btn:hover { background: #fef2f2; color: #dc2626; }

.woc-main { flex: 1; padding: 24px 28px; min-width: 0; }
.woc-banner { margin-bottom: 24px; border-radius: 14px; overflow: hidden; }
.woc-banner img { width: 100%; height: auto; display: block; }

.woc-welcome-bar { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 12px; padding: 18px 22px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); flex-wrap: wrap; gap: 12px; }
.woc-welcome-bar h2 { font-size: 18px; font-weight: 700; color: #1e1b4b; margin: 0 0 3px; }
.woc-welcome-bar p  { font-size: 13px; color: #6b7280; margin: 0; }
.woc-welcome-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.woc-meta-pill { display: flex; align-items: center; gap: 8px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 14px; }
.woc-meta-pill svg { color: #7c3aed; flex-shrink: 0; }
.woc-meta-label { display: block; font-size: 11px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.woc-meta-val   { display: block; font-size: 13px; color: #1e1b4b; font-weight: 600; }

.woc-stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 16px; }
.woc-stat-card { background: #fff; border-radius: 12px; padding: 18px 20px; position: relative; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.woc-stat-label { display: block; font-size: 10px; font-weight: 700; color: #9ca3af; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.woc-stat-val   { display: block; font-size: 28px; font-weight: 800; color: #1e1b4b; }
.woc-plan-name  { font-size: 18px !important; }
.woc-stat-icon  { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.woc-icon-purple { background: #f5f3ff; color: #7c3aed; }
.woc-icon-blue   { background: #eff6ff; color: #2563eb; }
.woc-icon-teal   { background: #f0fdfa; color: #0d9488; }
.woc-icon-orange { background: #fff7ed; color: #ea580c; }
.woc-stat-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

.woc-usage-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 20px; }
.woc-usage-card { background: #fff; border-radius: 12px; padding: 16px 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.woc-usage-label { display: block; font-size: 10px; font-weight: 700; color: #9ca3af; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.woc-usage-val   { display: block; font-size: 20px; font-weight: 700; color: #1e1b4b; }

.woc-chart-card { background: #fff; border-radius: 12px; padding: 20px 22px; box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 24px; }
.woc-chart-header { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #1e1b4b; margin-bottom: 16px; }
.woc-chart-header svg { color: #7c3aed; }
.woc-card { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.woc-card h3 { font-size: 16px; font-weight: 700; color: #1e1b4b; margin-bottom: 16px; }

/* Sidebar layout — content fills remaining width */
body.woc-logged-in {
    padding-left: 0;
}
body.woc-logged-in .site-header {
    margin-left: 0;
    padding-left: 0;
    width: 100%;
}
body.woc-logged-in .container.phfc-account-wrap {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 30px 20px !important;
}
body.woc-logged-in .woc-main {
    width: 100%;
}

@media (max-width: 1100px) { .woc-stats-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 780px) {
    .woc-app { flex-direction: column; }
    .woc-sidebar { width: 100%; min-height: auto; height: auto; position: relative; border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); border-bottom-left-radius: 0; }
    .woc-nav ul { display: flex; flex-wrap: wrap; }
    .woc-nav ul li a { padding: 8px 12px; font-size: 12px; }
    .woc-main { padding: 16px; }
    .woc-usage-row { grid-template-columns: 1fr; }
}
