:root {
      --orange: #ff7417;
      --orange-dark: #e85d0a;
	  
      --cyan: #5eaab1;
      --cyan-dark: #36A3AD;

      --cream: #fffaf2;
      --ink: #25232a;
      --muted: #817b76;
      --card: rgba(255, 255, 255, 0.94);

      --shadow:
        0 25px 60px rgba(82, 39, 12, 0.16);
    }
	
*{
	box-sizing:border-box
}

html{
	font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}

body{
	margin:0;
	min-height:100vh;

	background:
		radial-gradient(
			circle at 10% 10%,
			#ffb347 0,
			transparent 28%
		),
		radial-gradient(
			circle at 90% 90%,
			#ff9a3c 0,
			transparent 30%
		),
		linear-gradient(
			145deg,
			#fff0dc 0%,
			#fff8ed 45%,
			#ffe7c8 100%
		);
	color:#222;
	transition:.25s
}

:where(a:visited){
    color:inherit
}

.site-header{
	display:flex;
	align-items:center;
    justify-content: space-between; /*justify-content:flex-end;*/
    /*flex-wrap:wrap;*/
    gap:12px 20px;
	padding:8px 5vw;
	/*background:#fff;
	border-bottom:1px solid #e9e9ef;*/
	position:sticky;
	top:0;
	z-index:10;
    margin-bottom: 10px;
    background: linear-gradient(132deg, #FCB31B, #FD6709);
    border-style: solid;
    border-width: 0px 0px 1px 0px;
    border-image: linear-gradient(228deg, #FCB31B, #FD6709) 1; /*
    border-bottom: 1px solid #FD6709;*/
    color: #02204B;
    font-size: large;
    font-weight: 600;
}

.brand{
	font-size:1.45rem;
	font-weight:850;
	color:inherit;
	text-decoration:none;
	letter-spacing:-.04em
}

.brand span{
	font-weight:650
}

.site-header nav{
	display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
	/*gap:20px*/
    gap: 0px;
}

.menu-toggle{
    display:none;
    width:42px;
    height:42px;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    margin-left:auto;
    padding:8px;
    border:1px solid currentColor;
    border-radius:10px;
    background:transparent;
    color:inherit;
    cursor:pointer;
}

.menu-toggle span{
    display:block;
    width:22px;
    height:2px;
    border-radius:2px;
    background:currentColor;
}

.site-header nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;             /* Centers the divider vertically */
  height: 60%;          /* Adjusts the height of the divider line */
}

.site-header nav a{
	color:inherit;
	text-decoration:none;
    position: relative;
    border-left: 1px solid #02204B; /* The divider line itself */
    border-right: 1px solid #02204B; /* The divider line itself */
    padding: 0px 10px;
    margin : 0px 0px;
}

.site-header nav a:is(:first-child) {
    border-left: 2px solid #02204B; /* The divider line itself */
}
.site-header nav a:is(:last-child) {
    border-right: 2px solid #02204B; /* The divider line itself */
}

.logo {
	width: 100%;
	height: 256px;
	overflow: hidden; /* Optional: hides overflow */
	margin-bottom: 35px;
}

.logo img {
	width: 100%;
    height: 100%;
    object-fit: contain; /* Options: cover, contain, fill, none, scale-down */
}

.container{
	width:min(1120px,90vw);
	margin:0 auto;	
	/*padding:56px 0;*/
}

.flash {
	background: #fff;
    border: 1px solid #e7e7ef;
    border-radius: 20px;
    padding: 17px;
    box-shadow: 0 12px 35px #2221;
    margin: 15px 0px;
}

.flash .success {
	color: #207040;
}

.flash .error {
	color: #8b2435;
}

.home-appinfo{
	text-align:center;
	padding:0px 0 70px;
}

.home-appinfo h1{
	font-size:clamp(2.5rem,7vw,5.5rem);
	letter-spacing:-.06em;
	margin:10px 0
}

.eyebrow{
	font-size:.75rem;
	font-weight:800;
	letter-spacing:.18em;
	text-transform:uppercase;
	opacity:.65
}

.actions{
	display:flex;
	gap:10px;
	flex-wrap:wrap
}

.home-appinfo .actions{
	justify-content:center
}

.button{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	border:0;
	border-radius:12px;
	padding:12px 18px;
	font:inherit;
	font-weight:750;
	text-decoration:none;
	cursor:pointer;
	transition:.15s
}

.button:hover{
	transform:translateY(-1px)
}

.primary{
	/*background:#ffae63;*/
	background:
        linear-gradient(
          135deg,
          var(--orange),
          var(--orange-dark)
        );
	color:#fff;
}

.secondary,.oauth{
	/*background:#ececf5;
	color:#29293a;
	*/
	background:
        linear-gradient(
          135deg,
          var(--cyan),
          var(--cyan-dark)
        );
	color:#fff;
}

button.good{
    background:#2b8646;;
    color:#fff;
}

button.bad{
    background:#862b2b;
    color:#fff;
}

.danger{
	background:#f6dfe3;
	color:#8b2435
}

.small{
	padding:8px 11px;
	font-size:.86rem
}

.grid{
	display:grid;
	gap:18px
}

.grid.two{
	grid-template-columns:repeat(2,minmax(0,1fr))
}

.grid.three{
	grid-template-columns:repeat(3,minmax(0,1fr))
}

.card,.auth-card,.form-card,.reward{
	background:#fff;
	border:1px solid #e7e7ef;
	border-radius:20px;
	padding:26px;
	box-shadow:0 12px 35px #2221;
    margin: 15px 0px;
}

.auth-card,.form-card{
	width:min(560px,100%);
	margin:0 auto
}

.auth-card form,.form-card form{
	display:grid;
	gap:16px
}

label{
	display:grid;
	gap:7px;
	font-weight:700
}

label:has(input[type=checkbox]),label:has(input[type=radio]){
	display:flex;
	align-items:center;
	gap:10px
}
label:has(input[type=checkbox]) > p,label:has(input[type=radio]) > p{
    max-width: calc(100% - 54px);
}
label > input[type=checkbox],label > input[type=radio]{
	width: 36px;
	height: 36px;
}

input,textarea,select{
	width:100%;
	border:1px solid #d8d8e2;
	border-radius:11px;
	padding:12px;
	font:inherit;
	background:#fff
}

textarea{
	resize:vertical
}

.divider{
	text-align:center;
	margin:22px 0;
	color:#777
}

.oauth-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:10px
}

