.fmaf-app,
.fmaf-panel-cta,
.fmaf-login-card {
    --fmaf-blue: #176be8;
    --fmaf-blue-dark: #0b3f97;
    --fmaf-navy: #0a1d3d;
    --fmaf-purple: #7047eb;
    --fmaf-cyan: #32c7f2;
    --fmaf-green: #0b9f63;
    --fmaf-border: #d9e5f5;
    --fmaf-soft: #f3f7ff;
    --fmaf-muted: #60718a;
    --fmaf-shadow: 0 20px 55px rgba(18, 66, 130, .13);
    font-family: inherit;
    box-sizing: border-box;
}

.fmaf-app *,
.fmaf-panel-cta *,
.fmaf-login-card * {
    box-sizing: border-box;
}

.fmaf-app {
    position: relative;
    left: 50%;
    width: min(1210px, calc(100vw - 36px));
    max-width: none;
    margin: 36px 0;
    transform: translateX(-50%);
    color: var(--fmaf-navy);
}

.fmaf-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 244px;
    padding: clamp(28px, 5vw, 62px);
    overflow: hidden;
    border-radius: 32px 32px 0 0;
    color: #fff;
    background:
        radial-gradient(circle at 84% 38%, rgba(43, 200, 244, .32), transparent 22%),
        radial-gradient(circle at 62% 115%, rgba(113, 71, 235, .4), transparent 34%),
        linear-gradient(130deg, #071a3c 0%, #0b3f97 56%, #176be8 100%);
}

.fmaf-hero::before,
.fmaf-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .8);
    box-shadow: 87px 26px rgba(255,255,255,.35), 178px -13px rgba(255,255,255,.7), 274px 45px rgba(255,255,255,.3), 362px 5px rgba(255,255,255,.55), 456px 72px rgba(255,255,255,.3), 557px 18px rgba(255,255,255,.7), 650px 57px rgba(255,255,255,.4), 740px 6px rgba(255,255,255,.55), 844px 61px rgba(255,255,255,.3), 945px 12px rgba(255,255,255,.55);
}

.fmaf-hero::before { top: 28px; left: 30px; }
.fmaf-hero::after { bottom: 34px; left: 120px; transform: scale(.62); opacity: .7; }

.fmaf-hero-copy { position: relative; z-index: 2; max-width: 720px; }

.fmaf-hero h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(38px, 6vw, 67px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.fmaf-hero p {
    max-width: 670px;
    margin: 0;
    color: #dceaff;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.55;
}

.fmaf-orbit {
    position: relative;
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    margin-left: 35px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 50%;
    box-shadow: inset 0 0 34px rgba(50,199,242,.15), 0 0 70px rgba(50,199,242,.19);
    animation: fmaf-float 5s ease-in-out infinite;
}

.fmaf-orbit::before,
.fmaf-orbit::after {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px dashed rgba(255,255,255,.22);
    border-radius: 50%;
}

.fmaf-orbit::after { inset: 45px; border-style: solid; }

.fmaf-orbit > span {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255,255,255,.72);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #7047eb, #176be8);
    box-shadow: 0 0 32px rgba(111, 118, 255, .72);
    font-size: 30px;
    font-weight: 900;
}

.fmaf-orbit i {
    position: absolute;
    top: 7px;
    left: 73px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #7df3b9;
    box-shadow: 0 0 18px #7df3b9;
}

.fmaf-orbit i:last-child { top: auto; bottom: 19px; left: 15px; width: 10px; height: 10px; background: #ffd86f; box-shadow: 0 0 16px #ffd86f; }

@keyframes fmaf-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }

.fmaf-panel {
    padding: clamp(23px, 4vw, 46px);
    border: 1px solid var(--fmaf-border);
    border-top: 0;
    border-radius: 0 0 32px 32px;
    background: #fff;
    box-shadow: var(--fmaf-shadow);
}

.fmaf-label {
    display: block;
    margin-bottom: 10px;
    color: #263a58;
    font-size: 14px;
    font-weight: 800;
}

