/* ========== MEUS CARTÕES (PREMIUM) ========== */
.cards-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 3rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pure-white);
  position: relative;
  padding-left: 2rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 30px;
  background: var(--gradient-accent);
  border-radius: 4px;
}

.color-picker {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.color-picker span {
  font-size: 0.95rem;
  color: var(--secondary-gray);
}

.color-options {
  display: flex;
  gap: 0.8rem;
}

.color-option {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-option:hover {
  transform: scale(1.15);
}

.color-option.active {
  border-color: var(--pure-white);
  box-shadow: 0 0 0 2px var(--pure-white), 0 0 0 4px var(--primary-accent);
}

/* Cores personalizadas */
.color-option.primary-dark { background: var(--primary-dark); }
.color-option.accent { background: var(--primary-accent); }
.color-option.gray { background: var(--secondary-gray); }
.color-option.white { background: var(--pure-white); border: 1px solid #eee; }
.color-option.black { background: var(--pure-black); }

/* Container de cartões */
.cards-container {
  display: flex;
  gap: 1.8rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-accent) rgba(255, 255, 255, 0.1);
}

.cards-container::-webkit-scrollbar {
  height: 8px;
}

.cards-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.cards-container::-webkit-scrollbar-thumb {
  background: var(--gradient-accent);
  border-radius: 10px;
}

/* Cartão principal */
.bank-card {
  min-width: 320px;
  width: 340px;
  height: 220px;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: var(--pure-white);
  flex-shrink: 0;
}

.bank-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.1), transparent);
  z-index: 1;
}

.bank-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Temas de cores para os cartões */
.bank-card.primary-dark-theme {
  background: var(--gradient-dark);
}

.bank-card.accent-theme {
  background: var(--gradient-accent);
}

.bank-card.gray-theme {
  background: linear-gradient(135deg, #747578, #4a4b4d);
}

.bank-card.black-theme {
  background: linear-gradient(135deg, #000000, #2a2a2a);
}

/* Estrutura do cartão */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.bank-logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-type {
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.card-chip-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  z-index: 2;
}

.card-chip {
  width: 48px;
  height: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.chip-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
}

.chip-line:first-child {
  width: 100%;
  height: 2px;
  top: 12px;
}

.chip-line:last-child {
  width: 2px;
  height: 100%;
  left: 18px;
}

.contactless-icon {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
}

.card-number-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  z-index: 2;
}

.card-number {
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.toggle-visibility {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.7;
  transition: all 0.3s;
}

.toggle-visibility:hover {
  opacity: 1;
  transform: scale(1.1);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  z-index: 2;
}

.card-holder, .card-expiry {
  display: flex;
  flex-direction: column;
}

.label {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.name, .date {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Ações do cartão */
.card-actions {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  display: flex;
  gap: 0.8rem;
  z-index: 2;
}

.card-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.card-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.15) rotate(15deg);
}

.card-brand {
  position: absolute;
  bottom: 1.8rem;
  right: 2rem;
  z-index: 2;
}

.card-brand img {
  height: 36px;
  filter: brightness(0) invert(1);
}

/* Cartão virtual */
.bank-card.virtual {
  background: linear-gradient(135deg, #4a4a4a, #2a2a2a);
}

.bank-card.virtual .card-brand img {
  filter: none;
}

.card-badge {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  backdrop-filter: blur(5px);
}

/* Botão de adicionar cartão */
.add-card {
  min-width: 320px;
  width: 340px;
  height: 220px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  color: var(--secondary-gray);
  flex-shrink: 0;
}

.add-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-accent);
  color: var(--pure-white);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.add-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.8rem;
  transition: all 0.5s ease;
  box-shadow: 0 4px 12px rgba(255, 4, 1, 0.3);
}

.add-card:hover .add-icon {
  transform: rotate(180deg);
}

.add-text {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Botões de ação */
.statement-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.action-btn {
  flex: 1;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pure-white);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: var(--primary-accent);
}

.action-btn i {
  font-size: 1.2rem;
  color: var(--primary-accent);
}

/* Responsividade */
@media (max-width: 1200px) {
  .cards-container {
    gap: 1.5rem;
  }
  
  .bank-card, .add-card {
    min-width: 300px;
    width: 320px;
    height: 200px;
    padding: 1.5rem;
  }
}

@media (max-width: 992px) {
  .cards-section {
    padding: 2rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    overflow-x: visible;
  }
  
  .bank-card, .add-card {
    width: 100%;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .color-picker {
    width: 100%;
    justify-content: space-between;
  }
  
  .statement-actions {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cards-section {
    padding: 1.5rem;
  }
  
  .card-number {
    font-size: 1rem;
  }
  
  .card-actions {
    bottom: 1rem;
    right: 1.5rem;
  }
}
