/*
 * Student account center. Values copied from the app's More and profile screens (zuolfa_flutter):
 * lib/features/settings/presentation/ui/more_screen.dart, widgets/more_card.dart, widgets/subscription_card.dart,
 * lib/features/student_profile/presentation/ui/student_profile_screen.dart, lib/core/theme/app_colors.dart.
 * Light only: the app has no dark mode.
 */
@font-face { font-family: "ExpoArabic"; font-weight: 400; font-display: swap; src: url("fonts/ExpoArabic-Book.woff2") format("woff2"); }
@font-face { font-family: "ExpoArabic"; font-weight: 500; font-display: swap; src: url("fonts/ExpoArabic-Medium.woff2") format("woff2"); }
@font-face { font-family: "ExpoArabic"; font-weight: 600; font-display: swap; src: url("fonts/ExpoArabic-SemiBold.woff2") format("woff2"); }

:root {
    --primary: #283D4B;
    --block-green: #20313C;
    --next-grey: #EDEDED;
    --next2-grey: #9E9E9E;
    --dark-gunmetal: #1B2933;
    --yankees-blue: #192B37;
    --red: #D03229;
    --white: #FFFFFF;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    font-family: "ExpoArabic", system-ui, sans-serif;
    font-size: 14px;
    color: var(--block-green);
    background: var(--primary) var(--background) center top / cover no-repeat fixed;
    -webkit-font-smoothing: antialiased;
}

/* One phone-wide column, as in the app; centred on wider screens. */
.column { max-width: 480px; min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }

/* Header of the More screen: a transparent bar with the title, 24/600 white. */
.title { color: var(--white); font-size: 24px; font-weight: 600; margin: 0; padding: 20px 8px 0; min-height: 80px; display: flex; align-items: center; padding-inline: 24px; }

/* Header of the profile screen: avatar 85, name 24/600, then "group" 16/600 + name 16/400, all white. */
.hero { color: var(--white); text-align: center; padding: 24px 24px 30px; }
.hero .avatar { width: 85px; height: 85px; border-radius: 50%; object-fit: cover; background: var(--white); display: block; margin: 0 auto; }
.hero .name { font-size: 24px; font-weight: 600; margin: 5px 0 0; }
.hero .group { font-size: 16px; font-weight: 400; margin: 8px 0 0; }
.hero .group b { font-weight: 600; }

/* The white sheet: rounded 20 at the top, 24 at the sides. */
.sheet { background: var(--white); border-radius: 20px 20px 0 0; padding: 20px 24px 120px; flex: 1; }

/* moreCard: 58 high, radius 20, border 3 / bottom 7, icon and label #20313C 14/500, chevron at the end. */
.row {
    display: flex; align-items: center; gap: 10px;
    width: 100%; min-height: 58px; margin: 4px 0; padding: 0 17px;
    background: var(--white); color: var(--block-green);
    border: 3px solid var(--next-grey); border-bottom-width: 7px; border-radius: 20px;
    font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; text-align: start; cursor: pointer;
    transition: transform 150ms, opacity 150ms;
}
.row:active { transform: scale(0.99); opacity: 0.75; }
.row .label { flex: 1; }
.row.danger { color: var(--red); border-color: var(--red); }
.row.danger .icon { background-color: var(--red); }

.icon { width: 24px; height: 24px; flex: none; background-color: var(--block-green); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.chevron { width: 24px; height: 24px; flex: none; fill: currentColor; }
[dir="rtl"] .chevron { transform: scaleX(-1); }

/* Profile fields: radius 15, border 3 / bottom 5, label #192B37 at 50 %, value 16/600, 9 below. */
.field { display: block; border: 3px solid var(--next-grey); border-bottom-width: 5px; border-radius: 15px; padding: 10px 16px; margin: 0 0 9px; background: var(--white); }
.field .label { display: block; font-size: 15px; color: rgba(25, 43, 55, 0.5); }
.field .value { display: block; font-size: 16px; font-weight: 600; color: var(--dark-gunmetal); overflow-wrap: anywhere; }
.field .value[dir="ltr"] { text-align: start; unicode-bidi: plaintext; }
.field.with-action { display: flex; align-items: center; gap: 10px; }
.field.with-action > div { flex: 1; min-width: 0; }
.field.error { border-color: var(--red); }
.pair { display: flex; gap: 14px; }
.pair .field { flex: 1; }
.note { font-size: 13px; color: var(--next2-grey); margin: -3px 4px 12px; }

.field input {
    display: block; width: 100%; border: 0; outline: 0; padding: 2px 0 0; background: transparent;
    font: inherit; font-size: 16px; font-weight: 600; color: var(--dark-gunmetal);
}
.field:focus-within { border-color: var(--primary); }

/* Save button of the profile: fill #283D4B, border #20313C 2.5 / bottom 4.5, radius 13, 15/600 white. */
.button {
    display: block; width: 100%; min-height: 45px; padding: 13px 15px;
    background: var(--primary); color: var(--white);
    border: 2.5px solid var(--block-green); border-bottom-width: 4.5px; border-radius: 13px;
    font: inherit; font-size: 15px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer;
}
.button:active { transform: scale(0.99); opacity: 0.75; }
.button.secondary { background: var(--white); color: var(--block-green); border-color: var(--next-grey); }
.small-button { border: 0; background: var(--next-grey); color: var(--block-green); border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

/* Subscription card: #EDEDED at 40 %, radius 20, border 2 / bottom 5; white inner panel with the progress bar. */
.subscription { background: rgba(237, 237, 237, 0.4); border: 2px solid var(--next-grey); border-bottom-width: 5px; border-radius: 20px; margin: 4px 0 4px; }
.subscription .head { display: flex; align-items: center; gap: 10px; padding: 14px 17px; font-weight: 500; }
.subscription .head .icon { background-color: var(--primary); }
.subscription .panel { background: var(--white); border-radius: 20px; padding: 24px 24px 12px; margin: 0 0 0; }
.progress { height: 25px; border: 5px solid var(--next-grey); border-radius: 25px; background: var(--white); padding: 3px 0; margin: 0 0 24px; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: 8px; }
.subscription .message { font-size: 11px; font-weight: 400; color: var(--primary); margin: 0 0 12px; }
.subscription .facts { font-size: 14px; color: var(--dark-gunmetal); margin: 0 0 12px; }
.subscription .facts b { font-weight: 600; }
.subscription .actions { display: grid; gap: 8px; margin: 0 0 12px; }

.section { margin: 24px 0 8px; font-size: 16px; font-weight: 600; color: var(--block-green); }

.alert { border-radius: 15px; padding: 12px 16px; margin: 0 0 12px; font-size: 14px; border: 3px solid; border-bottom-width: 5px; }
.alert.error { color: var(--red); border-color: var(--red); background: #FDF1F0; }
.alert.done { color: var(--primary); border-color: var(--next-grey); background: rgba(237, 237, 237, 0.4); }

.intro { font-size: 14px; color: var(--block-green); margin: 0 0 16px; line-height: 1.6; }
.or { text-align: center; color: var(--next2-grey); margin: 16px 0; }
.links { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 0; }
.links a, .links button { color: var(--primary); font: inherit; font-size: 14px; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.stores { display: flex; gap: 8px; }
.stores .button { flex: 1; }
form { margin: 0; }
