/* ========== Trustline DEMO — Light Mode ========== */
:root {
  --blue-600: #1e5fc0;
  --blue-700: #174fac;
  --muted: #6b7280;
  --card-radius: 10px;
}

/* Reset & body */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
  background: #f4f7fb;
  color: #0b1220;
}

/* Header */
.header-bar {
  background: linear-gradient(90deg, var(--blue-700), var(--blue-600));
  color: #fff;
  padding: 14px 18px;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.brand { font-weight:700; font-size:18px; letter-spacing:1px; }
.brand-demo { font-weight:600; font-size:12px; margin-left:6px; opacity:.95; }
.profile-sm { display:flex; gap:10px; align-items:center; }
.avatar { width:40px; height:40px; border-radius:50%; background:#fff; color:var(--blue-700); display:flex;align-items:center;justify-content:center;font-weight:700; }
.username { font-weight:700; }
.member { font-size:12px; color:#e6eefc; opacity:0.9; }

/* Page container */
.container { max-width:1100px; margin:20px auto; padding:0 18px; display:grid; grid-template-columns: 1fr; gap:18px; }

/* Section card */
.section-card {
  background:#fff;
  border-radius: var(--card-radius);
  box-shadow: 0 6px 20px rgba(12,18,30,0.06);
  overflow: hidden;
}
.section-header {
  padding:12px 18px;
  background: #f8fafc;
  font-weight:700;
  color:var(--blue-700);
  border-bottom:1px solid #eef3fb;
}
.section-header.blue {
  background: linear-gradient(90deg, var(--blue-700), var(--blue-600));
  color: #fff;
}

/* Accounts list */
.acct-card { display:flex; justify-content:space-between; align-items:center; padding:16px 18px; border-bottom:1px solid #f1f4f8; }
.acct-left { max-width: 70%; }
.acct-title { font-weight:700; font-size:15px; }
.acct-suffix { font-weight:500; color:var(--muted); font-size:13px; margin-left:6px; }
.acct-sub { font-size:12px; color:var(--muted); margin-top:6px; }
.acct-right { text-align:right; }
.acct-balance { font-size:22px; font-weight:800; color:var(--blue-700); }
.acct-actions { margin-top:10px; }

/* Buttons */
.btn {
  padding:8px 12px;
  border-radius:8px;
  border:none;
  cursor:pointer;
  font-weight:700;
  background:#e9f1ff;
  color:var(--blue-700);
}
.btn.small { padding:8px 10px; font-size:13px; }
.btn.primary { background: var(--blue-700); color:#fff; }

/* Card demo area */
.card-area { display:flex; gap:18px; padding:18px; align-items:center; }
.card-3d { width:320px; height:190px; perspective:1000px; position:relative; }
.card-face {
  width:100%; height:100%; border-radius:12px; backface-visibility:hidden;
  position:absolute; left:0; top:0; display:flex; flex-direction:column; justify-content:space-between; padding:16px;
  box-shadow: 0 12px 30px rgba(11,14,30,0.12);
}
.card-front { background: linear-gradient(135deg,#2b73d1,#1e5fc0); color:#fff; }
.card-back { background: #1f2937; color:#fff; transform:rotateY(180deg); padding-top:18px; }
#card3d { transition: transform 0.7s ease; transform-style: preserve-3d; }
#card3d.flipped { transform: rotateY(180deg); }
.card-top { font-size:12px; opacity:0.95; }
.card-number { font-size:18px; letter-spacing:2px; margin-top:10px; }
.card-bottom { display:flex; justify-content:space-between; align-items:center; font-weight:700; }
.card-demo-label { font-size:12px; opacity:0.95; margin-top:8px; }

/* card back details */
.mag-rail { background:#000; height:36px; margin:8px 0; border-radius:4px; opacity:0.9; }
.sig-row { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.sig-box { background:#fff; color:#111; padding:6px 8px; border-radius:4px; width:65%; font-size:13px; }
.cvv-box { color:#fff; font-weight:700; }
.addr { color:#cbd5e1; font-size:12px; margin-top:12px; }

/* Activity */
.activity-list { list-style:none; margin:0; padding:12px 18px; }
.activity-list li { padding:10px 0; border-bottom:1px dashed #eef3fb; color:var(--muted); }

/* Modal */
.modal {
  position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  background: rgba(6,10,20,0.45); z-index:1200;
}
.modal.hidden { display:none; }
.modal-card { width:360px; background:#fff; border-radius:10px; padding:16px; box-shadow:0 12px 30px rgba(11,14,30,0.18);}
.input { width:100%; padding:10px; margin:8px 0 12px; border-radius:8px; border:1px solid #e6e9ef; }

/* small note */
.small-note { font-size:13px; color:var(--muted); margin-top:8px; }

/* responsive */
@media (max-width:720px) {
  .card-area { flex-direction:column; align-items:flex-start; }
  .acct-card { flex-direction:column; align-items:flex-start; gap:8px; }
  .acct-right { text-align:left; }
}
/* ===== CARD FLIP EFFECT ===== */
.card-container {
  perspective: 1000px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.card-flip {
  width: 100%;
  height: 220px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.card-flip.flip {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: 14px;
  padding: 20px;
  box-sizing: border-box;
  color: white;
  background: linear-gradient(90deg, #0A4CC5, #0A75EC);
}

/* BACK SIDE */
.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(90deg, #0D0D0D, #2B2B2B);
  color: #fff;
}padding-bottom
.simple-card {
    width: 100%;
    max-width: 350px;
    margin: 20px auto;
    background: #1769ff;
    border-radius: 16px;
    padding: 22px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.simple-card-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-number {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.card-name {
    font-weight: 600;
}

.card-exp, .card-cvv {
    opacity: 0.9;
    font-weight: 500;
}
/* ===== MATTE BLACK PREMIUM CARD ===== */
.black-card {
    width: 100%;
    max-width: 360px;
    margin: 25px auto;
    padding: 26px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.5),
        inset 0 0 15px rgba(255,255,255,0.05);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.black-card-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.black-card .card-number {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 3px;
}

.black-card .card-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.black-card .card-name {
    font-weight: 600;
}

.black-card .card-exp,
.black-card .card-cvv {
    opacity: 0.9;
    font-weight: 500;
}
/* ===== PREMIUM METALLIC BLACK CARD ===== */
.premium-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 28px auto;
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(145deg, #0b0b0b, #1d1d1d);
    color: #fff;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.6),
        0 0 18px rgba(0, 110, 255, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Metallic shine sweep */
.premium-card .shine {
    position: absolute;
    top: -100%;
    left: -50%;
    width: 200%;
    height: 300%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.25) 50%,
        transparent 100%
    );
    transform: rotate(25deg);
    animation: shineMove 4s infinite;
    pointer-events: none;
}

@keyframes shineMove {
    0% { transform: translateX(-60%) rotate(25deg); }
    100% { transform: translateX(60%) rotate(25deg); }
}

/* Fake chip icon */
.premium-card .chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #d4c26b, #b08f3c);
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.5);
}

/* Hologram strip */
.premium-card .hologram {
    position: absolute;
    bottom: 18px;
    left: 20px;
    width: 50px;
    height: 35px;
    background: linear-gradient(135deg,
        #CE93D8, #7E57C2, #4FC3F7, #81C784, #FFF176
    );
    background-size: 300% 300%;
    border-radius: 6px;
    animation: holoMove 6s infinite;
}

@keyframes holoMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card number */
.pc-number {
    font-size: 21px;
    letter-spacing: 3px;
    margin-top: 20px;
    font-weight: 600;
}

/* Bottom row (name, exp, cvv) */
.pc-row {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 14px;
}

.pc-name, .pc-exp, .pc-cvv {
    font-weight: 500;
    opacity: 0.95;
}
/* ===== TITANIUM 3D FROSTED PREMIUM CARD ===== */
.titanium-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 30px auto;
    padding: 30px;
    border-radius: 22px;
    overflow: hidden;
    color: white;

    /* Apple Card Titanium Texture */
    background: linear-gradient(160deg, #bababa, #d9d9d9, #9c9c9c);
    background-size: 400% 400%;
    animation: titaniumMove 10s infinite;

    box-shadow:
        0 8px 28px rgba(0,0,0,0.40),
        inset 0 0 30px rgba(255,255,255,0.35);
}

/* Subtle metallic moving texture */
@keyframes titaniumMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Frosted glass shine layer */
.titanium-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.18);
    filter: blur(40px);
    transform: rotate(25deg);
}

/* Animated Chip */
.titanium-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #f0d47b, #b79439);
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: chipGlow 3s infinite alternate;
}

/* Chip glowing effect */
@keyframes chipGlow {
    from { box-shadow: 0 0 4px rgba(255, 218, 121, 0.3); }
    to   { box-shadow: 0 0 12px rgba(255, 223, 122, 0.6); }
}

.chip-line {
    height: 2px;
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    animation: lineMove 1.5s infinite ease-in-out;
}

/* Line animation */
@keyframes lineMove {
    0%   { transform: scaleX(0.6); }
    50%  { transform: scaleX(1); }
    100% { transform: scaleX(0.6); }
}

/* Microtext security ring */
.microtext {
    font-size: 6px;
    letter-spacing: 1px;
    opacity: 0.5;
    margin-bottom: 18px;
}

/* Card number */
.tc-number {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 0 0 6px rgba(255,255,255,0.45);
}

/* Bottom row */
.tc-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.tc-name, .tc-exp, .tc-cvv {
    opacity: 0.9;
    font-weight: 600;
}
/* RECENT ACTIVITY */
.activity-list {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07);
}

.activity-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f5;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-left h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.activity-left p {
    font-size: 12px;
    opacity: .6;
}

.activity-right {
    font-size: 15px;
    font-weight: 700;
}

.activity-right.debit {
    color: #d32f2f; /* Red */
}

.activity-right.credit {
    color: #0b7a07; /* Green */
}