@import "fonts.css";
@import "./components/buttons.css";
@import "./components/master-card.css";
@import "./components/practices.css";
@import "./components/knowledge.css";
@import "./components/tarot.css";
@import "./components/modal.css";
@import "./components/profile.css";
@import "./components/auth.css";
@import "./components/form.css";
@import "./components/ask-universe.css";
@import "./components/verify-code.css";

/* Miniapp theme additions */
:root {
    --venera-green: #4A7155;
    --venera-green-2: #2a4f3f;
    --venera-mint: #e7efe7;
    --venera-white: #ffffff;
    --venera-white-2: #FCFCFD;
    --venera-yellow: #facc15;
    --venera-text: #1f2937;
    --venera-muted: #6b7280;
    --venera-violet: #D9D9FF;
    --venera-violet-2: #6666FF;
    --venera-black: #2E2E2E;
    --venera-red: #ED4747;
}

*::-webkit-scrollbar {
    display: none;
}

/* links */
a,
.link {
    text-decoration: none;
    font-size: 14px;
    line-height: 16px;
    color: var(--venera-black);
    transition: all ease-in-out 0.3s;
}

a:hover,
.link:hover {
    color: var(--venera-green);
    transition: all ease-in-out 0.3s;
}

.link_red {
    color: var(--venera-red);
}

.link_red:hover {
    color: var(--venera-red);
}

#guestSection {
    margin-bottom: -76px;
}

/* Venera Miniapp Styles */
body {
    background: #f6f7fb;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0;
    padding: 0;
    /*padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));*/
}

    /* Bottom tabbar */
.tabbar-wrap { 
    position: fixed; 
    left: 0; 
    right: 0;
    bottom: 0;
    display: flex; 
    justify-content: center; 
    pointer-events: none; 
    z-index: 100;
}

.tabbar { 
    width: 100%; 
    max-width: 375px;
    background: #1f1f26; 
    color: #c9cbd3; 
    border-radius: 12px 12px 0 0; 
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 8px; 
    box-shadow: 0 -2px 12px rgba(0,0,0,.15); 
    pointer-events: auto; 
}

.tabbar a { 
    flex: 1; 
    text-decoration: none; 
    color: inherit; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 4px; 
    padding: 6px 0; 
    border-radius: 12px; 
    font-size: 12px; 
}

.tabbar a .icon { 
    width: 22px; 
    height: 22px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 180%;
}

.tabbar a.active { 
    color: #ffffff; 
    background: rgba(255,255,255,.06); 
}

.tabbar .fab { 
    position: absolute; 
    bottom: 24px; 
    width: 56px; 
    height: 56px; 
    background: #e9edf0; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 8px 20px rgba(0,0,0,.25); 
    left: 50%; 
    transform: translateX(-50%); 
    border: 6px solid #1f1f26; 
}

.tabbar .fab span { 
    font-size: 22px; 
    color: #2a4f3f; 
}

.auth-container {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 375px;
    box-shadow: 0 0 10px #ccc;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 76px;
    position: relative;
}

.auth-container.overlay {
    overflow-y: hidden;
    padding-bottom: 0;
}

.auth-container.overlay::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: inherit;
    height: inherit;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    z-index: 200;
}

.auth-container > *:last-child:not(.modal) {
    /*margin-bottom: -26px;*/
    /*padding-bottom: 42px;*/
    min-height: 100%;
    position: relative;
}

.auth-container > *:last-child:not(.modal)::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 100%;
    height: 26px;
    background: inherit;
}

.auth-header { 
    text-align: center; 
    /*margin-bottom: 16px;*/
}

.auth-header h1 { 
    font-weight: 700; 
    font-size: 22px; 
    margin: 0 0 4px; 
}

.auth-header p { 
    color: #6b7280; 
    margin: 0; 
}

.form-floating { 
    margin-bottom: 12px;
    position: relative;
}

.form-floating > .form-control,
.form-floating > .form-select { 
    height: 54px; 
    border-radius: 12px;
    background: var(--venera-violet);
    box-shadow: none !important;
}

input:-webkit-autofill,
input:-webkit-autofill::first-line {
    background-color: transparent !important;
    color: inherit !important;
}

input:-webkit-autofill {
    transition: background-color 5000s ease-in-out 0s;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border: 1px solid var(--venera-green);
}

.form-select:focus,
.form-control:focus {
    box-shadow: none;
    border: 1px solid var(--venera-violet-2) !important;
    color: var(--venera-violet-2);
}

