/* Base Styles */
:root {
  --primary-color: #0072ff;
  --primary-dark: #0050b3;
  --luno-blue: #0a1172;
  --luno-light-blue: #6e7bff;
  --background-color: #ffffff;
  --card-color: #ffffff;
  --text-color: #0a2540;
  --text-secondary: #5a6a85;
  --border-color: #e5e9f2;
  --header-bg: #0a1172;
  --header-text: #ffffff;
  --success-color: #00c48c;
  --error-color: #ff3b30;
  --warning-color: #ffcc00;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

.dark-mode {
  --background-color: #0a2540;
  --card-color: #132f4c;
  --text-color: #ffffff;
  --text-secondary: #a0aec0;
  --border-color: #1e3a5f;
  --header-bg: #0a1172;
  --header-text: #ffffff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background-color: var(--background-color);
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

/* Header */
.luno-header {
  background-color: var(--luno-blue);
  color: var(--header-text);
  padding: 16px;
  text-align: center;
}

.luno-logo {
  height: 40px;
  margin-bottom: 8px;
}

.wallet-header {
  background-color: var(--luno-blue);
  color: var(--header-text);
  padding: 20px 16px;
  text-align: center;
}

.balance-amount {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.balance-label {
  font-size: 14px;
  opacity: 0.8;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: space-between;
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  margin: -20px 16px 16px;
  padding: 16px;
  box-shadow: var(--box-shadow);
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.action-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 18px;
}

.action-btn span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-color);
}

/* Section Headers */
.section-header {
  padding: 16px 16px 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

/* Cards */
.card {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  padding: 16px;
  margin: 0 16px 16px;
  box-shadow: var(--box-shadow);
}

.currency-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.currency-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.currency-info {
  flex: 1;
}

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

.currency-value {
  font-size: 18px;
  font-weight: 600;
}

/* Investment Cards */
.investment-card {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.investment-card:last-child {
  border-bottom: none;
}

.crypto-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.crypto-icon.btc {
  background-color: #f7931a;
}

.crypto-icon.eth {
  background-color: #627eea;
}

.crypto-icon.xrp {
  background-color: #23292f;
}

.crypto-icon.total {
  background-color: #6366f1;
}

.investment-info {
  flex: 1;
}

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

.investment-value {
  color: var(--text-secondary);
}

.investment-change {
  text-align: right;
}

.investment-change.up {
  color: var(--success-color);
}

.investment-change.down {
  color: var(--error-color);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  background-color: var(--card-color);
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 0;
  width: 20%;
  color: var(--text-secondary);
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-item span {
  font-size: 12px;
}

/* Auth Forms */
.auth-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
}

.auth-form {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-color);
  font-weight: 500;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-color);
  font-size: 16px;
}

.form-input::placeholder {
  color: var(--text-secondary);
}

.form-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.form-error {
  color: var(--error-color);
  font-size: 14px;
  margin-top: 4px;
  min-height: 20px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}

.form-checkbox input {
  margin-top: 4px;
}

.form-checkbox label {
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  font-size: 16px;
  margin-top: 16px;
  cursor: pointer;
}

.auth-btn:hover {
  background-color: var(--primary-dark);
}

.auth-links {
  text-align: center;
  margin-top: 16px;
}

.auth-links a {
  color: var(--primary-color);
  font-weight: 500;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-secondary);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 10px;
  font-size: 14px;
}

.social-buttons {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  color: var(--text-color);
  font-weight: 500;
}

.social-btn i {
  font-size: 18px;
}

/* Country Selector */
.country-select {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-color);
  font-size: 16px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235A6A85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

/* Transactions */
.transaction-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

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

.transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.transaction-icon.sent {
  background-color: rgba(255, 59, 48, 0.1);
  color: var(--error-color);
}

.transaction-icon.received {
  background-color: rgba(52, 199, 89, 0.1);
  color: var(--success-color);
}

.transaction-info {
  flex: 1;
}

.transaction-title {
  font-weight: 600;
}

.transaction-date {
  color: var(--text-secondary);
  font-size: 14px;
}

.transaction-amount {
  text-align: right;
}

.transaction-value {
  font-weight: 600;
}

.transaction-value.sent {
  color: var(--error-color);
}

.transaction-value.received {
  color: var(--success-color);
}

