/* ============================================================
   OCIIP Member Portal — portal.css
   ============================================================ */

* { box-sizing: border-box; }

body.ociip-portal-body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background: #f4faf7;
    color: #0f172a;
    line-height: 1.55;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.ociip-portal-topbar {
    background: #fff;
    border-bottom: 2px solid #f0c420;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.ociip-portal-topbar-brand { display: flex; align-items: center; gap: 12px; }
.ociip-portal-topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ociip-portal-topbar-link { color: #0f4a2e; text-decoration: none; font-size: 13px; font-weight: 700; }
.ociip-portal-topbar-link:hover { color: #008751; }
.ociip-portal-topbar-user { font-size: 13px; color: #64748b; }
.ociip-portal-topbar-logout { color: #991b1b; text-decoration: none; font-weight: 800; font-size: 12px; }

/* ============================================================
   PASSWORD WRAP
   ============================================================ */
.ociip-password-wrap { position: relative; }
.ociip-password-wrap input { padding-right: 46px !important; }
.ociip-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    opacity: 1;
}

/* ============================================================
   PHONE WRAP
   ============================================================ */
.ociip-phone-wrap {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ociip-phone-wrap:focus-within {
    border-color: #f0c420;
    box-shadow: 0 0 0 4px rgba(240, 196, 32, 0.15);
}
.ociip-phone-prefix {
    padding: 12px 14px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    font-weight: 800;
    color: #0f4a2e;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    min-width: 60px;
    justify-content: center;
}
.ociip-phone-wrap input {
    border: none !important;
    box-shadow: none !important;
    flex: 1;
    border-radius: 0 !important;
}

/* ============================================================
   CUSTOM COUNTRY PICKER
   ============================================================ */
.ociip-country-picker { position: relative; }
.ociip-country-trigger {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14.5px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #0f172a;
}
.ociip-country-trigger:focus {
    outline: none;
    border-color: #f0c420;
    box-shadow: 0 0 0 4px rgba(240, 196, 32, 0.15);
}
.ociip-country-trigger-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
}
.ociip-country-trigger-name { flex: 1; font-weight: 500; color: #0f172a; }
.ociip-country-caret { color: #64748b; font-size: 12px; }

.ociip-country-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #f0c420;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 50;
    max-height: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ociip-country-dropdown[hidden] { display: none !important; }

.ociip-country-search {
    margin: 10px;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    width: calc(100% - 20px);
    box-sizing: border-box;
}
.ociip-country-search:focus { outline: none; border-color: #f0c420; }

.ociip-country-list {
    list-style: none;
    padding: 0 6px 10px;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}
.ociip-country-list li {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
}
.ociip-country-list li:hover,
.ociip-country-list li.is-highlighted { background: #f0fdf4; }
.ociip-country-list li img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
}
.ociip-country-list li[hidden] { display: none; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.ociip-portal-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0f4a2e 0%, #083a24 100%);
}
.ociip-portal-auth-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border: 2px solid #f0c420;
    border-radius: 22px;
    padding: 44px 36px 38px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.ociip-portal-logo { text-align: center; margin-bottom: 16px; }
.ociip-portal-logo img { max-width: 140px; height: auto; }
.ociip-portal-auth-card h1 {
    font-size: 22px;
    font-weight: 900;
    color: #0f4a2e;
    margin: 0 0 6px;
    text-align: center;
}
.ociip-portal-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #008751, #f0c420);
    margin: 14px auto 18px;
    border-radius: 3px;
}
.ociip-portal-auth-sub {
    color: #64748b;
    font-size: 13.5px;
    margin: 0 0 24px;
    text-align: center;
    line-height: 1.6;
}
.ociip-portal-auth-card label {
    display: block;
    text-align: left;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #0f4a2e;
    margin: 14px 0 6px;
}
.ociip-portal-auth-card input,
.ociip-portal-auth-card select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14.5px;
    box-sizing: border-box;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ociip-portal-auth-card input:focus,
.ociip-portal-auth-card select:focus {
    outline: none;
    border-color: #f0c420;
    box-shadow: 0 0 0 4px rgba(240, 196, 32, 0.15);
}
.ociip-portal-btn {
    display: inline-block;
    width: 100%;
    margin-top: 22px;
    padding: 15px;
    background: linear-gradient(135deg, #008751, #00b368);
    border: 2px solid #f0c420;
    border-radius: 50px;
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease;
}
.ociip-portal-btn:hover { transform: translateY(-1px); }
.ociip-portal-btn:disabled { cursor: not-allowed; transform: none !important; }
.ociip-portal-btn--full { width: 100%; }
.ociip-portal-btn--big { padding: 18px 50px; font-size: 17px; max-width: 400px; }
.ociip-portal-btn--secondary {
    background: #fff;
    color: #0f4a2e;
    border-color: #cbd5e1;
}
.ociip-portal-auth-help {
    font-size: 13px;
    color: #64748b;
    margin-top: 20px;
    text-align: center;
}
.ociip-portal-auth-help a {
    color: #008751;
    font-weight: 800;
    text-decoration: none;
}
.ociip-portal-alert {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
}
.ociip-portal-alert--success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}
.ociip-portal-field-hint {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ============================================================
   DASHBOARD SHELL
   ============================================================ */
.ociip-portal-dash {
    max-width: 1040px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* ============================================================
   HERO
   ============================================================ */
.ociip-portal-hero {
    position: relative;
    padding: 32px 32px;
    background: linear-gradient(135deg, #0f4a2e 0%, #083a24 100%);
    border: 2px solid #f0c420;
    border-radius: 22px;
    color: #fff;
    margin-bottom: 26px;
}
.ociip-portal-hero--locked {
    background: linear-gradient(135deg, #0f4a2e 0%, #c89400 100%);
    border-color: #ffd700;
}
.ociip-portal-hero-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.ociip-portal-hero-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0c420;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.ociip-portal-hero-avatar--placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #008751, #00b368);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    border: 2px solid #f0c420;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.ociip-portal-hero-text { flex: 1; min-width: 0; }
.ociip-portal-hero-text h1 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ociip-portal-hero-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffd700;
    margin: 0 0 4px;
}
.ociip-portal-hero-sub {
    font-size: 13px;
    color: #d1fae5;
    margin: 0 0 4px;
}
.ociip-portal-member-id {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    letter-spacing: 0.5px;
}
.ociip-portal-member-id strong {
    color: #ffd700;
    font-family: monospace;
}
.ociip-portal-hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(240, 196, 32, 0.55);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #ffd700;
}
.ociip-portal-hero-badge--pending {
    border-color: rgba(255, 150, 150, 0.7);
    color: #fecaca;
}
.ociip-portal-hero-back {
    position: absolute;
    top: 22px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 800;
}
.ociip-portal-edit-link {
    position: absolute;
    top: 22px;
    right: 22px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(240, 196, 32, 0.5);
    border-radius: 50px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

/* ============================================================
   LOCK SCREENS
   ============================================================ */
.ociip-portal-lock {
    text-align: center;
    padding: 44px 30px;
    background: #fff;
    border: 2px solid #e8edf2;
    border-radius: 18px;
    margin-bottom: 26px;
}
.ociip-portal-lock-icon { font-size: 56px; margin-bottom: 14px; }
.ociip-portal-lock-title {
    font-size: 22px;
    font-weight: 900;
    color: #0f4a2e;
    margin: 0 0 10px;
}
.ociip-portal-lock-sub {
    font-size: 14.5px;
    color: #64748b;
    margin: 0 auto;
    max-width: 620px;
    line-height: 1.75;
}
.ociip-portal-preview-intro {
    text-align: center;
    padding: 36px 26px;
    background: linear-gradient(135deg, #fffef9, #fef3c7);
    border: 2px solid #f0c420;
    border-radius: 18px;
    margin-bottom: 26px;
}
.ociip-portal-preview-intro-icon { font-size: 48px; margin-bottom: 10px; }
.ociip-portal-preview-intro h2 {
    font-size: 22px;
    font-weight: 900;
    color: #78350f;
    margin: 0 0 10px;
}
.ociip-portal-preview-intro p {
    font-size: 14.5px;
    color: #78350f;
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.75;
}

/* ============================================================
   MEMBER NOTIFICATIONS
   ============================================================ */
.ociip-portal-notifications {
    background: #fff;
    border: 2px solid #f0c420;
    border-radius: 16px;
    padding: 22px 24px 18px;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(240, 196, 32, 0.10);
}
.ociip-portal-notifications-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #78350f;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(240, 196, 32, 0.6);
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.ociip-portal-notifications-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #dc2626;
    color: #fff;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 900;
}
.ociip-portal-notifications-clear {
    background: none;
    border: none;
    color: #008751;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
    font-family: inherit;
}
.ociip-portal-notification-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: #f8fafc;
    border-left: 4px solid #f0c420;
    border-radius: 8px;
    margin-bottom: 10px;
}
.ociip-portal-notification-card:last-child { margin-bottom: 0; }
.ociip-portal-notification-body { flex: 1; min-width: 0; }
.ociip-portal-notification-title {
    font-size: 14px;
    font-weight: 900;
    color: #0f4a2e;
    margin: 0 0 6px;
}
.ociip-portal-notification-message {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.65;
    margin: 0 0 8px;
}
.ociip-portal-notification-meta {
    font-size: 11.5px;
    color: #94a3b8;
}
.ociip-portal-notification-meta a {
    color: #008751;
    font-weight: 700;
    text-decoration: none;
}
.ociip-portal-notification-dismiss {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #bbf7d0;
    color: #008751;
    font-weight: 900;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    transition: transform 0.15s;
}
.ociip-portal-notification-dismiss:hover {
    transform: scale(1.08);
    background: #f0fdf4;
}

/* ============================================================
   FEATURE GRID
   ============================================================ */
.ociip-portal-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.ociip-portal-feature-card {
    position: relative;
    background: #fff;
    border: 2px solid #e8edf2;
    border-radius: 16px;
    padding: 24px;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
}
.ociip-portal-feature-card:hover {
    border-color: #f0c420;
    transform: translateY(-2px);
}
.ociip-portal-feature-lock {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.ociip-portal-feature-icon {
    font-size: 38px;
    margin-bottom: 12px;
    line-height: 1;
}
.ociip-portal-feature-title {
    font-size: 16px;
    font-weight: 900;
    color: #0f4a2e;
    margin: 0 0 6px;
}
.ociip-portal-feature-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 14px;
}
.ociip-portal-feature-preview {
    background: #f8fafc;
    border-left: 3px solid #f0c420;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    color: #334155;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 12px;
}
.ociip-portal-feature-count {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #f0c420;
    padding: 4px 12px;
    border-radius: 50px;
}
.ociip-portal-feature-card.is-unlocked {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #f0fdf4, #ffffff);
}
.ociip-portal-feature-card.is-unlocked .ociip-portal-feature-count {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}
.ociip-portal-feature-card.is-unlocked .ociip-portal-feature-count.is-active {
    background: #008751;
    border-color: #008751;
    color: #fff;
}
.ociip-portal-feature-card.is-unlocked:hover { border-color: #008751; }
a.ociip-portal-feature-card.is-unlocked { cursor: pointer; }

/* ============================================================
   CTA
   ============================================================ */
.ociip-portal-cta {
    text-align: center;
    padding: 44px 30px;
    background: linear-gradient(135deg, #0f4a2e 0%, #083a24 100%);
    border: 2px solid #f0c420;
    border-radius: 22px;
}
.ociip-portal-cta-icon { font-size: 44px; margin-bottom: 10px; }
.ociip-portal-cta-title {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px;
}
.ociip-portal-cta-sub {
    font-size: 15px;
    color: #d1fae5;
    margin: 0 auto 26px;
    max-width: 520px;
    line-height: 1.7;
}
.ociip-portal-cta .ociip-portal-btn { margin: 0 auto; }

/* ============================================================
   PLAN PICKER
   ============================================================ */
.ociip-portal-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    max-width: 900px;
    margin: 0 auto;
}
.ociip-portal-plan-card {
    background: #fff;
    border: 2px solid #e8edf2;
    border-radius: 20px;
    padding: 36px 30px 28px;
    position: relative;
    transition: border-color 0.25s, transform 0.25s;
}
.ociip-portal-plan-card:hover {
    border-color: #f0c420;
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(240, 196, 32, 0.15);
}
.ociip-portal-plan-card--student { background: linear-gradient(180deg, #f6f9ff, #fff); }
.ociip-portal-plan-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #008751, #00b368);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    border: 2px solid #f0c420;
    white-space: nowrap;
}
.ociip-portal-plan-tag--student {
    background: linear-gradient(135deg, #1d9bf0, #0a8dd8);
    color: #fff;
}
.ociip-portal-plan-label {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #008751;
    margin-bottom: 14px;
}
.ociip-portal-plan-price { margin-bottom: 12px; }
.ociip-portal-plan-amount {
    font-size: 38px;
    font-weight: 900;
    color: #0f4a2e;
    line-height: 1;
}
.ociip-portal-plan-period { font-size: 14px; color: #94a3b8; font-weight: 600; }
.ociip-portal-plan-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.ociip-portal-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    font-size: 14px;
    color: #334155;
    line-height: 1.9;
}

/* ============================================================
   PAY GRID
   ============================================================ */
/* Horizontal payment rows — one method per row */
.ociip-portal-pay-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ociip-pay-row {
    background: #fff;
    border: 2px solid #e8edf2;
    border-radius: 16px;
    padding: 20px 22px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ociip-pay-row:hover {
    border-color: #f0c420;
    box-shadow: 0 6px 20px rgba(240,196,32,0.10);
}
.ociip-pay-row.is-open { border-color: #008751; box-shadow: 0 8px 24px rgba(0,135,81,0.12); }

.ociip-pay-row-head {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.ociip-pay-row-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    flex-shrink: 0;
    overflow: hidden;
}
.ociip-pay-row-info { flex: 1; min-width: 200px; }
.ociip-pay-row-title { font-size: 15px; font-weight: 900; color: #0f4a2e; margin: 0 0 3px; line-height: 1.3; }
.ociip-pay-row-sub   { font-size: 11.5px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.6px; margin: 0 0 4px; }
.ociip-pay-row-desc  { font-size: 13px; color: #64748b; line-height: 1.55; margin: 0; }

.ociip-pay-row-action { flex-shrink: 0; }
.ociip-pay-row-action button,
.ociip-pay-row-action a {
    padding: 11px 24px;
    background: linear-gradient(135deg, #008751, #00b368);
    color: #fff;
    border: 2px solid #f0c420;
    border-radius: 50px;
    font-weight: 900;
    font-size: 13.5px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
.ociip-pay-row-action button.ociip-pay-toggle {
    background: #fff;
    color: #0f4a2e;
    border-color: #cbd5e1;
}

.ociip-pay-row-body {
    display: none;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #e2e8f0;
}
.ociip-pay-row.is-open .ociip-pay-row-body { display: block; }

.ociip-pay-details-box {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: #334155;
    line-height: 1.7;
    white-space: pre-wrap;
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin: 0 0 14px;
}
.ociip-pay-label {
    display: block;
    font-size: 10.5px;
    font-weight: 900;
    color: #0f4a2e;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 6px;
}
.ociip-pay-file {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
    box-sizing: border-box;
    margin-bottom: 12px;
}
.ociip-pay-hint { font-size: 11.5px; color: #94a3b8; margin: -6px 0 14px; line-height: 1.55; }
.ociip-pay-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #008751, #00b368);
    color: #fff;
    border: 2px solid #f0c420;
    border-radius: 50px;
    font-weight: 900;
    font-size: 14.5px;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 640px) {
    .ociip-pay-row { padding: 16px 16px; }
    .ociip-pay-row-action { width: 100%; }
    .ociip-pay-row-action button,
    .ociip-pay-row-action a { width: 100%; text-align: center; }
}

/* Change-plan pill on the pay page */
.ociip-change-plan-wrap { text-align: center; margin: 24px 0 6px; }
.ociip-change-plan {
    display: inline-block;
    padding: 11px 26px;
    background: #fff;
    color: #0f4a2e;
    border: 2px solid #cbd5e1;
    border-radius: 50px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.2s ease;
}
.ociip-change-plan:hover { border-color: #f0c420; }
.ociip-portal-pay-card {
    background: #fff;
    border: 2px solid #e8edf2;
    border-radius: 18px;
    padding: 26px 24px 22px;
    transition: border-color 0.25s, transform 0.25s;
}
.ociip-portal-pay-card:hover {
    border-color: #f0c420;
    transform: translateY(-2px);
}
.ociip-portal-pay-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.ociip-portal-pay-logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    overflow: hidden;
}
.ociip-portal-pay-logo-text {
    font-size: 14.5px;
    font-weight: 900;
    color: #0f4a2e;
}
.ociip-portal-pay-title {
    font-size: 15px;
    font-weight: 900;
    color: #0f4a2e;
    margin-bottom: 8px;
}
.ociip-portal-pay-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 18px;
}
.ociip-portal-pay-details {
    background: #f8fafc;
    border-left: 3px solid #f0c420;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 14px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ============================================================
   STATS
   ============================================================ */
.ociip-portal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.ociip-portal-stat {
    background: #fff;
    border: 2px solid #e8edf2;
    border-radius: 14px;
    padding: 22px 24px;
}
.ociip-portal-stat--primary {
    background: linear-gradient(135deg, #0f4a2e, #083a24);
    border-color: #f0c420;
    color: #fff;
}
.ociip-portal-stat--primary .ociip-portal-stat-label { color: #ffd700; }
.ociip-portal-stat--primary .ociip-portal-stat-value { color: #fff; }
.ociip-portal-stat--primary .ociip-portal-stat-sub { color: #d1fae5; }
.ociip-portal-stat-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #008751;
    margin-bottom: 8px;
}
.ociip-portal-stat-value {
    font-size: 24px;
    font-weight: 900;
    color: #0f4a2e;
    line-height: 1.1;
}
.ociip-portal-stat-sub { font-size: 12px; color: #94a3b8; margin-top: 4px; }

/* ============================================================
   NOTE
   ============================================================ */
.ociip-portal-note {
    background: #fef3c7;
    border: 2px solid #f0c420;
    border-radius: 14px;
    padding: 20px 24px;
    color: #78350f;
    font-size: 13.5px;
    line-height: 1.7;
}

/* ============================================================
   PANELS + FIELDS
   ============================================================ */
.ociip-portal-panel {
    background: #fff;
    border: 2px solid #e8edf2;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 22px;
}
.ociip-portal-panel-title {
    font-size: 15px;
    font-weight: 900;
    color: #0f4a2e;
    margin: 0 0 16px;
}
.ociip-portal-field { margin-bottom: 16px; }
.ociip-portal-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #0f4a2e;
    margin-bottom: 6px;
}
.ociip-portal-field input,
.ociip-portal-field textarea,
.ociip-portal-field select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14.5px;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
}
.ociip-portal-field input:focus,
.ociip-portal-field textarea:focus,
.ociip-portal-field select:focus {
    outline: none;
    border-color: #f0c420;
    box-shadow: 0 0 0 4px rgba(240, 196, 32, 0.15);
}
.ociip-portal-form { max-width: 800px; margin: 0 auto; }

/* ============================================================
   PAYOUT METHOD PICKER
   ============================================================ */
.ociip-payout-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 6px;
}
.ociip-payout-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 700;
    font-size: 13.5px;
}
.ociip-payout-method input { width: auto; margin: 0; }
.ociip-payout-method:hover { border-color: #f0c420; }
.ociip-payout-method input:checked + span { color: #008751; font-weight: 900; }
.ociip-payout-fields {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .ociip-portal-hero { padding: 56px 22px 24px 22px; }
    .ociip-portal-hero-text h1 { font-size: 18px; }
    .ociip-portal-feature-grid { grid-template-columns: 1fr; }
    .ociip-portal-cta-title { font-size: 22px; }
    .ociip-portal-hero-back { position: static; display: inline-block; margin-bottom: 12px; }
    .ociip-portal-hero-row { flex-direction: column; align-items: flex-start; }
}

/* Holder repeater rows */
.ociip-holder-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 12px;
}
.ociip-holder-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}
.ociip-holder-grid .ociip-portal-field input,
.ociip-holder-grid .ociip-portal-field select {
    padding: 10px 12px;
    font-size: 13.5px;
}
.ociip-holder-remove {
    background: none;
    border: none;
    color: #991b1b;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
}
.ociip-holder-remove:hover { text-decoration: underline; }
@media (max-width: 900px) {
    .ociip-holder-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .ociip-holder-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   EVENT COUNTDOWNS
   ============================================================ */
.ociip-countdown {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.5;
    border: 1.5px solid transparent;
}
.ociip-countdown strong {
    font-family: 'SF Mono', 'Consolas', 'Menlo', monospace;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.ociip-countdown.is-reg {
    background: linear-gradient(180deg, #fef3c7, #fffbeb);
    border-color: #f0c420;
    color: #78350f;
}
.ociip-countdown.is-reg strong { color: #92400e; }

.ociip-countdown.is-pre {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}
.ociip-countdown.is-pre strong { color: #065f46; }

.ociip-countdown.is-live {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
    animation: ociip-countdown-pulse 1.4s ease-in-out infinite;
}
.ociip-countdown.is-live strong { color: #7f1d1d; }

.ociip-countdown.is-ended,
.ociip-countdown.is-full {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

/* Hero variant — sits on the dark green hero, needs contrast */
.ociip-countdown--hero {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(240, 196, 32, 0.55) !important;
    color: #ffd700 !important;
    font-size: 13.5px !important;
    padding: 10px 18px !important;
}
.ociip-countdown--hero strong { color: #ffffff !important; }
.ociip-countdown--hero.is-live {
    background: rgba(220, 38, 38, 0.28) !important;
    border-color: #ff6b6b !important;
    color: #ffffff !important;
    animation: ociip-countdown-pulse 1.4s ease-in-out infinite;
}

@keyframes ociip-countdown-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.68; }
}


/* ============================================================
   MENU BADGES — unread notification counters
   ============================================================ */
.ociip-menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    margin-left: 6px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.3px;
    border-radius: 50px;
    line-height: 1;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(220,38,38,0.4), 0 0 0 2px rgba(255,255,255,0.6);
    animation: ociip-badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: -apple-system, system-ui, sans-serif;
}

@keyframes ociip-badge-pop {
    0%   { transform: scale(0.3); opacity: 0; }
    70%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}