/**
 * Standalone Digital Identity & Billing Stylesheet
 * Architecture: Unified Design System with CSS Custom Properties
 */

:root {
  /* Color Palette */
  --bg-body: #2A3235;
  --bg-card: #2A3235;
  --bg-surface: #353F42;
  --bg-surface-nested: #2A3235;
  --bg-button: #FFFFFF;
  --bg-button-hover: #F8FAFC;
  --bg-copy-btn: #475569;
  --bg-copy-btn-hover: #64748B;
  --bg-copy-success: #16A34A;

  /* Typography Colors */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #CBD5E1;
  --color-text-muted: #9CA3AF;
  --color-button-text: #0F172A;
  --color-accent: #38BDF8;
  --color-accent-hover: #0EA5E9;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-dashed: rgba(255, 255, 255, 0.15);
  --border-bank: rgba(148, 163, 184, 0.4);
  --border-pill: rgba(148, 163, 184, 0.7);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-btn: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-btn-hover: 0 6px 14px rgba(0, 0, 0, 0.3);

  /* Radius */
  --radius-card: 16px;
  --radius-surface: 12px;
  --radius-inner: 10px;
  --radius-btn: 8px;
  --radius-pill: 9999px;
  --radius-circle: 50%;

  /* Typography */
  --font-sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------------------- */
/* Modern Reset & Base Rules                                                  */
/* -------------------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--color-text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: none;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------- */
/* Container & Layout Shell                                                   */
/* -------------------------------------------------------------------------- */

.card-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 440px;
  padding: 32px 24px;
  position: relative;
  transition: transform var(--transition-base);
}

.card-container--wide {
  max-width: 540px;
}

/* -------------------------------------------------------------------------- */
/* Header & Profile Components                                                */
/* -------------------------------------------------------------------------- */

.card-header {
  text-align: center;
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.back-link:hover {
  color: var(--color-accent);
  transform: translateX(-2px);
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: block;
}

.profile-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.profile-role {
  margin: 6px 0 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 400;
}

.card-description {
  margin: 8px 0 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* Social Links Navigation                                                    */
/* -------------------------------------------------------------------------- */

.social-nav {
  margin: 18px 0 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.social-nav a {
  color: var(--color-text-primary);
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-nav a:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* Action Links (Buttons)                                                     */
/* -------------------------------------------------------------------------- */

.action-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-link {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-button);
  color: var(--color-button-text);
  padding: 14px 20px;
  border-radius: var(--radius-inner);
  font-weight: 500;
  font-size: 15px;
  box-shadow: var(--shadow-btn);
  border: 1px solid #E2E8F0;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.action-link i {
  position: absolute;
  left: 20px;
  font-size: 18px;
  color: #475569;
  width: 20px;
  text-align: center;
}

.action-link:hover {
  background-color: var(--bg-button-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

/* -------------------------------------------------------------------------- */
/* Partner Section                                                            */
/* -------------------------------------------------------------------------- */

.partner-section {
  margin-top: 28px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.partner-logo {
  width: 72px;
  height: auto;
  background: #FFFFFF;
  padding: 8px;
  border-radius: var(--radius-inner);
  box-shadow: var(--shadow-btn);
  margin-bottom: 6px;
}

.partner-label {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -------------------------------------------------------------------------- */
/* Cari & Billing Sections                                                    */
/* -------------------------------------------------------------------------- */

.info-section {
  background-color: var(--bg-surface);
  border-radius: var(--radius-surface);
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid var(--border-subtle);
}

.info-section-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #E2E8F0;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-section-title i {
  font-size: 14px;
  color: var(--color-text-muted);
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-dashed);
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-row:first-child {
  padding-top: 0;
}

.info-content {
  flex: 1;
  min-width: 0;
}

.info-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.info-value {
  font-size: 14px;
  font-weight: 500;
  color: #F8FAFC;
  word-break: break-word;
}

.info-value a {
  color: #F8FAFC;
}

.info-value a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.info-value--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------------------------- */
/* Bank Account Cards                                                         */
/* -------------------------------------------------------------------------- */

.bank-card {
  background-color: var(--bg-surface-nested);
  border-radius: var(--radius-inner);
  padding: 14px;
  border: 1px solid var(--border-bank);
  margin-bottom: 10px;
}

.bank-card:last-child {
  margin-bottom: 0;
}

.bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.bank-header strong {
  font-size: 14px;
  font-weight: 600;
}

.currency-badge {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* -------------------------------------------------------------------------- */
/* Interactive Copy Button                                                    */
/* -------------------------------------------------------------------------- */

.copy-btn {
  background-color: var(--bg-copy-btn);
  color: #FFFFFF;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  min-width: 88px;
  text-align: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.copy-btn:hover {
  background-color: var(--bg-copy-btn-hover);
}

.copy-btn:active {
  transform: scale(0.97);
}

.copy-btn.copied {
  background-color: var(--bg-copy-success);
  animation: pulseCopy 0.25s ease-out;
}

@keyframes pulseCopy {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.card-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.card-footer a {
  color: var(--color-accent);
}

.card-footer a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Mobile Responsiveness                                                      */
/* -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  body {
    padding: 20px 12px;
  }

  .card-container {
    padding: 24px 16px;
    border-radius: var(--radius-surface);
  }

  .profile-image {
    width: 105px;
    height: 105px;
  }

  .profile-name {
    font-size: 20px;
  }

  .action-link {
    font-size: 14px;
    padding: 12px 16px;
  }

  .action-link i {
    left: 16px;
  }

  .copy-btn {
    min-width: 76px;
    padding: 5px 8px;
    font-size: 11px;
  }
}
