/***** deterrent only — hurts UX; optional *****/
html, body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}
:root {
    --brand: #000000;
    --brand-2: #005501af;
    --ink: #111827;
    --bg: #0b1020;
    --muted: #6b7280;
    --accent: #7c3aed;
    --glow: 0 10px 30px rgba(0, 209, 178, .35);
    --contact-bar-height: 40px;
    --nav-height: 56px;
}

body {
    background: linear-gradient(135deg, #f0f4ff, #adffd5b9);
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- contact bar: icons only on small screens ---------- */
@media (max-width: 576px) {
    .contact-bar .link {
        font-size: 0;
        /* hide text, keep the element */
        padding: 6px 6px;
    }

    .contact-bar .link i {
        font-size: 1.2rem;
        /* show icon */
        margin-right: 0;
        /* no gap (text is hidden) */
    }
}

a {
    text-decoration: none
}

/* ======= Top contact bar ======= */
.contact-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
    backdrop-filter: blur(8px);
    background: rgba(0, 87, 10, 0.664);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    padding: 6px 15px;
    /* make height predictable */
}

.contact-bar .link {
    color: #fff;
    font-weight: 600
}

.contact-bar .link:hover {
    color: rgb(181, 181, 181)
}

/* ======= Navbar ======= */
.navbar {
    position: fixed;
    top: var(--contact-bar-height);
    /* use CSS var */
    min-height: var(--nav-height);
    left: 0;
    width: 100%;
    z-index: 1030;
    backdrop-filter: blur(10px);
    background: rgba(0, 87, 10, 0.664);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    color: white !important;
}

.navbar-brand img {
    filter: brightness(0) invert(1)
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: .2px
}

/* make sure the Bootstrap toggler icon is visible on your dark bg */
.navbar-toggler {
    border: 0;
}

.navbar-toggler-icon {
    filter: invert(1) grayscale(100%);
    /* white icon */
}

.brand-dot {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, purple, rgba(0, 128, 0, 0.505));
    border-radius: 9999px;
    display: inline-block;
    box-shadow: var(--glow)
}

.btn-pill {
    border-radius: 9999px;
    padding: .55rem 1rem;
    font-weight: 800;
}

.btn-pill:hover{
    background: linear-gradient(135deg, #006950, #2e2e2e);
        transform: scale(1.05);
        box-shadow:
            0 15px 30px rgba(50, 93, 69, 0.35),
            0 10px 20px rgba(0, 0, 0, 0.25),
            inset 0 -2px 5px rgba(10, 64, 36, 0.5);
        border: 2px solid #fff;
        /* Added white border */
}

.navbar .navbar-nav .nav-link {
    color: white;
    font-weight: 700
}

.navbar .navbar-nav .nav-link:hover {
    color: rgb(205, 205, 205)
}

.btn-brand {
        position: relative;
        /* For z-index */
        z-index: 10;
        /* Above pseudo-elements */
        margin-top: 12px;
        background: linear-gradient(60deg, #000, #027b2e);
        color: #fff;
        padding: 10px;
        border-radius: 20px 0px 20px 0px;
        text-align: center;
        display: inline-block;
        font-weight: 600;
        transition: all 0.3s ease;
}

.btn-brand:hover {
    background: linear-gradient(135deg, #006950, #2e2e2e);
        transform: scale(1.05);
        box-shadow:
            0 15px 30px rgba(50, 93, 69, 0.35),
            0 10px 20px rgba(0, 0, 0, 0.25),
            inset 0 -2px 5px rgba(10, 64, 36, 0.5);
        border: 2px solid #fff;
        /* Added white border */
}

/* Navbar cart badge */
.cart-badge{
  position:absolute;
  top:-6px; right:-8px;
  display:none;
  min-width:20px; height:20px;
  padding:0 6px;
  border-radius:9999px;
  background:#ff4757;
  color:#fff;
  font-size:12px;
  line-height:20px;
  align-items:center;
  justify-content:center;
}

/* css of signin/signup */
.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    margin: auto;
    flex: 1 0 auto; /* Allow container to grow but not shrink below content */
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    margin-top: 150px;
    background: rgba(255, 255, 255, 0.24);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 135, 13, 0.571);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid #006950;
    width: 100%;
}

.auth-card:hover {
    transform: translateY(-5px);
}

img {
    width: 120px;
    margin-bottom: 20px;
}

.auth-header h2 {
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #8bfae7, #0b7b0d, #a8adf9);
    -webkit-background-clip: text;
    color: transparent;
}

.auth-header p {
    color: #6b7280;
    margin-bottom: 30px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    width: 100%;
}

.form-label {
    font-weight: 600;
    color: #689670;
    margin-bottom: 8px;
    width: 100%;
    text-align: left;
}

.auth-form .form-control {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px;
    transition: 0.3s;
    width: 100%;
    text-align: center; /*Left-align input text for readability*/
}

.auth-form .form-control:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.1);
}

.btn-gradient {
    background: linear-gradient(60deg, #000, #027b2e);
    color: white;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px;
    transition: 0.3s;
    border: none;
    width: 80%;
    margin-top: 20px;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #006950, #2e2e2e);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;
    color: #fff;
}

.auth-footer {
    margin-top: 20px;
    color: #6b7280;
}

.auth-footer a {
    color: #027b2e;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #006950;
}

/* Footer Styles */
.footer {
    background: linear-gradient(160deg, var(--brand), var(--brand-2));
    color: #fff;
    padding: 40px 20px;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.footer .container {
    max-width: 1140px; /* Match Bootstrap container width */
    margin: 0 auto;
}

.footer h5, .footer h6 {
    margin-bottom: 15px;
}

.footer .list-unstyled a {
    color: #e9fffb !important;
    text-decoration: none;
}

.footer .list-unstyled a:hover {
    color: #fff;
}

.footer .fw-bold img {
    filter: brightness(0) invert(1);
}

.footer .border-top {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.footer .d-flex {
    gap: 15px;
}

.footer .d-flex a{
    color: #e9fffb;
    text-decoration: none;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
    }
    .logo {
        width: 100px;
    }
    .form-label, .auth-form .form-control, .btn-gradient {
        width: 100%; /* Full width on mobile */
    }
    .footer {
        padding: 30px 15px;
    }
}