/* Digital business card page */
.card-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(26px, 5vw, 64px);
  padding: clamp(30px, 6vh, 70px) 0 20px;
  align-items: start;
}

.stage-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.flip-tabs { display: inline-flex; border: 1px solid var(--line-soft); }
.flip-tabs button {
  padding: 9px 16px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.4s var(--ease), background 0.4s var(--ease);
}
.flip-tabs button small { display: block; font-family: var(--ar); letter-spacing: 0; text-transform: none; font-size: 10px; }
.flip-tabs button.on { color: #0b0b0c; background: var(--gold); }

.flip { perspective: 1600px; cursor: pointer; }
.flip-inner {
  position: relative;
  aspect-ratio: 16 / 9;
  transform-style: preserve-3d;
  transition: transform 0.95s var(--ease);
  border-radius: 4px;
}
.flip-inner.turn { transform: rotateY(180deg); }
.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid rgba(217, 190, 121, 0.35);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0b0b0c;
}
.face img { width: 100%; height: 100%; object-fit: cover; }
.face.back { transform: rotateY(180deg); }
.face-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(217, 190, 121, 0.8);
}

.stage-note { margin-top: 16px; }
.stage-note .en { font-family: var(--ui); font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.stage-note .ar { font-size: 12px; margin-top: 4px; }
.save-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.card-info h2 { margin-top: 18px; }
.card-info h2 .en { font-size: clamp(30px, 4.4vw, 50px); color: #fff; line-height: 1; }
.card-info h2 .ar { margin-top: 10px; font-size: clamp(15px, 1.9vw, 21px); }
.card-info .tag { margin-top: 14px; }
.card-info .tag .en { font-family: var(--display); font-size: 16px; color: var(--gold-lit); }
.card-info .tag .ar { font-size: 12.5px; margin-top: 3px; }

.rows { list-style: none; margin-top: 28px; border-top: 1px solid var(--line-soft); }
.rows li { border-bottom: 1px solid var(--line-soft); }
.rows a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 6px;
  transition: background 0.45s var(--ease), padding-left 0.45s var(--ease);
}
.rows a:hover { background: rgba(217, 190, 121, 0.05); padding-left: 12px; }
.rows .ic svg { width: 18px; height: 18px; stroke: var(--gold); }
.rows .val .en { font-family: var(--ui); font-size: 15px; color: #efe9dc; letter-spacing: 0.02em; }
.rows .val .num { display: block; font-size: 12px; letter-spacing: 0.14em; color: var(--gold-deep); margin-top: 2px; }
.rows .val .ar { font-size: 11.5px; margin-top: 3px; }
.rows .act {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  padding: 6px 10px;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.rows a:hover .act { color: var(--gold-lit); border-color: var(--line); }

.copy-row { display: flex; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.mini {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.mini small { font-family: var(--ar); text-transform: none; letter-spacing: 0; opacity: 0.7; }

.qr-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}
.qr-panel img { width: 96px; height: 96px; background: #fff; padding: 4px; }
.qr-panel .en { font-family: var(--ui); font-size: 12.5px; color: #e7e0d1; letter-spacing: 0.04em; }
.qr-panel .ar { font-size: 11.5px; margin-top: 4px; }

.howto { margin: 26px 0 0 18px; display: grid; gap: 10px; }
.howto li { font-size: 12.5px; color: var(--muted); }
.howto li .en { font-family: var(--ui); }
.howto li .ar { font-size: 11.5px; margin-top: 2px; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; gap: 34px; }
  .rows a { grid-template-columns: 30px 1fr; }
  .rows .act { display: none; }
}
@media (max-width: 560px) {
  .stage-top { flex-direction: column; align-items: flex-start; }
  .save-row .btn { width: 100%; justify-content: center; }
}
