/* ===== LOGIN SCREEN ===== */

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 40px 24px;
}

.login-hero {
    text-align: center;
    margin-bottom: 40px;
}

.app-logo {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.4);
}

.app-name {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-tagline {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 8px;
}

.login-form {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}


/* ===== REGISTER SCREEN ===== */

.register-form {
    max-width: 380px;
    margin: 0 auto;
    padding-top: 10px;
}

.avatar-upload {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    border: 2px dashed var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--text-muted);
    font-size: 13px;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-upload i {
    font-size: 28px;
}

.avatar-upload:active {
    border-color: var(--primary);
    color: var(--primary-light);
}


/* ===== HOME SCREEN ===== */

.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: var(--header-height);
    margin-top: var(--status-height);
    flex-shrink: 0;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.greeting-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.user-name {
    font-size: 18px;
    font-weight: 700;
}

.home-content {
    padding: 16px 20px;
    padding-bottom: calc(var(--nav-height) + 16px);
}


/* Stats Row */

.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}


/* Quick Actions */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text-primary);
}

.action-card:active {
    transform: scale(0.95);
    border-color: var(--primary);
}

.action-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.action-card span {
    font-size: 12px;
    font-weight: 600;
}


/* Recent Purchases */

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.recent-item:active {
    background: var(--bg-card-hover);
}

.recent-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.recent-info {
    flex: 1;
    min-width: 0;
}

.recent-info strong {
    display: block;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

.recent-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--success);
    flex-shrink: 0;
}


/* Alerts */

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.alert-product {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.alert-product i {
    font-size: 28px;
}

.alert-up i {
    color: var(--danger);
}

.alert-down i {
    color: var(--success);
}

.alert-product div strong {
    display: block;
    font-size: 14px;
}

.alert-product div span {
    font-size: 11px;
    color: var(--text-secondary);
}

.alert-price {
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}


/* ===== SCANNER SCREEN ===== */

.scanner-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scanner-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent) !important;
}

.scanner-viewport {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0f;
    min-height: 300px;
    overflow: hidden;
}


/* html5-qrcode container */

#scannerCameraView {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#scannerCameraView video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: none !important;
    /* iOS Safari requer estes atributos para vídeo inline */
    -webkit-playsinline: true;
}


/* Estiliza elementos do html5-qrcode sem esconder o scan region */

#scannerCameraView img[alt="Info icon"],
#scannerCameraView br {
    display: none !important;
}


/* A shaded region precisa existir para o scan funcionar - apenas torna transparente */

#scannerCameraView #qr-shaded-region {
    border-color: rgba(0, 0, 0, 0.5) !important;
}


/* Esconde o texto/botões internos da lib sem afetar o vídeo */

#scannerCameraView>div>img,
#scannerCameraView>div>span {
    display: none !important;
}

.scanner-bg {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.scanner-bg p {
    font-size: 14px;
    color: var(--text-secondary);
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.scanner-frame {
    width: 260px;
    height: 160px;
    position: relative;
}

.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--primary);
    border-style: solid;
}

.corner.tl {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
    border-radius: 8px 0 0 0;
}

.corner.tr {
    top: 0;
    right: 0;
    border-width: 3px 3px 0 0;
    border-radius: 0 8px 0 0;
}

.corner.bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 3px 3px;
    border-radius: 0 0 0 8px;
}

.corner.br {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 8px 0;
}

.scan-line {
    position: absolute;
    top: 10%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scanMove 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

@keyframes scanMove {
    0%,
    100% {
        top: 10%;
    }
    50% {
        top: 85%;
    }
}

.scanner-instructions {
    padding: 16px;
    text-align: center;
}

.scanner-instructions p {
    color: var(--text-secondary);
    font-size: 14px;
}

.scanner-actions {
    padding: 16px;
    padding-bottom: 32px;
}

.scanner-bottom-btns {
    display: flex;
    gap: 10px;
}

.scanner-bottom-btns .btn {
    flex: 1;
    font-size: 13px;
    padding: 12px 8px;
}


/* ===== PRODUCT FOUND ===== */

.product-card-detail {
    text-align: center;
    padding-top: 8px;
}

.product-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary-light);
    margin: 0 auto 16px;
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-barcode {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.info-item.full {
    grid-column: 1 / -1;
}

.info-item>i {
    font-size: 20px;
    color: var(--primary-light);
    margin-top: 2px;
    flex-shrink: 0;
}

.info-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}


/* ===== PRODUCT NOT FOUND ===== */

.not-found-message {
    text-align: center;
    padding: 30px 0 20px;
}

.nf-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--text-muted);
    margin: 0 auto 16px;
}

.not-found-message h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.barcode-display {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: var(--primary-light);
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    display: inline-block;
    margin-bottom: 12px;
}

.not-found-message>p:last-child {
    color: var(--text-secondary);
    font-size: 14px;
}

.register-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.register-option-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text-primary);
    text-align: left;
}

