/* Auto‑generated CSS to replace inline style attributes */

/* Guides */
.margin-bottom-20-max-100 {
    margin-bottom: 20px;
    max-width: 100%;
}
.vertical-align-bottom {
    vertical-align: bottom;
}
.email-link {
    color: blue;
}

@font-face {
    font-family: 'Aileron';
    src: url("../webfonts/Aileron-Bold-webfont.woff") format('woff'); /* Pretty Modern Browsers */
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url("../webfonts/Aileron-BoldItalic-webfont.woff") format('woff'); /* Pretty Modern Browsers */
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url("../webfonts/Aileron-Heavy-webfont.woff") format('woff'); /* Pretty Modern Browsers */
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url("../webfonts/Aileron-HeavyItalic-webfont.woff") format('woff'); /* Pretty Modern Browsers */
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}
/* Main page */
.bg-cheat-sheet {
    background-image: url('../images/bg_cheat_sheet.svg');
}
.font-size-12 {
    font-size: 12px;
    line-height: 18px;
}
.display-contents {
    display: contents;
}
.bg-free {
    background-image: url('../images/bg-free.svg');
}
.bg-expert {
    background-image: url('../images/bg-expert.svg');
}
.bg-pro {
    background-image: url('../images/bg-pro.svg');
}
.bg-race {
    background-image: url('../images/bg-race.svg');
}

/* Button background color used in pricing cards */
.bg-92124c {
    background-color: #92124C;
}

/* Helper classes for navbar and buttons */
.pricing-link {
    color: #AA1939;
}

.btn-line {
    line-height: 1;
}

.btn-signout {
    color: #212529;
}

.btn-signup {
    background-color: #012138;
    color: white;
}

/* Instagram embed helper classes */
.insta-embed {
    background: #FFF;
    border: 0;
    border-radius: 3px;
    box-shadow: 0 0 1px 0 rgba(0,0,0,0.5), 0 1px 10px 0 rgba(0,0,0,0.15);
    margin: 1px;
    max-width: 540px;
    min-width: 326px;
    padding: 0;
    width: 99.375%;
    width: -webkit-calc(100% - 2px);
    width: calc(100% - 2px);
}
.insta-inner {
    padding: 16px;
}
.insta-content {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.insta-avatar {
    background-color: #F4F4F4;
    border-radius: 50%;
    flex-grow: 0;
    height: 40px;
    margin-right: 14px;
    width: 40px;
}
.insta-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
}
.insta-text div {
    background-color: #F4F4F4;
    border-radius: 4px;
    flex-grow: 0;
    height: 14px;
    margin-bottom: 6px;
    width: 100px;
}
.insta-text div:last-child {
    margin-bottom: 0;
    width: 60px;
}

.logo-width {
    width: 110px;
}

.m-0 {
    margin: 0;
}

/* Navbar / button inline style replacements */
.pricing-link {
    color: #AA1939;
}

.btn-line {
    line-height: 1;
}

.btn-signout {
    line-height: 1;
    color: #212529;
}

.btn-signup {
    line-height: 1;
    background-color: #012138;
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROFILE PAGE — single-card layout
   Design tokens mirror the React my-profile component and the app UI.
   ═══════════════════════════════════════════════════════════════════════════ */

.up-page {
    min-height: calc(100vh - 64px);
    background: #e8eff5;
    display: flex;
    justify-content: center;
    padding: 36px 16px 48px;
    font-family: "Open Sans", sans-serif;
}

/* ── Card shell ────────────────────────────────────────────────────────── */

.up-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 0 rgba(0,33,56,0.04), 0 6px 24px rgba(0,33,56,0.09);
    width: 100%;
    max-width: 560px;
    align-self: flex-start;
    overflow: hidden;
}

/* ── Card header: avatar + name + badge ───────────────────────────────── */

.up-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px 22px;
    border-bottom: 1px solid #eef3f7;
}

.up-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e4f0f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.up-avatar svg {
    width: 28px;
    height: 28px;
    color: #3a6880;
}

.up-header__name {
    font-size: 15px;
    font-weight: 700;
    color: #01182a;
    margin: 0 0 5px;
    line-height: 1.2;
}

.up-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 10px;
}

