:root {
    --transition-speed: 0.3s;
    --border-radius: 12px;
}

body.light_theme {
    --home-primary-color: #4e73df;
    --home-secondary-color: #1cc88a;
    --accent-color: #f6c23e;

    --bg-main: #ffffff;
    --bg-alt: #f8f9fc;
    --bg-card: #ffffff;
    --home-bg-header: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);

    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-light: #ffffff;

    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);

    --gradient-primary: linear-gradient(90deg, var(--home-primary-color), var(--home-secondary-color));
    --gradient-btn: linear-gradient(45deg, var(--home-primary-color), #375bc8);
    --overlay-light: rgba(255, 255, 255, 0.1);
    --overlay-dark: rgba(0, 0, 0, 0.1);
    --highlight: rgba(255, 255, 255, 0.9);

    --icon-bg: rgba(78, 115, 223, 0.1);
    --icon-color: var(--home-primary-color);
}

body.dark_theme {
    --home-primary-color: #5e83ef;
    --home-secondary-color: #2cd89a;
    --accent-color: #f6c23e;

    --bg-main: #121212;
    --bg-alt: #1a1a2e;
    --bg-card: #1e1e30;
    --home-bg-header: linear-gradient(135deg, #0f0f1a 0%, #0a1a30 100%);

    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --text-light: #ffffff;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.3);

    --gradient-primary: linear-gradient(90deg, var(--home-primary-color), var(--home-secondary-color));
    --gradient-btn: linear-gradient(45deg, var(--home-primary-color), #4a6ad0);
    --overlay-light: rgba(255, 255, 255, 0.05);
    --overlay-dark: rgba(0, 0, 0, 0.3);
    --highlight: rgba(255, 255, 255, 0.1);

    --icon-bg: rgba(94, 131, 239, 0.2);
    --icon-color: var(--home-primary-color);
}

.profile-container {
    background: var(--bg-main);
    min-height: 100vh;
    padding-top: 130px;
    padding-bottom: 50px;
}

.profile-header {
    background: var(--home-bg-header);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: var(--overlay-light);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
}

.profile-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.profile-avatar ion-icon {
    font-size: 4rem;
    color: var(--text-light);
}

.profile-info h1 {
    color: var(--text-light);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.profile-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.content-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title ion-icon {
    font-size: 1.5rem;
    color: var(--home-primary-color);
    padding: 0.5rem;
    background: var(--icon-bg);
    border-radius: 8px;
}

.card-action {
    background: var(--gradient-btn);
    color: var(--text-light);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.card-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-light);
}

.account-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: var(--overlay-light);
    transform: translateX(5px);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--icon-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon ion-icon {
    font-size: 1.2rem;
    color: var(--icon-color);
}

.info-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ticket-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.ticket-header {
    background: var(--gradient-primary);
    padding: 1.5rem;
    color: var(--text-light);
    position: relative;
}

.ticket-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--home-secondary-color);
}

.ticket-artist {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ticket-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.ticket-body {
    padding: 1.5rem;
    text-align: center;
}

.ticket-qr {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ticket-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticket-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--icon-bg);
    color: var(--icon-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estado vazio */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state ion-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.empty-state .btn {
    background: var(--gradient-btn);
    color: var(--text-light);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.empty-state .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-light);
}

/* Configurações rápidas */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.quick-action:hover {
    background: var(--overlay-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

.quick-action ion-icon {
    font-size: 1.5rem;
    color: var(--home-primary-color);
    padding: 0.5rem;
    background: var(--icon-bg);
    border-radius: 8px;
}

.quick-action-text {
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
    .profile-header {
        padding: 2rem;
    }

    .profile-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-stats {
        justify-content: center;
    }

    .content-card {
        padding: 1.5rem;
    }

    .account-info {
        grid-template-columns: 1fr;
    }

    .tickets-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .profile-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Animações */
.content-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.content-card:nth-child(1) {
    animation-delay: 0.1s;
}

.content-card:nth-child(2) {
    animation-delay: 0.2s;
}

.content-card:nth-child(3) {
    animation-delay: 0.3s;
}

.content-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-header {
    opacity: 0;
    transform: translateY(-20px);
    animation: slideInDown 0.8s ease forwards;
}

@keyframes slideInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}