@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

        :root {
            --slate-900: #0f172a;
            --slate-800: #1e293b;
            --slate-700: #334155;
            --slate-400: #94a3b8;
            --emerald-500: #10b981;
            --emerald-600: #059669;
            --gold-500: #fbbf24;
            --white: #ffffff;
            --bg: #f8fafc;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }

        
.main-container{
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--slate-900);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}
        .container {
            width: 100%;
            max-width: 600px;
            background: var(--white);
            border-radius: 24px;
            box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
            overflow: hidden;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .header {
            background: var(--slate-900);
            color: var(--white);
            padding: 2.5rem 2rem;
            text-align: center;
        }

        .header h1 {
            font-size: 1.875rem;
            font-weight: 700;
            letter-spacing: -0.025em;
            margin-bottom: 0.5rem;
        }

        .header p { color: #94a3b8; font-size: 0.875rem; }

        .content { padding: 2.5rem 2rem; }

        .input-group { margin-bottom: 1.5rem; }

        .input-group label {
            display: block;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--slate-700);
            margin-bottom: 0.5rem;
        }

        .input-wrapper { position: relative; }

        .input-wrapper span {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--slate-400);
            font-weight: 500;
        }

        input {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 2rem;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 1rem;
            font-family: inherit;
            transition: all 0.2s;
            outline: none;
        }

        input:focus {
            border-color: var(--emerald-500);
            box-shadow: 0 0 0 4px rgba(16,185,129,0.1);
        }

        input.no-symbol { padding-left: 1rem; }

        input.input-error { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,0.1); }

        .error-msg {
            font-size: 0.78rem;
            color: #ef4444;
            margin-top: 4px;
            display: none;
        }
        .error-msg.visible { display: block; }

        /* Results */
        .results {
            background: #f1f5f9;
            border-radius: 16px;
            padding: 2rem;
            margin-top: 2rem;
            display: none;
        }

        .results.active {
            display: block;
            animation: slideUp 0.4s ease-out;
        }

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(10px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .result-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #e2e8f0;
        }

        .result-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

        .result-label { font-size: 0.875rem; color: var(--slate-700); font-weight: 500; }

        .result-value { font-size: 1.25rem; font-weight: 700; color: var(--slate-900); }

        .result-value.highlight { color: var(--emerald-600); font-size: 2rem; }

        .result-value.muted { font-size: 1rem; color: var(--slate-700); font-weight: 600; }

        /* Inline copy feedback */
        .copy-feedback {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.78rem;
            color: var(--emerald-600);
            font-weight: 600;
            opacity: 0;
            transition: opacity 0.3s;
            margin-left: 8px;
        }
        .copy-feedback.visible { opacity: 1; }

        .warning-box {
            background: #fffbeb;
            border: 1px solid #fde68a;
            color: #92400e;
            padding: 1rem;
            border-radius: 12px;
            margin-top: 1.5rem;
            font-size: 0.875rem;
            display: none;
        }

        .warning-box.active { display: flex; align-items: center; gap: 0.75rem; }

        .actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-top: 2rem;
        }

        button {
            cursor: pointer;
            padding: 0.875rem;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.875rem;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            border: none;
        }

        .btn-primary {
            background: var(--emerald-500);
            color: white;
            grid-column: span 2;
            font-size: 1rem;
            padding: 1rem;
        }

        .btn-primary:hover { background: var(--emerald-600); transform: translateY(-1px); }

        .btn-secondary { background: var(--slate-800); color: white; }
        .btn-secondary:hover { background: var(--slate-900); }

        .btn-outline {
            background: transparent;
            border: 2px solid #e2e8f0;
            color: var(--slate-700);
        }
        .btn-outline:hover { background: #f8fafc; border-color: #cbd5e1; }

        /* Rate Card */
        #rate-card-template {
            position: absolute;
            left: -9999px;
            width: 800px;
            height: 450px;
            background: var(--slate-900);
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px;
            text-align: center;
        }

        .card-brand { font-size: 1.5rem; color: var(--gold-500); margin-bottom: 2rem; font-weight: 700; }
        .card-rate { font-size: 5rem; font-weight: 800; color: var(--emerald-500); line-height: 1; margin-bottom: 1rem; }
        .card-label { font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; }

        /* ── SEO CONTENT BLOCK ─────────────────────────────────────
           Prefix: amfhr__ (Albert Master Freelance Hourly Rate)
           Fully isolated — no conflict with any include or global CSS
        ──────────────────────────────────────────────────────────── */
        .amfhr__wrapper {
            --amfhr-green:   #059669;
            --amfhr-green-l: #d1fae5;
            --amfhr-blue:    #2563eb;
            --amfhr-amber:   #d97706;
            --amfhr-red:     #dc2626;
            --amfhr-black:   #0f172a;
            --amfhr-white:   #ffffff;
            --amfhr-bg:      #f8fafc;
            --amfhr-surface: #ffffff;
            --amfhr-border:  #e2e8f0;
            --amfhr-muted:   #64748b;
            --amfhr-text:    #1e293b;

            font-family: 'Inter', ui-sans-serif, sans-serif;
            background: var(--amfhr-bg);
            color: var(--amfhr-text);
            padding: 64px 20px;
            box-sizing: border-box;
            max-width: 100%;
            width: 100%;
            margin-top: 48px;
        }

        .amfhr__wrapper * { box-sizing: border-box; }
        .amfhr__inner { width: 95%; margin: 0 auto; }

        /* Dividers */
        .amfhr__divider {
            display: flex; align-items: center; gap: 14px;
            margin: 52px 0 30px;
        }
        .amfhr__divider-line { flex: 1; height: 1px; background: var(--amfhr-border); }
        .amfhr__divider-dot {
            width: 8px; height: 8px; border-radius: 50%;
            background: var(--amfhr-green); flex-shrink: 0;
        }

        /* Typography */
        .amfhr__h2 {
            font-size: 1.55rem; font-weight: 800; color: var(--amfhr-black);
            margin: 0 0 6px; line-height: 1.2; letter-spacing: -0.02em;
        }
        .amfhr__h2 span { color: var(--amfhr-green); }

        .amfhr__lead {
            font-size: 0.97rem; color: var(--amfhr-muted);
            margin: 0 0 22px; line-height: 1.65;
        }

        .amfhr__body {
            font-size: 0.97rem; line-height: 1.78;
            color: #334155; margin: 0 0 16px;
        }
        .amfhr__body strong { color: var(--amfhr-black); font-weight: 600; }

        /* Hero */
        .amfhr__hero {
            background: linear-gradient(135deg, #064e3b 0%, #0f172a 55%, #1e3a5f 100%);
            border-radius: 16px; padding: 44px 40px; margin-bottom: 48px;
            position: relative; overflow: hidden;
        }
        .amfhr__hero::after {
            content: '$/hr';
            position: absolute; right: -10px; top: -20px;
            font-size: 9rem; font-weight: 800;
            color: rgba(255,255,255,0.04);
            line-height: 1; pointer-events: none; user-select: none;
        }
        .amfhr__hero-tag {
            display: inline-block;
            background: rgba(16,185,129,0.25); color: #6ee7b7;
            font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
            text-transform: uppercase; padding: 4px 12px;
            border-radius: 20px; margin-bottom: 14px;
        }
        .amfhr__hero-title {
            font-size: 2rem; font-weight: 800; color: #fff;
            line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em;
        }
        .amfhr__hero-title span { color: #6ee7b7; }
        .amfhr__hero-body {
            font-size: 0.95rem; color: rgba(255,255,255,0.65);
            line-height: 1.65; margin: 0; max-width: 560px;
        }

        /* Stat cards */
        .amfhr__stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 12px; margin: 24px 0;
        }
        .amfhr__stat {
            background: var(--amfhr-surface); border: 1px solid var(--amfhr-border);
            border-radius: 12px; padding: 18px 16px; text-align: center;
            position: relative; overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .amfhr__stat:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
        .amfhr__stat::after {
            content: ''; position: absolute; bottom: 0; left: 0; right: 0;
            height: 3px; background: var(--amfhr-green);
        }
        .amfhr__stat-val {
            font-size: 1.8rem; font-weight: 800; color: var(--amfhr-green);
            line-height: 1; margin-bottom: 5px;
        }
        .amfhr__stat-lbl {
            font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
            letter-spacing: 0.06em; color: var(--amfhr-muted);
        }

        /* Formula */
        .amfhr__formula {
            background: #ecfdf5; border: 1px solid #a7f3d0;
            border-radius: 12px; padding: 22px 26px; margin: 22px 0;
        }
        .amfhr__formula-title {
            font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
            text-transform: uppercase; color: var(--amfhr-green); margin: 0 0 12px;
        }
        .amfhr__formula-row {
            display: flex; align-items: baseline; gap: 10px;
            font-size: 0.93rem; color: var(--amfhr-black);
            margin-bottom: 8px; flex-wrap: wrap;
        }
        .amfhr__formula-row:last-child { margin-bottom: 0; }
        .amfhr__formula-label { color: var(--amfhr-muted); min-width: 230px; font-size: 0.88rem; }
        .amfhr__formula-val { font-weight: 700; color: var(--amfhr-green); }

        /* Steps */
        .amfhr__steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
            gap: 14px; margin: 22px 0;
        }
        .amfhr__step {
            background: var(--amfhr-surface); border: 1px solid var(--amfhr-border);
            border-radius: 12px; padding: 20px;
            transition: box-shadow 0.2s;
        }
        .amfhr__step:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
        .amfhr__step-num {
            display: inline-flex; align-items: center; justify-content: center;
            width: 28px; height: 28px; border-radius: 8px;
            background: var(--amfhr-green); color: #fff;
            font-size: 0.78rem; font-weight: 800; margin-bottom: 10px;
        }
        .amfhr__step-title {
            font-size: 0.9rem; font-weight: 700; color: var(--amfhr-black); margin: 0 0 5px;
        }
        .amfhr__step-body {
            font-size: 0.84rem; color: var(--amfhr-muted); line-height: 1.6; margin: 0;
        }

        /* Table */
        .amfhr__table-wrap {
            overflow-x: auto; margin: 22px 0; border-radius: 12px;
            border: 1px solid var(--amfhr-border);
        }
        .amfhr__table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
        .amfhr__table thead tr { background: var(--amfhr-black); color: #fff; }
        .amfhr__table th {
            padding: 12px 16px; text-align: left;
            font-size: 0.72rem; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.07em;
        }
        .amfhr__table td {
            padding: 12px 16px; border-bottom: 1px solid var(--amfhr-border);
            color: var(--amfhr-text); vertical-align: top;
        }
        .amfhr__table tbody tr:last-child td { border-bottom: none; }
        .amfhr__table tbody tr:nth-child(even) td { background: #f8fafc; }
        .amfhr__table tbody tr:hover td { background: #ecfdf5; }

        .amfhr__badge {
            display: inline-block; padding: 2px 9px; border-radius: 20px;
            font-size: 0.72rem; font-weight: 700;
        }
        .amfhr__badge-green { background: #d1fae5; color: #065f46; }
        .amfhr__badge-blue  { background: #dbeafe; color: #1d4ed8; }
        .amfhr__badge-amber { background: #fef3c7; color: #92400e; }
        .amfhr__badge-red   { background: #fee2e2; color: #991b1b; }

        /* Callout */
        .amfhr__callout {
            border-left: 4px solid var(--amfhr-green);
            background: #ecfdf5; border-radius: 0 10px 10px 0;
            padding: 18px 22px; margin: 24px 0;
        }
        .amfhr__callout p {
            font-size: 1rem; font-weight: 600; color: var(--amfhr-black);
            line-height: 1.5; margin: 0;
        }
        .amfhr__callout span {
            display: block; font-size: 0.8rem; font-weight: 500;
            color: var(--amfhr-muted); margin-top: 5px;
        }

        /* Warning */
        .amfhr__warn {
            border-left: 4px solid var(--amfhr-amber);
            background: #fffbeb; border-radius: 0 10px 10px 0;
            padding: 16px 20px; margin: 20px 0;
            display: flex; gap: 12px; align-items: flex-start;
        }
        .amfhr__warn-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
        .amfhr__warn-text { font-size: 0.88rem; color: #78350f; line-height: 1.6; margin: 0; }
        .amfhr__warn-text strong { color: #92400e; }

        /* Rate examples */
        .amfhr__examples {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 14px; margin: 22px 0;
        }
        .amfhr__example {
            background: var(--amfhr-surface); border: 1px solid var(--amfhr-border);
            border-radius: 12px; padding: 20px;
        }
        .amfhr__example-role {
            font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.07em; color: var(--amfhr-green); margin: 0 0 6px;
        }
        .amfhr__example-rate {
            font-size: 1.6rem; font-weight: 800; color: var(--amfhr-black);
            margin: 0 0 4px; line-height: 1;
        }
        .amfhr__example-range {
            font-size: 0.8rem; color: var(--amfhr-muted); margin: 0;
        }

        /* FAQ */
        .amfhr__faq-list { display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
        .amfhr__faq-item {
            background: var(--amfhr-surface); border: 1px solid var(--amfhr-border);
            border-radius: 12px; overflow: hidden;
        }
        .amfhr__faq-q {
            width: 100%; background: none; border: none; text-align: left;
            padding: 18px 22px; font-family: inherit; font-size: 0.95rem;
            font-weight: 600; color: var(--amfhr-black); cursor: pointer;
            display: flex; justify-content: space-between; align-items: center;
            gap: 12px; transition: background 0.15s;
        }
        .amfhr__faq-q:hover { background: #f8fafc; }
        .amfhr__faq-icon {
            flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
            background: var(--amfhr-green); color: #fff;
            font-size: 0.9rem; font-weight: 800;
            display: flex; align-items: center; justify-content: center;
            transition: transform 0.25s, background 0.2s;
        }
        .amfhr__faq-item.amfhr__open .amfhr__faq-icon {
            transform: rotate(45deg); background: var(--amfhr-red);
        }
        .amfhr__faq-a {
            max-height: 0; overflow: hidden;
            transition: max-height 0.35s ease;
            padding: 0 22px;
        }
        .amfhr__faq-item.amfhr__open .amfhr__faq-a { max-height: 500px; }
        .amfhr__faq-a p {
            font-size: 0.9rem; line-height: 1.75; color: #475569;
            margin: 0 0 18px;
        }
        .amfhr__faq-a strong { color: var(--amfhr-black); }

        /* Disclaimer */
        .amfhr__disclaimer {
            background: #f1f5f9; border: 1px solid var(--amfhr-border);
            border-radius: 12px; padding: 20px 24px; margin-top: 48px;
            display: flex; gap: 14px; align-items: flex-start;
        }
        .amfhr__disclaimer-icon { font-size: 1.2rem; flex-shrink: 0; }
        .amfhr__disclaimer-text {
            font-size: 0.82rem; color: var(--amfhr-muted); line-height: 1.65; margin: 0;
        }
        .amfhr__disclaimer-text strong { color: var(--amfhr-text); }

        @media (max-width: 640px) {
            .actions { grid-template-columns: 1fr; }
            .btn-primary { grid-column: span 1; }
            .amfhr__hero { padding: 28px 22px; }
            .amfhr__hero-title { font-size: 1.5rem; }
            .amfhr__h2 { font-size: 1.3rem; }
            .amfhr__stats { grid-template-columns: repeat(2,1fr); }
        }