/* public/css/portals.css — the three portals on the website (iPhone home-screen app):
   portal chooser, portal-themed sign-in pages, "awaiting approval" and the
   digital marketing pages. Loaded after auth-app.css. Colours match the app. */

:root {
    --portal-a: #667eea;
    --portal-b: #764ba2;
    --portal-deep: #5b5fe0;
    --portal-soft: rgba(102, 126, 234, .12);
    --portal-ring: rgba(102, 126, 234, .18);
}
body.portal-customer { --portal-a: #2D6BF5; --portal-b: #0D247A; --portal-deep: #1D48B8; --portal-soft: rgba(45, 107, 245, .10); --portal-ring: rgba(45, 107, 245, .2); }
body.portal-merchant { --portal-a: #F59E0B; --portal-b: #DC4A0B; --portal-deep: #C2410C; --portal-soft: rgba(245, 158, 11, .12); --portal-ring: rgba(220, 74, 11, .18); }
body.portal-digital  { --portal-a: #8B5CF6; --portal-b: #DB2777; --portal-deep: #6D28D9; --portal-soft: rgba(139, 92, 246, .10); --portal-ring: rgba(139, 92, 246, .2); }

/* ---------------------------------------------------------------- themed auth pages */
body[class*="portal-"] .auth-hero { background: linear-gradient(135deg, var(--portal-a) 0%, var(--portal-b) 100%); position: relative; }
body[class*="portal-"] .btn-primary {
    background: linear-gradient(135deg, var(--portal-a) 0%, var(--portal-b) 100%);
    box-shadow: 0 8px 20px var(--portal-ring);
}
body[class*="portal-"] a:not(.btn) { color: var(--portal-deep); }
body[class*="portal-"] .form-control:focus { border-color: var(--portal-a); box-shadow: 0 0 0 .2rem var(--portal-ring); }
/* auth-app.css colours every link; links styled as buttons keep the button colours. */
body.auth-wrapper a.btn-primary { color: #fff; }
body.auth-wrapper a.btn-light { color: #1f2340; }

.portal-back {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + .75rem);
    right: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff !important;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(6px);
}
.portal-back:hover { background: rgba(255, 255, 255, .28); }
.portal-hero-art { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 12px 26px rgba(15, 18, 60, .28); }
.portal-hero-badge {
    display: inline-block;
    margin-top: .5rem;
    padding: .15rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    font-size: .8rem;
    font-weight: 700;
}

/* ---------------------------------------------------------------- portal chooser */
.portals { max-width: 560px; margin: -3rem auto 0; padding: 0 1rem calc(env(safe-area-inset-bottom, 0px) + 1.5rem); position: relative; }
.portals-heading {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(31, 35, 64, .12);
    padding: 1.1rem 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
}
.portals-heading h1 { font-size: 1.3rem; font-weight: 800; margin: 0 0 .2rem; color: #1f2340; }
.portals-heading p { margin: 0; color: #6b7090; font-size: .92rem; }
.portal-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 22px;
    padding: 1rem;
    margin-bottom: .85rem;
    box-shadow: 0 8px 26px rgba(31, 35, 64, .08);
    border: 1px solid #eef0f6;
    color: #1f2340 !important;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.portal-card:hover, .portal-card:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(31, 35, 64, .14); }
.portal-card img { width: 72px; height: 72px; border-radius: 20px; flex-shrink: 0; box-shadow: 0 8px 18px rgba(31, 35, 64, .18); }
.portal-card-body { flex: 1; min-width: 0; }
.portal-card-title { font-size: 1.08rem; font-weight: 800; line-height: 1.35; }
.portal-card-subtitle { color: #6b7090; font-size: .86rem; line-height: 1.5; margin-top: .1rem; }
.portal-card-badge {
    display: inline-block;
    margin-top: .4rem;
    padding: .12rem .6rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 800;
}
.portal-card-go {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .9rem;
}
.portal-card--digital .portal-card-badge, .portal-card--digital .portal-card-go { background: rgba(139, 92, 246, .12); color: #6D28D9; }
.portal-card--customer .portal-card-go { background: rgba(45, 107, 245, .1); color: #1D48B8; }
.portal-card--merchant .portal-card-badge, .portal-card--merchant .portal-card-go { background: rgba(245, 158, 11, .14); color: #C2410C; }
.portals-alert { border-radius: 16px; }
.portals-footer { text-align: center; font-size: .85rem; color: #8a8fac; margin-top: 1.25rem; }
.portals-footer a { color: #6b7090 !important; font-weight: 700; text-decoration: none; margin: 0 .35rem; }

/* ---------------------------------------------------------------- switch portal / pending */
.portal-switch {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    margin-bottom: 1rem;
}
.portal-switch img { width: 40px; height: 40px; border-radius: 12px; }
.portal-switch .btn { padding: .45rem .9rem; font-size: .88rem; white-space: nowrap; box-shadow: none; }
/* Coloured like the portal it offers. */
.portal-switch--customer { background: #eff4ff; border-color: #c7d7fe; }
body.auth-wrapper .portal-switch--merchant .btn { background: linear-gradient(135deg, #F59E0B, #DC4A0B); }
body.auth-wrapper .portal-switch--customer .btn { background: linear-gradient(135deg, #2D6BF5, #0D247A); }
.pending-icon {
    width: 92px;
    height: 92px;
    margin: 1.25rem auto .5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--portal-soft);
    color: var(--portal-deep);
    font-size: 2.4rem;
    position: relative;
}
.pending-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed var(--portal-ring);
}
.pending-steps { list-style: none; padding: 0; margin: 1.25rem 0; }
.pending-steps li { display: flex; gap: .75rem; align-items: flex-start; padding: .55rem 0; }
.pending-steps .step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    background: #eef0f6;
    color: #8a8fac;
}
.pending-steps .done .step-dot { background: #dcfce7; color: #15803d; }
.pending-steps .current .step-dot { background: var(--portal-soft); color: var(--portal-deep); }
.pending-steps .step-title { font-weight: 800; }
.pending-steps .step-text { color: #6b7090; font-size: .86rem; }

/* ---------------------------------------------------------------- digital marketing */
.digital-page { max-width: 760px; margin: -3rem auto 0; padding: 0 1rem calc(env(safe-area-inset-bottom, 0px) + 6rem); position: relative; }
.digital-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 26px rgba(31, 35, 64, .08);
    border: 1px solid #eef0f6;
    padding: 1.1rem;
    margin-bottom: 1rem;
}
.digital-about { color: #4a4f6e; line-height: 1.8; margin: 0; }
.digital-quote { border-inline-start: 4px solid #8B5CF6; padding: .5rem .85rem; margin: .85rem 0 0; color: #6b7090; font-style: italic; background: #faf7ff; border-radius: 0 12px 12px 0; }
.digital-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.digital-stat { background: #fff; border-radius: 18px; padding: .8rem .5rem; text-align: center; border: 1px solid #eef0f6; box-shadow: 0 6px 18px rgba(31, 35, 64, .06); }
.digital-stat strong { display: block; font-size: 1.35rem; font-weight: 900; background: linear-gradient(135deg, #8B5CF6, #DB2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.digital-stat span { color: #6b7090; font-size: .78rem; font-weight: 700; }
.digital-section-title { font-size: 1.1rem; font-weight: 800; margin: 1.25rem .25rem .75rem; color: #1f2340; }
.digital-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B5CF6, #DB2777);
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(219, 39, 119, .25);
}
.digital-icon.sm { width: 36px; height: 36px; border-radius: 11px; font-size: .95rem; }
.digital-service-head { display: flex; gap: .85rem; align-items: center; }
.digital-service-name { font-weight: 800; font-size: 1.05rem; color: #1f2340; margin: 0; }
.digital-service-desc { color: #6b7090; font-size: .9rem; line-height: 1.7; margin: .6rem 0; }
.digital-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.digital-tag { background: #f5f0ff; color: #6D28D9; border-radius: 999px; padding: .15rem .65rem; font-size: .76rem; font-weight: 700; }
.digital-from { color: #6b7090; font-size: .85rem; }
.digital-from strong { color: #1f2340; font-size: 1rem; }
.digital-actions { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.digital-actions .btn { flex: 1; min-width: 140px; }
.btn-digital { background: linear-gradient(135deg, #8B5CF6, #DB2777); color: #fff !important; border: 0; box-shadow: 0 8px 20px rgba(139, 92, 246, .3); }
.btn-digital:hover { filter: brightness(1.05); }
.btn-digital-outline { background: #fff; color: #6D28D9 !important; border: 1.5px solid #ddd0fb; }
.btn-digital-outline:hover { background: #faf7ff; }
.digital-cycles { display: inline-flex; background: #f1f2f8; border-radius: 999px; padding: .25rem; margin-bottom: .85rem; }
.digital-cycles button { border: 0; background: transparent; border-radius: 999px; padding: .4rem 1.1rem; font-weight: 800; color: #6b7090; font-size: .9rem; }
.digital-cycles button.active { background: #fff; color: #6D28D9; box-shadow: 0 3px 10px rgba(31, 35, 64, .1); }
.digital-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .85rem; }
.digital-plans[hidden] { display: none; }
.digital-plan { position: relative; background: #fff; border-radius: 20px; border: 1px solid #eef0f6; padding: 1rem; display: flex; flex-direction: column; }
.digital-plan.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #8B5CF6, #DB2777) border-box; }
.digital-plan-badge { position: absolute; top: -.7rem; left: 1rem; background: linear-gradient(135deg, #8B5CF6, #DB2777); color: #fff; border-radius: 999px; padding: .1rem .65rem; font-size: .72rem; font-weight: 800; }
.digital-plan-tier { font-weight: 800; color: #6D28D9; }
.digital-plan-price { font-size: 1.3rem; font-weight: 900; color: #1f2340; margin: .2rem 0 .1rem; }
.digital-plan-per { color: #8a8fac; font-size: .8rem; }
.digital-plan ul { list-style: none; padding: 0; margin: .75rem 0; flex: 1; }
.digital-plan li { font-size: .86rem; color: #4a4f6e; padding: .2rem 0; display: flex; gap: .45rem; }
.digital-plan li i { color: #16a34a; margin-top: .3rem; font-size: .75rem; }
.digital-plan-extra { font-size: .8rem; color: #b45309; background: #fffbeb; border-radius: 10px; padding: .35rem .6rem; margin-bottom: .6rem; }
.digital-rate-group { border-top: 1px solid #f0f1f7; padding-top: .75rem; margin-top: .75rem; }
.digital-rate-group:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.digital-rate { display: flex; gap: .75rem; align-items: center; padding: .55rem 0; border-bottom: 1px dashed #eef0f6; }
.digital-rate:last-child { border-bottom: 0; }
.digital-rate-label { flex: 1; font-size: .9rem; color: #1f2340; }
.digital-rate-note { display: block; color: #8a8fac; font-size: .78rem; }
.digital-rate-price { font-weight: 900; white-space: nowrap; }
.digital-rate .btn { padding: .3rem .75rem; font-size: .8rem; border-radius: 10px; }
.digital-note { font-size: .85rem; color: #6b7090; background: #faf7ff; border-radius: 14px; padding: .75rem .9rem; }
.digital-contact-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.digital-contact-links a { flex: 1 1 140px; display: flex; align-items: center; gap: .5rem; justify-content: center; border-radius: 14px; padding: .65rem; background: #f6f4ff; color: #4c1d95 !important; font-weight: 800; text-decoration: none; font-size: .9rem; }
.digital-contact-links a.wa { background: #e8f9ee; color: #15803d !important; }
.digital-why { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.digital-why div { background: #fff; border: 1px solid #eef0f6; border-radius: 18px; padding: .85rem; }
.digital-why b { color: #8B5CF6; font-size: .8rem; }
.digital-why h3 { font-size: .98rem; font-weight: 800; margin: .2rem 0; }
.digital-why p { color: #6b7090; font-size: .84rem; margin: 0; }
.digital-sticky {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    padding: .75rem 1rem calc(env(safe-area-inset-bottom, 0px) + .75rem);
    background: rgba(244, 245, 251, .92);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e6e8f2;
    z-index: 20;
}
.digital-sticky .btn { max-width: 728px; margin: 0 auto; display: block; }
.digital-modal .modal-content { border: 0; border-radius: 22px; }
.digital-modal .form-control { border-radius: 14px; font-size: 16px; }
.digital-modal .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 420px) {
    .portal-card img { width: 60px; height: 60px; border-radius: 17px; }
    .digital-stats strong { font-size: 1.15rem; }
}
