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

:root {
    --side-ad-width: 290px;
    --side-ad-height: 72px;
}

html {
    zoom: 90%;
}

body {
    font-family: 'Inconsolata', monospace;
    background-color: #000;
    color: #00ff7b;
    margin: 0;
    padding: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    font-size: 18px;
    box-sizing: border-box;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

.container {
    max-width: 448px;
    width: 90%;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #00ff7b;
    box-shadow: 0 0 20px #00ff7b;
    background-color: rgba(0, 0, 0, 0.44);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.75);
    transform-origin: center top;
    z-index: 20;
}

h1 {
    text-align: center;
    text-shadow: 0 0 8px #00ff7b;
    font-size: 2.4em;
    margin-top: 0;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 12px;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
    width: 100%;
    text-align: center;
}

input,
select,
button,
textarea {
    background: #111;
    color: #00ff7b;
    border: 2px solid #00ff7b;
    padding: 8px;
    font-family: 'Inconsolata', monospace;
    font-size: 0.95em;
    box-sizing: border-box;
    text-align: center;
    width: 100%;
}

#bin {
    width: 180px;
}

#quantity {
    width: 90px;
}

#expiry {
    width: 110px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    cursor: pointer;
    transition: 0.3s;
    width: 130px;
    padding: 8px 12px;
    font-size: 1em;
}

button:hover {
    background: #00ff7b;
    color: #ff0303;
}

.result {
    margin-top: 15px;
    padding: 12px;
    border: 2px dashed #00ff7b;
    font-size: 0.8em;
    width: 90%;
    height: 250px;
    overflow-y: auto;
    text-align: center;
}

.card {
    font-size: 15px;
    letter-spacing: 1px;
    margin: 10px 0;
    padding: 10px;
    border-bottom: 2px solid #00ff7b;
    transition: 0.2s;
    word-break: break-all;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card.copied {
    color: #f00;
}

.card-number {
    flex-grow: 1;
    text-align: left;
}

.card-copy {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff7b;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75em;
    margin-left: 8px;
}

.card-copy:hover {
    background: rgba(0, 255, 0, 0.4);
}

.side-ads-column {
    position: fixed;
    top: 10px;
    bottom: 10px;
    display: flex; 
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    overflow-y: hidden;
    padding-right: 2px;
}

.side-ads-left {
    left: 12px;
    top: 240px;
}

.side-ads-right {
    right: 12px;
    top: 240px;
}

.side-ads-left-secondary {
    left: calc(12px + var(--side-ad-width) + 8px);
    top: 240px;
}

.side-ads-right-secondary {
    right: calc(12px + var(--side-ad-width) + 8px);
    top: 240px;
}

.side-ad {
    display: block;
    flex: 0 0 auto;
    width: var(--side-ad-width);
    height: var(--side-ad-height);
    border: 1px solid rgba(0, 255, 123, 0.45);
    box-shadow: 0 0 10px rgba(0, 255, 123, 0.3);
    background: rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.side-ad img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.side-ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    font-size: 0.9em;
    line-height: 1.2;
    color: #d5ffd5;
    background: rgba(0, 0, 0, 0.55);
    white-space: normal;
    text-decoration: none;
    padding: 0 10px;
    box-sizing: border-box;
    cursor: pointer;
}

.side-ad-placeholder-center,
.side-ad-placeholder-price {
    white-space: pre-line;
}

.side-ad-placeholder-center {
    font-size: 0.92em;
    line-height: 1.15;
}

.side-ad-placeholder-price {
    font-size: 0.78em;
    line-height: 1;
    font-weight: 700;
    color: #a7ffb8;
    min-width: 34px;
}

.credits {
    font-size: 0.9em;
    color: rgb(64, 255, 0);
    margin-top: 20px;
    text-align: center;
}

.credits a {
    color: #00ff7b;
    text-decoration: underline;
    transition: all 0.3s ease;
    display: inline-block;
}

.credits a:hover {
    color: #ff0202;
    transform: scale(1.1);
}

.social-buttons {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-btn {
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9em;
}

.telegram-btn {
    background: #0088cc;
}

.telegram-btn:hover {
    background: #113445;
}

.whatsapp-btn {
    background: #1fa855;
}

.whatsapp-btn:hover {
    background: #0f6932;
}

.bottom-controls {
    margin-top: 14px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.language-btn,
.music-btn {
    width: auto;
    min-width: 100px;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75em;
    font-weight: bold;
}

.language-btn {
    background: #00ff7b;
    color: #000;
    border: 1px solid #00ff7b;
}

.music-btn {
    background: rgb(242, 255, 0);
    color: #000;
    border: 1px solid rgb(255, 230, 0);
}

.language-btn:hover,
.music-btn:hover {
    background: rgba(217, 255, 0, 0);
    color: #fff;
}

.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    z-index: 1000;
}

.notification {
    background-color: rgba(0, 0, 0, 0.8);
    color: #00ff7b;
    border: 1px solid #00ff7b;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px #00ff7b;
    font-family: 'Inconsolata', monospace;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

@media (max-width: 1200px) {
    .side-ads-column {
        display: none;
    }
}

@media (max-width: 600px) {
    body {
        overflow: auto;
        padding: 8px;
    }

    .container {
        width: 95%;
        padding: 12px;
        transform: none;
        margin-top: 140px;
    }
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-buttons button {
        width: 100%;
        max-width: 250px;
    }

    .card {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-copy {
        margin-left: 0;
        margin-top: 5px;
        align-self: flex-end;
    }

    .notification-container {
        bottom: 10px;
        right: 10px;
    }

    .notification {
        font-size: 0.8em;
        max-width: 200px;
    }
}
