/* =========================================================
   DASHBOARD / HOME PAGE
========================================================= */


/* =========================================================
   WELCOME PANEL
========================================================= */

#homeTopPanel {
    background-image: url("/images/login_background.png");
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    background-size: stretch;
}

#homeTopPanel .infoPanel {
    max-width: 100%;
}

#homeTopPanel .infoPanel h1 {
    color: #2c4d34;
}

#homeTopPanel .infoPanel p,
#homeTopPanel .infoPanel li {
    line-height: 1.6;
}


/* =========================================================
   DASHBOARD SECTION HEADING
========================================================= */

.dashboardSectionHeading {
    margin-bottom: 0;

    color: #2c4d34;

    font-size: 1.5rem;
    text-align: center;
}


/* =========================================================
   EXPLORING VINESITE VISUALS CARDS
========================================================= */

.infoPanel.dashboardActionCard {
    width: 100%;
    height: 100%;

    border: 1px solid #6f7f8f !important;
    border-radius: 8px !important;

    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}

/* Remove the inherited green border around the card content. */
.infoPanel.dashboardActionCard,
.infoPanel.dashboardActionCard:hover,
.infoPanel.dashboardActionCard:focus {
    border-color: #6f7f8f !important;
    border-width: 1px !important;
}


/* =========================================================
   GRAY-BLUE CARD FOOTER
========================================================= */

.infoPanel.dashboardActionCard .dashboardActionFooter {
    min-height: 75px;

    background-color: #6f7f8f !important;

    border: none !important;
    border-top: 1px solid #6f7f8f !important;
    border-radius: 0 0 7px 7px !important;
}


/* =========================================================
   SHADOW-ONLY DASHBOARD BUTTON
========================================================= */

.infoPanel.dashboardActionCard
.dashboardActionFooter
a.dashboardActionButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 175px;
    padding: 11px 24px;

    color: #ffffff !important;
    background-color: #6f7f8f !important;

    border: none !important;
    border-radius: 8px;

    font-family: Roboto, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none !important;

    box-shadow: 0 6px 15px rgba(0,0,0,.30);

    transition:
        background-color .22s ease,
        color .22s ease,
        transform .22s ease,
        box-shadow .22s ease;
}

.infoPanel.dashboardActionCard
.dashboardActionFooter
a.dashboardActionButton:hover,
.infoPanel.dashboardActionCard
.dashboardActionFooter
a.dashboardActionButton:focus {
    color: #ffffff !important;

    /* Lighter gray-blue */
    background-color: #8c9aa9 !important;

    transform: translateY(-3px);

    box-shadow: 0 12px 24px rgba(0,0,0,.35);
}

.infoPanel.dashboardActionCard
.dashboardActionFooter
a.dashboardActionButton:active {
    background-color: #7f8d9b !important;

    transform: translateY(0);

    box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

/* =========================================================
   ARCHIVE METRICS PANEL
========================================================= */

#homeBottomPanel {
    position: relative;

    background-image:
        linear-gradient(
            rgba(247, 244, 235, 0.02),
            rgba(247, 244, 235, 0.03)
        ),
        url("/images/archive_metrics_background.jpg");

    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.archiveMetricsHeading {
    margin: 0 0 1.5rem;

    color: #7a2c37;

    font-size: 1.5rem;
    font-weight: 500;
}


/* =========================================================
   ACCOUNT ARCHIVE CARD
========================================================= */

#homeBottomPanel .accountArchiveCard {
    position: relative;
    overflow: hidden;

    width: 100%;
    margin: 0 auto;
    padding: 0;

    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            #6f2631 0%,
            #7a2c37 52%,
            #913746 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;

    box-shadow:
        0 20px 42px rgba(72, 25, 32, 0.25),
        0 6px 16px rgba(35, 40, 36, 0.12);
}

#homeBottomPanel .accountArchiveCard::before {
    position: absolute;
    top: -110px;
    right: -90px;

    width: 260px;
    height: 260px;

    content: "";

    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;

    pointer-events: none;
}

#homeBottomPanel .accountArchiveCard::after {
    position: absolute;
    bottom: -130px;
    left: -95px;

    width: 240px;
    height: 240px;

    content: "";

    background: rgba(255, 255, 255, 0.045);
    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   ACCOUNT ARCHIVE HEADER
========================================================= */

.accountArchiveHeader {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    padding: 2rem 2rem 1.5rem;

    text-align: left;
}

.accountArchiveIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;
    flex: 0 0 54px;

    color: #7a2c37;
    background-color: #f7f4eb;

    border-radius: 50%;

    font-size: 1.3rem;

    box-shadow: 0 6px 14px rgba(35, 20, 23, 0.25);
}

.accountArchiveEyebrow {
    margin: 0 0 3px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

#homeBottomPanel .accountArchiveHeader h1 {
    margin: 0;

    color: #ffffff;

    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.2;
}


/* =========================================================
   ACCOUNT ARCHIVE METRICS
========================================================= */

.accountArchiveMetrics {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    margin: 0 1.5rem;
    padding: 1.4rem 0;

    background-color: rgba(255, 255, 255, 0.09);

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;

    backdrop-filter: blur(2px);
}

.accountArchiveMetric {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    padding: 0.25rem 1rem;

    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.accountArchiveMetric:last-child {
    border-right: none;
}

.accountArchiveMetricValue {
    display: block;

    color: #ffffff;

    font-size: 1.85rem;
    font-weight: 500;
    line-height: 1.1;
}

.accountArchiveMetricLabel {
    display: block;

    margin-top: 6px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.2;
}


/* Keep the varietal popover trigger styled like the other labels. */
#homeBottomPanel
.accountArchiveMetric
button.accountArchiveMetricLabel,
#homeBottomPanel
.accountArchiveMetric
button.accountArchiveMetricLabel:hover,
#homeBottomPanel
.accountArchiveMetric
button.accountArchiveMetricLabel:focus,
#homeBottomPanel
.accountArchiveMetric
button.accountArchiveMetricLabel:active {
    width: auto;
    padding: 0;

    color: rgba(255, 255, 255, 0.82);
    background: transparent;

    border: none;

    font-size: 0.82rem;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 3px;

    box-shadow: none;
}

/* =========================================================
   BASIC PLAN - LOCKED USER METRICS
========================================================= */

.accountArchiveMetricsWrapper {
	position: relative;
	z-index: 1;

	margin: 0 1.5rem;
}


.accountArchiveMetricsWrapper .accountArchiveMetrics {
	margin: 0;
}


.accountArchiveMetricsLocked .accountArchiveMetrics {
	filter: blur(5px);
	opacity: 0.7;

	pointer-events: none;
	user-select: none;
}


.accountArchiveUpgradeOverlay {
	position: absolute;
	inset: 0;
	z-index: 2;

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

	padding: 1rem;

	text-align: center;
}


.accountArchiveUpgradeContent {
	max-width: 310px;
	padding: 0.85rem 1.1rem;

	color: #ffffff;
	background: rgba(74, 24, 32, 0.5);

	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 10px;

	backdrop-filter: blur(3px);

	box-shadow:
		0 8px 20px rgba(35, 20, 23, 0.22);
}


.accountArchiveUpgradeIcon {
	display: block;

	margin-bottom: 0.4rem;

	font-size: 1.05rem;
}


.accountArchiveUpgradeTitle {
	margin-bottom: 0.25rem;

	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
}


.accountArchiveUpgradeText {
	color: rgba(255, 255, 255, 0.84);

	font-size: 0.78rem;
	line-height: 1.35;
}

/* =========================================================
   VINTAGE RANGE
========================================================= */

.accountArchiveVintage {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;

    padding: 1.35rem 1.5rem 1.65rem;
}

.accountArchiveVintageLabel {
    color: rgba(255, 255, 255, 0.72);

    font-size: 0.83rem;
}

.accountArchiveVintageValue {
    padding: 5px 10px;

    color: #7a2c37;
    background-color: #f7f4eb;

    border-radius: 6px;

    font-size: 0.86rem;
    font-weight: 500;
}


/* =========================================================
   RESPONSIVE ACCOUNT ARCHIVE
========================================================= */

@media (max-width: 767.98px) {
    #homeBottomPanel {
        background-size: auto 100%;
    }

    .archiveMetricsHeading {
        margin-bottom: 1.25rem;
        font-size: 1.3rem;
    }

    #homeBottomPanel .accountArchiveCard {
        width: calc(100% - 24px);
    }

    .accountArchiveHeader {
        padding: 1.6rem 1.25rem 1.25rem;
    }

    .accountArchiveMetrics {
        margin: 0 1rem;
    }
    .accountArchiveMetricsWrapper {
        margin: 0 1rem;
    }

    .accountArchiveMetric {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    .accountArchiveMetricValue {
        font-size: 1.5rem;
    }
}

