@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* ========================================
   VARIABLES Y RESET GLOBAL
   ======================================== */

:root {
    --primary-color: #eb753a;
    --primary-dark: #e63a1a;
    --primary-light: #ff8c42;
    --success-color: #38a169;
    --danger-color: #e53e3e;
    --warning-color: #dd6b20;
    --info-color: #3182ce;
    --dark-color: #1a202c;
    --gray-dark: #2d3748;
    --gray-medium: #4a5568;
    --gray-light: #718096;
    --gray-lighter: #a0aec0;
    --gray-lightest: #e2e8f0;
    --border-color: #e2e8f0;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--gray-medium);
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand .logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar-brand .logo:hover {
    transform: scale(1.05);
}

.navbar-links-desktop {
    display: none;
}

.hamburger {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}

.hamburger:hover {
    transform: scale(1.1);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    text-align: right;
    padding: 1rem 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

.content {
    padding: 2rem;
    flex-grow: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ========================================
   USER CARD
   ======================================== */

.user-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    max-width: 95%;
    margin: 2rem auto;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.user-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid var(--gray-lightest);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.user-info {
    flex: 1;
}

.user-name {
    margin: 0;
    font-size: 1.75rem;
    color: var(--dark-color);
    font-weight: 700;
    max-width: 95%;
}

.user-email {
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
    color: var(--gray-light);
    font-weight: 400;
}

/* Status Badge Container */
.status-badge-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

/* Verification Badge */
.badge.verified,
.badge.pending {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.badge.verified {
    background-color: #e6fffa;
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.badge.pending {
    background-color: #fffaf0;
    color: var(--warning-color);
    border: 2px solid var(--warning-color);
}

/* Balances Container */
.balances-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    background-color: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    min-width: 250px;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.balance-row .stat-label {
    font-size: 0.875rem;
    color: var(--gray-light);
    font-weight: 600;
}

.balance-row .stat-value {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--gray-dark);
}

.balance-available {
    color: var(--success-color) !important;
}

.balance-pending {
    color: var(--warning-color) !important;
}

/* Card Stats Grid */
.card-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding-left: 1.5rem;
    border-left: 3px solid var(--gray-lightest);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.1rem;
    color: var(--gray-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value.enabled {
    color: var(--success-color);
}

.stat-value.disabled {
    color: var(--danger-color);
}

.icon-enabled {
    color: var(--success-color);
}

.icon-disabled {
    color: var(--danger-color);
}

/* ========================================
   ONBOARDING CARD
   ======================================== */

.onboarding-card {
    background: linear-gradient(135deg, #fffaf0 0%, #fff5e6 100%);
    border-left: 6px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    max-width: 95%;
    margin: 1.5rem auto;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.onboarding-card h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
}

.onboarding-card p {
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.onboarding-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(235, 117, 58, 0.3);
}

.onboarding-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(235, 117, 58, 0.4);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background-color: var(--gray-dark);
    color: var(--gray-lighter);
    padding: 2.5rem 2rem;
    margin-top: auto;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-info p {
    margin: 0.35rem 0;
    font-size: 0.9rem;
}

.footer-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-info a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--gray-lighter);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-social a:hover {
    color: var(--primary-color);
    background-color: rgba(235, 117, 58, 0.1);
    transform: translateY(-3px);
}

/* ========================================
   SUCCESS PAGE
   ======================================== */

.success-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f7f6;
    font-family: 'Poppins', sans-serif;
}

.success-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    margin: 1rem;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    color: var(--success-color);
    margin-bottom: 1.5rem;
    font-size: 4rem;
}

.success-card h1 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.success-card p {
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(235, 117, 58, 0.3);
}

.success-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(235, 117, 58, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .card-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .card-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .status-badge-container {
        align-items: flex-start;
        width: 100%;
    }

    .balances-container {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        margin-top: 1rem;
        justify-content: center;
    }

    .card-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .user-name {
        font-size: 1.5rem;
    }

    .user-card,
    .onboarding-card {
        padding: 1.5rem;
        border-radius: 8px;
    }

    .content {
        padding: 1rem;
    }

    .success-card {
        padding: 2rem 1.5rem;
    }

    .success-card h1 {
        font-size: 1.5rem;
    }
}


/* ========================================
   PAYMENT LINKS - ESTILOS ESPECÍFICOS
   ======================================== */

/* Section Headers */
.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.25rem;
    color: #1a202c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: #eb753a;
}

.section-header p {
    color: #718096;
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
}

/* Payment Link Creator Card */
.payment-link-creator {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    max-width: 95%;
    margin: 2rem auto;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease;
}

.payment-link-creator:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Form Styles */
#payment-link-form .form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

#payment-link-form .form-group {
    display: flex;
    flex-direction: column;
}

#payment-link-form label {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#payment-link-form label i {
    color: #718096;
    font-size: 0.875rem;
}

