/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0f172a; /* Slate 900 */
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    direction: rtl;
    padding: 1rem;
}

/* Background Shapes Animation */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: -1;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background-color: #9333ea; /* Purple */
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background-color: #4f46e5; /* Indigo */
    animation-direction: reverse;
    animation-duration: 12s;
}

.shape-3 {
    top: 40%;
    left: 20%;
    width: 250px;
    height: 250px;
    background-color: #db2777; /* Pink */
    opacity: 0.2;
    animation-duration: 8s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Main Container & Glass Panel */
.main-container {
    width: 100%;
    max-width: 480px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glass-panel {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.main-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to left, #a5b4fc, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #94a3b8; /* Slate 400 */
    font-size: 0.875rem;
}

/* Buttons */
.link-wrapper {
    display: block;
    width: 100%;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: transform 0.2s;
}

.link-wrapper:hover {
    transform: translateY(-2px);
}

.btn {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: right;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-content.centered {
    justify-content: center;
    gap: 0.5rem;
}

.text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.text-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.btn-desc {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.85);
}

.icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 1rem;
    opacity: 0.9;
}

.icon-small {
    width: 20px;
    height: 20px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 9999px;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(to right, #2563eb, #4f46e5); /* Blue to Indigo */
    border-color: rgba(129, 140, 248, 0.3);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

.btn-danger {
    background: linear-gradient(to right, #dc2626, #e11d48); /* Red to Rose */
    border-color: rgba(248, 113, 113, 0.3);
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

.btn-dark {
    background-color: #1e293b; /* Slate 800 */
    border-color: #334155;
}
.btn-dark:hover {
    background-color: #334155;
}

.btn-info {
    background-color: #0e7490; /* Cyan 700 */
    border-color: rgba(34, 211, 238, 0.3);
}
.btn-info:hover {
    background-color: #0891b2;
}

.btn-warning {
    background-color: #b45309; /* Amber 700 */
    border-color: rgba(251, 191, 36, 0.3);
}
.btn-warning:hover {
    background-color: #d97706;
}

.btn-success {
    background-color: #047857; /* Emerald 700 */
    border-color: rgba(52, 211, 153, 0.3);
}
.btn-success:hover {
    background-color: #059669;
}

.btn-disabled {
    background-color: rgba(30, 41, 59, 0.5);
    color: #94a3b8;
    border-color: #334155;
    cursor: not-allowed;
    text-align: center;
}

/* Divider */
.divider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.divider {
    flex: 1;
    height: 1px;
    background-color: #334155;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* Hero Section */
.hero-section {
    margin-bottom: 2rem;
    transition: transform 0.3s;
}
.hero-section:hover {
    transform: scale(1.03);
}

/* Footer */
.footer {
    margin-top: 2rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .glass-panel {
        padding: 1.5rem;
    }
}