@media (max-width: 479.98px) {
    .accountArchiveHeader {
        align-items: center;
        flex-direction: column;

        text-align: center;
    }

    .accountArchiveMetrics {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .accountArchiveMetric {
        padding: 1rem;

        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .accountArchiveMetric:last-child {
        border-bottom: none;
    }

    .accountArchiveVintage {
        align-items: center;
        flex-direction: column;
        gap: 0.45rem;
    }

    .accountArchiveUpgradeContent {
        max-width: 250px;
        padding: 0.75rem 0.9rem;
    }

    .accountArchiveUpgradeTitle {
        font-size: 0.88rem;
    }

    .accountArchiveUpgradeText {
        font-size: 0.74rem;
    }
}
/* =========================================================
   ARCHIVE METRIC POPOVER BUTTONS
========================================================= */

#homeBottomPanel .infoPanel .btn-text,
#homeBottomPanel .infoPanel .btn-text:hover,
#homeBottomPanel .infoPanel .btn-text:active,
#homeBottomPanel .infoPanel .btn-text:focus,
#homeBottomPanel .infoPanel .btn-text:not(:disabled):not(.disabled).active,
#homeBottomPanel .infoPanel .btn-text:not(:disabled):not(.disabled):active {
    padding: 0;

    color: #ffffff;
    background-color: transparent;
    border: none;

    font-size: 14px;
    line-height: 25pt;
    text-decoration: underline;
    box-shadow: none;
}


/* =========================================================
   ARCHIVE METRIC POPOVER CONTENT
========================================================= */

/*
   ng-bootstrap may append the popover outside #homeBottomPanel,
   so these selectors intentionally do not use #homeBottomPanel.
*/

.popover {
    width: max-content;
    min-width: 0;
    max-width: min(300px, calc(100vw - 30px));

    background-color: #f7f4eb;

    border: 1px solid rgba(44, 77, 52, 0.18);
    border-radius: 12px;

    box-shadow:
        0 12px 26px rgba(35, 40, 36, 0.16),
        0 3px 8px rgba(35, 40, 36, 0.08);
}

.popover-body {
    width: max-content;
    min-width: 0;
    max-width: 100%;
    padding: 12px 16px;

    color: #3d443e;
    background-color: #f7f4eb;

    border-radius: 11px;

    font-family: Roboto, Arial, sans-serif;
    font-size: 0.86rem;
    line-height: 1.4;
}


/* Overrides the inline font size and text-nowrap class in your HTML. */
.popover-body h2 {
    margin: 0 0 9px;

    color: #7a2c37;

    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.25;
    text-align: center;
    white-space: normal !important;
}


/* Overrides the existing homePopContent styling. */
.popover-body .homePopContent {
    width: max-content;
    min-width: 0;
    max-width: 260px;
    margin: 0;
    padding: 0;

    color: #3d443e;

    font-family: Roboto, Arial, sans-serif;
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 400;
    text-align: left;

    list-style: none;
}

.popover-body .homePopContent li {
    margin: 0;
    padding: 5px 0;

    border-bottom: 1px solid rgba(44, 77, 52, 0.11);

    line-height: 1.35;
    white-space: normal !important;
}

.popover-body .homePopContent li:last-child {
    border-bottom: none;
}


/* Makes the arrow match the cream popover. */
.bs-popover-bottom > .popover-arrow::after,
.bs-popover-auto[data-popper-placement^="bottom"] > .popover-arrow::after {
    border-bottom-color: #f7f4eb;
}

.bs-popover-top > .popover-arrow::after,
.bs-popover-auto[data-popper-placement^="top"] > .popover-arrow::after {
    border-top-color: #f7f4eb;
}

/* Move the left popover toward the center */
.bs-popover-auto[data-popper-placement^="bottom-start"],
.bs-popover-start {
    margin-left: 35px;
}

/* Move the right popover toward the center */
.bs-popover-auto[data-popper-placement^="bottom-end"],
.bs-popover-end {
    margin-left: -35px;
}
/* =========================================================
   DASHBOARD ALERT BANNERS
========================================================= */

.dashboardAlert {
    padding-top: 8px;
    padding-bottom: 8px;

    color: #ffffff;
    background-color: #6f7f8f;

    text-align: center;
}

.dashboardAlert a {
    color: #ffffff;
    text-decoration: underline;
}

.dashboardAlert a:hover {
    color: #ffffff;
    opacity: 0.85;
}


/* =========================================================
   RESPONSIVE DASHBOARD
========================================================= */

@media (max-width: 991.98px) {
    #homeTopPanel .infoPanel {
        margin-right: 20px;
        margin-left: 20px;
    }

    .dashboardFeatureCard .infoPanelGrayBottom {
        min-height: 65px;
    }
}

