/* ============================================
    ACHIEVEMENTS - CARDS PROFESSIONAL
    Design premium com mais informações
    Tema Rust Black Industrial
    ============================================ */

/* CONTAINER */
.st-ach-cards-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: #000000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 600px) {
    .st-ach-cards-container {
        left: 50%;
        transform: translateX(-50%);
        max-width: 480px;
        border-left: 1px solid rgba(255,255,255,0.05);
        border-right: 1px solid rgba(255,255,255,0.05);
    }
}

/* HEADER */
.st-ach-header {
    padding: 24px 20px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
    background: #000000;
    position: relative;
}

.st-ach-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.st-ach-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 0 30px rgba(255,255,255,0.05);
}

.st-ach-header p {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #666666;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin: 4px 0 0;
}

/* PROGRESSO */
.st-ach-progress {
    padding: 12px 20px;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.st-ach-progress-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #555555;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}

.st-ach-progress-bar {
    flex: 1;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
}

.st-ach-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #888888, #ffffff);
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.st-ach-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.st-ach-progress-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #888888;
    white-space: nowrap;
    min-width: 45px;
    text-align: right;
    font-weight: 700;
}

/* WRAPPER */
.st-ach-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.02) 0%, transparent 70%);
}

/* DECK */
.st-ach-deck {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 480px;
}

/* CARTA - DESIGN PREMIUM */
.st-ach-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #0d0d0d 0%, #080808 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 24px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: grab;
    user-select: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    will-change: transform, opacity;
    overflow: hidden;
}

.st-ach-card:active {
    cursor: grabbing;
}

/* TEXTURA DA CARTA */
.st-ach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.008) 2px, rgba(255,255,255,0.008) 4px),
        radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.03) 0%, transparent 60%);
    border-radius: 16px;
    pointer-events: none;
}

/* BORDA GLOW */
.st-ach-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.4s ease;
}

/* STATUS - UNLOCKED */
.st-ach-card.unlocked {
    border-color: rgba(255,255,255,0.15);
    background: linear-gradient(160deg, #111111 0%, #0a0a0a 100%);
}

.st-ach-card.unlocked::after {
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 40%, rgba(255,255,255,0.1) 100%);
    opacity: 0.3;
}

/* STATUS - CURRENT */
.st-ach-card.current {
    border-color: rgba(255,255,255,0.2);
    background: linear-gradient(160deg, #141414 0%, #0a0a0a 100%);
}

.st-ach-card.current::after {
    background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, transparent 40%, rgba(255,255,255,0.2) 100%);
    opacity: 0.4;
    animation: borderPulse 2.5s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* STATUS - LOCKED */
.st-ach-card.locked {
    opacity: 0.5;
    border-color: rgba(255,255,255,0.03);
}

/* BADGE STATUS */
.st-ach-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--font-mono);
    font-size: 0.45rem;
    font-weight: 700;
    color: #444444;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 3px 12px;
    border-radius: 20px;
    z-index: 5;
}

.st-ach-card.unlocked .st-ach-badge {
    color: #ffffff;
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
}

.st-ach-card.current .st-ach-badge {
    color: #ffffff;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
}

/* NÚMERO */
.st-ach-number {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    color: #333333;
    letter-spacing: 0.1em;
    z-index: 5;
}

.st-ach-card.unlocked .st-ach-number {
    color: #777777;
}

.st-ach-card.current .st-ach-number {
    color: #777777;
}

/* IMAGEM */
.st-ach-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.06);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    margin-bottom: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.st-ach-card.unlocked .st-ach-image {
    border-color: rgba(255,255,255,0.15);
}

.st-ach-card.current .st-ach-image {
    border-color: rgba(255,255,255,0.2);
}

.st-ach-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%);
    transition: filter 0.4s ease;
}

.st-ach-card.unlocked .st-ach-image img {
    filter: grayscale(0%) contrast(100%);
}

.st-ach-card.current .st-ach-image img {
    filter: grayscale(0%) contrast(100%);
}

.st-ach-image .st-ach-fallback {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    transition: color 0.4s ease;
}

.st-ach-card.unlocked .st-ach-fallback {
    color: #ffffff;
}

.st-ach-card.current .st-ach-fallback {
    color: #ffffff;
}

/* TÍTULO */
.st-ach-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 2px 0;
    line-height: 1.2;
    z-index: 2;
}

.st-ach-card.locked .st-ach-title {
    color: #444444;
}

/* SUBTÍTULO */
.st-ach-sub {
    font-family: var(--font-main);
    font-size: 0.75rem;
    color: #555555;
    margin-bottom: 2px;
    z-index: 2;
}

.st-ach-card.unlocked .st-ach-sub {
    color: #999999;
}

.st-ach-card.current .st-ach-sub {
    color: #999999;
}

/* DIAS */
.st-ach-days {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: #333333;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 2;
}

