/**
 * VILLN VPN - Brutalist Monochrome Style
 * Pure Black & White - No Gradients - Bold Typography
 * UPDATED: Compact layout, orange warnings, copy icons
 */

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden; /* NO SCROLLBAR */
}

body {
    font-family: 'Courier New', 'Courier', monospace;
    background: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu.active {
    display: flex;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 4px solid #ffffff;
    color: #ffffff;
    font-size: 32px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.menu-close:hover {
    background: #ffffff;
    color: #000000;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    border: 4px solid #ffffff;
    padding: 20px 40px;
    display: block;
    transition: all 0.2s;
}

.mobile-nav a:hover {
    background: #ffffff;
    color: #000000;
}

.mobile-contract {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 3px solid #ffffff;
    text-align: center;
}

.mobile-contract .contract-label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #ffffff;
}

.contract-address-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 3px solid #ffffff;
    padding: 12px;
}

.contract-address-mobile input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    text-align: center;
}

.contract-address-mobile input:focus {
    outline: none;
}

/* ============================================
   FAQ OVERLAY
   ============================================ */
.faq-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 1000;
    overflow-y: auto;
    padding: 80px 20px 40px;
}

.faq-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: 4px solid #ffffff;
    color: #ffffff;
    font-size: 32px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    z-index: 1001;
}

.faq-close:hover {
    background: #ffffff;
    color: #000000;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-content h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 4px solid #ffffff;
    padding-bottom: 20px;
}

.faq-item {
    border: 4px solid #ffffff;
    margin-bottom: 15px;
    background: #000000;
}