.register-option-card:active {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.option-info {
    flex: 1;
}

.option-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.option-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.register-option-card>i:last-child {
    font-size: 22px;
    color: var(--text-muted);
}


/* ===== QUICK/FULL REGISTER ===== */

.quick-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.photo-upload {
    width: 100%;
    height: 140px;
    border-radius: var(--radius);
    border: 2px dashed var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.photo-upload i {
    font-size: 36px;
}

.photo-upload:active {
    border-color: var(--primary);
    color: var(--primary-light);
}


/* ===== MANUAL CODE ===== */

.manual-code-form {
    text-align: center;
    padding-top: 60px;
}

.code-icon {
    font-size: 60px;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.manual-code-form p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}


/* ===== BUY AGAIN MODAL ===== */

.modal-question {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
}

.modal-price-ref {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-price-ref strong {
    color: var(--success);
    font-size: 20px;
}

.modal-actions-row {
    display: flex;
    gap: 10px;
}

.new-price-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}


/* ===== SHOPPING LISTS ===== */

.lists-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: calc(var(--nav-height) + 16px);
}

.list-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.list-card:active {
    border-color: var(--primary);
}

.list-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.list-card-header h4 {
    font-size: 16px;
}

.list-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.list-badge.active {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
}

.list-badge.completed {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
}

.list-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.list-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.list-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}


/* ===== LIST DETAIL ===== */

.list-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.list-item.checked {
    opacity: 0.5;
}

.item-checkbox {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    background: none;
    color: transparent;
    font-size: 14px;
}

.list-item.checked .item-checkbox {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.item-info {
    flex: 1;
}

.item-info strong {
    display: block;
    font-size: 14px;
}

.list-item.checked .item-info strong {
    text-decoration: line-through;
}

.item-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

.item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-accent);
    flex-shrink: 0;
}

.item-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.item-delete:hover {
    color: var(--danger);
}


/* ===== PRICE SEARCH ===== */

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0 16px;
    margin-bottom: 16px;
}

.search-box i {
    font-size: 20px;
    color: var(--text-muted);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    padding: 14px 0;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: calc(var(--nav-height) + 16px);
}

.product-search-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.product-search-card:active {
    border-color: var(--primary);
}

.psc-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.psc-info {
    flex: 1;
    min-width: 0;
}

.psc-info strong {
    display: block;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.psc-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

.psc-right {
    text-align: right;
    flex-shrink: 0;
}

.psc-price {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--success);
}

.psc-trend {
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border-radius: 4px;
}

.psc-trend.up {
    background: rgba(225, 112, 85, 0.15);
    color: var(--danger);
}

.psc-trend.down {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
}

.psc-trend.stable {
    background: rgba(178, 190, 195, 0.15);
    color: var(--text-secondary);
}


/* ===== PRICE HISTORY ===== */

.product-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.pmc-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-light);
}

.pmc-info strong {
    display: block;
    font-size: 15px;
}

.pmc-info span {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.chart-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
}

.chart-container h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 140px;
    padding: 0 4px;
}

.chart-bar {
    flex: 1;
    border-radius: 6px 6px 0 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 0;
}

.chart-bar:hover {
    filter: brightness(1.2);
}

.chart-bar .bar-value {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.chart-labels {
    display: flex;
    gap: 8px;
    padding: 8px 4px 0;
}

.chart-labels span {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.history-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.history-dot.current {
    background: var(--primary);
}

.history-dot.past {
    background: var(--text-muted);
}

.history-info {
    flex: 1;
}

.history-info strong {
    display: block;
    font-size: 15px;
}

.history-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

.history-change {
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.history-change.up {
    color: var(--danger);
}

.history-change.down {
    color: var(--success);
}

.history-change.same {
    color: var(--text-muted);
}


/* ===== EXPORT SCREEN ===== */

.export-hero {
    text-align: center;
    padding: 24px 0;
}

.export-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin: 0 auto 16px;
}

.export-hero h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.export-hero p {
    color: var(--text-secondary);
    font-size: 14px;
}

.period-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.period-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-xs);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.period-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.export-format-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.export-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text-primary);
    text-align: left;
}

.export-card:active {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.export-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.export-card-info {
    flex: 1;
}

.export-card-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.export-card-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

.export-card>i:last-child {
    font-size: 20px;
    color: var(--text-muted);
}


/* ===== PROFILE ===== */

.profile-header {
    text-align: center;
    padding: 24px 0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    margin: 0 auto 12px;
}

.profile-header h3 {
    font-size: 22px;
    font-weight: 700;
}

.profile-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.pstat {
    text-align: center;
}

.pstat strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-light);
}

.pstat span {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: calc(var(--nav-height) + 16px);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text-primary);
    font-size: 15px;
}

.profile-menu-item:active {
    background: var(--bg-card-hover);
}

.profile-menu-item>i:first-child {
    font-size: 20px;
    color: var(--primary-light);
    width: 24px;
    text-align: center;
}

.profile-menu-item span {
    flex: 1;
}

.profile-menu-item>i:last-child {
    font-size: 18px;
    color: var(--text-muted);
}

.profile-menu-item.danger {
    color: var(--danger);
    margin-top: 12px;
}

.profile-menu-item.danger>i:first-child {
    color: var(--danger);
}