.page-head{
	display:flex;
	justify-content:space-between;
	align-items:center;
	gap:20px;
	margin-bottom:25px
}

.task-list{
	display:grid;
	gap:10px
}

.task,.member{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:15px;
	padding:15px;
	border:1px solid #e9e9ef;
	border-radius:14px
}

.task small,.member span{
	display:block;
	color:#777;
	margin-top:4px
}

.paused{
	opacity:.65
}

.badge{
	padding:5px 9px;
	border-radius:999px;
	background:#ececf5;
	font-size:.8rem
}

.member{
	justify-content:flex-start
}

.member .actions{
	margin-left:auto
}

.reward{
	text-align:center
}

.reward-icon{
	font-size:2.2rem
}

.switch-row{
	display:flex;
	align-items:center;
	justify-content:space-between;
	margin-top:22px
}

.switch-row input{
	width:auto
}

.hidden{
	display:none
}

.site-footer{
	padding:35px 5vw;
    color: #02204B;
	display:flex;
	justify-content:space-between
}

.theme-adult{
	background:#420d3a;
	color:#eee;
}

.theme-adult .site-header,.theme-adult .card,.theme-adult .auth-card,.theme-adult .form-card,.theme-adult .reward{
	background:#2b2229;
	color:#eee;
	border-color:#4a3945
}

.theme-adult input,.theme-adult textarea,.theme-adult select{
	background:#201a1f;
	color:#eee;
	border-color:#5b4655
}

.theme-adult .primary{
	background:#a8758f;
}

.theme-adult .secondary,.theme-adult .oauth{
	background:#40303a;
	color:#eee;
}

.theme-adult .danger{
	background:#512e38;
	color:#ffdce4
}

.site-header > .logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: auto; /* Pushes the logo to the left */
}

.site-header > .logo-link img {
    height: 36px; /* Adjust the height as needed */
    width: auto;  /* Maintain aspect ratio */
}

@media(max-width:760px){
    .site-header{
        align-items:flex-start;
    }

    .menu-toggle{
        display:flex;
    }

    .site-header nav{
        display:none;
        width:100%;
        flex-direction:column;
        align-items:stretch;
        gap:0;
        padding-top:8px;
    }

    .site-header nav.is-open{
        display:flex;
    }

    .site-header nav a,
    .site-header nav a:is(:first-child),
    .site-header nav a:is(:last-child){
        border:0;
        border-top:1px solid currentColor;
        padding:12px 4px;
        text-align:right;
    }

    .site-header nav a:last-child{
        border-bottom:1px solid currentColor;
    }

	.grid.two,.grid.three{
		grid-template-columns:1fr
	}
	
	.page-head{
		align-items:flex-start;
		flex-direction:column
	}
	
	.site-footer{
		flex-direction:column;
		gap:8px
	}
	
	.task,.member{
		align-items:flex-start;
		flex-direction:column
	}
	
	.member .actions{
		margin-left:0
	}
	
	.oauth-grid{
		grid-template-columns:1fr
	}
	
	
}



















