:root {
  --cream: #F3EDE3;
  --cream-deep: #EAE1D2;
  --paper: #FBF8F3;
  --espresso: #3C2A21;
  --espresso-deep: #2A1F1A;
  --mocha: #8B5E3C;
  --mocha-light: #A9764F;
  --gold: #C9A15E;
  --gold-soft: #E1C68F;
  --ink: #2A1F1A;
  --shadow: rgba(60, 42, 33, 0.16);
}

* { box-sizing: border-box; }

body {
  background: var(--cream);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(201,161,94,0.14), transparent),
    radial-gradient(ellipse 900px 600px at 100% 10%, rgba(139,94,60,0.10), transparent);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.font-display, h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; }
h1, h2, h3, h4 { margin: 0; color: var(--espresso-deep); }

.gradient-text {
  background: linear-gradient(135deg, var(--mocha) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.muted { color: #6B5B4F; }
.small { font-size: 13px; }

/* Cards */
.glass-card {
  background: var(--paper);
  border: 1px solid rgba(60,42,33,0.08);
  box-shadow: 0 2px 10px var(--shadow);
  border-radius: 20px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
  will-change: transform;
}

/* Cards with the "tilt" behavior get a subtle 3D lean toward the cursor,
   echoing the cube in the logo. Plain hover-lift is the fallback for anything
   the tilt script doesn't reach (e.g. reduced-motion users). */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 800px;
}
.tilt-card:hover {
  box-shadow: 0 22px 40px -12px var(--shadow);
  border-color: rgba(201,161,94,0.5);
}
@media (prefers-reduced-motion: reduce) {
  .glass-card, .tilt-card { transition: none !important; }
}

.card { padding: 32px; }

/* Nav */
nav.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,243,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(60,42,33,0.08);
}
nav.topnav .inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 36px; border-radius: 8px; }
.brand-name { font-family: 'Fraunces', serif; font-weight: 600; color: var(--espresso-deep); font-size: 17px; }
nav.topnav .links { display: flex; gap: 26px; align-items: center; }
nav.topnav .links a { font-size: 14px; color: #6B5B4F; text-decoration: none; transition: color .2s; }
nav.topnav .links a:hover { color: var(--mocha); }
.nav-auth { display: flex; gap: 12px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 14px;
  cursor: pointer; border: none; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--mocha), var(--espresso)); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(139,94,60,.5); }
.btn-outline { background: transparent; border: 1px solid rgba(60,42,33,0.25); color: var(--espresso); }
.btn-outline:hover { transform: translateY(-2px); background: rgba(201,161,94,0.1); border-color: var(--gold); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.section { padding: 88px 0; }
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(60,42,33,.12), transparent); }
.eyebrow { color: var(--mocha); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 20px;
  transition: transform .35s ease;
}
.tilt-card:hover .icon-badge { transform: translateZ(30px) scale(1.06); }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 420px; padding: 40px; }
.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: #6B5B4F; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(60,42,33,0.18);
  background: var(--cream); color: var(--ink); font-size: 14px; font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,161,94,.25); }
