:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #080d18; color: #eef3ff; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 75% 0%, rgba(43, 95, 211, .2), transparent 42%), radial-gradient(ellipse at 10% 90%, rgba(86, 52, 180, .16), transparent 38%), #080d18; }
button, input { font: inherit; }
.auth-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 18px; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: #f2f6ff; font-size: 14px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.auth-brand img { width: 34px; height: 34px; object-fit: contain; }
.auth-brand strong { color: #75a9ff; }
.auth-card { width: min(100%, 440px); border: 1px solid rgba(139, 169, 232, .18); border-radius: 24px; padding: clamp(24px, 6vw, 38px); background: linear-gradient(145deg, rgba(20, 32, 57, .97), rgba(12, 19, 35, .98)); box-shadow: 0 26px 80px rgba(0, 0, 0, .42); }
.auth-mark { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 14px; background: linear-gradient(140deg, #347bff, #824bfa); color: white; font-weight: 900; box-shadow: 0 8px 24px rgba(65, 115, 255, .35); }
.auth-eyebrow { margin: 0 0 8px; color: #75a7ff; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.auth-card h1 { margin: 0; color: #f1f5ff; font-size: clamp(27px, 7vw, 34px); line-height: 1.12; letter-spacing: -.05em; }
.auth-intro { margin: 11px 0 23px; color: #9aabc8; font-size: 13px; line-height: 1.6; }
.auth-form { display: grid; gap: 9px; }
.auth-form label { margin-top: 7px; color: #b7c4dc; font-size: 11px; font-weight: 700; }
.auth-form input { width: 100%; min-height: 46px; border: 1px solid rgba(143, 170, 218, .2); border-radius: 11px; padding: 0 13px; outline: none; background: #0a1428; color: #f2f6ff; }
.auth-form input:focus { border-color: #548cff; box-shadow: 0 0 0 3px rgba(75, 130, 245, .17); }
.auth-form input::placeholder { color: #7486a5; }
.auth-button { width: 100%; min-height: 47px; display: flex; align-items: center; justify-content: center; margin-top: 12px; border: 0; border-radius: 12px; background: linear-gradient(105deg, #3478ff, #7847f1); color: white; font-weight: 800; cursor: pointer; box-shadow: 0 9px 25px rgba(52, 108, 244, .28); }
.auth-button:hover { filter: brightness(1.12); }
.auth-button:disabled { cursor: wait; opacity: .65; }
.auth-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 17px; }
.auth-link-button { border: 0; padding: 4px 0; background: none; color: #84adff; font-size: 11px; font-weight: 700; cursor: pointer; }
.auth-link-button:hover, .back-link:hover { color: #c3d8ff; }
.auth-message { margin: 0 0 14px; border: 1px solid rgba(77, 210, 177, .23); border-radius: 10px; padding: 11px 12px; background: rgba(48, 191, 160, .09); color: #a2ebdd; font-size: 12px; line-height: 1.5; }
.auth-message.error { border-color: rgba(255, 117, 147, .24); background: rgba(255, 100, 138, .08); color: #ffb0c0; }
.auth-message[hidden], .session-card[hidden] { display: none; }
.session-card { margin: 18px 0; border: 1px solid rgba(101, 153, 255, .2); border-radius: 14px; padding: 14px; background: rgba(52, 107, 217, .1); color: #aabbd8; font-size: 12px; }
.session-card p { margin: 0 0 10px; }.session-card strong { color: #eef4ff; }
.session-card .auth-button { margin-top: 10px; }.session-card .auth-link-button { display: block; margin: 12px auto 0; }
.auth-privacy { margin: 20px 0 0; color: #8192b1; font-size: 10px; line-height: 1.6; }
.back-link { display: inline-block; margin-top: 22px; color: #91a6c9; font-size: 11px; text-decoration: none; }
.auth-footer { margin: 19px 0 0; color: #687a9a; font-size: 10px; }
.consent-details { display: grid; gap: 10px; margin: 20px 0; border: 1px solid rgba(143,170,218,.13); border-radius: 14px; padding: 15px; background: rgba(5,11,24,.42); }
.consent-details div { display: grid; gap: 4px; }.consent-details dt { color: #8498ba; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }.consent-details dd { overflow-wrap: anywhere; margin: 0; color: #e0eaff; font-size: 12px; }
.consent-scopes { margin: 7px 0 0; padding-left: 18px; color: #b8c7e1; font-size: 12px; line-height: 1.7; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.consent-actions button { min-height: 44px; border: 1px solid rgba(143,170,218,.2); border-radius: 11px; background: #14203a; color: #c9d7ef; font-weight: 700; cursor: pointer; }
.consent-actions button.primary { border-color: transparent; background: linear-gradient(105deg,#3478ff,#7847f1); color: white; }
.consent-user { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; color: #9badca; font-size: 11px; }.consent-user strong { color: #edf4ff; }

.auth-provider-area[hidden] { display: none; }
.auth-provider-area { display: grid; gap: 14px; margin-bottom: 4px; }
.auth-button-google { min-height: 46px; margin-top: 0; border: 1px solid rgba(143,170,218,.22); background: #f8f9fc; color: #1c2432; box-shadow: none; }
.auth-button-google:hover { background: #fff; filter: none; }
.auth-button-google:disabled { color: #596273; }
.google-mark { width: 18px; height: 18px; margin-right: 10px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #8292ad; font-size: 10px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: rgba(143,170,218,.16); content: ''; }
.auth-divider span { white-space: nowrap; }

.profile-page{justify-content:flex-start;padding-top:52px}
.profile-card{width:min(100%,620px);border:1px solid rgba(139,169,232,.18);border-radius:24px;padding:clamp(24px,5vw,38px);background:linear-gradient(145deg,rgba(20,32,57,.97),rgba(12,19,35,.98));box-shadow:0 26px 80px rgba(0,0,0,.42)}
.profile-card h1{margin:0;color:#f1f5ff;font-size:clamp(28px,6vw,36px);letter-spacing:-.05em}
.profile-identity{display:flex;align-items:center;gap:16px;margin:25px 0 20px}
.profile-avatar-wrap{width:68px;height:68px;flex:0 0 68px;border:1px solid rgba(132,173,255,.28);border-radius:50%;overflow:hidden;background:linear-gradient(140deg,#347bff,#824bfa)}
.profile-avatar{width:100%;height:100%;object-fit:cover}
.profile-initials{display:grid;place-items:center;color:#fff;font-size:22px;font-weight:800}
.profile-copy h2{margin:0 0 7px;color:#f1f5ff;font-size:20px;overflow-wrap:anywhere}
.profile-status{display:inline-flex;align-items:center;gap:7px;color:#a8e8d0;font-size:11px;font-weight:700}
.profile-status i{width:7px;height:7px;border-radius:50%;background:#58dda8;box-shadow:0 0 10px rgba(88,221,168,.7)}
.profile-details{display:grid;gap:1px;margin:0 0 25px;border:1px solid rgba(143,170,218,.13);border-radius:14px;overflow:hidden;background:rgba(5,11,24,.38)}
.profile-details div{display:grid;grid-template-columns:125px 1fr;gap:12px;padding:14px;border-bottom:1px solid rgba(143,170,218,.1)}
.profile-details div:last-child{border-bottom:0}
.profile-details dt{color:#8498ba;font-size:11px;font-weight:700}
.profile-details dd{margin:0;color:#e0eaff;font-size:12px;overflow-wrap:anywhere}
.profile-label{margin:0 0 9px;color:#8498ba;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.profile-products{display:grid;gap:9px}
.profile-product-link{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 14px;border:1px solid rgba(143,170,218,.14);border-radius:12px;background:rgba(9,18,36,.52);text-decoration:none}
.profile-product-link span{display:grid;gap:3px}.profile-product-link strong{color:#eaf1ff;font-size:12px}.profile-product-link small{color:#8b9cbc;font-size:10px}
.profile-product-link>b{color:#84adff;font-size:20px}
.profile-product-link:hover{border-color:rgba(132,173,255,.4);background:rgba(45,82,161,.14)}
.profile-signout{margin-top:19px}
@media(max-width:480px){.profile-details div{grid-template-columns:1fr;gap:5px}}