.faq-question {
    width: 100%;
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.faq-question:hover {
    background: #ffffff;
    color: #000000;
}

.faq-item.open .faq-question {
    background: #ffffff;
    color: #000000;
    border-bottom: 4px solid #000000;
}

.faq-icon {
    font-size: 24px;
    font-weight: bold;
    margin-left: 15px;
}

.faq-answer {
    display: none;
    padding: 20px;
    background: #ffffff;
    color: #000000;
    font-size: 13px;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    display: block;
}

@media (max-width: 768px) {
    .faq-overlay {
        padding: 70px 15px 30px;
    }
    
    .faq-content h2 {
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 12px;
    }
    
    .faq-answer {
        padding: 15px;
        font-size: 12px;
    }
    
    .faq-icon {
        font-size: 20px;
    }
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: #000000;
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #000000;
    flex-shrink: 0;
    gap: 15px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

header h1 {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 4px;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contract-address-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 3px solid #ffffff;
    padding: 6px 10px;
}

.contract-label {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.contract-address-desktop input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    width: 180px;
    padding: 0;
}

.contract-address-desktop input:focus {
    outline: none;
}

.copy-icon-small {
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    font-size: 14px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-icon-small:hover {
    background: #000000;
    color: #ffffff;
}

.hamburger {
    display: none;
    background: none;
    border: 3px solid #ffffff;
    color: #ffffff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-weight: bold;
}

.hamburger:hover {
    background: #ffffff;
    color: #000000;
}

.faq-btn,
.download-btn {
    background: #ffffff;
    color: #000000;
    border: 3px solid #ffffff;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

.faq-btn:hover,
.download-btn:hover {
    background: #000000;
    color: #ffffff;
}

/* Show hamburger on mobile, hide desktop elements */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .header-right {
        display: none;
    }
    
    header h1 {
        font-size: 20px;
    }
    
    .logo {
        height: 28px;
    }
    
    header {
        padding: 10px 15px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #000000;
    color: #ffffff;
    padding: 12px 20px;
    text-align: center;
    border-top: 4px solid #000000;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: bold;
    flex-shrink: 0;
    font-family: 'Courier New', monospace;
}

footer p {
    margin: 0;
}

#userIP {
    color: #ffffff;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    footer {
        font-size: 10px;
        padding: 10px 15px;
    }
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
main.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

/* ============================================
   STEPS
   ============================================ */
.step {
    display: none;
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.3s;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content {
    background: #ffffff;
    border: 4px solid #000000;
    padding: 20px;
}

.step-content h2 {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 3px solid #000000;
    padding-bottom: 8px;
}

.step-content h3 {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* ============================================
   ACCOUNT DISPLAY
   ============================================ */
.account-box {
    border: 4px solid #000000;
    padding: 15px;
    margin: 12px 0;
    text-align: center;
    background: #000000;
    color: #ffffff;
    position: relative;
}

.account-box .label {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: bold;
}

.account-number {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 0;
    word-break: break-all;
}

.copy-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffffff;
    color: #000000;
    border: 3px solid #ffffff;
    font-size: 18px;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-icon:hover {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
}

.warning-box {
    border: 4px solid #000000;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    background: #ffffff;
}

.warning-box p {
    font-size: 11px;
    line-height: 1.4;
}

.warning-box.orange {
    border-color: #ff6b00;
    background: #fff5eb;
    color: #000000;
}

.warning-box.orange p {
    font-weight: bold;
}

/* ============================================
   CURRENCY SELECTION
   ============================================ */
.currency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.currency-card {
    border: 4px solid #000000;
    padding: 15px 10px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.currency-card:hover {
    background: #000000;
    color: #ffffff;
}

.currency-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.currency-card:hover .currency-icon {
    filter: invert(1);
}

.currency-name {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
}

.currency-code {
    display: block;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* ============================================
   CONFIRMATION
   ============================================ */
.confirmation-box {
    border: 4px solid #000000;
    padding: 15px;
    margin: 12px 0;
    text-align: center;
    background: #000000;
    color: #ffffff;
}

.confirmation-box .label {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: bold;
}

.selected-currency {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.price-info {
    font-size: 12px;
    letter-spacing: 1px;
}

/* ============================================
   PAYMENT DETAILS
   ============================================ */
.payment-top-section {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.payment-top-section .warning-box {
    flex: 0 0 27%;
    margin: 0;
}

.qr-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qr-container {
    text-align: center;
    padding: 8px;
    border: 4px solid #000000;
    background: #ffffff;
}

#qrcode {
    display: inline-block;
}

#qrcode img {
    border: 3px solid #000000;
}

.address-display {
    border: 4px solid #000000;
    padding: 8px;
    background: #ffffff;
    position: relative;
    word-break: break-all;
	width: 100%;  /* Add this */
    min-height: 60px;  /* Add this to give it height */
}

.address-text {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    line-height: 1.3;
    padding-right: 39px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.copy-icon-inline {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffffff;
    color: #000000;
    border: 3px solid #000000;
    font-size: 16px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-icon-inline:hover {
    background: #000000;
    color: #ffffff;
}

.payment-details {
    margin: 10px 0;
}

.detail-row {
    margin-bottom: 10px;
}

.detail-row.full-width {
    width: 100%;
}

.detail-row.half-width {
    flex: 1;
    min-width: 0;
}

.detail-row-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.detail-row .label {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 6px;
    font-weight: bold;
}

.copy-box {
    position: relative;
    border: 3px solid #000000;
}

.copy-box input {
    width: 100%;
    border: none;
    padding: 8px 40px 8px 8px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    background: #ffffff;
}

.copy-box input:focus {
    outline: none;
    background: #f5f5f5;
}

.copy-box .copy-icon {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    font-size: 14px;
}

.mono-text {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    word-break: break-all;
    padding: 8px;
    border: 3px solid #000000;
    background: #ffffff;
}

/* ============================================
   BUTTONS
   ============================================ */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 12px;
    border: 4px solid #000000;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background: #ffffff;
    color: #000000;
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
}

.btn-secondary:hover:not(:disabled) {
    background: #000000;
    color: #ffffff;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   MESSAGE BOX
   ============================================ */
.message-box {
    border: 4px solid #000000;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 11px;
}

.message-box.success {
    background: #000000;
    color: #ffffff;
}

.message-box.error {
    background: #ffffff;
    color: #000000;
    border-style: dashed;
}

.message-box.info {
    background: #ffffff;
    color: #000000;
}

/* ============================================
   STATUS CHECK
   ============================================ */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    border: 3px solid #000000;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 3px;
    background: #ffffff;
}

.input-group input:focus {
    outline: none;
    background: #000000;
    color: #ffffff;
}

.status-box {
    border: 4px solid #000000;
    padding: 25px;
    margin: 15px 0;
    text-align: center;
    background: #000000;
    color: #ffffff;
}

.status-label {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: bold;
}

.status-value {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.status-value.active {
    color: #ffffff;
}

.status-value.expired {
    color: #ffffff;
}

.status-value.pending {
    color: #ffffff;
}

.status-details {
    font-size: 13px;
    letter-spacing: 2px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: #ffffff;
    padding: 15px 25px;
    border: 4px solid #000000;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 9999;
    max-width: 90%;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.toast.error {
    background: #ffffff;
    color: #000000;
    border-color: #ff0000;
}

.toast.success {
    background: #000000;
    color: #ffffff;
}

.toast.info {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    main.container {
        padding: 8px;
    }
    
    .step-content {
        padding: 15px;
    }
    
    .step-content h2 {
        font-size: 12px;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }
    
    .account-box {
        padding: 12px;
        margin: 10px 0;
    }
    
    .account-number {
        font-size: 18px;
        letter-spacing: 3px;
    }
    
    .copy-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .warning-box {
        padding: 8px;
        margin: 8px 0;
    }
    
    .warning-box p {
        font-size: 10px;
    }
    
    .currency-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .currency-card {
        padding: 12px 10px;
    }
    
    .currency-icon {
        width: 35px;
        height: 35px;
    }
    
    .currency-code {
        font-size: 18px;
    }
    
    .currency-name {
        font-size: 9px;
    }
    
    .selected-currency {
        font-size: 24px;
    }
    
    .confirmation-box {
        padding: 12px;
        margin: 10px 0;
    }
    
    .price-info {
        font-size: 11px;
    }
    
    /* Payment section - stack vertically on mobile */
    .payment-top-section {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .qr-section {
        width: 100%;
        align-items: center;
    }
    
    .qr-container {
        padding: 6px;
    }
    
    #qrcode img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .address-display {
        padding: 6px;
        max-width: 100%;
    }
    
    .address-text {
        font-size: 9px;
        padding-right: 32px;
    }
    
    .copy-icon-inline {
        width: 28px;
        height: 28px;
        font-size: 14px;
        top: 6px;
        right: 6px;
    }
    
    .payment-details {
        margin: 10px 0;
    }
    
    .detail-row {
        margin-bottom: 8px;
    }
    
    .detail-row-group {
        flex-direction: row;
        gap: 8px;
    }
    
    .copy-box input {
        font-size: 10px;
        padding: 8px 35px 8px 8px;
    }
    
    .copy-box .copy-icon {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px;
        font-size: 12px;
    }
    
    .button-group {
        gap: 8px;
        margin-top: 10px;
    }
    
    .status-value {
        font-size: 24px;
    }
    
    .status-box {
        padding: 15px;
        margin: 10px 0;
    }
    
    .status-details {
        font-size: 11px;
    }
    
    .input-group {
        margin-bottom: 12px;
    }
    
    .input-group input {
        font-size: 13px;
        padding: 10px;
    }
    
    .message-box {
        font-size: 10px;
        padding: 8px;
        margin: 8px 0;
    }
    
    .mobile-nav a {
        font-size: 20px;
        padding: 15px 30px;
    }
}

/* ============================================
   SMALL MOBILE (iPhone SE, etc)
   ============================================ */
@media (max-width: 375px) {
    .step-content {
        padding: 12px;
    }
    
    .step-content h2 {
        font-size: 11px;
    }
    
    .account-number {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .account-box {
        padding: 10px;
    }
    
    .currency-card {
        padding: 10px 8px;
    }
    
    .currency-icon {
        width: 30px;
        height: 30px;
    }
    
    .currency-code {
        font-size: 16px;
    }
    
    .selected-currency {
        font-size: 20px;
    }
    
    .confirmation-box,
    .status-box {
        padding: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 9px;
        font-size: 11px;
    }
    
    .mobile-nav a {
        font-size: 18px;
        padding: 12px 25px;
    }
    
    #qrcode img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .address-text {
        font-size: 8px;
    }
    
    .copy-icon-inline {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* ============================================
   LARGE SCREENS - PREVENT OVER-STRETCHING
   ============================================ */
@media (min-width: 1920px) {
    .step {
        max-width: 700px;
    }
}