.fmaf-label small { color: var(--fmaf-muted); font-weight: 500; }

.fmaf-grades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.fmaf-grade,
.fmaf-action {
    appearance: none;
    font: inherit;
    cursor: pointer;
}

.fmaf-grade {
    min-height: 52px;
    padding: 10px 16px;
    border: 1px solid var(--fmaf-border);
    border-radius: 14px;
    color: #334761;
    background: #f8faff;
    font-weight: 800;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.fmaf-grade:hover { transform: translateY(-2px); border-color: #9cc4ff; }
.fmaf-grade.is-active { border-color: var(--fmaf-blue); color: #fff; background: linear-gradient(135deg, var(--fmaf-blue), #405eea); box-shadow: 0 8px 20px rgba(23,107,232,.24); }

.fmaf-form-row { display: grid; grid-template-columns: minmax(230px, .55fr) minmax(0, 1.75fr); gap: 18px; margin-top: 25px; }
.fmaf-control { min-width: 0; }

.fmaf-control select,
.fmaf-control input {
    width: 100%;
    min-height: 55px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--fmaf-border);
    border-radius: 14px;
    outline: 0;
    color: var(--fmaf-navy);
    background: #fbfcff;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.fmaf-control select:focus,
.fmaf-control input:focus,
.fmaf-grade:focus-visible,
.fmaf-action:focus-visible,
.fmaf-card-link:focus-visible,
.fmaf-panel-cta a:focus-visible {
    outline: 3px solid rgba(50,199,242,.38);
    outline-offset: 2px;
    border-color: var(--fmaf-blue);
}

.fmaf-control input::placeholder { color: #8b9bb0; }

.fmaf-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 26px; }

.fmaf-action {
    position: relative;
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    min-height: 82px;
    padding: 15px;
    border: 1px solid var(--fmaf-border);
    border-radius: 17px;
    text-align: left;
    color: var(--fmaf-navy);
    background: #fff;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.fmaf-action:hover { transform: translateY(-3px); border-color: #9cc4ff; box-shadow: 0 10px 25px rgba(15, 64, 126, .1); }
.fmaf-action > span { grid-row: 1 / 3; display: grid; place-items: center; align-self: center; width: 38px; height: 38px; border-radius: 12px; color: var(--fmaf-blue); background: #eaf3ff; font-size: 20px; font-weight: 900; }
.fmaf-action b { align-self: end; font-size: 15px; }
.fmaf-action small { align-self: start; margin-top: 2px; color: var(--fmaf-muted); font-size: 12px; }
.fmaf-action.is-primary { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--fmaf-purple), var(--fmaf-blue)); box-shadow: 0 12px 24px rgba(62, 86, 222, .23); }
.fmaf-action.is-primary > span { color: #fff; background: rgba(255,255,255,.17); }
.fmaf-action.is-primary small { color: #dce9ff; }
.fmaf-action:disabled { cursor: wait; opacity: .62; transform: none; }
.fmaf-action.is-loading::after { content: ""; position: absolute; top: 9px; right: 9px; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.42); border-top-color: currentColor; border-radius: 50%; animation: fmaf-spin .7s linear infinite; }

@keyframes fmaf-spin { to { transform: rotate(360deg); } }

.fmaf-status { min-height: 0; margin: 18px 4px 0; color: var(--fmaf-muted); font-weight: 700; text-align: center; }
.fmaf-status.is-loading { min-height: 50px; padding: 14px; }
.fmaf-status.is-error { min-height: 50px; padding: 14px; border: 1px solid #ffd3d0; border-radius: 14px; color: #a6261d; background: #fff4f2; }

.fmaf-results {
    margin-top: 24px;
    padding: clamp(23px, 4vw, 42px);
    border: 1px solid var(--fmaf-border);
    border-radius: 28px;
    background: linear-gradient(180deg, #f6f9ff 0, #fff 270px);
    box-shadow: 0 14px 36px rgba(18,66,130,.09);
}

.fmaf-results[hidden] { display: none; }
.fmaf-results-head { max-width: 760px; }
.fmaf-results-kicker { color: var(--fmaf-blue); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.fmaf-results-head h2 { margin: 7px 0 6px; color: var(--fmaf-navy); font-size: clamp(25px, 4vw, 38px); line-height: 1.15; letter-spacing: -.025em; }
.fmaf-results-head p { margin: 0; color: var(--fmaf-muted); font-size: 16px; line-height: 1.55; }

.fmaf-personal { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 15px 17px; border: 1px solid #cfe1fb; border-radius: 15px; background: #eef6ff; }
.fmaf-personal.is-focus { border-color: #f4d18f; background: #fff8e8; }
.fmaf-personal.is-success { border-color: #aee2ca; background: #edfbf5; }
.fmaf-personal-icon { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: var(--fmaf-blue); font-weight: 900; }
.fmaf-personal.is-focus .fmaf-personal-icon { background: #e48a0a; }
.fmaf-personal.is-success .fmaf-personal-icon { background: var(--fmaf-green); }
.fmaf-personal p { flex: 1; margin: 0; color: #314765; line-height: 1.45; }
.fmaf-personal a { white-space: nowrap; color: var(--fmaf-blue-dark); font-weight: 800; }

.fmaf-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 22px 0 0; list-style: none; counter-reset: none; }
.fmaf-steps li { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 12px 14px; border: 1px solid var(--fmaf-border); border-radius: 14px; background: #fff; }
.fmaf-steps span { flex: 0 0 31px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #fff; background: var(--fmaf-blue); font-size: 13px; font-weight: 900; }
.fmaf-steps b { font-size: 14px; line-height: 1.3; }

.fmaf-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 25px; }
.fmaf-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--fmaf-border); border-radius: 20px; background: #fff; box-shadow: 0 8px 22px rgba(23, 62, 115, .07); transition: transform .2s ease, box-shadow .2s ease; }
.fmaf-card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(23,62,115,.13); }
.fmaf-card-media { position: relative; display: grid; place-items: center; height: 135px; overflow: hidden; background: linear-gradient(135deg, #e4efff, #f3edff); }
.fmaf-card-media::after { content: ""; position: absolute; width: 90px; height: 90px; border: 1px solid rgba(23,107,232,.17); border-radius: 50%; box-shadow: 0 0 0 22px rgba(23,107,232,.05), 0 0 0 42px rgba(112,71,235,.035); }
.fmaf-card-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.fmaf-card-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--fmaf-blue), var(--fmaf-purple)); box-shadow: 0 12px 30px rgba(60,73,210,.3); font-size: 29px; }
.fmaf-type-oyun .fmaf-card-media { background: linear-gradient(135deg, #e5fbf4, #e8f5ff); }
.fmaf-type-test .fmaf-card-media,
.fmaf-type-deneme .fmaf-card-media { background: linear-gradient(135deg, #fff5d9, #eef4ff); }
.fmaf-card-body { padding: 18px; }
.fmaf-card-type { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: var(--fmaf-blue-dark); background: #eaf3ff; font-size: 11px; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; }
.fmaf-type-oyun .fmaf-card-type { color: #05734a; background: #ddf8ed; }
.fmaf-type-test .fmaf-card-type,
.fmaf-type-deneme .fmaf-card-type { color: #976000; background: #fff0c5; }
.fmaf-card h3 { margin: 11px 0 7px; color: var(--fmaf-navy); font-size: 18px; line-height: 1.28; }
.fmaf-card p { margin: 0; color: var(--fmaf-muted); font-size: 13px; line-height: 1.5; }
.fmaf-card-link { display: inline-flex; align-items: center; margin-top: 15px; color: var(--fmaf-blue); font-size: 14px; font-weight: 900; text-decoration: none; }
.fmaf-card-link:hover { color: var(--fmaf-purple); }

.fmaf-empty { padding: 44px 20px 22px; text-align: center; }
.fmaf-empty > span { font-size: 48px; }
.fmaf-empty h3 { margin: 9px 0 5px; font-size: 21px; }
.fmaf-empty p { margin: 0; color: var(--fmaf-muted); }

.fmaf-disclosure { display: flex; align-items: flex-start; gap: 10px; max-width: 900px; margin: 17px auto 0; padding: 0 15px; color: #697b92; font-size: 12px; line-height: 1.5; }
.fmaf-disclosure > span { color: var(--fmaf-blue); font-size: 16px; }
.fmaf-disclosure p { margin: 0; }
.fmaf-disclosure strong { color: #3c506c; }

.fmaf-panel-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1180px; margin: 22px auto; padding: 24px 28px; overflow: hidden; border-radius: 22px; color: #fff; background: radial-gradient(circle at 88% 20%, rgba(50,199,242,.33), transparent 25%), linear-gradient(125deg, #0a275b, #176be8); box-shadow: var(--fmaf-shadow); }
.fmaf-panel-cta > div { max-width: 720px; }
.fmaf-panel-cta div > span { color: #8ae8ff; font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.fmaf-panel-cta strong { display: block; margin-top: 5px; color: #fff; font-size: clamp(20px, 3vw, 28px); line-height: 1.2; }
.fmaf-panel-cta p { margin: 5px 0 0; color: #d7e8ff; }
.fmaf-panel-cta a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 12px; color: var(--fmaf-blue-dark); background: #fff; font-weight: 900; text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.15); }

.fmaf-login-card { width: min(720px, calc(100% - 28px)); margin: 36px auto; padding: 35px; border: 1px solid var(--fmaf-border); border-radius: 24px; text-align: center; background: #fff; box-shadow: var(--fmaf-shadow); }
.fmaf-login-card h2 { margin: 0 0 7px; color: var(--fmaf-navy); }
.fmaf-login-card p { color: var(--fmaf-muted); }
.fmaf-login-card a { display: inline-block; padding: 12px 18px; border-radius: 11px; color: #fff; background: var(--fmaf-blue); font-weight: 800; text-decoration: none; }
.fmaf-admin-note { padding: 12px; border: 1px solid #f0cc7a; background: #fff8df; }

@media (max-width: 940px) {
    .fmaf-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fmaf-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fmaf-orbit { flex-basis: 130px; width: 130px; height: 130px; }
    .fmaf-orbit i { left: 58px; }
}

@media (max-width: 700px) {
    .fmaf-app { width: min(1210px, calc(100vw - 22px)); margin: 18px 0; }
    .fmaf-hero { min-height: 220px; padding: 29px 23px; border-radius: 23px 23px 0 0; }
    .fmaf-orbit { position: absolute; right: -40px; bottom: -44px; opacity: .34; }
    .fmaf-hero-copy { max-width: calc(100% - 10px); }
    .fmaf-hero h1 { font-size: 39px; }
    .fmaf-panel { padding: 22px 17px; border-radius: 0 0 23px 23px; }
    .fmaf-grades { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .fmaf-form-row { grid-template-columns: 1fr; gap: 16px; }
    .fmaf-actions { grid-template-columns: 1fr; gap: 9px; }
    .fmaf-action { min-height: 72px; }
    .fmaf-results { padding: 22px 16px; border-radius: 22px; }
    .fmaf-personal { align-items: flex-start; flex-wrap: wrap; }
    .fmaf-personal p { flex-basis: calc(100% - 50px); }
    .fmaf-personal a { margin-left: 46px; }
    .fmaf-steps { grid-template-columns: 1fr; }
    .fmaf-card-grid { grid-template-columns: 1fr; }
    .fmaf-card-media { height: 150px; }
    .fmaf-panel-cta { align-items: flex-start; flex-direction: column; margin: 18px 9px; padding: 22px; border-radius: 19px; }
    .fmaf-panel-cta a { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .fmaf-app *, .fmaf-panel-cta * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
