:root {
    --background: #070d18;
    --panel: rgba(15, 23, 42, 0.96);
    --panel-dark: rgba(8, 15, 29, 0.97);
    --border: #2b3b59;
    --border-focus: #60a5fa;
    --text: #eef5ff;
    --text-soft: #9fb0ce;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    color-scheme: dark;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(
            circle at top,
            rgba(37, 99, 235, 0.18),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #0a101c 0%,
            var(--background) 100%
        );
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: #93c5fd;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px 18px;
}

.auth-container {
    width: min(100%, 690px);
    margin: 0 auto;
}

.auth-card {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            var(--panel),
            var(--panel-dark)
        );
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.48);
}

.auth-heading {
    margin-bottom: 27px;
    text-align: center;
}

.auth-brand {
    display: inline-block;
    margin-bottom: 19px;
    color: #93c5fd;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.auth-heading h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 43px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.auth-heading p {
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.65;
}

.auth-alert {
    margin-bottom: 21px;
    padding: 14px 16px;
    border-radius: 13px;
    font-size: 14px;
    line-height: 1.55;
}

.auth-alert-error {
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.3);
    color: #fecaca;
}

.auth-alert-success {
    border: 1px solid rgba(74, 222, 128, 0.4);
    background: rgba(20, 83, 45, 0.3);
    color: #bbf7d0;
}

.auth-form {
    display: grid;
    gap: 19px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e7efff;
    font-size: 14px;
    font-weight: 800;
}

.auth-form-group input,
.auth-form-group select,
.auth-form-group textarea {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #344867;
    border-radius: 12px;
    outline: none;
    background: rgba(4, 11, 23, 0.78);
    color: var(--text);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.auth-form-group input:focus,
.auth-form-group select:focus,
.auth-form-group textarea:focus {
    border-color: var(--border-focus);
    background: rgba(5, 14, 29, 0.98);
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.14);
}

.auth-form-group input::placeholder,
.auth-form-group textarea::placeholder {
    color: #64748b;
}

.auth-form-group small {
    display: block;
    margin-top: 7px;
    color: #8091ac;
    font-size: 12px;
    line-height: 1.5;
}

.auth-form-group small strong {
    overflow-wrap: anywhere;
    color: #a7cfff;
}

.auth-input-prefix {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #344867;
    border-radius: 12px;
    background: rgba(4, 11, 23, 0.78);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-input-prefix:focus-within {
    border-color: var(--border-focus);
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.14);
}

.auth-input-prefix span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 47px;
    border-right: 1px solid #344867;
    color: #93c5fd;
    font-weight: 900;
}

.auth-input-prefix input {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-input-prefix input:focus {
    box-shadow: none;
}

.auth-password-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auth-password-input {
    position: relative;
}

.auth-password-input input {
    padding-right: 79px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    min-height: 34px;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.15);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: rgba(59, 130, 246, 0.24);
}

.password-requirements {
    margin: -7px 0 0;
    color: #8091ac;
    font-size: 12px;
}

.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #aebbd0;
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}

.auth-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    box-shadow:
        0 15px 30px rgba(37, 99, 235, 0.25);
    transition:
        transform 0.18s ease,
        filter 0.18s ease;
}

.auth-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.auth-footer {
    margin-top: 26px;
    color: #94a3b8;
    text-align: center;
}

.auth-footer p {
    margin: 0 0 12px;
}

.auth-footer a {
    color: #93c5fd;
    font-weight: 800;
}

.auth-home-link {
    color: #7183a3 !important;
    font-size: 12px;
    text-decoration: none;
}

.auth-home-link:hover {
    color: #a7cfff !important;
}

.auth-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 650px) {
    .auth-page {
        padding: 24px 12px;
    }

    .auth-card {
        padding: 25px 19px;
        border-radius: 19px;
    }

    .auth-password-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Kullanıcı paneli
   ========================================================= */

.dashboard-page {
    min-height: 100vh;
}

.dashboard-navbar {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.75);
    background: rgba(7, 13, 24, 0.88);
    backdrop-filter: blur(18px);
}

