:root {
    --bg-color: #111119;
    --box-bg-color: rgba(26, 26, 35, 0.5);
    --box-border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f0f2f5;
    --text-secondary: #a0a8b5;
    --accent-color-1: #00aaff;
    --aurora-1: #3d5afe;
    --aurora-2: #e91e63;
    --aurora-3: #00bcd4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    overflow: hidden;
    position: relative;
    overflow-y:auto;
}
.btn-close-ticket {
	background-color: #e91e63;
	color: white;
	border: none;
	border-radius: 8px;
	padding: 0.8rem 1.5rem;
	cursor: pointer;
	font-family: inherit;
	text-decoration: none;
	margin-right: 1rem;
	display: inline-block;
	margin: 16px auto;
}
.aurora-background {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; z-index: -1;
}

.aurora-shape {
    position: absolute; border-radius: 50%;
    filter: blur(150px); opacity: 0.2;
}
.aurora-shape1 {
    width: 500px; height: 500px;
    background-color: var(--aurora-1);
    top: -150px; left: -150px;
    animation: drift 15s infinite alternate;
}
.aurora-shape2 {
    width: 400px; height: 400px;
    background-color: var(--aurora-2);
    bottom: -100px; right: -100px;
    animation: drift 20s infinite alternate-reverse;
}
.aurora-shape3 {
    width: 300px; height: 300px;
    background-color: var(--aurora-3);
    bottom: 50%; right: 50%;
    transform: translate(50%, 50%);
    animation: drift 18s infinite alternate;
}

@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(100px, 150px) rotate(30deg); }
}

#app-container {
    width: 100%;
    max-width: 1200px;
}

.view {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.view.active-view {
    display: grid;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bento-dashboard {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 1.5rem;
}

.bento-box {
    background-color: var(--box-bg-color);
    border: 1px solid var(--box-border-color);
    border-radius: 24px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-primary);
}
.bento-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.box-2x1 { grid-column: span 2; grid-row: span 1; }
.box-1x1 { grid-column: span 1; grid-row: span 1; }

.box-header {
    display: flex; align-items: center;
    gap: 0.75rem; margin-bottom: 1rem;
}
.box-header i { font-size: 1.5rem; color: var(--text-secondary); }
.box-header h2 { font-size: 1.1rem; font-weight: 500; color: var(--text-primary); }

.main-title { font-size: 2.2rem; font-weight: 700; line-height: 1.3; }
.main-title span { color: var(--accent-color-1); }

.box-content-line {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; color: var(--text-secondary);
}
.box-content-line i { font-size: 1.2rem; }

.logout-link .box-header h2 { color: var(--accent-color-2); }
.logout-link .box-header i { color: var(--accent-color-2); }


.page-view {
    display: none;
    background-color: var(--box-bg-color);
    border: 1px solid var(--box-border-color);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
}
.page-view.active-view { display: block; }

.page-header {
    display: flex; align-items: center;
    gap: 1.5rem; border-bottom: 1px solid var(--box-border-color);
    padding-bottom: 1rem; margin-bottom: 2rem;
}
.back-link {
    display: flex; align-items: center; gap: 0.5rem;
    text-decoration: none; color: var(--text-secondary);
    font-size: 1rem; transition: color 0.3s ease;
}
.back-link:hover { color: var(--text-primary); }
.page-header h1 { font-size: 1.5rem; color: var(--text-primary); }

table {
    width: 100%; border-collapse: collapse;
}
th, td {
    padding: 1rem; text-align: right;
    border-bottom: 1px solid var(--box-border-color);
}
thead { background-color: rgba(0,0,0,0.2); }
tbody tr:hover { background-color: rgba(255,255,255,0.05); }
td:last-child, th:last-child { text-align: center; }
.btn-view {
    background-color: var(--accent-color-1); color: white;
    border: none; border-radius: 8px; padding: 0.5rem 1rem;
    cursor: pointer; font-family: inherit;
}

.address-wrapper { display: flex; gap: 1.5rem; }
.address-box {
    flex: 1; padding: 1.5rem;
    background-color: rgba(0,0,0,0.2);
    border-radius: 16px;
}
.address-box h3 { margin-bottom: 1rem; }
.btn-edit {
    background: none; border: 1px solid var(--text-secondary);
    color: var(--text-secondary); padding: 0.5rem 1rem;
    border-radius: 8px; cursor: pointer; margin-top: 1rem;
}

.account-form { max-width: 800px; margin: 0 auto; }
.form-row { display: flex; gap: 1.5rem; }
.form-group { flex: 1; margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); }
.form-group input {
    width: 100%; padding: 0.75rem; font-family: inherit;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid var(--box-border-color);
    border-radius: 8px; color: var(--text-primary);
}
fieldset {
    border: 1px solid var(--box-border-color);
    border-radius: 16px; padding: 1.5rem; margin: 2rem 0;
}
legend { padding: 0 0.5rem; }
.btn-submit {
    width: 100%; padding: 0.8rem; font-size: 1.1rem;
    background-color: var(--accent-color-1); color: white;
    border: none; border-radius: 8px; cursor: pointer;
}

@media (max-width: 992px) {
    .bento-dashboard { grid-template-columns: repeat(2, 1fr); }
    .box-2x1 { grid-column: span 2; }
}

@media (max-width: 600px) {
    body { padding: 1rem; }
    .bento-dashboard { grid-template-columns: 1fr; }
    .box-2x1, .box-1x1 { grid-column: span 1; }
    .address-wrapper, .form-row { flex-direction: column; }
    .main-title { font-size: 1.8rem; }
}