.st-ach-card.unlocked .st-ach-days {
    color: #666666;
}

.st-ach-card.current .st-ach-days {
    color: #666666;
}

/* INFORMAÇÕES ADICIONAIS */
.st-ach-info-row {
    display: flex;
    gap: 16px;
    margin: 4px 0 6px;
    z-index: 2;
    width: 100%;
    justify-content: center;
}

.st-ach-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.st-ach-info-item .st-ach-info-label {
    font-family: var(--font-mono);
    font-size: 0.45rem;
    color: #444444;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.st-ach-info-item .st-ach-info-value {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: #888888;
}

.st-ach-card.unlocked .st-ach-info-value {
    color: #ffffff;
}

.st-ach-card.current .st-ach-info-value {
    color: #ffffff;
}

/* PROGRESSO DA CARTA */
.st-ach-card-progress {
    width: 90%;
    margin-top: 4px;
    z-index: 2;
}

.st-ach-card-progress .st-ach-track {
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
}

.st-ach-card-progress .st-ach-fill {
    height: 100%;
    background: linear-gradient(90deg, #555555, #ffffff);
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.st-ach-card-progress .st-ach-label {
    font-family: var(--font-mono);
    font-size: 0.45rem;
    color: #444444;
    margin-top: 3px;
    letter-spacing: 0.05em;
}

.st-ach-card.unlocked .st-ach-label {
    color: #888888;
}

.st-ach-card.current .st-ach-label {
    color: #888888;
}

/* REWARD */
.st-ach-reward {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: #333333;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 4px 14px;
    border-radius: 20px;
    margin-top: 4px;
    z-index: 2;
    background: rgba(255,255,255,0.02);
}

.st-ach-card.unlocked .st-ach-reward {
    color: #ffffff;
    border-color: rgba(255,255,255,0.15);
}

.st-ach-card.current .st-ach-reward {
    color: #ffffff;
    border-color: rgba(255,255,255,0.2);
}

/* BOTÃO VER DETALHES */
.st-ach-detail-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-family: var(--font-mono);
    font-size: 0.45rem;
    color: #555555;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 4px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.st-ach-detail-btn:hover {
    border-color: rgba(255,255,255,0.2);
    color: #ffffff;
}

.st-ach-card.unlocked .st-ach-detail-btn {
    color: #888888;
    border-color: rgba(255,255,255,0.1);
}

.st-ach-card.unlocked .st-ach-detail-btn:hover {
    color: #ffffff;
    border-color: #ffffff;
}

/* LOCKED OVERLAY */
.st-ach-locked {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 6;
}

.st-ach-locked .st-ach-lock-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

.st-ach-locked .st-ach-lock-days {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: #ffffff;
    letter-spacing: 0.1em;
}

.st-ach-locked .st-ach-lock-text {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #555555;
    letter-spacing: 0.15em;
}

/* NAVEGAÇÃO */
.st-ach-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 6px;
    flex-shrink: 0;
    background: #000000;
}

.st-ach-dot {
    width: 6px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.st-ach-dot.active {
    width: 28px;
    border-radius: 3px;
    background: #ffffff;
}

.st-ach-dot:hover:not(.active) {
    background: #333333;
}

/* CONTADOR */
.st-ach-counter {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: #333333;
    text-align: center;
    padding-bottom: 8px;
    flex-shrink: 0;
    background: #000000;
    letter-spacing: 0.15em;
}

/* BOTÃO FECHAR */
.st-ach-close {
    padding: 14px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 20px));
    text-align: center;
    flex-shrink: 0;
    background: #000000;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.st-ach-close button {
    padding: 12px 40px;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.st-ach-close button:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #000000;
}

.st-ach-close button:active {
    transform: scale(0.96);
}

/* RESPONSIVO */
@media (max-width: 400px) {
    .st-ach-deck { height: 420px; }
    .st-ach-image { width: 80px; height: 80px; }
    .st-ach-title { font-size: 1.2rem; }
    .st-ach-card { padding: 18px 14px 14px; }
    .st-ach-info-item .st-ach-info-value { font-size: 0.8rem; }
    .st-ach-detail-btn { font-size: 0.4rem; padding: 3px 10px; bottom: 12px; right: 12px; }
}

@media (min-width: 600px) {
    .st-ach-deck { max-width: 380px; height: 520px; }
    .st-ach-image { width: 120px; height: 120px; }
    .st-ach-title { font-size: 1.6rem; }
}

@media (max-height: 700px) {
    .st-ach-deck { height: 380px; }
    .st-ach-image { width: 70px; height: 70px; }
    .st-ach-title { font-size: 1.1rem; }
    .st-ach-card { padding: 14px 12px 10px; }
    .st-ach-sub { font-size: 0.65rem; }
    .st-ach-info-item .st-ach-info-value { font-size: 0.7rem; }
    .st-ach-detail-btn { display: none; }
}