@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Regular.woff2') format('woff2'),
         url('../fonts/Vazir-Regular.woff') format('woff'),
         url('../fonts/Vazir-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2'),
         url('../fonts/Vazir-Bold.woff') format('woff'),
         url('../fonts/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --shadow: rgba(255, 255, 255, 0.1);
    --footer-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.light {
    --bg-color: #f8f9fa;
    --text-color: #000000;
    --card-bg: #ffffff;
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --shadow: rgba(0, 0, 0, 0.1);
    --footer-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

.payment-hero .container h1 {
    text-align: center;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.payment-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.payment-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px !important;
    margin: 0 auto;
    padding: 60px 40px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .payment-hero .container {
        max-width: 90% !important;
        padding: 40px 20px;
    }
}

.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float 6s ease-in-out infinite;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.text-primary {
    color: #667eea !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

footer {
    background: var(--footer-bg);
    color: white;
}

.light footer img {
    filter: invert(0);
}

form {
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 16px;
    font-family: 'Vazir', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Vazir', sans-serif;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 20px;
}

.form-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
}

.form-text {
    color: #bbb !important;
    font-weight: 300;
}

.min-amount {
    font-size: 12px;
    color: #ccc;
    margin-top: 5px;
}

/* Landing page enhancements */
#abstract .card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
}

#audience .card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.blockquote {
    font-style: italic;
    border-left: 5px solid var(--primary-color);
    padding-left: 20px;
}

.blockquote-footer {
    color: var(--primary-color) !important;
    font-weight: 500;
}

.btn-group button {
    font-size: 1rem;
}
#att-virtual {
    border-radius: 0 0.375rem 0.375rem 0;
}
#att-inperson {
    border-radius: 0.375rem 0 0 0.375rem;
    margin-left: -1px;
}
#att-inperson[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}