#payment-link-form input[type="text"],
#payment-link-form input[type="number"] {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #f7fafc;
}

#payment-link-form input[type="text"]:focus,
#payment-link-form input[type="number"]:focus {
    outline: none;
    border-color: #eb753a;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(235, 117, 58, 0.1);
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.checkbox-container:hover {
    background-color: #f7fafc;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-right: 0.75rem;
    transition: all 0.2s ease;
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background-color: #eb753a;
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    display: block;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 0.9rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label i {
    color: #718096;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #eb753a 0%, #ff8c42 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(235, 117, 58, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(235, 117, 58, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-copy {
    background-color: #2d3748;
    color: white;
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy:hover {
    background-color: #1a202c;
}

.btn-icon {
    background-color: transparent;
    color: #eb753a;
    border: 2px solid #eb753a;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-icon:hover {
    background-color: #eb753a;
    color: white;
}

/* Result Container */
.result-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.result-container label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #38a169;
    font-size: 0.95rem;
}

.result-container label i {
    font-size: 1.1rem;
}

.result-input-group {
    display: flex;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.result-input-group input {
    flex-grow: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background-color: #f7fafc;
    font-family: 'Poppins', sans-serif;
    color: #2d3748;
    font-size: 0.9rem;
}

.result-input-group input:focus {
    outline: none;
    background-color: white;
}

/* Error Message */
.error-message {
    color: #e53e3e;
    background-color: #fff5f5;
    border: 2px solid #feb2b2;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message:before {
    content: "\f06a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Transactions List */
.transactions-list {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    max-width: 95%;
    margin: 2rem auto;
    border: 1px solid #e2e8f0;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 1rem;
}

.transactions-list table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.transactions-list th {
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    background-color: #f7fafc;
    font-size: 0.8rem;
    color: #4a5568;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.transactions-list th i {
    margin-right: 0.5rem;
    color: #718096;
}

.transactions-list td {
    padding: 1rem 0.75rem;
    color: #2d3748;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.transactions-list tbody tr {
    transition: background-color 0.2s ease;
}

.transactions-list tbody tr:hover {
    background-color: #f7fafc;
}

.transactions-list .text-right {
    text-align: right;
    font-weight: 600;
    color: #2d3748;
}

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

/* Badges */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.3px;
}

.badge-success {
    background-color: #e6fffa;
    color: #2c7a7b;
}

.badge-warning {
    background-color: #fffaf0;
    color: #c05621;
}

.no-data-message {
    text-align: center;
    padding: 3rem 1rem !important;
    color: #a0aec0;
    font-size: 0.95rem;
}

.no-data-message i {
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    #payment-link-form .form-row {
        grid-template-columns: 1fr;
    }

    .payment-link-creator,
    .transactions-list {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.1rem;
    }

    .payment-link-creator,
    .transactions-list {
        padding: 1.25rem;
        max-width: 100%;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .transactions-list table {
        font-size: 0.875rem;
    }

    .transactions-list th,
    .transactions-list td {
        padding: 0.75rem 0.5rem;
    }

    .btn-icon {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .payment-link-creator {
        border-radius: 8px;
    }

    .result-input-group {
        flex-direction: column;
    }

    .result-input-group input {
        border-radius: 8px 8px 0 0;
        border-right: 2px solid #e2e8f0;
        border-bottom: none;
    }

    .btn-copy {
        border-radius: 0 0 8px 8px;
        padding: 0.75rem;
    }
}