.member-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.member-card {
    padding: 22px;
    border-radius: 22px;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
    border: 1px solid;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.member-card:hover,
.member-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(0,0,0,.14);
    outline: none;
}

.member-card-family {
    background: #ffffff;
    border-color: #e4e4ee;
}

.member-card-adult {
    background:
        linear-gradient(
            145deg,
            #332532,
            #241923
        );
    border-color: #65465e;
    color: #fff;
    box-shadow:
        0 14px 35px rgba(45, 26, 43, .35);
}

.member-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.member-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 850;
    font-size: 1.35rem;
}

.member-avatar-family {
    background: #ececf5;
    color: #5149d7;
}

.member-avatar-adult {
    background:
        linear-gradient(
            145deg,
            #9c658d,
            #5b3555
        );
    color: #fff;
}

.member-card-title h2 {
    margin: 0;
}

.member-type {
    display: block;
    margin-top: 4px;
    font-size: .82rem;
    opacity: .7;
}

.member-parent {
    display: block;
    margin-top: 4px;
    font-size: .82rem;
    opacity: .7;
}


.member-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.dashboard-task-report {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid currentColor;
}

.dashboard-task-report small {
    opacity: .7;
}

.dashboard-task-report .actions {
    margin-top: 4px;
}

.adult-badge,
.family-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 750;
}

.adult-badge {
    background: #4a3045;
    color: #f2cfe8;
}

.family-badge {
    background: #eeeeF8;
    color: #55506f;
}

.member-arrow {
    font-size: 1.25rem;
    opacity: .65;
}

.task-card {
    background: #fff;
    border: 1px solid #e6e6ef;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

.task-card-adult {
    background:
        linear-gradient(
            145deg,
            #30212d,
            #211820
        );
    border-color: #5b3d54;
    color: #fff;
}

.task-card-main {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.task-card-info {
    min-width: 0;
}

.task-card-info h2 {
    margin: 0 0 6px;
}

.task-card-info p {
    margin: 0 0 12px;
    opacity: .75;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    font-size: .82rem;
    opacity: .75;
}

.task-status {
    margin-top: 12px;
}

.status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 750;
}

.status.active {
    background: #e9e9f8;
    color: #5751ba;
}

.status.paused {
    background: #ededed;
    color: #666;
}

.status.reported {
    background: #fff1ce;
    color: #815d00;
}

.status.completed {
    background: #dff5e6;
    color: #207040;
}

.status.canceled {
    background: #f7dfe3;
    color: #8b2839;
}

.task-actions {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.task-icon-button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eeeeF7;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.05rem;
}

.task-icon-button:hover {
    transform: translateY(-1px);
}

.task-icon-button.success {
    background: #dff5e6;
    color: #207040;
}

.task-icon-button.danger {
    background: #f7dfe3;
    color: #8b2839;
}

.task-card-adult .task-icon-button {
    background: #46313f;
    color: #fff;
}

.task-card-adult .task-icon-button.success {
    background: #294c38;
}

.task-card-adult .task-icon-button.danger {
    background: #5b303b;
}

@media (max-width: 700px) {
    .task-card-main {
        flex-direction: column;
    }

    .task-actions {
        justify-content: flex-end;
    }
}

/* ============================================================
   MODAL
============================================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);
}

.modal-dialog {
    position: relative;
    z-index: 1;

    width: min(560px, 100%);
    max-height: calc(100vh - 40px);

    overflow-y: auto;

    background: #ffffff;
    color: #222;

    border-radius: 20px;
    border: 1px solid #e5e5ee;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.30);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 24px;

    border-bottom: 1px solid #e8e8ef;
}

.modal-header h2 {
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 50%;

    background: #eeeeF5;
    color: #333;

    font-size: 1.4rem;
    line-height: 1;

    cursor: pointer;
}

.modal-body {
    padding: 24px;
}


/* ============================================================
   ADULT / AFTER DARK THEME
============================================================ */

.theme-adult .modal-dialog {
    background: #2b2229;
    color: #eee;

    border-color: #4a3945;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.55);
}

.theme-adult .modal-header {
    border-color: #4a3945;
}

.theme-adult .modal-close {
    background: #40303a;
    color: #eee;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    .modal {
        padding: 10px;
    }

    .modal-dialog {
        max-height: calc(100vh - 20px);
        border-radius: 16px;
    }

    .modal-header {
        padding: 16px 18px;
    }

    .modal-body {
        padding: 18px;
    }
}

body.modal-open {
    overflow: hidden;
}