* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #121212, #000000);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
    direction: rtl;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card {
    width: 100%;
    max-width: 380px;
    height: 220px;
    margin: 0 auto 25px;
    border-radius: 15px;
    overflow: hidden;
}

.card-front {
    background: linear-gradient(145deg, #d4af37, #b8860b);
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    height: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.card-header img:not(.chip) {
    height: 30px;
    width: auto;
}

.chip {
    width: 50px;
    height: auto;
}

.card-number {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    margin: 15px 0;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    white-space: nowrap;
}

.card-holder {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.instagram-button {
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #E1306C, #F77737);
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-shadow: 0 5px 20px rgba(225, 48, 108, 0.3);
    border: none;
}

.kourosh {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (min-width: 768px) {
    .card {
        height: 240px;
    }
    
    .card-number {
        font-size: 20px;
    }
    
    .card-holder {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .card-number {
        font-size: 16px;
        letter-spacing: 1px;
        padding: 10px 5px;
    }
    
    .card-holder {
        font-size: 14px;
    }
}