* {
    box-sizing: border-box;
}


body {
    background: linear-gradient(135deg, #101114, #241016, #101114);
    color: #ffffff;
    text-align: center;
    min-height: 100vh;
    background-repeat: no-repeat;
}

h1 {
    color: #ff492b;
    font-size: 32px;
    text-align: center;
    border: 2px solid #ff492b;
    border-radius: 8px;
    padding: 12px;
    display: inline-block;
    margin-top: 40px;
    text-shadow: 0 0 12px rgba(255, 73, 43, 0.6);
    animation: titleGlow 3s ease-in-out infinite;
}

.p1 {
    color: #a0a0aa;
    margin-top: 12px;
    font-size: 12px;
}

.but1 {
    background-color: #ff492b;
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;

}

.but1:hover {
    background-color: #d92d16;
    transform: scale(1.05);
}

.command-card {
    background-color: #1a1b20;
    width: 90%;
    padding: 25px;
    margin: 60px auto;
    border: 1px solid #33343b;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(255, 73, 43, 0.12);
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 18px;

}

@keyframes titleGlow {

    0%,
    100% {
        text-shadow: 0 0 8px rgba(255, 73, 43, 0.3);
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 73, 43, 0.9);
    }
}

.main-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.main-menu a {
    color: #ffffff;
    text-decoration: none;
    background-color: #292a31;
    padding: 10px 14px;
    border: 1px solid #3a3b44;
    border-radius: 6px;
    transition: 0.3s;
}

.main-menu a:hover {
    background-color: #ff492b;
    border-color: #ff492b;
}

.guild-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.stat-box {
    background-color: #222329;
    border: 1px solid #383941;
    border-radius: 10px;
    padding: 12px;
    flex: 1 1 120px;
    text-align: center;
    min-width: 0;
}

.stat-box h2 {
    color: #ff492b;
    font-size: 14px;
}

.stat-box p {
    color: #ff492b;
    font-size: 18px;
    font-weight: bold;

}


/* ================================
   IRAN ZAMIN | Member Management
   ================================ */

:root {
    --bg: #0b0e13;
    --panel: #151a22;
    --field: #0e131b;
    --gold: #f0bd4f;
    --gold-hover: #ffd779;
    --text: #f1f3f6;
    --muted: #9ba5b4;
    --border: #2b3340;
    --danger: #ff6b6b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 35px 16px;
    background:
        radial-gradient(
            circle at top right,
            rgba(240, 189, 79, 0.09),
            transparent 35%
        ),
        var(--bg);
    color: var(--text);
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
    line-height: 1.8;
}

.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 32px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

h1 {
    margin: 0 0 8px;
    padding-bottom: 15px;
    color: var(--gold);
    font-size: 27px;
    border-bottom: 1px solid var(--border);
}

.container > p {
    margin: 12px 0 24px;
    color: var(--muted);
    font-size: 14px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

label {
    margin-top: 10px;
    color: #dce1e8;
    font-size: 14px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    color: var(--text);
    background: var(--field);
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input,
select {
    min-height: 46px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240, 189, 79, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: #667080;
}

input[type="date"] {
    color-scheme: dark;
}

input[type="number"] {
    direction: ltr;
    text-align: right;
}

select {
    cursor: pointer;
}

select option {
    background: var(--panel);
    color: var(--text);
}

button,
a.but1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 45px;
    padding: 11px 18px;
    color: #17130a;
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 9px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

button {
    margin-top: 18px;
}

button:hover,
a.but1:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    transform: translateY(-1px);
}

.container > p a:not(.but1) {
    color: var(--gold);
    text-decoration: none;
}

.container > p a:not(.but1):hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

.error {
    margin: 16px 0;
    padding: 12px 15px;
    color: #ffdada;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 9px;
    font-size: 14px;
}

@media (max-width: 600px) {
    body {
        padding: 18px 10px;
    }

    .container {
        padding: 21px 16px;
        border-radius: 13px;
    }

    h1 {
        font-size: 22px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    button,
    a.but1 {
        width: 100%;
    }
}