.form-msg { font-size: 14px; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; display: none; }
.form-msg.error { background: rgba(178,58,58,.1); color: #8c3a3a; display: block; }
.form-msg.success { background: rgba(90,138,90,.12); color: #3f6b3f; display: block; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid rgba(60,42,33,0.08); }
th { color: #6B5B4F; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-paid { background: rgba(90,138,90,.15); color: #3f6b3f; }
.badge-pending { background: rgba(201,161,94,.2); color: #8a6a2f; }
.badge-failed { background: rgba(178,58,58,.15); color: #8c3a3a; }

.team-photo, .portfolio-photo { height: 200px; background-size: cover; background-position: center; transition: transform .5s ease; overflow: hidden; }
.tilt-card:hover .team-photo, .tilt-card:hover .portfolio-photo { transform: scale(1.05); }
.portfolio-photo { height: 220px; border-radius: 20px 20px 0 0; }

.stars { color: var(--gold); margin-bottom: 12px; }

footer { padding: 48px 0; border-top: 1px solid rgba(60,42,33,0.08); }
.social-links { display: flex; gap: 16px; margin-top: 12px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 999px; background: rgba(139,94,60,.08);
  display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--mocha);
  transition: transform .25s ease, background .25s ease;
}
.social-links a:hover { transform: translateY(-3px); background: rgba(201,161,94,.25); }

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);

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

.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 16px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}
/* ============================= */
/* Trusted Partners */
/* ============================= */

.partners-grid{

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:20px;

    margin-top:50px;

}

.partner-item{

    height:90px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    border-radius:14px;

    display:flex;

    justify-content:center;

    align-items:center;

    transition:.35s ease;

    backdrop-filter:blur(10px);

}

.partner-item:hover{

    transform:translateY(-6px);

    border-color:var(--mocha);

    box-shadow:0 12px 30px rgba(0,0,0,.25);

}

.partner-item img{

    max-width:120px;

    max-height:45px;

    width:auto;

    height:auto;

    object-fit:contain;

    filter:grayscale(100%);

    opacity:.85;

    transition:.35s ease;

}

.partner-item:hover img{

    filter:grayscale(0);

    opacity:1;

    transform:scale(1.05);

}

/* Tablet */

@media(max-width:992px){

    .partners-grid{

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

    }

}

/* Mobile */

@media(max-width:640px){

    .partners-grid{

        grid-template-columns:repeat(2,1fr);

    }

}
.badge{

    display:inline-block;

    padding:8px 18px;

    border-radius:999px;

    font-weight:600;

    color:#fff;

}

.badge-success{

    background:#16a34a;

}

.badge-warning{

    background:#f59e0b;

}

.badge-danger{

    background:#dc2626;

}

.transaction-positive {
    color: #16a34a !important;
    font-weight: 600;
}

.transaction-negative {
    color: #dc2626 !important;
    font-weight: 600;
}

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

.nav-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(60, 42, 33, 0.18);
    border-radius: 10px;

    background: transparent;

    cursor: pointer;

    padding: 9px;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 5px;
}

.nav-toggle span {
    display: block;

    width: 21px;
    height: 2px;

    background: var(--espresso);

    border-radius: 5px;

    transition: 0.25s ease;
}


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

@media (max-width: 768px) {

    .topnav {
        width: 100%;
        overflow: visible;
    }

    .topnav .inner {

        width: 100%;

        padding-left: 18px;
        padding-right: 18px;

        display: flex;

        align-items: center;
        justify-content: space-between;

        position: relative;
    }


    /* Logo */

    .brand {
        min-width: 0;
        flex-shrink: 1;
    }

    .brand-name {
        white-space: nowrap;
        font-size: 16px;
    }

    .brand img {
        width: 38px;
        height: 38px;
    }


    /* Hide desktop navigation */

    nav.topnav .links {

        display: none;

        position: absolute;

        top: calc(100% + 10px);

        left: 15px;
        right: 15px;

        width: auto;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 10px;

        background: var(--cream, #f7f1e8);

        border: 1px solid rgba(60, 42, 33, 0.12);

        border-radius: 14px;

        box-shadow: 0 12px 30px rgba(60, 42, 33, 0.15);

        z-index: 9999;
    }


    /* Show menu when opened */

    nav.topnav .links.mobile-open {
        display: flex;
    }


    .links > a {

        display: block;

        width: 100%;

        padding: 13px 14px;

        border-radius: 9px;

        white-space: nowrap;

        text-decoration: none;
    }


    .links > a:hover {

        background: rgba(139, 94, 60, 0.08);
    }


    /* Auth buttons */

    .links .nav-auth {

        display: flex;

        flex-direction: column;

        gap: 8px;

        padding: 8px 4px 4px;
    }


    /* Hamburger */

    .nav-toggle {
        display: flex;

        flex-shrink: 0;
    }


    /* Hamburger animation */

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

}

/* Responsive tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}
.table-responsive table {
  min-width: 640px;
}
@media (max-width: 640px) {
  th, td { padding: 10px 12px; font-size: 13px; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .card { padding: 22px; }
  .auth-card { padding: 26px; }
}

/* =====================================================
   INVESTMENT GRID
   ===================================================== */

.investment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 18px;
    align-items: start;
}

.investment-card {
    width: 100%;
    box-sizing: border-box;
    padding: 24px;
    margin: 0;
    align-self: start;
}

/* Mobile */
@media (max-width: 700px) {

    .investment-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .investment-card {
        padding: 20px;
    }
}