.dashboard-navbar-inner {
    display: flex;
    width: min(100%, 1180px);
    min-height: 70px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dashboard-logo {
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
    text-decoration: none;
}

.dashboard-nav {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dashboard-nav a {
    padding: 9px 13px;
    border-radius: 9px;
    color: #aebbd0;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-nav a:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #dbeafe;
}

.dashboard-nav .dashboard-logout {
    background: rgba(239, 68, 68, 0.13);
    color: #fca5a5;
}

.dashboard-container {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 38px 20px 60px;
}

.dashboard-alert {
    margin-bottom: 22px;
    padding: 14px 17px;
    border-radius: 13px;
}

.dashboard-alert-success {
    border: 1px solid rgba(34, 197, 94, 0.4);
    background: rgba(20, 83, 45, 0.3);
    color: #bbf7d0;
}

.dashboard-alert-error {
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: rgba(127, 29, 29, 0.3);
    color: #fecaca;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
    padding: 29px;
    border: 1px solid var(--border);
    border-radius: 21px;
    background:
        radial-gradient(
            circle at right top,
            rgba(37, 99, 235, 0.22),
            transparent 40%
        ),
        rgba(15, 23, 42, 0.85);
}

.dashboard-welcome-label {
    display: block;
    margin-bottom: 8px;
    color: #60a5fa;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-welcome h1 {
    margin: 0 0 9px;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.12;
}

.dashboard-welcome p {
    max-width: 660px;
    margin: 0;
    color: var(--text-soft);
}

.dashboard-user-box {
    display: flex;
    min-width: 220px;
    padding: 13px;
    align-items: center;
    gap: 13px;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 15px;
    background: rgba(5, 13, 27, 0.55);
}

.dashboard-avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.dashboard-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
}

.dashboard-user-box strong,
.dashboard-user-box span {
    display: block;
}

.dashboard-user-box span {
    margin-top: 3px;
    color: #93c5fd;
    font-size: 13px;
}

.dashboard-statistics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 27px;
}

.dashboard-stat-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.78);
}

.dashboard-stat-card span {
    display: block;
    min-height: 40px;
    color: #8fa1be;
    font-size: 13px;
}

.dashboard-stat-card strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: 29px;
}

.dashboard-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 28px;
}

.dashboard-action-card {
    display: flex;
    min-height: 145px;
    padding: 20px;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    text-decoration: none;
    transition:
        border-color 0.18s ease,
        transform 0.18s ease,
        background 0.18s ease;
}

.dashboard-action-card:hover {
    border-color: rgba(96, 165, 250, 0.62);
    background: rgba(22, 34, 57, 0.92);
    transform: translateY(-3px);
}

.dashboard-action-icon {
    font-size: 27px;
    line-height: 1;
}

.dashboard-action-card strong {
    display: block;
    margin-bottom: 7px;
    font-size: 16px;
}

.dashboard-action-card p {
    margin: 0;
    color: #8fa1be;
    font-size: 13px;
    line-height: 1.55;
}

.dashboard-section {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: rgba(15, 23, 42, 0.8);
}

.dashboard-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-section-heading h2 {
    margin: 0 0 6px;
}

.dashboard-section-heading p {
    margin: 0;
    color: #8fa1be;
    font-size: 13px;
}

