/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .nav-menu {
    gap: 20px;
  }

  .nav-link {
    font-size: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 60px 0;
    gap: 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-visual {
    height: 300px;
  }

  .props-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step-arrow {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mission-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Updated footer grid for tablets */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .section-title {
    font-size: 32px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .cta-section h2 {
    font-size: 32px;
  }

  /* Blog Grid */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Benefits Grid */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Categories Grid */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Articles List */
  .articles-list {
    grid-template-columns: 1fr;
  }

  /* Support Options */
  .support-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .auth-card {
    padding: 40px 30px;
  }

  .auth-benefits {
    padding: 30px;
  }

  .vault-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .upload-card {
    padding: 40px 30px;
  }

  .vault-sidebar {
    gap: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Adding dashboard responsive styles */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .upgrade-plans {
    grid-template-columns: 1fr;
  }

  .upgrade-card.featured {
    transform: scale(1);
  }

  .files-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reminders-grid {
    grid-template-columns: 1fr;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-controls {
    width: 100%;
  }

  .search-input,
  .filter-select {
    flex: 1;
    min-width: 150px;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .nav-container {
    height: 60px;
  }

  .nav-logo {
    font-size: 18px;
    gap: 8px;
  }

  .logo-icon {
    font-size: 22px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero {
    padding: 40px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    height: 250px;
  }

  .floating-card {
    padding: 15px;
    font-size: 12px;
  }

  .card-icon {
    font-size: 32px;
  }

  .props-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .prop-card {
    padding: 30px 20px;
  }

  .prop-icon {
    font-size: 40px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .step-card {
    padding: 30px 20px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .step-card h3 {
    font-size: 18px;
  }

  .step-card p {
    font-size: 12px;
  }

  .cta-section {
    padding: 60px 0;
  }

  .cta-section h2 {
    font-size: 24px;
  }

  .cta-section p {
    font-size: 14px;
  }

  .pricing-card {
    padding: 30px 20px;
  }

  .plan-header h3 {
    font-size: 20px;
  }

  .plan-price {
    font-size: 28px;
  }

  .feature {
    font-size: 12px;
    padding: 10px 0;
  }

  .faq-question {
    padding: 20px;
  }

  .faq-question h4 {
    font-size: 14px;
  }

  .faq-answer {
    padding: 20px;
  }

  .faq-answer p {
    font-size: 13px;
  }

  .page-header {
    padding: 40px 0;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .page-header p {
    font-size: 14px;
  }

  .solution-card {
    padding: 30px 20px;
  }

  .solution-icon {
    font-size: 40px;
  }

  .solution-card h3 {
    font-size: 18px;
  }

  .solution-card p {
    font-size: 13px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .feature-icon {
    font-size: 40px;
  }

  .feature-card h3 {
    font-size: 18px;
  }

  .feature-card p {
    font-size: 13px;
  }

  .page-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .checkout-grid {
    gap: 20px;
  }

  .order-summary {
    padding: 30px 20px;
  }

  .order-summary h2 {
    font-size: 20px;
  }

  .payment-form {
    padding: 30px 20px;
  }

  .payment-form h2 {
    font-size: 20px;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    flex-direction: column;
    gap: 10px;
  }

  .badge {
    justify-content: center;
  }

  .about-hero h1 {
    font-size: 28px;
  }

  .story-grid {
    gap: 30px;
  }

  .story-content h2 {
    font-size: 24px;
  }

  .story-content p {
    font-size: 14px;
  }

  .story-visual {
    grid-template-columns: 1fr;
  }

  .story-card {
    padding: 30px 20px;
  }

  .card-number {
    font-size: 32px;
  }

  .mission-statement {
    font-size: 20px;
  }

  .mission-values {
    grid-template-columns: 1fr;
  }

  .value-card {
    padding: 30px 20px;
  }

  .value-card h3 {
    font-size: 18px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-member {
    padding: 30px 20px;
  }

  .member-avatar {
    font-size: 48px;
  }

  .team-member h3 {
    font-size: 16px;
  }

  .contact-grid {
    gap: 30px;
  }

  .contact-info h2 {
    font-size: 22px;
  }

  .info-card {
    padding: 15px;
    margin-bottom: 20px;
  }

  .info-icon {
    font-size: 28px;
  }

  .info-content h3 {
    font-size: 14px;
  }

  .info-content p {
    font-size: 12px;
  }

  .contact-form-wrapper h2 {
    font-size: 22px;
  }

  /* Updated footer grid for mobile - single column layout */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-col h4 {
    font-size: 14px;
  }

  .footer-col p,
  .footer-col a {
    font-size: 12px;
  }

  /* Stack social icons horizontally on mobile */
  .social-links {
    gap: 12px;
  }

  .social-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .footer-bottom-content {
    gap: 8px;
  }

  .notification {
    left: 20px;
    right: 20px;
    padding: 15px 20px;
  }

  /* Policy Pages */
  .policy-header h1 {
    font-size: 28px;
  }

  .policy-section h2 {
    font-size: 22px;
  }

  .policy-section p,
  .policy-section ul li {
    font-size: 14px;
  }

  /* Blog Grid */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card h3 {
    font-size: 18px;
  }

  .blog-content {
    padding: 20px;
  }

  /* Careers */
  .careers-header h1 {
    font-size: 28px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    padding: 25px 20px;
  }

  .position-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .position-header h3 {
    font-size: 20px;
  }

  .position-card {
    padding: 25px 20px;
  }

  /* Help Center */
  .help-header h1 {
    font-size: 28px;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box input,
  .search-box button {
    width: 100%;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    padding: 25px 20px;
  }

  .articles-list {
    grid-template-columns: 1fr;
  }

  .article-item {
    padding: 20px;
  }

  .support-options {
    grid-template-columns: 1fr;
  }

  .contact-support {
    padding: 40px 20px;
  }

  /* FAQ */
  .faq-header h1 {
    font-size: 28px;
  }

  .faq-section h2 {
    font-size: 22px;
  }

  .faq-question {
    padding: 15px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 0 15px;
  }

  .faq-item.active .faq-answer {
    padding: 15px;
  }

  .faq-answer p {
    font-size: 13px;
  }

  .auth-header h1 {
    font-size: 24px;
  }

  .auth-card {
    padding: 30px 20px;
  }

  .auth-form {
    gap: 15px;
  }

  .form-group input,
  .form-group select {
    padding: 10px 12px;
    font-size: 16px;
  }

  .social-login {
    gap: 10px;
  }

  .social-btn {
    padding: 10px 15px;
    font-size: 13px;
  }

  .auth-benefits h2 {
    font-size: 20px;
  }

  .benefits-list li {
    font-size: 13px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .step h3 {
    font-size: 16px;
  }

  .step p {
    font-size: 12px;
  }

  .vault-header h1 {
    font-size: 28px;
  }

  .vault-header p {
    font-size: 14px;
  }

  .upload-card {
    padding: 25px 20px;
  }

  .form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
  }

  .form-section h2 {
    font-size: 18px;
  }

  .file-upload-area {
    padding: 30px 20px;
  }

  .upload-icon {
    font-size: 36px;
  }

  .file-upload-area h3 {
    font-size: 16px;
  }

  .file-upload-area p {
    font-size: 13px;
  }

  .info-card {
    padding: 20px;
  }

  .info-card h3 {
    font-size: 14px;
  }

  .info-list li,
  .file-types li {
    font-size: 12px;
  }

  .form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .form-actions .btn {
    width: 100%;
  }

  .modal-content {
    padding: 30px 20px;
  }

  .modal-header h2 {
    font-size: 20px;
  }

  .modal-body p {
    font-size: 13px;
  }

  /* Adding dashboard responsive styles */
  .dashboard-header h1 {
    font-size: 24px;
  }

  .dashboard-header p {
    font-size: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-card {
    padding: 25px 20px;
  }

  .stat-icon {
    font-size: 36px;
  }

  .stat-number {
    font-size: 24px;
  }

  .plan-card-active {
    padding: 25px 20px;
  }

  .plan-card-active h3 {
    font-size: 22px;
  }

  .upgrade-card h3 {
    font-size: 20px;
  }

  .upgrade-card .price {
    font-size: 24px;
  }

  .files-grid {
    grid-template-columns: 1fr;
  }

  .warranty-card {
    padding: 20px;
  }

  .warranty-title {
    font-size: 16px;
  }

  .warranty-actions {
    flex-direction: column;
  }

  .warranty-actions button {
    width: 100%;
  }

  .filter-controls {
    flex-direction: column;
  }

  .search-input,
  .filter-select {
    width: 100%;
  }

  .reminders-grid {
    grid-template-columns: 1fr;
  }

  .reminder-card {
    padding: 20px;
  }

  .reminder-card h3 {
    font-size: 16px;
  }

  .reminder-card p {
    font-size: 13px;
  }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
  .hero-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 20px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .btn-large {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Extra small footer adjustments */
  .footer-col h4 {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .footer-col a {
    font-size: 11px;
  }

  .social-icon {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .footer-bottom p {
    font-size: 11px;
  }

  .policy-header h1,
  .blog-header h1,
  .careers-header h1,
  .help-header h1,
  .faq-header h1 {
    font-size: 22px;
  }

  .policy-section h2,
  .faq-section h2 {
    font-size: 18px;
  }

  .position-header h3,
  .category-card h3,
  .benefit-card h3 {
    font-size: 16px;
  }

  .auth-header h1 {
    font-size: 20px;
  }

  .auth-card {
    padding: 20px 15px;
  }

  .vault-header h1 {
    font-size: 22px;
  }

  .upload-card {
    padding: 20px 15px;
  }

  .form-section h2 {
    font-size: 16px;
  }

  .file-upload-area {
    padding: 20px 15px;
  }

  .upload-icon {
    font-size: 32px;
  }

  /* Adding dashboard responsive styles */
  .dashboard-header h1 {
    font-size: 20px;
  }

  .stat-card {
    padding: 20px 15px;
  }

  .stat-icon {
    font-size: 32px;
  }

  .stat-number {
    font-size: 20px;
  }

  .plan-card-active {
    padding: 20px 15px;
  }

  .warranty-card {
    padding: 15px;
  }

  .warranty-title {
    font-size: 14px;
  }

  .detail-item {
    font-size: 12px;
  }

  .warranty-actions button {
    padding: 8px 10px;
    font-size: 12px;
  }
}



/* ===========================
   Edit Modal Styling
=========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(3px);
}

.modal-container {
  background: #fff;
  width: 90%;
  max-width: 480px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 0.3s ease-in-out;
  overflow: hidden;
}

.modal-header {
  background: #2563eb;
  color: white;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.close-btn {
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.2);
}

.modal-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.form-group input {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: all 0.2s ease;
}

.form-group input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 4px rgba(37, 99, 235, 0.3);
}

.form-row {
  display: flex;
  gap: 1rem;
}



.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: #f9fafb;
  border-top: 1px solid #eee;
}

/* Smooth animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