@media (max-width: 767.98px) {
    #homeTopPanel {
        background-position: center;
    }

    #homeTopPanel .infoPanel {
        margin: 30px 12px !important;
        padding: 25px !important;
    }

    #homeTopPanel .infoPanel h1 {
        font-size: 1.35rem;
    }

    #homeBottomPanel {
        background-size: auto 100%;
    }

    #homeBottomPanel .infoPanel {
        width: calc(100% - 30px);
        margin: 15px !important;
    }

    .dashboardSectionHeading,
    #homeBottomPanel > .col-12 > h2 {
        font-size: 1.3rem;
    }
}
.accountArchiveUpgradeButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	margin-top: 0.9rem;
	padding: 0.55rem 1.2rem;

	color: #7a2c37 !important;
	background: #f7f4eb;

	border: none;
	border-radius: 8px;

	font-size: 0.82rem;
	font-weight: 500;
	text-decoration: none;

	box-shadow: 0 6px 14px rgba(35, 20, 23, 0.18);

	transition:
		transform 0.2s ease,
		background-color 0.2s ease,
		box-shadow 0.2s ease;
}

.accountArchiveUpgradeButton:hover,
.accountArchiveUpgradeButton:focus {
	transform: translateY(-2px);

	color: #7a2c37 !important;
	background: #ffffff;

	box-shadow: 0 8px 18px rgba(35, 20, 23, 0.22);
}
/* =========================================================
   ACCOUNT INVITATION MODAL
========================================================= */

.inviteModal {
	position: fixed;
	inset: 0;
	z-index: 9999;

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


.inviteModalOverlay {
	position: absolute;
	inset: 0;

	background-color: rgba(0, 0, 0, 0.55);
}


.inviteModalBox {
	position: relative;
	z-index: 1;

	width: 90%;
	max-width: 500px;

	padding: 35px;

	background-color: #ffffff;
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

	text-align: center;
}


.inviteModalClose {
	position: absolute;
	top: 16px;
	right: 18px;

	padding: 0;

	color: #000000;
	background: transparent;
	border: none;

	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}


.inviteModalBox h3 {
	margin-bottom: 14px;

	color: #2c4c34;

	font-family: Roboto, Arial, sans-serif;
	text-align: center;
}


.inviteModalBox p {
	margin: 0 auto 24px;

	max-width: 390px;

	color: #000000;

	font-family: Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
}


.inviteModalIcon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 52px;
	height: 52px;

	margin: 0 auto 18px;

	color: #ffffff;
	background-color: #2c4c34;
	border-radius: 50%;

	font-size: 21px;
}


.inviteModalActions {
	display: flex;
	gap: 12px;

	margin-top: 24px;
}


.inviteModalAcceptButton,
.inviteModalDeclineButton {
	flex: 1;

	padding: 13px 18px;

	border-radius: 999px;

	font-weight: 600;
	cursor: pointer;
}


.inviteModalAcceptButton {
	color: #ffffff;
	background-color: #2c4c34;
	border: 1px solid #2c4c34;
}


.inviteModalAcceptButton:hover:not(:disabled) {
	opacity: 0.9;
}


.inviteModalDeclineButton {
	color: #2c4c34;
	background-color: #ffffff;
	border: 1px solid #2c4c34;
}


.inviteModalDeclineButton:hover:not(:disabled) {
	background-color: #f3f6f4;
}


.inviteModalAcceptButton:disabled,
.inviteModalDeclineButton:disabled {
	cursor: default;
	opacity: 0.6;
}


/* =========================================================
   SUCCESS / ERROR
========================================================= */

.inviteModalSuccess,
.inviteModalError {
	margin: 1rem 0;
	padding: 0.85rem 1rem;

	border-radius: 8px;

	font-size: 14px;
	font-weight: 500;
	text-align: center;
}


.inviteModalSuccess {
	color: #155724;
	background-color: #eaf8ee;
	border: 1px solid #b9e5c4;
}


.inviteModalSuccess i {
	margin-right: 5px;
}


.inviteModalError {
	color: #842029;
	background-color: #fbeaea;
	border: 1px solid #f1b7bc;
}


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

@media (max-width: 767.98px) {

	.inviteModalBox {
		padding: 30px 20px;
	}

	.inviteModalActions {
		flex-direction: column-reverse;
	}

}