.dashboard-section-heading > a {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 9px;
    background: rgba(59, 130, 246, 0.13);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-empty {
    padding: 30px 18px;
    border: 1px dashed #3b4c69;
    border-radius: 14px;
    color: #94a3b8;
    text-align: center;
}

.dashboard-empty a {
    margin-left: 5px;
    font-weight: 800;
}

.dashboard-links-list {
    display: grid;
    gap: 12px;
}

.dashboard-link-item {
    display: flex;
    padding: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #2c3c58;
    border-radius: 13px;
    background: rgba(5, 12, 24, 0.56);
}

.dashboard-link-main {
    min-width: 0;
}

.dashboard-link-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-link-title > a {
    overflow: hidden;
    color: #93c5fd;
    font-weight: 850;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-link-main p {
    max-width: 700px;
    margin: 6px 0 0;
    overflow: hidden;
    color: #7f91af;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-status {
    flex-shrink: 0;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.link-status-active {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.link-status-closed {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
}

.link-status-expired,
.link-status-limit {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

.dashboard-link-meta {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 17px;
    color: #8fa1be;
    font-size: 12px;
}

.dashboard-link-meta strong {
    color: #e5eeff;
}

@media (max-width: 1000px) {
    .dashboard-statistics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .dashboard-navbar-inner,
    .dashboard-welcome,
    .dashboard-link-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-navbar-inner {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .dashboard-nav {
        width: 100%;
        flex-wrap: wrap;
    }

    .dashboard-container {
        padding: 24px 12px 45px;
    }

    .dashboard-user-box {
        width: 100%;
    }

    .dashboard-statistics,
    .dashboard-actions-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stat-card span {
        min-height: auto;
    }

    .dashboard-section {
        padding: 19px;
    }

    .dashboard-section-heading {
        flex-direction: column;
    }

    .dashboard-link-meta {
        width: 100%;
        justify-content: space-between;
    }
}

/* =========================================================
   Profil ayarları
   ========================================================= */

.settings-heading {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.settings-heading span {
    display: block;
    margin-bottom: 7px;
    color: #60a5fa;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.settings-heading h1 {
    margin: 0 0 7px;
    font-size: clamp(29px, 5vw, 42px);
}

.settings-heading p {
    margin: 0;
    color: var(--text-soft);
}

.settings-back-button {
    flex-shrink: 0;
    padding: 10px 15px;
    border: 1px solid #344867;
    border-radius: 10px;
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.settings-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(300px, 0.75fr);
    align-items: start;
    gap: 22px;
}

.settings-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: rgba(15, 23, 42, 0.82);
}

.settings-form {
    display: grid;
    gap: 20px;
}

.settings-form textarea {
    min-height: 110px;
    resize: vertical;
}

.settings-form input[type="color"] {
    height: 52px;
    padding: 6px;
    cursor: pointer;
}

.background-setting {
    display: none;
}

.profile-address-box {
    padding: 15px;
    border: 1px solid #31425e;
    border-radius: 12px;
    background: rgba(4, 11, 23, 0.55);
}

.profile-address-box span,
.profile-address-box strong {
    display: block;
}

.profile-address-box span {
    margin-bottom: 5px;
    color: #8495b1;
    font-size: 12px;
}

.profile-address-box strong {
    overflow-wrap: anywhere;
    color: #93c5fd;
    font-size: 13px;
}

.profile-preview-wrapper {
    position: sticky;
    top: 95px;
}

.profile-preview-label {
    display: block;
    margin-bottom: 9px;
    color: #8fa1be;
    font-size: 12px;
    font-weight: 800;
}

.profile-preview {
    min-height: 560px;
    overflow: hidden;
    border: 1px solid #344867;
    border-radius: 24px;
    background:
        linear-gradient(
            135deg,
            #0f172a,
            #1d4ed8
        );
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.35);
}

.profile-preview-overlay {
    display: flex;
    min-height: 560px;
    padding: 42px 24px;
    align-items: center;
    flex-direction: column;
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.08),
            rgba(0, 0, 0, 0.2)
        );
    text-align: center;
}

.profile-preview-avatar {
    width: 96px;
    height: 96px;
    margin-bottom: 18px;
    border: 4px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        0 13px 35px rgba(0, 0, 0, 0.28);
}

.profile-preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );
    color: #ffffff;
    font-size: 35px;
    font-weight: 900;
}

.profile-preview h2 {
    margin: 0 0 4px;
    font-size: 29px;
}

.profile-preview h2 + span {
    opacity: 0.8;
    font-size: 13px;
}

.profile-preview p {
    max-width: 290px;
    margin: 18px 0 24px;
    opacity: 0.88;
    font-size: 14px;
    line-height: 1.6;
}

.profile-preview-link {
    width: 100%;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .profile-preview-wrapper {
        position: static;
    }

    .profile-preview {
        min-height: 480px;
    }

    .profile-preview-overlay {
        min-height: 480px;
    }
}

@media (max-width: 600px) {
    .settings-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-card {
        padding: 19px;
    }
}

/* =========================================================
   Sosyal medya bağlantıları
   ========================================================= */

.social-layout {
    display: grid;
    grid-template-columns:
        minmax(280px, 0.7fr)
        minmax(0, 1.3fr);
    align-items: start;
    gap: 22px;
}

.social-layout > .settings-card:first-child {
    position: sticky;
    top: 95px;
}

.social-card-heading {
    display: flex;
    margin-bottom: 22px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.social-card-heading h2 {
    margin: 0;
    font-size: 21px;
}

.social-card-heading p {
    margin: 5px 0 0;
    color: #8394b0;
    font-size: 12px;
}

.social-card-heading > span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    font-size: 12px;
    font-weight: 900;
}

.social-card-heading > a {
    flex-shrink: 0;
    padding: 7px 11px;
    border-radius: 9px;
    background: rgba(59, 130, 246, 0.13);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.social-links-list {
    display: grid;
    gap: 17px;
}

.social-link-card {
    padding: 18px;
    border: 1px solid #30415e;
    border-radius: 16px;
    background: rgba(5, 12, 24, 0.58);
}

.social-link-disabled {
    opacity: 0.65;
}

.social-link-top {
    display: flex;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.social-platform-badge {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.16);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 900;
}

.social-order-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-order-buttons form {
    margin: 0;
}

.social-order-buttons button {
    width: 34px;
    height: 34px;
    border: 1px solid #344867;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    color: #bfdbfe;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
}

.social-order-buttons button:hover:not(:disabled) {
    border-color: #60a5fa;
    background: rgba(37, 99, 235, 0.16);
}

.social-order-buttons button:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.social-edit-form {
    display: grid;
    gap: 13px;
}

.social-link-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #8394b0;
    font-size: 12px;
}

.social-link-details strong {
    color: #e5eeff;
}

.social-save-button {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.social-save-button:hover {
    background: rgba(37, 99, 235, 0.3);
}

.social-link-actions {
    display: flex;
    margin-top: 14px;
    padding-top: 14px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #263753;
}

.social-link-actions form {
    margin: 0;
}

.social-link-actions button {
    min-height: 37px;
    padding: 8px 13px;
    border: 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.social-toggle-button {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

.social-delete-button {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
}

@media (max-width: 900px) {
    .social-layout {
        grid-template-columns: 1fr;
    }

    .social-layout > .settings-card:first-child {
        position: static;
    }
}

@media (max-width: 600px) {
    .social-card-heading {
        flex-direction: column;
    }

    .social-card-heading > a {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   Kısa link yönetimi
   ========================================================= */

.links-statistics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.links-statistics article {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.8);
}

.links-statistics span {
    display: block;
    color: #8fa1be;
    font-size: 13px;
}

.links-statistics strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: 30px;
}

.links-filter-card,
.links-management-card {
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.8);
}

.links-filter-form {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(180px, 240px)
        auto
        auto;
    align-items: end;
    gap: 12px;
}

.links-filter-form button,
.links-filter-form > a {
    display: flex;
    min-height: 49px;
    padding: 11px 17px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.links-filter-form button {
    background: #2563eb;
    color: #ffffff;
}

.links-filter-form > a {
    border: 1px solid #344867;
    color: #a7cfff;
}

.links-management-heading {
    margin-bottom: 18px;
}

.links-management-heading h2 {
    margin: 0 0 4px;
}

.links-management-heading p {
    margin: 0;
    color: #8fa1be;
    font-size: 12px;
}

.account-links-list {
    display: grid;
    gap: 15px;
}

.account-link-card {
    padding: 18px;
    border: 1px solid #30415e;
    border-radius: 15px;
    background: rgba(5, 12, 24, 0.6);
}

.account-link-card-heading {
    display: flex;
    margin-bottom: 14px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.account-link-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.account-link-badges span {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.account-link-active {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.account-link-closed {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
}

.account-link-expired,
.account-link-blocked {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

.account-link-safety {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
}

.account-link-password {
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d;
}

.account-link-date {
    flex-shrink: 0;
    color: #7183a3;
    font-size: 11px;
}

.account-short-url {
    display: block;
    overflow: hidden;
    color: #93c5fd;
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-target-url {
    margin: 8px 0 0;
    overflow: hidden;
    color: #8293ae;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-safety-reason {
    margin: 10px 0 0;
    padding: 9px 11px;
    border-radius: 9px;
    background: rgba(245, 158, 11, 0.09);
    color: #fcd34d;
    font-size: 11px;
}

.account-link-information {
    display: flex;
    margin-top: 15px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #8293ae;
    font-size: 12px;
}

.account-link-information strong {
    color: #e5eeff;
}

.account-link-actions {
    display: flex;
    margin-top: 16px;
    padding-top: 15px;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #263753;
}

.account-link-actions form {
    margin: 0;
}

.account-link-actions button,
.account-link-actions a {
    min-height: 38px;
    padding: 9px 13px;
    border: 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.account-copy-button {
    background: rgba(37, 99, 235, 0.17);
    color: #bfdbfe;
}

.account-open-button {
    display: flex;
    align-items: center;
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
}

.account-toggle-button {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

.account-delete-button {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
}

@media (max-width: 780px) {
    .links-filter-form {
        grid-template-columns: 1fr;
    }

    .links-statistics {
        grid-template-columns: 1fr;
    }

    .account-link-card-heading,
    .account-link-information {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-link-actions {
        flex-wrap: wrap;
    }
}


.edit-link-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(260px, 0.7fr);
    align-items: start;
    gap: 22px;
}

.edit-link-information {
    position: sticky;
    top: 95px;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.82);
}

.edit-link-information > span {
    display: block;
    margin-bottom: 8px;
    color: #8fa1be;
    font-size: 12px;
}

.edit-link-information > a {
    display: block;
    overflow-wrap: anywhere;
    color: #93c5fd;
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
}

.edit-link-information dl {
    display: grid;
    gap: 12px;
    margin: 23px 0 0;
}

.edit-link-information dl div {
    display: flex;
    padding: 11px 0;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #2b3b59;
}

.edit-link-information dt {
    color: #8394b0;
    font-size: 12px;
}

.edit-link-information dd {
    margin: 0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.account-edit-button {
    display: flex;
    align-items: center;
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
}

@media (max-width: 800px) {
    .edit-link-layout {
        grid-template-columns: 1fr;
    }

    .edit-link-information {
        position: static;
    }
}

/* =========================================================
   Şifremi unuttum ve şifre sıfırlama
   ========================================================= */

.auth-forgot-row {
    display: flex;
    margin-top: 9px;
    justify-content: flex-end;
}

.auth-forgot-row a {
    color: #93c5fd;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.auth-forgot-row a:hover {
    color: #dbeafe;
    text-decoration: underline;
}

.auth-reset-info {
    margin: -3px 0 0;
    color: #8091ac;
    font-size: 12px;
    line-height: 1.6;
}

.auth-reset-invalid {
    text-align: center;
}

.auth-reset-invalid .auth-submit {
    display: inline-flex;
    margin-top: 18px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.auth-secondary-link {
    display: inline-block;
    margin-top: 16px;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.auth-secondary-link:hover {
    color: #dbeafe;
    text-decoration: underline;
}