input:focus {
    box-shadow: none;
    border: 1px solid var(--venera-violet-2) !important;
    color: var(--venera-violet-2);
}

.form-floating>.form-control-plaintext~label::after,
.form-floating>.form-control:focus~label::after,
.form-floating>.form-control:not(:placeholder-shown)~label::after,
.form-floating>.form-select~label::after {
    background: var(--venera-violet);
}

.form-control.is-invalid {
    background: transparent;
    border: 1px solid var(--venera-red);
    box-shadow: none;
}

.form-control.is-invalid:focus {
    box-shadow: none;
    border: 1px solid var(--venera-red) !important;
}

.form-basic {
    width: 100%;
}

.form-basic .form-control {
    background: #F6F6F6;
    border: 1px solid #EFEFEF;
    padding: 10px;
    font-size: 14px;
    line-height: 14px;
}

.form-basic.form-basic_select {
    appearance: none;
    position: relative;
}

.form-basic.form-basic_select::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 16px;
    width: 8px;
    height: 4px;
    background: url("/media/icons/arrow-down.svg") no-repeat center;
}

.location-icon {
    position: relative;
}

.location-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 16px;
    background: url("/media/icons/globe.svg") no-repeat center;
    width: 14px;
    height: 14px;
}

.location-icon .form-control {
    padding-left: 38px;
}

.form-basic .form-control::placeholder {
    color: #A8A8A8;
}

.form-basic label {
    color: #606060;
    font-size: 12px;
    line-height: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-check { 
    margin: 16px 0 24px;
}

.divider { 
    text-align: center; 
    margin: 20px 0; 
    color: #9ca3af; 
}

.divider::before { 
    content: ""; 
    display: block; 
    height: 1px; 
    background: #eef0f4; 
    margin-bottom: 8px; 
}

.divider::after { 
    content: ""; 
    display: block; 
    height: 1px; 
    background: #eef0f4; 
    margin-top: 8px; 
}

#alert-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 375px;
    width: 100%;
    z-index: 300;
}

#alert-container .btn-close {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 1;
}

.alert { 
    border-radius: 12px; 
    margin-bottom: 16px;
}

.miniapp-card {
    width: 100%;
    background: var(--venera-white);
    border-radius: 16px;
    margin-top: 32px;
}

.page-section {
    padding: 16px;
}

.hero-card {
    background: var(--venera-green);
    color: var(--venera-white);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.hero-card__img {
    position: absolute;
    right: -30%;
    top: -40%;
    width: 268px;
    height: 218px;
}

.hero-card__title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    font-family: "Nyght Serif", serif;
    font-feature-settings: 'ss01' on;
}

.hero-card .cta {
    background: var(--venera-white);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--venera-green);
    text-align: center;
    font-weight: 600;
    display: block;
    text-decoration: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--venera-white);
    background: var(--venera-green);
    padding: 0 8px;
    border-radius: 12px 12px 0 0;
}

.section-title { 
    font-weight: 500;
    font-size: 30px;
    padding: 12px 0;
    font-family: 'Nyght Serif', serif;
}

.section-body {
    background: var(--venera-green);
    border-radius: 0 0 12px 12px;
    padding: 12px 8px 8px;
}

.masters-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
}

.master-card {
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    border: none;
}

.master-card .photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #e5e7eb;
}

.master-card .body { 
    padding: 10px 12px; 
}

.master-card .name { 
    font-weight: 700; 
    font-size: 15px; 
    margin: 4px 0; 
}

.master-card .tags { 
    color: var(--venera-muted); 
    font-size: 12px; 
}

.master-card .meta { 
    display: flex; 
    gap: 8px; 
    font-size: 12px; 
    margin: 6px 0 8px; 
}

.master-card .btn { 
    width: 100%; 
    border-radius: 10px; 
    padding: 8px 10px; 
}

/* === Shared miniapp styles === */
.title-green {
    font-family: 'Nyght Serif', serif;
    font-size: 30px;
    font-weight: 500;
    color: #fff;
    margin: 18px 4px 10px; 
}

.icon-btn { 
    width: 42px;
    height: 42px;
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #E8F5EB;
    color: #2a4f3f;
    transition: all ease-in-out 0.3s;
    border: 1px solid transparent;
}

.icon-btn:hover {
    border-color: var(--venera-green);
    background: transparent;
    transition: all ease-in-out 0.3s;
}