.up-badge--free   { background: #fff0f3; color: #aa1939; }
.up-badge--expert { background: #e4f7ee; color: #0e6e40; }
.up-badge--pro    { background: #e4f7ee; color: #0e6e40; }

/* ── Flash messages ───────────────────────────────────────────────────── */

.up-flashes {
    padding: 0 28px;
}

.up-alert {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.up-alert--danger  { background: #fff0f3; color: #aa1939; border: 1px solid #f5c6cf; }
.up-alert--success { background: #e4f7ee; color: #0e6e40; border: 1px solid #b8e8cc; }

/* ── Section containers ───────────────────────────────────────────────── */

.up-section {
    padding: 22px 28px;
    border-bottom: 1px solid #eef3f7;
}

.up-section:last-child {
    border-bottom: none;
}

.up-section__title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #7a9bb0;
    margin: 0 0 16px;
}

/* ── Form elements ────────────────────────────────────────────────────── */

.up-form-group {
    margin-bottom: 14px;
}

.up-form-group:last-child {
    margin-bottom: 0;
}

.up-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #5a7f98;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 5px;
}

.up-input {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #cde3ef;
    border-radius: 8px;
    background: #f7fbfd;
    font: 400 13px/1 "Open Sans", sans-serif;
    color: #01182a;
    outline: none;
    transition: border-color 0.12s ease, background 0.12s ease;
    box-sizing: border-box;
}

.up-input:focus {
    border-color: #039edb;
    background: #ffffff;
}

.up-input.is-invalid {
    border-color: #e04060;
}

.up-error {
    font-size: 11.5px;
    color: #aa1939;
    margin-top: 4px;
}

.up-divider {
    border: none;
    border-top: 1px solid #eef3f7;
    margin: 18px 0;
}

/* Google / OAuth notice */
.up-oauth-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f4f9fc;
    border: 1px solid #cde3ef;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: #3a5a72;
    line-height: 1.5;
    margin-top: 14px;
}

.up-oauth-notice i {
    font-size: 18px;
    color: #4285F4;
    flex-shrink: 0;
}

/* Save button */
.up-btn-save {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 22px;
    background: #014d72;
    color: #ffffff;
    font: 700 13px/1 "Open Sans", sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s ease;
    margin-top: 6px;
}

.up-btn-save:hover { background: #012138; }

/* ── Subscription section ─────────────────────────────────────────────── */

/* Current plan row */
.up-plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.up-plan-name {
    font-size: 15px;
    font-weight: 700;
    color: #01182a;
}

.up-plan-meta {
    font-size: 12px;
    color: #7a9bb0;
    margin-top: 2px;
}

/* Feature checklist */
.up-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.up-feature {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #2a4a60;
    line-height: 1.4;
}

.up-feature::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e4f7ee url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8l2.5 2.5L12 5' stroke='%230e6e40' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Upgrade pricing cards (free users) */
.up-pricing-intro {
    font-size: 13px;
    color: #3a5a72;
    margin: 0 0 20px;
    line-height: 1.6;
}

.up-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.up-plan-card {
    border: 1px solid #cde3ef;
    border-radius: 10px;
    padding: 18px 16px;
    position: relative;
    background: #ffffff;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.up-plan-card:hover {
    border-color: #039edb;
    box-shadow: 0 2px 12px rgba(3,158,219,0.10);
}

.up-plan-card--featured {
    border-color: #014d72;
    background: #f4f9fc;
}

.up-plan-card__pill {
    position: absolute;
    top: -1px;
    right: 14px;
    background: #014d72;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 0 0 7px 7px;
}

.up-plan-card__name {
    font-size: 13px;
    font-weight: 700;
    color: #01182a;
    margin: 0 0 2px;
}

.up-plan-card__price {
    font-size: 22px;
    font-weight: 800;
    color: #014d72;
    line-height: 1.1;
    margin-bottom: 12px;
}

.up-plan-card__price span {
    font-size: 12px;
    font-weight: 500;
    color: #7a9bb0;
}

.up-plan-card__features {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.up-plan-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12px;
    color: #3a5a72;
    line-height: 1.4;
}

.up-plan-card__features li::before {
    content: '✓';
    color: #039edb;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.up-btn-upgrade {
    display: block;
    width: 100%;
    height: 36px;
    border: none;
    border-radius: 7px;
    font: 700 12.5px/36px "Open Sans", sans-serif;
    cursor: pointer;
    transition: background 0.12s ease;
    text-align: center;
    text-decoration: none;
}

.up-btn-upgrade--primary {
    background: #014d72;
    color: #ffffff;
}

.up-btn-upgrade--primary:hover {
    background: #012138;
    color: #ffffff;
}

.up-btn-upgrade--outline {
    background: transparent;
    color: #014d72;
    border: 1.5px solid #014d72;
}

.up-btn-upgrade--outline:hover {
    background: #f0f7fb;
    color: #014d72;
}

/* Manage billing / cancel row */
.up-billing-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef3f7;
    font-size: 12px;
}

.up-billing-upgrade-hint {
    font-size: 12px;
    color: #7a9bb0;
}

.up-link {
    color: #039edb;
    text-decoration: none;
}

.up-link:hover { text-decoration: underline; color: #039edb; }

.up-link--danger { color: #aa1939; }
.up-link--danger:hover { color: #d01f42; text-decoration: underline; }

.up-stripe-note {
    font-size: 11px;
    color: #9ab8cc;
    margin-top: 16px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.up-stripe-note i {
    font-size: 22px;
    color: #635bff;
}

/* Upgrade-hint button (unstyled, inline) */
.up-btn-inline {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

/* Modal body */
.up-modal-body {
    font-size: 14px;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 540px) {
    .up-page { padding: 16px 10px 32px; }
    .up-card { border-radius: 10px; }
    .up-header, .up-section { padding-left: 18px; padding-right: 18px; }
    .up-flashes { padding: 0 18px; }
    .up-pricing-grid { grid-template-columns: 1fr; }
}