.transaction-status {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  overflow-x: auto;
  padding: 0 16px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  padding: 8px 16px;
  margin-right: 8px;
  background-color: var(--card-color);
  border-radius: 16px;
  color: var(--text-secondary);
  white-space: nowrap;
  border: 1px solid var(--border-color);
}

.filter-tab.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* QR Code */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}

.qr-code {
  width: 200px;
  height: 200px;
  background-color: white;
  padding: 16px;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  box-shadow: var(--box-shadow);
}

.address-container {
  width: 100%;
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 16px;
  word-break: break-all;
  text-align: center;
}

.address-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.address-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-color);
}

/* Send Form */
.send-options {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.send-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-color);
  cursor: pointer;
}

.send-option.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.send-form {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  display: none;
}

.send-form.active {
  display: block;
}

/* Profile */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  margin-bottom: 16px;
}

.profile-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-email {
  color: var(--text-secondary);
}

.profile-section {
  margin-bottom: 24px;
}

.profile-section-title {
  padding: 0 16px;
  margin-bottom: 12px;
  font-weight: 600;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: var(--card-color);
  border-bottom: 1px solid var(--border-color);
}

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

.profile-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 114, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-right: 16px;
}

.profile-menu-text {
  flex: 1;
  font-weight: 500;
}

.profile-menu-action {
  color: var(--text-secondary);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 90%;
  max-width: 400px;
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  font-size: 24px;
  color: var(--text-secondary);
}

.modal-body {
  padding: 20px;
}

/* Transaction Receipt */
.transaction-receipt {
  background-color: var(--background-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
}

.receipt-header {
  background-color: var(--luno-blue);
  color: white;
  padding: 20px;
  text-align: center;
}

.receipt-logo {
  height: 40px;
  margin-bottom: 10px;
}

.receipt-greeting {
  margin: 20px;
  font-size: 16px;
  line-height: 1.5;
}

.receipt-details {
  background-color: #f5f5f5;
  margin: 20px;
  padding: 20px;
  border-radius: 4px;
}

.receipt-row {
  text-align: center;
  margin-bottom: 15px;
}

.receipt-label {
  font-weight: bold;
  margin-bottom: 5px;
}

.receipt-value {
  word-break: break-all;
}

.receipt-actions {
  margin: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.receipt-action-link {
  display: inline-block;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 10px;
}

.receipt-footer {
  margin: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.receipt-app-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.receipt-app-link img {
  height: 40px;
}

.receipt-social {
  text-align: center;
  margin: 20px 0;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.receipt-social-title {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.receipt-social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.receipt-social-icon {
  color: var(--text-secondary);
  font-size: 20px;
}

/* Landing Page */
.landing-hero {
  background-color: var(--luno-blue);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.landing-hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.landing-hero-subtitle {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.landing-cta {
  display: inline-block;
  background-color: white;
  color: var(--luno-blue);
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  margin-top: 16px;
}

.landing-section {
  padding: 40px 20px;
  text-align: center;
}

.landing-section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.landing-section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.landing-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.landing-feature {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--box-shadow);
}

.landing-feature-icon {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.landing-feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.landing-feature-description {
  color: var(--text-secondary);
}

.landing-testimonials {
  background-color: #f5f7fa;
  padding: 40px 20px;
}

.landing-testimonial {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
}

.landing-testimonial-text {
  font-style: italic;
  margin-bottom: 16px;
}

.landing-testimonial-author {
  font-weight: 600;
}

.landing-footer {
  background-color: var(--luno-blue);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.landing-footer-link {
  color: white;
  opacity: 0.8;
}

.landing-footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.landing-footer-social-icon {
  color: white;
  font-size: 20px;
}

.landing-footer-copyright {
  opacity: 0.6;
  font-size: 14px;
}

/* Utility Classes */
.hidden {
  display: none;
}

.mt-16 {
  margin-top: 16px;
}

.mb-16 {
  margin-bottom: 16px;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-8 {
  gap: 8px;
}

.gap-16 {
  gap: 16px;
}

.w-full {
  width: 100%;
}

.font-bold {
  font-weight: 700;
}

.text-sm {
  font-size: 14px;
}

.text-xs {
  font-size: 12px;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-primary {
  color: var(--primary-color);
}

.text-success {
  color: var(--success-color);
}

.text-error {
  color: var(--error-color);
}

.logout-btn {
  background-color: #f5f5f5;
  color: var(--error-color);
  padding: 12px;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  margin: 16px;
}