.points-pill { 
    background: var(--venera-green);
    color: var(--venera-white-2);
    border-radius: 30px;
    padding: 4px 10px; 
    font-weight: 600; 
    font-size: 12px; 
    display: inline-flex;
    align-items: center; 
    gap: 6px; 
}

.promo-card { 
    position: relative; 
    overflow: hidden; 
}

.scroll-row { 
    display: flex; 
    gap: 14px; 
    overflow-x: auto; 
    padding: 6px 2px; 
}

.scroll-row::-webkit-scrollbar { 
    display: none; 
}

.seek-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-width: 84px; 
}

.seek-item .circle { 
    width: 64px; 
    height: 64px; 
    border-radius: 50%; 
    background: #e7e3f5; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 28px; 
    color: #2a4f3f; 
}

.seek-item .label { 
    margin-top: 8px; 
    color: #fff; 
    font-size: 12px; 
    text-align: center; 
}

/* Full-height section utility for auth-like pages */
.fill-screen-section {
    border-radius: 16px;
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 60px;
    padding-bottom: 300px;
    position: relative;
    /*overflow: hidden;*/
    margin: 0;
}

.img-planet {
    position: absolute;
    bottom: 50px;
    left: -160px;
}

.img-sun {
    position: absolute;
    bottom: -95px;
    right: -75px;
}

h1,.h1 {
    font-weight: 700;
    font-size: 32px;
    line-height: 38px;
    color: var(--venera-black);
    margin-bottom: 0;
    font-family: 'Nyght Serif', serif;
}

.wrapper-star {
    position: relative;
}

.wrapper-star__small .wrapper-star__left img:nth-child(1) {
    top: 31px;
}

.wrapper-star__small .wrapper-star__right img:nth-child(1) {
    top: -10px;
}

.wrapper-star__left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.wrapper-star__left img:nth-child(1) {
    position: absolute;
    top: 28px;
    left: 10px;
}

.wrapper-star__left img:nth-child(2) {
    position: absolute;
    top: -16px;
    left: 40px;
    transform: scale(0.7);
}

.wrapper-star__right {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
}

.wrapper-star__right img:nth-child(1) {
    position: absolute;
    top: -22px;
    right: 10px;
}

.wrapper-star__right img:nth-child(2) {
    position: absolute;
    top: 26px;
    right: 16px;
}

.wrapper-star__right img:nth-child(3) {
    position: absolute;
    top: 0;
    right: 50px;
    transform: scale(0.6) rotate(-15deg);
}

.form-check-label {
    font-size: 14px;
}

.form-check-input:checked {
    background-color: var(--venera-green);
    border-color: var(--venera-green);
}

.section-more {
    color: var(--venera-white-2);
    font-size: 14px;
    position: relative;
    padding-right: 17px;
    text-decoration: none;
    transition: all ease-in-out 0.3s;
}

.section-more::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 8px;
    height: 14px;
    background: url("/media/icons/arrow-right-green.svg") no-repeat;
    background-size: contain;
}

.section-more:hover {
    opacity: 0.7;
    transition: all ease-in-out 0.3s;
}

.profile-top-info {
    position: relative;
    overflow: hidden;
}

.profile-top-info::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 30px;
    height: 41px;
    background: url("/media/icons/star-green-top.svg") no-repeat;
    background-size: 30px 41px;
}

.profile-top-info::before {
    content: '';
    position: absolute;
    top: 5px;
    right: -12px;
    width: 47px;
    height: 96px;
    background: url("/media/icons/long-star.svg") no-repeat;
    background-size: contain;
}

.b-underline {
    width: 100%;
    position: relative;
    padding-bottom: 28px;
}

.b-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -16px;
    width: calc(100% + 32px);
    height: 1px;
    background: #E8E8E8;
}

h3,
.h3 {
    font-size: 20px;
    line-height: 20px;
    font-weight: 600;
}

.form-label {
    font-size: 12px;
    line-height: 12px;
    margin-bottom: 8px;
    color: #606060;
}

input[type=time] {
    position: relative;
    padding-left: 38px !important;
}

input[type=time]::-webkit-calendar-picker-indicator {
    background: url("/media/icons/alarm.svg") no-repeat center;
    position: absolute;
    left: 0;
    cursor: pointer;
}

input[type=time]:focus::-webkit-calendar-picker-indicator {
    background: url("/media/icons/alarm-focus.svg") no-repeat center;
}